fix: the bank api uses the :user path parameter dire... in server.js#1812
Open
orbisai0security wants to merge 1 commit into
Open
fix: the bank api uses the :user path parameter dire... in server.js#1812orbisai0security wants to merge 1 commit into
orbisai0security wants to merge 1 commit into
Conversation
The bank API uses the :user path parameter directly to look up and modify account data without verifying that the authenticated requester is authorized to access that specific account
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fix high severity security issue in
7-bank-project/api/server.js.Vulnerability
V-0027-bank-project/api/server.js:82Description: The bank API uses the :user path parameter directly to look up and modify account data without verifying that the authenticated requester is authorized to access that specific account. Even after authentication is added (V-001), there is no authorization check comparing the authenticated user's identity to the :user parameter in the URL. This enables horizontal privilege escalation — any authenticated user can read, modify, or delete any other user's account by simply changing the username in the URL.
Changes
7-bank-project/api/server.jsVerification
Automated security fix by OrbisAI Security