Skip to content

fix: partial bypass of path based access restrictions #867

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

indra0007
Copy link

@indra0007 indra0007 commented May 2, 2025

WHY is this change required?
A high security bug was raised . This is to address that bug.

What customer problem is being addressed?
There is a vulnerability in java which delete ; from any uri if exists. As a result anyone can exploit this and can get access of restricted items. For example, lets say a custom wanted to block /ws/ route for outside world. The endpoint should be visible only from selected IPs. Customer customised /ws/ route ro to achieve the same. But if some outsider types https://<domain name>/ws;/<service name> then/ws/specific route will not be matched rather it would match the default / route. Thus user will not be restricted. And in the backend java will strip ; so as a result https://<domain name>/ws;/<service name> will effectively become https://<domain name>/ws/<service name> and even outsider get access of restricted resources
Use customer persona to define the problem e.g. Andrei is unable to...
Include any links to other MRs, stories, slack discussions, etc... that will help establish context.

Do we need to inform others of this change, and if so, are they informed?
For instance, is octoman affected (dep), plugin teams, support? When in doubt, overcommunicate.

Please provide Acceptance Criteria for this change?
Outsider should not be able to get access of restricted resources by exploiting java's ; stripping behaviour.

@Infra-Red Infra-Red marked this pull request as draft May 6, 2025 09:28
@indra0007 indra0007 force-pushed the fix-semicolon-requset-uri-issue branch from 6a6a248 to e6fb5a4 Compare May 6, 2025 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant