Polymer / prpl-server

⚠️Maintenance mode⚠️ An HTTP server for Node designed to serve PRPL apps in production.
Other
425 stars 29 forks source link

Add an extra safeguard against directory traversal attacks. #29

Closed aomarks closed 7 years ago

aomarks commented 7 years ago

The send library already ensures we don't serve files outside our root directory, but it doesn't hurt to check ourselves too. This also prevents a subtle way to probe if a file exists, even if you couldn't read it.