Skip to content

CX Reflected_XSS @ app/routes/contributions.js [master] #5

@kmcdon83

Description

@kmcdon83

Reflected_XSS issue exists @ app/routes/contributions.js in branch master

Method function at line 9 of app\routes\contributions.js gets user input for the userId 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 contributionsDAO.getByUserId at line 12 of app\routes\contributions.js. This may enable a Cross-Site-Scripting attack.

Severity: High
CWE:79
Vulnerability details and guidance
Internal Guidance
Lines: 34 10


Code (Line #34):

        var userId = req.session.userId;

Code (Line #10):

        var userId = req.session.userId;

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