CVE-2021-31590
Pwndoc Project Pwndoc vulnerability
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 products
Pwndoc. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Pwndoc Project Pwndoc runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/pwndoc/pwndoc/blob/59519735b0d831d8fd96d7c3387f66d28407e583/CHANGELOG.md#040-20 · Patch
- github.com/pwndoc/pwndoc/commit/15f3dc0e212eda465e05fda0feb002d1bce2939d · Patch
- github.com/pwndoc/pwndoc/commit/ff1b868cec55f5b6c7a91e15a2b0b1f4324121ab · Patch
- github.com/pwndoc/pwndoc/pull/128 · Patch
- github.com/pwndoc/pwndoc/pull/74 · Patch
- www.dgc.org/responsible_disclosure_pwndoc_jwt · Exploit
- github.com/pwndoc/pwndoc/security/advisories
- nvd.nist.gov/vuln/detail/CVE-2021-31590
- cve.org/CVERecord?id=CVE-2021-31590
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.