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

Apache Felix returns false positive when /system/console returns 301 #23

Open
jwadolowski opened this issue Sep 4, 2017 · 0 comments
Open

Comments

@jwadolowski
Copy link

jwadolowski commented Sep 4, 2017

SecureCQ version: 1.3.1

secure_aem_false_positive

At the same time

$ curl -v https://dev.example.com/system/console/ -o /dev/null
...
> GET /system/console HTTP/1.1
> Host: dev.example.com
> User-Agent: curl/7.53.1
> Accept: */*
>
< HTTP/1.1 301 Moved Permanently
< Content-Type: text/html; charset=iso-8859-1
< Date: Mon, 04 Sep 2017 12:37:08 GMT
< Location: https://dev.example.com/system/console/
< Server: Apache
< Content-Length: 252
< Connection: keep-alive

When I follow redirects I get 404

$ curl -v https://dev.example.com/system/console/ -o /dev/null
> GET /system/console HTTP/1.1
> Host: dev.example.com
> User-Agent: curl/7.53.1
> Accept: */*
>
< HTTP/1.1 301 Moved Permanently
< Content-Type: text/html; charset=iso-8859-1
< Date: Mon, 04 Sep 2017 12:38:05 GMT
< Location: https://dev.example.com/system/console/
< Server: Apache
< Content-Length: 252
< Connection: keep-alive
<
> GET /system/console/ HTTP/1.1
> Host: dev.example.com
> User-Agent: curl/7.53.1
> Accept: */*
>
< HTTP/1.1 404 Not Found
< Accept-Ranges: bytes
< Content-Type: text/html; charset=UTF-8
< Date: Mon, 04 Sep 2017 12:38:05 GMT
< Last-Modified: Mon, 04 Sep 2017 10:35:38 GMT
< Server: Apache
< X-Content-Type-Options: nosniff
< X-Frame-Options: SAMEORIGIN
< X-Request-ID: Wa1JLZ--61UQKao-HPCBDAAAAXY
< Content-Length: 83201
< Connection: keep-alive

All in all, rules that rely on HTTP status codes should follow redirects before producing final status.

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