CVE-2020-15132
JSON

5.3medium

Reset Password / Login vulnerability in Sulu

Severity
5.3medium CVSS:3.1 by GitHub_M
Exploit likelihood
1.11% (higher than 66% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-wfm4-pq59-wg6r

Description

In Sulu before versions 1.6.35, 2.0.10, and 2.1.1, 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. This enables attackers to retrieve valid usernames. Also, the response of the "Forgot Password" request returns the email address to which the email was sent, if the operation was successful. This information should not be exposed, as it can be used to gather email addresses. This problem was fixed in versions 1.6.35, 2.0.10 and 2.1.1.

Affected

Product or packageVersionsReported by
sulu sulu< 1.6.35, >= 2.0.0, < 2.0.10, = 2.1.0, before 1.6.35, from 2.0.0 before 2.0.10, from 2.1.0 before 2.1.1CVE List, NVD
sulu/sulu (Packagist)before 1.6.34, from 2.0.0 before 2.0.10, from 2.1.0 before 2.1.1GitHub Advisory Database

All scores

GitHub_M5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
GitHub5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
NVD5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
NVD5.0medium CVSS:2.0AV:N/AC:L/Au:N/C:P/I:N/A:N

Classification

What each source says

CVE List

In Sulu before versions 1.6.35, 2.0.10, and 2.1.1, 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. This enables attackers to retrieve valid usernames. Also, the response of the "Forgot Password" request returns the email address to which the email was sent, if the operation was successful. This information should not be exposed, as it can be used to gather email addresses. This problem was fixed in versions 1.6.35, 2.0.10 and 2.1.1.

GitHub Advisory Database
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":"admin@localhost.local"}

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.

NVD (es)

En Sulu anterior a las versiones 1.6.35, 2.0.10 y 2.1.1, cuando se usa la funcionalidad "Forget password" en la pantalla de inicio de sesión, Sulu le pregunta al usuario un nombre de usuario o dirección de correo electrónico. Si no se encuentra la cadena dada, una respuesta es devuelta con un código de error "400", junto con un mensaje de error que dice que este nombre de usuario no existe. Esto permite a atacantes recuperar nombres de usuario válidos. Además, la respuesta de la petición "Forgot Password" devuelve la dirección de correo electrónico a la que se envió el correo electrónico, si la operación tuvo éxito. Esta información no debe ser expuesta, ya que puede ser usada para recopilar direcciones de correo electrónico. Este problema se corrigió en las versiones 1.6.35, 2.0.10 y 2.1.1

References

Sources

SourceRecordLicence
CVE ListCVE-2020-15132 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-wfm4-pq59-wg6r changed 2026-07-08CC-BY-4.0
NVDCVE-2020-15132 changed 2026-06-17Public domain