Skip to content

CX Reflected_XSS_All_Clients @ WebSite/AddUserTemp.aspx.cs [master] #4

@kmcdon83

Description

@kmcdon83

Reflected_XSS_All_Clients issue exists @ WebSite/AddUserTemp.aspx.cs in branch master

Method btnAddUser_Click at line 22 of WebSite\AddUserTemp.aspx.cs gets user input for the Text 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 btnAddUser_Click at line 22 of WebSite\AddUserTemp.aspx.cs. This may enable a Cross-Site-Scripting attack.

Severity: High
CWE:79
Vulnerability details and guidance
Lines: 31


Code (Line #31):

                lblErrorMessage.Text = string.Format("{0} was created.", txtUsername.Text);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions