提交 #992613: SourceCodester Simple Student Information System 1.0 Cross Site Scripting信息

标题SourceCodester Simple Student Information System 1.0 Cross Site Scripting
描述Simple Student Information System using PHP contains a reflected cross-site scripting vulnerability in /searchresults.php. The application reads the GET parameter "searchbox" and passes it through a function called clean(). However, clean() only performs trim() and stripslashes(); it does not perform HTML entity encoding. The value is then printed directly inside the HTML page: <strong class="title"> Search results for "<?php echo $s; ?>". </strong> Because the value is not neutralized with htmlspecialchars() or contextual output encoding, an attacker can create a crafted link containing an event-handler-based payload such as: <svg/onload=alert("REFLECTED-XSS")> When an authenticated student opens the crafted link, the payload is rendered as part of the page and executes in the student's browser on the application origin. This allows attacker-controlled JavaScript to run in a logged-in victim's session. Depending on the deployment and cookie protections, this could be used to perform actions as the victim, alter profile data, capture user input, or target session state. The issue was verified against the official SourceCodester package for the unversioned node-11400 release.
来源⚠️ https://github.com/wsx138/cve/issues/6
用户
 W5555 (UID 89057)
提交2026-09-20 16時44分 (1 月前)
管理2026-10-05 22時40分 (15 days later)
状态重复
VulDB条目413813 [SourceCodester Simple Student Information System 1.0 searchresults.php clean searchbox 跨网站脚本]
积分0

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!