CVE-2021-31590
JSON

8.8high

PwnDoc all versions until 0.4.0 (2021-08-23) has incorrect JSON Webtoken handling, leading to incorrect access control.

Severity
8.8high CVSS:3.1 by NVD
Exploit likelihood
2.65% (higher than 86% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre

Description

PwnDoc all versions until 0.4.0 (2021-08-23) has incorrect JSON Webtoken handling, leading to incorrect access control. With a valid JSON Webtoken that is used for authentication and authorization, a user can keep his admin privileges even if he is downgraded to the "user" privilege. Even after a user's account is deleted, the user can still access the administration panel (and add or delete users) and has complete access to the system.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
pwndoc_project pwndocbefore 0.4.0NVD

All scores

NVD8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD9.0high CVSS:2.0AV:N/AC:L/Au:S/C:C/I:C/A:C

What each source says

CVE List

PwnDoc all versions until 0.4.0 (2021-08-23) has incorrect JSON Webtoken handling, leading to incorrect access control. With a valid JSON Webtoken that is used for authentication and authorization, a user can keep his admin privileges even if he is downgraded to the "user" privilege. Even after a user's account is deleted, the user can still access the administration panel (and add or delete users) and has complete access to the system.

NVD (es)

PwnDoc todas las versiones hasta la 0.4.0 (2021-08-23) tiene un manejo incorrecto de JSON Webtoken, lo que lleva a un control de acceso incorrecto. Con un Webtoken JSON válido que se utiliza para la autenticación y la autorización, un usuario puede mantener sus privilegios de administrador incluso si es degradado al privilegio de "usuario". Incluso después de que se elimine la cuenta de un usuario, éste puede seguir accediendo al panel de administración (y añadir o eliminar usuarios) y tiene acceso completo al sistema

References

Sources

SourceRecordLicence
CVE ListCVE-2021-31590 changed 2024-08-03CVE Terms of Use
NVDCVE-2021-31590 changed 2026-06-17Public domain