-
Notifications
You must be signed in to change notification settings - Fork 8
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
pattern.matcher returns false #4
Comments
Hi, That parameter name should not be a problem since it cannot dereference the class property. In order to access the class property you need to use:
Thats why the regular expression checks for the single or double quotes Cheers, |
Hi, test/#$".class as well as test&(){]['class'] also returns false. It would be great if you can provide me with couple of values that would return true. Thanks, |
The regexp looks like: We are trying to protect access to the class.classloader property, so values that return true are:
Note: xxx is the name of one of the action public properties. This regular expression is the one used by Struts2 paramterInterceptor to protect from classloader manipulation |
we are using struts 1 in our application. I am using debug mode in eclipse and changing the value of the parameter as you suggested in above comment but still no luck. |
|
pattern.matcher(parameterName).matches() line returns false when "][]Class][<>" is passed as parameterName. I am not sure if this is a code issue or testing issue. Please provide some guidance on how to test classloader manipulation issue.
The text was updated successfully, but these errors were encountered: