Skip to content
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

a bug in RegexExpressionProtector.java #3500

Open
feyzollahi opened this issue Jan 6, 2025 · 0 comments
Open

a bug in RegexExpressionProtector.java #3500

feyzollahi opened this issue Jan 6, 2025 · 0 comments
Labels

Comments

@feyzollahi
Copy link

feyzollahi commented Jan 6, 2025

Description

In all conditions, mediator function returns true!

https://github.com/wso2/carbon-apimgt/blob/master/components/apimgt/org.wso2.carbon.apimgt.gateway/src/main/java/org/wso2/carbon/apimgt/gateway/mediators/RegularExpressionProtector.java#L67

Also there is similar bug in this class.

https://github.com/wso2/carbon-apimgt/blob/master/components/apimgt/org.wso2.carbon.apimgt.gateway/src/main/java/org/wso2/carbon/apimgt/gateway/mediators/ApiKeyMediator.java#L64

Steps to Reproduce

static output function!

Version

4.4

Environment Details (with versions)

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant