| 标题 | github Cafe Management System (CafeManagement) 1.0 Missing Authentication → Unauthenticated Privileged Account Crea |
|---|
| 描述 | CafeManagement performs no authentication or session management anywhere — there is no session_start() and no use of $_SESSION in any server-side script. Consequently the entire administrative interface ("Admin's Portal": Add Cashier, Add Product, Customers, Dashboard) is reachable directly by URL by an anonymous, unauthenticated remote attacker.
This is directly exploitable to create privileged accounts. The handler AddCashierCode.php accepts the POST parameters uname, pass, role and status and inserts a new account with an attacker-controlled Role, with no authentication or authorization check:
$Username=$_POST['uname'];
$Password=$_POST['pass'];
$Role=$_POST['role'];
$Status=$_POST['status'];
...
if($action == "Add"){
$sql = "INSERT INTO addcashier (Username, Password, Role, Status, Image)
VALUES ('$Username','$Password','$Role','$Status','$newfilename')";
mysqli_query($con, $sql);
} |
|---|
| 来源 | ⚠️ https://github.com/yashkeral/cve-writeups/blob/main/cafemanagement/03-missing-auth-account-creation.md |
|---|
| 用户 | Yashkumar Keral (UID 99903) |
|---|
| 提交 | 2026-07-21 20時10分 (2 月前) |
|---|
| 管理 | 2026-09-23 15時09分 (2 months later) |
|---|
| 状态 | 已接受 |
|---|
| VulDB条目 | 408959 [Neethuharii CafeManagement AddCashierCode.php addcashier uname/pass/role/status 权限提升] |
|---|
| 积分 | 20 |
|---|