Skip to content

Latest commit

 

History

History
12 lines (6 loc) · 350 Bytes

vulnerable-code-10.md

File metadata and controls

12 lines (6 loc) · 350 Bytes

SecurityExplained S-22: Vulnerable Code Snippet - 10

Vulnerable Code:

Vulnerable Code

Solution:

The code is vulnerable to authentication bypass vulnerability. An attacker can impersonate and login as any user as at the line-10 the code doesn't validate the JWT signature.

Code Credits: SonarSource