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

Add protection against directory traversal attacks #10304

Merged
merged 1 commit into from
Dec 10, 2018

Conversation

april
Copy link
Contributor

@april april commented Nov 26, 2018

This prevents people from making a request such as:

$ curl --path-as-is 'http://127.0.0.1:8888/../../../../../../../../../etc/passwd'

@timvandermeij
Copy link
Contributor

Looks good. Could you squash the commits into one? Refer to https://github.com/mozilla/pdf.js/wiki/Squashing-Commits.

@april
Copy link
Contributor Author

april commented Nov 26, 2018

Done! I'm so used to using merge+squash on GitHub that I don't usually think of doing that anymore. :)

test/webserver.js Show resolved Hide resolved
@april
Copy link
Contributor Author

april commented Dec 4, 2018

Sounds good. I'm at the Mozilla All-Hands this week so I'll try to get this updated, but otherwise I will get it fixed first thing next week.

@april
Copy link
Contributor Author

april commented Dec 10, 2018

Alright, the requested changes have been made. :)

@timvandermeij
Copy link
Contributor

/botio-linux preview

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

Command cmd_preview from @timvandermeij received. Current queue size: 0

Live output at: http://54.67.70.0:8877/275d0aaba250802/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/275d0aaba250802/output.txt

Total script time: 1.61 mins

Published

@timvandermeij timvandermeij merged commit 2f4c7e0 into mozilla:master Dec 10, 2018
@timvandermeij
Copy link
Contributor

Thank you for fixing this!

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

Successfully merging this pull request may close these issues.

5 participants