Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reflected_XSS_All_Clients @ /src/main/java/org/t246osslab/easybuggy4sb/vulnerabilities/OGNLExpressionInjectionController.java #2941

Open
AaronZhouYu opened this issue Aug 8, 2023 · 0 comments

Comments

@AaronZhouYu
Copy link
Owner

AaronZhouYu commented Aug 8, 2023

Checkmarx (SAST): Reflected_XSS_All_Clients
Security Issue: Read More about Reflected_XSS_All_Clients
Checkmarx Project: AaronZhouYu/TotallySecureApp
Repository URL: https://github.com/AaronZhouYu/TotallySecureApp
Branch: main
Scan ID: d9fa6dd5-d23b-4436-b75a-41a016305f39


The method process embeds untrusted data in generated output with mav, at line 62 of /src/main/java/org/t246osslab/easybuggy4sb/vulnerabilities/OGNLExpressionInjectionController.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 expression, which is read by the process method at line 26 of /src/main/java/org/t246osslab/easybuggy4sb/vulnerabilities/OGNLExpressionInjectionController.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. expression: /src/main/java/org/t246osslab/easybuggy4sb/vulnerabilities/OGNLExpressionInjectionController.java[26,94]
    2. expression: /src/main/java/org/t246osslab/easybuggy4sb/vulnerabilities/OGNLExpressionInjectionController.java[53,41]
    3. addObject: /src/main/java/org/t246osslab/easybuggy4sb/vulnerabilities/OGNLExpressionInjectionController.java[53,26]
    4. mav: /src/main/java/org/t246osslab/easybuggy4sb/vulnerabilities/OGNLExpressionInjectionController.java[53,13]
    5. mav: /src/main/java/org/t246osslab/easybuggy4sb/vulnerabilities/OGNLExpressionInjectionController.java[62,16]
    Review result in Checkmarx One: Reflected_XSS_All_Clients

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant