| 标题 | Mstfakts College-Management-System 82ab01d057d96c8893c419cd9cb6870120faaea3 Session Expiration |
|---|
| 描述 | The affected logout handler is `Front-end/server.php:125-129`. When `log_out` is submitted, the code emits a JavaScript redirect but does not call `session_unset()`, `session_destroy()`, `setcookie()`, or any server-side session revocation mechanism:
```php
if (isset($_POST['log_out']))
{
echo "<script type='text/javascript'>alert('Login Success, Welcome);
window.location.href='login.php'; </script>";
}
```
The session started at `Front-end/server.php:2` continues to contain `$_SESSION['email']`. The same `PHPSESSID` remains accepted after logout and `Front-end/profile.php:47-52`, `Front-end/student.php:72-176`, and `Front-end/profileLecturer.php:64-75` continue to use it as an authenticated identity. A copied or retained session token therefore survives a user logout and continues to disclose protected information or perform authenticated actions. |
|---|
| 来源 | ⚠️ https://github.com/Mstfakts/College-Management-System/issues/7 |
|---|
| 用户 | wemen99 (UID 99985) |
|---|
| 提交 | 2026-07-20 11時57分 (2 月前) |
|---|
| 管理 | 2026-09-05 21時02分 (2 months later) |
|---|
| 状态 | 已接受 |
|---|
| VulDB条目 | 399351 [Mstfakts College-Management-System Logout Front-end/server.php log_out 弱身份验证] |
|---|
| 积分 | 20 |
|---|