CVE-2026-82446: Apache StormCrawler: Server-Side Request Forgery and Cross-Origin Credential Disclosure via robots.txt Redirect Handling

Published Nov 23, 2026
·
Updated

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 configured. It ships with no rules, which is why the path is reachable in a default configuration. URL filtering never applies, because the robots.txt fetch does not pass through the outlink filter chain.

Mitigation

Upgrade to 4.0.0, where a robots.txt redirect is followed only when the target uses http or https and shares scheme, host and port with the URL it was reached from. Deployments that legitimately serve robots.txt through a cross-host redirect can restore the previous behaviour with http.robots.redirect.crosshost.allow.

Users who cannot upgrade immediately should set http.filter.ipaddress.exclude to cover loopback, private, link-local and CGNAT ranges, which is enforced after DNS resolution and therefore also on redirect hops. Operators who configure http.basicauth. or http.custom.headers for a crawl should assume those credentials may have been sent to third-party hosts and rotate them, and should scope credentials by running a separate topology per origin.

Credit

Independently reported to the Apache StormCrawler PMC by n0mi1k, with a proof of concept.

Also found by the ASF -- using Claude agents to study the security of open-source projects, validated and reported by Apache StormCrawler.

Affected Software

1 affected component
Apache StormCrawler<4.0.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Apache StormCrawler to a version that resolves this vulnerability.

    Fixed in 4.0.0
  2. Configuration

    Exclude loopback, private, link-local, CGNAT, and cloud metadata ranges; filtering is enforced after DNS resolution and also applies to redirect hops.

    Apache StormCrawler http.filter.ipaddress.exclude = Loopback, private, link-local, CGNAT, and cloud metadata ranges
  3. Compensating control

    Scope crawl credentials by running a separate topology per origin.

  4. Operational

    Assume crawl credentials may have been sent to third-party hosts and rotate them.

Event History

Nov 24, 2026
CVE Published
via MITRE·10:40 AM
Data Sourced
via MITRE·10:40 AM
DescriptionWeakness

Frequently Asked Questions

1

Who can trigger requests to internal services?

Any crawled site that can return a redirect for its /robots.txt can direct the fetcher worker to an address reachable from that worker, including loopback, private-network, and cloud metadata addresses. A robots.txt cache miss causes the fetch, and no unusual configuration is required to reach this behavior.

2

Does disabling page redirects with http.allow.redirects prevent this?

No. The robots.txt redirect handling is not governed by http.allow.redirects, which affects only page fetching.

3

When could credentials be disclosed to a redirected destination?

Credentials or other configured headers may be sent when the okhttp protocol is configured with http.basicauth.user and http.basicauth.password, or with http.custom.headers. StormCrawler issues the redirected request itself, so okhttp's normal removal of the Authorization header after a host change does not apply.

4

Can an attacker directly read responses from internal targets through this behavior?

The fetched response body is only parsed as robots rules and is not returned to the caller, so the internal read is blind. The more direct exposure described is sending configured credentials and custom headers to the redirected destination.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203