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

Path Manipulation #73

Open
QiAnXinCodeSafe opened this issue Oct 29, 2020 · 0 comments
Open

Path Manipulation #73

QiAnXinCodeSafe opened this issue Oct 29, 2020 · 0 comments

Comments

@QiAnXinCodeSafe
Copy link

while ((zipEntry = zip.getNextEntry()) != null) {
String entryName = zipEntry.getName();
if (entryName.startsWith(directory + "/")) {
paths.add(Paths.get("/" + entryName));

Allowing user input to control paths used in file system operations could enable an attacker to access or modify otherwise protected system resources.

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

No branches or pull requests

1 participant