Repository navigation
[TT-18822] Classic Allow-List bypass via unstripped path evaluation and parameterized paths - #8869
Conversation
|
SentinelOne CNS Hardcoded Secret Detector SentinelOne CNS is a cloud-agnostic, agentless CSPM & CWPP solution that continuously detects and prevents vulnerabilities that have the highest probability of being exploited in Azure, AWS, Google Cloud, and Kubernetes. |
🎯 Recommended Merge TargetsBased on JIRA ticket TT-18822: Classic Allow-List bypass via unstripped path evaluation and parameterized paths Fix Version: Tyk 5.17.0
Required:
Fix Version: Tyk 5.13.6Required:
📋 Workflow
|
|
This PR changes how allow-list entries match, and it breaks one common config style on upgrade. Example: listen path Before: an entry matched if the full request path or the stripped path matched. The request was approved on one path and sent upstream as another:
After: an entry matches only the stripped path, which is the path the upstream receives:
The bypass is closed, but every API that writes entries with the listen path (
The Dashboard writes relative paths, so this mostly hits definitions managed through the API, tyk-sync, Operator or scripts. Why Suggestion: keep the old behaviour by default, and let customers opt in to the strict matching with a flag such as This trades a secure default for compatibility, so it needs to be validated with PM before we change it. |
|
Two cases of the same bug are still open: the approved path and the proxied path can still differ. Both happen on master too, so they are not regressions, but they break the ticket's acceptance criteria. 1. Version stripping removes one segment too many (AC1, AC2) Example: listen path
Suggestion: strip the version segment only for URL versioning, and not again after 2. With Example: listen path
The entry matches the stripped form ( Fixing this in code would break strip-off APIs with relative entries, which is what the Dashboard writes. So we either change the matching, or reword AC3 and document the limitation. Like the default question above, this should be decided with PM. |
f6d4983 to
9bd56d2
Compare
…d upstream
Description
Related Issue
Motivation and Context
How This Has Been Tested
Screenshots (if appropriate)
Types of changes
Checklist
Ticket Details
TT-18822
Generated at: 2026-11-02 14:32:13