trufflesecurity / trufflehog

Find, verify, and analyze leaked credentials
https://trufflesecurity.com
GNU Affero General Public License v3.0
15.83k stars 1.65k forks source link

Improve domain / url handling in detectors #3221

Closed dustin-decker closed 1 month ago

dustin-decker commented 1 month ago

Description:

In some scenarios, input data could be crafted to have the scanner make a blind request to a target controlled by the input data. Typically this would effectively be a blind, unauthenticated GET request to the endpoint.

Mitigations include,

Only a few detectors were affected by this issue, but the new http clients were also introduced for some detectors that were only detecting subdomains to a trusted domain, or domains to be used in a query parameter on the upstream provider.

Checklist: