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

CX Reflected_XSS_All_Clients @ riches/WEB-INF/src/java/com/fortify/samples/riches/restful/AccountResources.java [master] #47

Open
kmcdon83 opened this issue Apr 8, 2020 · 1 comment

Comments

@kmcdon83
Copy link
Owner

kmcdon83 commented Apr 8, 2020

Reflected_XSS_All_Clients issue exists @ riches/WEB-INF/src/java/com/fortify/samples/riches/restful/AccountResources.java in branch master

Method AddAccount at line 102 of riches\WEB-INF\src\java\com\fortify\samples\riches\restful\AccountResources.java gets user input for the representation element. This element’s value then flows through the code without being properly sanitized or validated and is eventually displayed to the user in method AddAccount at line 102 of riches\WEB-INF\src\java\com\fortify\samples\riches\restful\AccountResources.java. This may enable a Cross-Site-Scripting attack.

Severity: High

CWE:79

Vulnerability details and guidance

Internal Guidance

Checkmarx

Lines: 124

Lines Marked Not Exploitable: 102


Code (Line #124):

    public String WriteCheck(String representation) {

@kmcdon83
Copy link
Owner Author

kmcdon83 commented Apr 8, 2020

Issue still exists.

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

No branches or pull requests

1 participant