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 traversal #567

Closed
dcRUSTy opened this issue Sep 20, 2020 · 0 comments
Closed

Path traversal #567

dcRUSTy opened this issue Sep 20, 2020 · 0 comments

Comments

@dcRUSTy
Copy link
Contributor

dcRUSTy commented Sep 20, 2020

Navigate to
http://127.0.0.1:2525/
then
http://127.0.0.1:2525/releases/v2.3.0%2f..%2f..%2f_header

Expected behaviour

Error
...

Actual behaviour

It renders /src/views/_header.ejs

mb_poc1

...

Further Possibilities

Code Execution even without --allowInjection if malicious user knows location of malicious .ejs file on filesystem
...

Software versions used

OS         : Windows 10
mountebank : 2.3.0

Log contents in mb.log when running mb --loglevel debug

info: [mb:2525] mountebank v2.3.0 now taking orders - point your browser to http://localhost:2525/ for help
debug: [mb:2525] config: {"options":{"loglevel":"debug","port":2525,"noParse":false,"pidfile":"mb.pid","nologfile":false,"logfile":"mb.log","allowInjection":false,"localOnly":false,"ipWhitelist":["*"],"mock":false,"debug":false,"heroku":false,"protofile":"protocols.json"},"process":{"nodeVersion":"v12.18.0","architecture":"x64","platform":"win32"}}
info: [mb:2525] GET /images/book.jpg
info: [mb:2525] GET /images/book.jpg
bbyars added a commit that referenced this issue Sep 27, 2020
@bbyars bbyars closed this as completed Sep 27, 2020
mikeschinkel pushed a commit to jbolda/mountebank that referenced this issue Apr 2, 2021
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