8.8
HIGH
CVE-2021-31590
PwnDoc JSON Webtoken Privilege Escalation
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.

INFO

Published Date :

July 19, 2021, 8:15 p.m.

Last Modified :

Nov. 21, 2024, 6:05 a.m.

Remotely Exploitable :

Yes !

Impact Score :

5.9

Exploitability Score :

2.8
Affected Products

The following products are affected by CVE-2021-31590 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Pwndoc_project pwndoc
References to Advisories, Solutions, and Tools

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2021-31590 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2021-31590 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference https://github.com/pwndoc/pwndoc/blob/59519735b0d831d8fd96d7c3387f66d28407e583/CHANGELOG.md#040-2021-08-23
    Added Reference https://github.com/pwndoc/pwndoc/commit/15f3dc0e212eda465e05fda0feb002d1bce2939d
    Added Reference https://github.com/pwndoc/pwndoc/commit/ff1b868cec55f5b6c7a91e15a2b0b1f4324121ab
    Added Reference https://github.com/pwndoc/pwndoc/pull/128
    Added Reference https://github.com/pwndoc/pwndoc/pull/74
    Added Reference https://github.com/pwndoc/pwndoc/security/advisories
    Added Reference https://www.dgc.org/responsible_disclosure_pwndoc_jwt
  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • CWE Remap by [email protected]

    Jul. 12, 2022

    Action Type Old Value New Value
    Changed CWE CWE-863 NVD-CWE-Other
  • Modified Analysis by [email protected]

    Dec. 03, 2021

    Action Type Old Value New Value
    Changed Reference Type https://github.com/pwndoc/pwndoc/blob/59519735b0d831d8fd96d7c3387f66d28407e583/CHANGELOG.md#040-2021-08-23 No Types Assigned https://github.com/pwndoc/pwndoc/blob/59519735b0d831d8fd96d7c3387f66d28407e583/CHANGELOG.md#040-2021-08-23 Patch, Release Notes, Third Party Advisory
    Changed Reference Type https://github.com/pwndoc/pwndoc/commit/15f3dc0e212eda465e05fda0feb002d1bce2939d No Types Assigned https://github.com/pwndoc/pwndoc/commit/15f3dc0e212eda465e05fda0feb002d1bce2939d Patch, Third Party Advisory
    Changed Reference Type https://github.com/pwndoc/pwndoc/commit/ff1b868cec55f5b6c7a91e15a2b0b1f4324121ab No Types Assigned https://github.com/pwndoc/pwndoc/commit/ff1b868cec55f5b6c7a91e15a2b0b1f4324121ab Patch, Third Party Advisory
    Changed Reference Type https://www.dgc.org/responsible_disclosure_pwndoc_jwt No Types Assigned https://www.dgc.org/responsible_disclosure_pwndoc_jwt Exploit, Third Party Advisory
    Changed CPE Configuration OR *cpe:2.3:a:pwndoc_project:pwndoc:*:*:*:*:*:*:*:* versions up to (including) 2021-04-22 OR *cpe:2.3:a:pwndoc_project:pwndoc:*:*:*:*:*:*:*:* versions up to (excluding) 0.4.0
  • CVE Modified by [email protected]

    Sep. 13, 2021

    Action Type Old Value New Value
    Changed Description PwnDoc through 2021-04-22 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. 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.
    Added Reference https://github.com/pwndoc/pwndoc/commit/15f3dc0e212eda465e05fda0feb002d1bce2939d [No Types Assigned]
    Added Reference https://github.com/pwndoc/pwndoc/commit/ff1b868cec55f5b6c7a91e15a2b0b1f4324121ab [No Types Assigned]
    Added Reference https://github.com/pwndoc/pwndoc/blob/59519735b0d831d8fd96d7c3387f66d28407e583/CHANGELOG.md#040-2021-08-23 [No Types Assigned]
  • CVE Modified by [email protected]

    Jul. 30, 2021

    Action Type Old Value New Value
    Added Reference https://www.dgc.org/responsible_disclosure_pwndoc_jwt [No Types Assigned]
  • Initial Analysis by [email protected]

    Jul. 29, 2021

    Action Type Old Value New Value
    Added CVSS V2 NIST (AV:N/AC:L/Au:S/C:C/I:C/A:C)
    Added CVSS V3.1 NIST AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
    Changed Reference Type https://github.com/pwndoc/pwndoc/pull/128 No Types Assigned https://github.com/pwndoc/pwndoc/pull/128 Patch, Third Party Advisory
    Changed Reference Type https://github.com/pwndoc/pwndoc/pull/74 No Types Assigned https://github.com/pwndoc/pwndoc/pull/74 Patch, Third Party Advisory
    Changed Reference Type https://github.com/pwndoc/pwndoc/security/advisories No Types Assigned https://github.com/pwndoc/pwndoc/security/advisories Broken Link
    Added CWE NIST CWE-863
    Added CPE Configuration OR *cpe:2.3:a:pwndoc_project:pwndoc:*:*:*:*:*:*:*:* versions up to (including) 2021-04-22
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2021-31590 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2021-31590 weaknesses.

Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

0.78 }} 0.37%

score

0.81226

percentile

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability