| 标题 | yashpokharna2555 restaurent-management-system 1 Cross Site Scripting |
|---|
| 描述 | A vulnerability has been found in yashpokharna2555 restaurent-management-system. The application stores user-controlled `username` values during registration and later propagates that value into the session and outputs it in `index.php` without HTML encoding. Specifically, `login_register.php` inserts the attacker-controlled username into the database, the login logic assigns the username to `$_SESSION['username']`, and `index.php` prints the session value directly into the HTML response. This results in stored cross-site scripting and allows arbitrary JavaScript execution in the victim browser when the affected page is viewed.
|
|---|
| 来源 | ⚠️ https://github.com/yashpokharna2555/restaurent-management-system/issues/4 |
|---|
| 用户 | wr0ld (UID 98487) |
|---|
| 提交 | 2026-05-27 10時33分 (4 月前) |
|---|
| 管理 | 2026-06-27 20時10分 (1 month later) |
|---|
| 状态 | 已接受 |
|---|
| VulDB条目 | 374494 [yashpokharna2555 restaurent-management-system Registration login_register.php username 跨网站脚本] |
|---|
| 积分 | 20 |
|---|