My-Blog
My-Blog copied to clipboard
Stored XSS - Blog Category
Summary
This XSS vulnerability is different from the previously disclosed CVE-2023-29639 (blog article content) and CVE-2023-29636(blog article tile). This vulnerability occurs when adding blog categories, where the backend implementation lacks strict input validation, allowing XSS payloads to be inserted into the database. The frontend and backend output pages also lack proper encoding, leading to Stored XSS attacks. Additionally, this application has no CSRF protection, enabling attackers to exploit CSRF to trick admin users into adding blog category names containing malicious code.
POC
- Capture the request and modify categoryName to XSS payload on the endpoint /admin/categories/save, then the malicious code will be stored in database.
SINKS:
- Access to http://localhost:28083/admin/categories
- Access to http://localhost:28083/admin/blogs
- Access to http://localhost:28083/index (any article use this Category)