Skip to content

Reset Password / Login vulnerability in Sulu

Moderate severity GitHub Reviewed Published Aug 3, 2020 in sulu/sulu • Updated Jan 9, 2023

Package

composer sulu/sulu (Composer)

Affected versions

< 1.6.34
>= 2.0.0, < 2.0.10
>= 2.1.0, < 2.1.1

Patched versions

1.6.34
2.0.10
2.1.1

Description

Impact

What kind of vulnerability is it? Who is impacted?

This vulnerability consists of a few related issues:

Forget password leaks information if the user exists

When the "Forget password" feature on the login screen is used, Sulu asks the user for a username or email address. If the given string is not found, a response with a 400 error code is returned, along with a error message saying that this user name does not exist:

{
    "code": 0,
    "message": "Entity with the type \u0022Sulu\\Bundle\\SecurityBundle\\Entity\\User\u0022 and the id \u0022asdf\u0022 not found."
}

This enables attackers to retrieve valid usernames.

Forgot password leaks user email if user exists

The response of the "Forgot Password" request returns the email address to which the email was sent, if the operation was successful:

{"email":"[email protected]"}

This information should not be exposed, as it can be used to gather email addresses.

Response time of login gives hint if the username exists

If the username the user enters in the login screen does not exists, the request responds much faster than if the username exists. This again allows attackers to retrieve valid usernames.

Reset Token for Forgot Password feature is not hashed

The reset token in the user database table is not hashed. That means that somebody could try to request a new password using the Forgot Password feature, and look that up in the database, if the attacker somehow got access to the database. Hashing the reset token would fix that problem.

Patches

This problem was fixed in Release 1.6.34, 2.0.10 and 2.1.1.

Workarounds

Override the files manually in your project and change them accordingly.

References

@danrot danrot published to sulu/sulu Aug 3, 2020
Reviewed Aug 5, 2020
Published to the GitHub Advisory Database Aug 5, 2020
Last updated Jan 9, 2023

Severity

Moderate

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
None

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

EPSS score

0.126%
(48th percentile)

Weaknesses

CVE ID

CVE-2020-15132

GHSA ID

GHSA-wfm4-pq59-wg6r

Source code

No known source code

Credits

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.