Description When StormCrawler fetches a host's `/robots.txt` and receives a redirect, ...
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Apache Software FoundationApache StormCrawler |
≥ 3.0.0, < 4.0.0→ 4.0.0 |
4.0.0 |
Original description The description as published by the source.
Description
When StormCrawler fetches a host's /robots.txt and receives a redirect, HttpRobotRulesParser
resolves the Location header and re-fetches the target for up to five hops. The loop checks neither
the scheme, the host nor the port of the resolved target, and it is not governed by
http.allow.redirects, which only affects the page fetch. A crawled site can therefore point the
robots.txt fetch at any address reachable from the fetcher worker, including loopback interfaces,
private ranges and cloud metadata endpoints. Every crawled URL triggers a robots.txt fetch on a cache
miss, so no unusual configuration is required to reach the loop.
The fetched body is only parsed as robots rules and is not returned to the caller, so the read itself
is blind. The more direct impact is on credentials: the okhttp protocol applies its configured request
headers, including the Authorization header built from http.basicauth.user and
http.basicauth.password and anything in http.custom.headers, to every request it makes. Because
StormCrawler follows the redirect itself and issues a new request, okhttp's own removal of the
Authorization header across a host change does not apply, and the operator's crawl credentials are
delivered to the host the redirect names.
The connection-time IP filter, http.filter.ipaddress.include and http.filter.ipaddress.exclude, is
installed as an okhttp network interceptor on the same client and does apply to these hops when it is
configur…
Source: oss-security (Openwall) NVD GitHub Advisory