CVE-2021-31590
Last modified
CVE-2021-31590 is a high-severity vulnerability rated 8.8/10 on the CVSS scale. 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. EPSS estimates a 2.65% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Pwndoc Project | Pwndoc | < 0.4.0 |
References
- https://github.com/pwndoc/pwndoc/blob/59519735b0d831d8fd96d7c3387f66d28407e583/CHANGELOG.md#040-2021-08-23Patch, Release Notes, Third Party Advisory
- https://github.com/pwndoc/pwndoc/commit/15f3dc0e212eda465e05fda0feb002d1bce2939dPatch, Third Party Advisory
- https://github.com/pwndoc/pwndoc/commit/ff1b868cec55f5b6c7a91e15a2b0b1f4324121abPatch, Third Party Advisory
- https://github.com/pwndoc/pwndoc/pull/128Patch, Third Party Advisory
- https://github.com/pwndoc/pwndoc/pull/74Patch, Third Party Advisory
- https://www.dgc.org/responsible_disclosure_pwndoc_jwtExploit, Third Party Advisory
- https://github.com/pwndoc/pwndoc/blob/59519735b0d831d8fd96d7c3387f66d28407e583/CHANGELOG.md#040-2021-08-23Patch, Release Notes, Third Party Advisory
- https://github.com/pwndoc/pwndoc/commit/15f3dc0e212eda465e05fda0feb002d1bce2939dPatch, Third Party Advisory
- https://github.com/pwndoc/pwndoc/commit/ff1b868cec55f5b6c7a91e15a2b0b1f4324121abPatch, Third Party Advisory
- https://github.com/pwndoc/pwndoc/pull/128Patch, Third Party Advisory
- https://github.com/pwndoc/pwndoc/pull/74Patch, Third Party Advisory
- https://www.dgc.org/responsible_disclosure_pwndoc_jwtExploit, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2021-31590?
How severe is CVE-2021-31590?
How do I fix CVE-2021-31590?
Are you affected by CVE-2021-31590?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
