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

X-Original-Url / X-Rewrite-Url bypass #4

Closed
rumiljonov opened this issue Nov 25, 2020 · 3 comments
Closed

X-Original-Url / X-Rewrite-Url bypass #4

rumiljonov opened this issue Nov 25, 2020 · 3 comments

Comments

@rumiljonov
Copy link

Hey, I think you are using X-Original-Url / X-Rewrite-Url vector in a wrong way. These headers usually help to bypass front server rules, which are based on URI, but you don't change URI while using these headers.

First, normal request returns 403:

GET /.git/ HTTP/1.1
Host: example.com

This attempt to bypass will return 403 too, because URI hasn't changed and the rule still applies:

GET /.git/ HTTP/1.1
Host: example.com
X-Rewrite-URL: /.git/

This one should bypass the restriction:

GET / HTTP/1.1
Host: example.com
X-Rewrite-URL: /.git/
sting8k added a commit that referenced this issue Nov 26, 2020
@sting8k
Copy link
Owner

sting8k commented Nov 26, 2020

Thank you, fixed in new update.

@sting8k sting8k closed this as completed Nov 26, 2020
sting8k added a commit that referenced this issue Nov 26, 2020
@abdulx01
Copy link

abdulx01 commented Feb 5, 2022

Hy, I also check this method: but it's home page in code response

@ler-exploit
Copy link

Hy, je vérifie aussi cette méthode: mais c'est la page d'accueil en réponse de code

i have the same problem, did you fix it??

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

4 participants