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

[NOID] Fixes failing path traversal TeamCity tests #464

Merged
merged 2 commits into from
Aug 2, 2023

Conversation

ncordon
Copy link
Collaborator

@ncordon ncordon commented Aug 2, 2023

Cherry-picks neo4j-contrib/neo4j-apoc-procedures#3703

What

Checks sequences of %e%e%f%f%e%e do not fail but stay on the same directory when trying to do path traversals.

Commit 6616a36 reproduces the problem, the next one amends the tests to solve it.

Why

The tests were failing in our TeamCity CI. This treats them as we were treating sequences like ..//..//

They've solved an issue with OpenJDK where it wasn't properly detecting double slashes in a path and turning them into a single one: openjdk/jdk17u@bc9d9c0, https://nvd.nist.gov/vuln/detail/CVE-2023-22049

This fix has gone in Eclipse Temurin 17.0.8, all distributions of Zulu or Oracle v17. The rationale to change it is that most of the JDKs should catch up with this fix, but also if they don't we were still protected throwing a failure.

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

Successfully merging this pull request may close these issues.

1 participant