Developer Finds Critical Auth Bypass in Spring Boot App Caused by Null Password Handling
A developer building SCIP, a Spring Boot-based supply chain platform with over 90 REST endpoints, discovered a critical authentication bypass vulnerability during boundary testing. The flaw allowed any account with a null password field — such as soft-deleted users or malformed requests — to authenticate successfully with any password. The root cause was BCrypt's behavior when passed a null value, which returned true regardless of the stored hash. Standard happy-path test suites never caught the issue because they only validate correct credentials against valid hashes, not missing or null inputs. The fix was straightforward: adding a null guard to check the password field before BCrypt's comparison function is ever invoked.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in