{"id":"CVE-2021-31590","published":"2021-07-19T19:45:41Z","modified":"2024-08-03T23:03:33Z","title":"PwnDoc all versions until 0.4.0 (2021-08-23) has incorrect JSON Webtoken handling, leading to incorrect access control","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.02653,"percentile":0.86016,"provenance":"source"},"cwes":[],"references":[{"url":"https://github.com/pwndoc/pwndoc/security/advisories","tags":["x_refsource_MISC"]},{"url":"https://github.com/pwndoc/pwndoc/pull/128","tags":["x_refsource_MISC"]},{"url":"https://github.com/pwndoc/pwndoc/pull/74","tags":["x_refsource_MISC"]},{"url":"https://www.dgc.org/responsible_disclosure_pwndoc_jwt","tags":["x_refsource_MISC"]},{"url":"https://github.com/pwndoc/pwndoc/blob/59519735b0d831d8fd96d7c3387f66d28407e583/CHANGELOG.md#040-2021-08-23","tags":["x_refsource_MISC"]},{"url":"https://github.com/pwndoc/pwndoc/commit/15f3dc0e212eda465e05fda0feb002d1bce2939d","tags":["x_refsource_MISC"]},{"url":"https://github.com/pwndoc/pwndoc/commit/ff1b868cec55f5b6c7a91e15a2b0b1f4324121ab","tags":["x_refsource_MISC"]}],"priority":{"score":17.2,"factors":[{"name":"EPSS percentile","points":17.2}]},"euvd":{"id":"EUVD-2021-18484","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-pwndoc-cve-2021-31590","children":[{"from":"CVE-2021-31590","to":"CVE-2025-23044","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["backend/src/routes/user.js"],"commits":["https://github.com/pwndoc/pwndoc/commit/15f3dc0e212eda465e05fda0feb002d1bce2939d","https://github.com/pwndoc/pwndoc/commit/ff1b868cec55f5b6c7a91e15a2b0b1f4324121ab","https://github.com/pwndoc/pwndoc/commit/14acb704891245bf1703ce6296d62112e85aa995"],"basis":"rarely changed file"}]}]}}