SSporea887078 (Community Member) asked a question.

Hi all,
Can anyone explain how the use of FirstOrDefault() in LInq (c#) triggers CWE-566: Authorization Bypass Through User-Controlled SQL Primary Key flaw? This is just selecting TOP 1 in the SQL query or nothing if no value in the dataset returned.

The flaw started to show recently in the scans, where we use FirstOrDefault() for years now.

Thank you


RWilson210058 likes this.
  • Hi @SSporea887078 (Community Member)​ ,

     

    Thank you for reaching out and working with me through Veracode Support.

    As soon as I have more information from Veracode Engineering I will update this post too.

     

    Thank you,

    Boy Baukema

    Expand Post

Topics (4)

No articles found
Loading

Ask the Community

Get answers, share a use case, discuss your favorite features, or get input from the community.