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.
{
"extracted_events": [
{
"cpe": "cpe:2.3:a:pwndoc_project:pwndoc:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "0.4.0"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "15f3dc0e212eda465e05fda0feb002d1bce2939d"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "ff1b868cec55f5b6c7a91e15a2b0b1f4324121ab"
}
],
"source": "REFERENCES_COMMIT"
}
]
}