Nov 19, 2020
Cross site scripting Vulnerability in admin panel :-
Hello all, I am Parshwa Bhavsar again.
I have found another Vulnerability in one project called : Online news portal using PHP/MySQLi.
Download link :
Steps to reproduce
- Open the web application in your browser and login to admin panel
- Then go to posts page and click on Add new button to add new post.
- After that, You will notice one input field named “Title”.
- In that field put Xss payload , select any category.(Any Xss payload will work)
- In News Content field write anything than in the the news cover photo select any image.
- Click on save.
- You will notice that your Xss payload has triggered.
- After that, once you visit your website, Your payload will execute every time you visit the site.
Impact
Cross-site Scripting (XSS) refers to client-side code injection attack wherein an attacker can execute malicious scripts into a legitimate website or web application. XSS occurs when a web application makes use of unvalidated or unencoded user input within the output it generates.
Remediation
Apply context-dependent encoding and/or validation to user input rendered on a page.
Thanks and Regards,
Parshwa Bhavsar