HexBrain

Browse / CVEs / CVE-2021-24176

CVE-2021-24176· jh 404 logger project / jh 404 logger· CWE-79

WordPress JH 404 Logger <=1.1 - Cross-Site Scripting

mediumseverity
5.4CVSS score
2%likelihood of exploitation, next 30 days
81%of all CVEs are less likely
Readycheck to confirm it

WordPress JH 404 Logger plugin through 1.1 contains a cross-site scripting vulnerability. Referer and path of 404 pages are not properly sanitized when they are output in the WordPress dashboard, which can lead to executing arbitrary JavaScript code.

Impact

Successful exploitation of this vulnerability could allow an attacker to execute arbitrary JavaScript code in the context of the victim's browser, leading to potential data theft or unauthorized actions.

Fix

Update to the latest version of WordPress JH 404 Logger plugin (>=1.2) which addresses the XSS vulnerability.

How to confirm it

Send: GET {{BaseURL}}/wp-content/plugins/jh-404-logger/readme.txt
Positive when: contains "JH 404 Logger" AND status 200

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

The full check
id: CVE-2021-24176

info:
  name: WordPress JH 404 Logger <=1.1 - Cross-Site Scripting
  author: Ganofins
  severity: medium
  description: WordPress JH 404 Logger plugin through 1.1 contains a cross-site scripting vulnerability. Referer and path of 404 pages are not properly sanitized when they are output in the WordPress dashboard, which can lead to executing arbitrary JavaScript code.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute arbitrary JavaScript code in the context of the victim's browser, leading to potential data theft or unauthorized actions.
  remediation: |
    Update to the latest version of WordPress JH 404 Logger plugin (>=1.2) which addresses the XSS vulnerability.
  reference:
    - https://wpscan.com/vulnerability/705bcd6e-6817-4f89-be37-901a767b0585
    - https://wordpress.org/plugins/jh-404-logger/
    - https://ganofins.com/blog/my-first-cve-2021-24176/
    - https://nvd.nist.gov/vuln/detail/CVE-2021-24176
    - https://github.com/ARPSyndicate/cvemon
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 5.4
    cve-id: CVE-2021-24176
    cwe-id: CWE-79
    epss-score: 0.02035
    epss-percentile: 0.8125
    cpe: cpe:2.3:a:jh_404_logger_project:jh_404_logger:*:*:*:*:*:wordpress:*:*
  metadata:
    max-request: 1
    vendor: jh_404_logger_project
    product: jh_404_logger
    framework: wordpress
  tags: cve2021,cve,wordpress,wp-plugin,xss,wpscan,jh_404_logger_project,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-content/plugins/jh-404-logger/readme.txt"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "JH 404 Logger"

      - type: status
        status:
          - 200

References

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