Skip to content

CX Stored_XSS @ app/data/profile-dao.js [master] #2

@kmcdon83

Description

@kmcdon83

Stored_XSS issue exists @ app/data/profile-dao.js in branch master

Method function at line 98 of app\data\profile-dao.js gets data from the database, for the user element. This element’s value then flows through the code without being properly filtered or encoded and is eventually displayed to the user in method profile.getByUserId at line 12 of app\routes\profile.js. This may enable a Stored Cross-Site-Scripting attack.

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


Code (Line #98):

            function(err, user) {

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