| 标题 | phpIPAM 1.x Cross Site Scripting |
|---|
| 描述 | $POST->deviceid is stripped of HTML tags by strip_tags(), but double quotes and event handlers are preserved. create_rack_link() concatenates $deviceId directly into a URL string of img's src without attribute escaping, reflecting it directly into the HTML response and browser execution contexts. An attacker can construct a crafted link containing JavaScript code. When a targeted user visits the link, the scripts execute within their active browser session context. This permits an attacker to perform Reflected Cross-Site Scripting (XSS), potentially leading to session hijacking, sensitive data exposure, or unauthorized actions performed on behalf of the victim. |
|---|
| 来源 | ⚠️ https://gist.github.com/KHr00t/a7f3b2eea71d30ad7ccf65e1d47e502f |
|---|
| 用户 | khroot (UID 42101) |
|---|
| 提交 | 2026-09-16 07時00分 (1 月前) |
|---|
| 管理 | 2026-10-24 09時17分 (1 month later) |
|---|
| 状态 | 已接受 |
|---|
| VulDB条目 | 426076 [phpIPAM 直到 1.8.3 Rack Link Creation show-rack-popup.php create_rack_link deviceid 跨网站脚本] |
|---|
| 积分 | 20 |
|---|