| Title | SourceCodester Drug Recommendation System Using Machine Learning 1.0 (SourceCodester Release 18278) Cross Site Scripting |
|---|
| Description | The application outputs user-controlled values directly into HTML **attributes** and **body text** without any output encoding. `add_*.php` pages re-display `$_POST` values into `value="..."` attributes when form validation fails (reflected XSS), while record/session pages output database and `$_SESSION` values unencoded (stored XSS). An attacker can inject script that executes in the context of an authenticated admin, enabling session theft, phishing, and persistence. |
|---|
| Source | ⚠️ https://github.com/hackliu/Vulnerability-Reports/blob/master/Drug-Recommender-Web-App/VULN-05-XSS-Reflected-Stored.md |
|---|
| User | BI1IHA (UID 69245) |
|---|
| Submission | 09/19/2026 11:30 (1 month ago) |
|---|
| Moderation | 10/05/2026 20:23 (16 days later) |
|---|
| Status | Accepted |
|---|
| VulDB entry | 413698 [SourceCodester Drug Recommendation System 1.0 Admin/add_drug.php cross site scripting] |
|---|
| Points | 20 |
|---|