Cross-site Scripting (XSS) - Stored in imran300/inventory


Reported on

Aug 19th 2021

✍️ Description

Stored xss bug using a xss payload in the employee name when adding a new employee

🕵️‍♂️ Proof of Concept

Goto http://localhost/inventory/employees/add_employee and click on add employee and copy paste the following xss payload and paste it in the EMP NAME

"><img src=x onerror=alert(document.cookie)>

Click on safe and see the xss popup with the cookie. alt text alt text

💥 Impact

Possible to steal admin cookies or take over another account via cookie grepping.

💥 Remediation

Validate user input


2 years ago


Hey ribersec, I've just contacted the repo's maintainer about this. Good job!

We have contacted a member of the imran300/inventory team and are waiting to hear back 2 years ago
Mian Muhammad Imran Shah validated this vulnerability 2 years ago
ribersec has been awarded the disclosure bounty
The fix bounty is now up for grabs
Mian Muhammad Imran Shah marked this as fixed with commit ff4f7c 2 years ago
Mian Muhammad Imran Shah has been awarded the fix bounty
This vulnerability will not receive a CVE
to join this conversation