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 issues: urlrewrite.xml can be loaded by remote request, not only localhost. #215

Open
stujqye opened this issue May 4, 2017 · 0 comments

Comments

@stujqye
Copy link

stujqye commented May 4, 2017

The doc says:
"You can visit http://127.0.0.1:8080/rewrite-status (or whatever the address of your local webapp and context) to see output (note: this page is only viewable from localhost)."

But if the http request Host field is changed to localhost or 127.0.0.1, the

http://<remote server IP>:<server port>/rewrite-status

can be accessed and show the rewritor configurations.

The request.getServerName() will return the Host field value which can be changed by attacker.

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