Skip to content

CX Stored_XSS @ WebSite/BusinessLogic/Data/BlogEntryRepository.cs [master] #1

@kmcdon83

Description

@kmcdon83

Stored_XSS issue exists @ WebSite/BusinessLogic/Data/BlogEntryRepository.cs in branch master

Method GetTopBlogEntries at line 34 of WebSite\BusinessLogic\Data\BlogEntryRepository.cs gets data from the database, for the Take 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 Page_Load at line 14 of WebSite\Blog.aspx.cs. This may enable a Stored Cross-Site-Scripting attack.

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


Code (Line #37):

            var blogEntries = _context.BlogEntries.OrderByDescending(b => b.PostedDate).Skip(StartPosition).Take(NumberOfEntries);

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