-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
BlockNative detector doesn't seem to properly verify secrets #3721
Comments
I tested some of their other APIs locally, and you can find the documentation here. Interestingly, their APIs seem to work with any Authorization key. They always respond with a 200 OK, even when I used a single-digit key! 😄 |
The endpoints mentioned in the Blocknative documentation return a This contradicts Blocknative's API specifications described in docs I linked above, according to which empty or incorrect authorization credentials (try using "hello world" as the API key) shouldn't return a success status or any meaningful data other than an error message. |
I'm not a trufflehog expert, would it be possible to just not attempt to verify these so the results are a little less misleading? (or is this something where we should file a bug report upstream?) |
We can use the flag |
Temporarily disabled this detector |
TruffleHog Version
trufflehog 3.84.2
Trace Output
N/A - leaving this out due to sensitive content
Expected Behavior
False positive secrets are not reported as verified.
Actual Behavior
False positive secrets are reported as verified.
Steps to Reproduce
trufflehog --filesystem .
Environment
Additional Context
The API in question seems to always return a response regardless of the value of the key - all 3 of the below commands return a response:
I think the solution is to call some other API to verify that a token is valid.
The text was updated successfully, but these errors were encountered: