提交 #396895: SourceCodester Daily Calories Monitoring Tool 1.0 Cross Site Scripting
| 标题 | SourceCodester Daily Calories Monitoring Tool 1.0 Cross Site Scripting |
|---|---|
| 描述 | The calorie_date, calorie_name parameters are vulnerable to the tested XSS payload: <IMG """"><SCRIPT>alert("XSS")</SCRIPT>"> . The code catches a PDOException and directly echoes the error message using $e->getMessage(). If an attacker can manipulate the database interaction to cause an error that includes malicious script content, that content would be output directly to the user's browser. |
| 来源 | ⚠️ https:/ |
| 用户 | jadu101 (UID 70632) |
| 提交 | 2024-08-23 14時34分 (2 年前) |
| 管理 | 2024-08-24 00時28分 (10 hours later) |
| 状态 | 已接受 |
| VulDB条目 | 275721 [SourceCodester Daily Calories Monitoring Tool 1.0 add-calorie.php calorie_date/calorie_name 跨网站脚本] |
| 积分 | 20 |