Canteen Management System (brand
2022-11-25 本文已影响0人
migrate_
Canteen Management System (brand.php) is vulnerable to a Cross-site scripting(Persistent)
url: youthappam/brand.php
Abstract:
Line 50 of brand.php sends unvalidated data to a web browser, which can result in the browser executing malicious code.
Explanation:
Cross-site scripting (XSS) vulnerabilities occur when:
- Data enters a web application through an untrusted source. In the case of persistent (also known as stored) XSS, the untrusted source is typically a database or other back-end data store, while in the case of reflected XSS it is typically a web request.
In this case, the data enters at query() in brand.php at line 7.
- The data is included in dynamic content that is sent to a web user without being validated.
In this case, the data is sent at builtin_echo() in brand.php at line 50.
0.png 1.png 2.png 3.png 4.png 5.pngIt is clear that the application doesn't perform data validation and trust user-supplied data, we can use the below XSS payload as input which may be stored in the application.
payload :
<script>alert(11)</script>