You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The method Rating_Show embeds untrusted data in generated output with print, at line 1127 of /BookDetail_jsp.java. This untrusted data is embedded into the output without proper sanitization or encoding, enabling an attacker to inject malicious code into the generated web-page.
The attacker would be able to alter the returned web page by simply providing modified data in the user input paramName, which is read by the getParam method at line 163 of /BookDetail_jsp.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.
Result #1: Severity: HIGH State: TO_VERIFY Status: RECURRENT Attack Vector:
Checkmarx (SAST): Reflected_XSS_All_Clients
Security Issue: Read More about Reflected_XSS_All_Clients
Checkmarx Project: margaritalm/BookStore_Small_CLI_small
Repository URL: https://github.com/margaritalm/BookStore_Small_CLI_small
Branch: master
Scan ID: 79dde67e-447e-480d-9f9e-f0bfb2e3e6f8
The method Rating_Show embeds untrusted data in generated output with print, at line 1127 of /BookDetail_jsp.java. This untrusted data is embedded into the output without proper sanitization or encoding, enabling an attacker to inject malicious code into the generated web-page.
The attacker would be able to alter the returned web page by simply providing modified data in the user input paramName, which is read by the getParam method at line 163 of /BookDetail_jsp.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.
Result #1:
Severity: HIGH
State: TO_VERIFY
Status: RECURRENT
Attack Vector:
1. paramName: /BookDetail_jsp.java[163,37]
2. getParameter: /BookDetail_jsp.java[163,36]
3. param: /BookDetail_jsp.java[163,12]
4. param: /BookDetail_jsp.java[164,27]
5. param: /BookDetail_jsp.java[165,12]
6. getParam: /BookDetail_jsp.java[1015,30]
7. flditem_id: /BookDetail_jsp.java[1015,9]
8. flditem_id: /BookDetail_jsp.java[1127,76]
9. value: /BookDetail_jsp.java[123,24]
10. value: /BookDetail_jsp.java[126,12]
11. toHTML: /BookDetail_jsp.java[1127,75]
12. print: /BookDetail_jsp.java[1127,17]
Review result in Checkmarx One: Reflected_XSS_All_Clients
The text was updated successfully, but these errors were encountered: