vendor:
Online Railway Reservation System
by:
Zachary Asher
8.8
CVSS
HIGH
Stored Cross Site Scripting (XSS)
79
CWE
Product Name: Online Railway Reservation System
Affected Version From: 1
Affected Version To: 1
Patch Exists: NO
Related CWE:
CPE: a:sourcecodester:online_railway_reservation_system:1.0
Platforms Tested: Online Railway Reservation System 1.0
2022
Online Railway Reservation System 1.0 – ‘Multiple’ Stored Cross Site Scripting (XSS) (Unauthenticated)
Online Railway Reservation System 1.0 is vulnerable to multiple stored cross-site scripting (XSS) attacks. An unauthenticated attacker can inject malicious JavaScript code into the 'about_us' and 'train_code' parameters of the application, which will be stored in the application's database. When a user visits the 'about_us' or 'train' page, the malicious JavaScript code will be executed in the user's browser.
Mitigation:
Input validation should be used to prevent malicious code from being stored in the application's database. Additionally, the application should use a Content Security Policy (CSP) to prevent malicious code from being executed in the user's browser.