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

[Security] Path Traversal #66

Open
fuzzyroddis opened this issue Sep 6, 2017 · 2 comments
Open

[Security] Path Traversal #66

fuzzyroddis opened this issue Sep 6, 2017 · 2 comments

Comments

@fuzzyroddis
Copy link

mv secret_icon.png ~/secret_icon.png
echo -n "../secret_icon" | nc -u localhost 1738

What should happen:
A question mark icon is displayed as no valid icon was found in ~/.AnyBar

What happens:
The secret icon is displayed which is located at ~/.AnyBar/../secret_icon.png

I can't think of a way to exploit it however.

@fuzzyroddis
Copy link
Author

Problem Line: https://github.com/tonsky/AnyBar/blob/master/AnyBar/AppDelegate.m#L132
One Kind of Fix: Use a regular expression to limit image file names to [a-zA-Z0-9.-_]

@tonsky
Copy link
Owner

tonsky commented Sep 6, 2017 via email

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

2 participants