CxTyler / JavaVulnerableLab

lab
GNU General Public License v2.0
0 stars 1 forks source link

CX Reflected_XSS_All_Clients @ src/main/java/org/cysecurity/cspf/jvl/controller/xxe.java [master] #17

Open CxTyler opened 3 years ago

CxTyler commented 3 years ago

Reflected_XSS_All_Clients issue exists @ src/main/java/org/cysecurity/cspf/jvl/controller/xxe.java in branch master

The application's processRequest embeds untrusted data in the generated output with print, at line 54 of src\main\java\org\cysecurity\cspf\jvl\controller\xxe.java. This untrusted data is embedded straight into the output without proper sanitization or encoding, enabling an attacker to inject malicious code into the output. The attacker would be able to alter the returned web page by simply providing modified data in the user input getInputStream, which is read by the processRequest method at line 44 of src\main\java\org\cysecurity\cspf\jvl\controller\xxe.java. This input then flows through the code straight to the output web page, without sanitization.  This can enable a Reflected Cross-Site Scripting (XSS) attack.

Severity: High

CWE:79

Vulnerability details and guidance

Internal Guidance

Checkmarx

Training Recommended Fix

Lines: 44


Code (Line #44):

          InputStream xml=request.getInputStream();

CxTyler commented 3 years ago

Issue still exists.

CxTyler commented 3 years ago

Issue still exists.