vendor:
Baby Care System
by:
Hardik Solanki
8.8
CVSS
HIGH
Stored XSS
79
CWE
Product Name: Baby Care System
Affected Version From: 1
Affected Version To: 1
Patch Exists: NO
Related CWE: N/A
CPE: 2.3:a:sourcecodester:baby_care_system:1.0
Metasploit:
N/A
Other Scripts:
N/A
Platforms Tested: Windows
2020
Baby Care System 1.0 – ‘Post title’ Stored XSS
Log in with a valid username and password. Navigate to the 'Post' tab on the left-hand side. Add the new post and then add the payload '<audio src/onerror=alert(document.cookie)' in 'Post title' parameter and click on save button. Post Saved successfully. Now, XSS will get stored and trigger every time and the attacker can steal authenticated users' cookies.
Mitigation:
Input validation should be done on the server-side to prevent malicious code from being stored in the database.