-
-
Notifications
You must be signed in to change notification settings - Fork 424
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
Http3 xx status code based injection vulnerability fix #368
Http3 xx status code based injection vulnerability fix #368
Conversation
.../static/templates/Http3xxStatusCodeBasedInjection/LEVEL_1/Http3xxStatusCodeBasedInjection.js
Outdated
Show resolved
Hide resolved
.../static/templates/Http3xxStatusCodeBasedInjection/LEVEL_1/Http3xxStatusCodeBasedInjection.js
Outdated
Show resolved
Hide resolved
@@ -53,7 +53,7 @@ public class Http3xxStatusCodeBasedInjection { | |||
|
|||
private static final String LOCATION_HEADER_KEY = "Location"; | |||
private static final String RETURN_TO = "returnTo"; | |||
private static final Set<String> WHITELISTED_URLS = new HashSet<>(Arrays.asList("/")); | |||
private static final Set<String> WHITELISTED_URLS = new HashSet<>(Arrays.asList("/", "/VulnerableApp/")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if possible, can you please write a unit test case?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure thing!
@ehizman can you please execute |
Noted.
…On Mon, 20 Jun 2022 at 17:11, Karan Preet Singh Sasan < ***@***.***> wrote:
@ehizman <https://github.com/ehizman> can you please execute ./gradlew
spotlessApply in your machine and then checkin the change? it is failing
due to checkstyle issue.
—
Reply to this email directly, view it on GitHub
<#368 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFRLSUT7OAITUCR6ICBTN43VQCJ4XANCNFSM5X3VLBIA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@ehizman there was one error due to newer java google formatter, i removed that and it compiled successfully. Will be merging the PR, Thank You!!! |
Hello @preetkaran20. I noticed that you removed the version number of the googleJavaFormat extension. Why is that? Because whenever I try to run Specifying the version of the googleJavaFormat extension fixes it. |
The PR build is failing with that version as we are using older Java version in PR build. So please update that as well with format version. Also which Java version are you using? |
I am using java 17 with the following gradle properties as a workaround for some issues with the googleJavaFormat plugin for java 16+
The project refuses to build now that I have changed to java 8 |
What gradle properties do you use for Java 8 on your machine |
My java version is: The project PR is build using following github action: Please let me know what error are you facing and also please run |
my java version is:
|
Now when I try to apply spotless, I get the following error:
I think that it is because of the gradle properties defined in USER_HOME/gradle |
I have removed the gradle properties. When I apply spotless, I get the same error as above. |
I think somehow gradle is still pointing to newer java version. can you please check thanks, |
actually, --add-exports should not be added as JVM option, did you changes something in the project for making it compatible with java 17? |
My project SDK was set to java 17 but I just changed it to Java 8. Also, JAVA_HOME points to java 8. Still, when I run |
there should be something wrong in your setup for sure. I would suggest to uninstall java17 and any other versions and then try. |
Okay. I was also thinking of deleting my local version and then cloning the project again |
Hey @preetkaran20, I found the error. There was a |
used the browser's window location reference to determine redirect URL