Skip to content

Latest commit

 

History

History
13 lines (7 loc) · 464 Bytes

vulnerable-code-10.md

File metadata and controls

13 lines (7 loc) · 464 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

Follow Twitter Thread