Threats affecting pkg:maven/org.apache.stormcrawler/stormcrawler-core
3 threats
Most recently published first
| Severity | CVSS | Threat | Source | Published | Score and star |
|---|---|---|---|---|---|
| High | – | CVE-2026-82446Apache StormCrawler · Server-Side Request Forgery HighCVE Database V5CVE-2026-82446 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. | CVE Database V5 | ||
| High | – | HighCVE Database V5CVE-2026-82444 Description `CookieConverter.getCookies` decides which stored cookies to attach to an outbound request. The applicability check is nested inside a test for the presence of a `Domain` attribute, so a cookie without one, which is the ordinary form of a session cookie, skips scoping entirely and is returned for whatever target URL was passed. RFC 6265 requires the opposite: a cookie with no `Domain` attribute is host-only and belongs to the host that set it. Two further defects sit in the same method. The domain comparison has no notion of a registrable domain, so a `Domain` value of `com` matches every host under it, and the comparison returns true when it throws, so a failure to evaluate the check admits the cookie. Neither the converter nor `MetadataTransfer`, which carries the stored cookie to outlinks, ever considers the host that issued it. Cookie handling is opt-in: it requires `http.use.cookies` to be set to true, which is not the default, and the cookie key to be listed in `metadata.transfer`. The documented recipe does not work as written, because the `metadata.transfer` example in the internals documentation names `set-cookie` while the key present in metadata is `protocol.set-cookie` and the transfer matches key names exactly. Deployments affected are therefore those where an operator determined the correct key, enabled cookie handling and crawls an authenticated site whose pages link or redirect to other hosts. In that case the session cookie of the authenticated origin is sent to those hosts. Mitigation Upgrade to 4.0.0, where a cookie without a `Domain` attribute is sent only to the host that set it, a single-label domain is rejected and the domain check fails closed. Because the protocol does not yet record the host that issued a cookie, cookies without a `Domain` attribute are not sent at all until that host is recorded; operators relying on cookie transfer will notice this. The documentation error is corrected in the same release. Users who cannot upgrade immediately should confine an authenticated crawl to a topology whose URL filters keep it on the origin that issued the credentials, and should not rely on cookie scoping as a boundary. Rotating session credentials used for such crawls is advisable. 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. | CVE Database V5 | ||
| Medium | – | CVE-2026-82442Apache StormCrawler · Comparison Using Wrong Factors MediumCVE Database V5CVE-2026-82442 Description `HostURLFilter.configure` reads the `ignoreOutsideDomain` parameter but tests the node belonging to `ignoreOutsideHost` when deciding whether the domain mode was configured. A filter configuration that names only `ignoreOutsideDomain`, which the class documentation presents as an independent mode, is therefore discarded: the flag is forced to false, `filter` short-circuits on its guard and every URL is returned unchanged. The filter enforces nothing while appearing to be configured, and the failure is silent. The mirror-image configuration, naming only `ignoreOutsideHost`, fails with a `NullPointerException` while the topology is starting. The effect is the loss of a scope control the operator configured, so a crawled page's outlinks are followed to hosts the operator intended to exclude. Impact beyond crawl scope depends on what the crawler then fetches and is not claimed here. Projects generated from the StormCrawler Maven archetypes are not affected, because all three shipped filter configurations set both parameters. Mitigation Upgrade to 4.0.0, where each parameter is tested independently. Operators whose configuration sets only `ignoreOutsideDomain` will find the crawl restricted to the source domain, as configured, which may reduce the number of outlinks accepted. Users who cannot upgrade immediately should set both `ignoreOutsideHost` and `ignoreOutsideDomain` explicitly in the `HostURLFilter` configuration, which produces the intended behaviour on affected versions. 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. | CVE Database V5 |
Page 1 of 1