Skip to content

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

@kmcdon83

Description

@kmcdon83

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) {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions