You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the same "raw" secret value is stored sequentially, the line of code value for each subsequent occurrence is the same as the first instance instead of each having their correct line number calculated.
Steps to Reproduce
Create a file with multiple instances (at least two) of the exact same secret, one after another. The secret must contain the exact same value, and type.
When there are multiple secrets of the same type, in the same data "chunk", TruffleHog incorrectly reports all secrets with the same raw value as having the same line of code.
Please review the Community Note before submitting
TruffleHog Version
v3.4.3 to present
Trace Output
N/A
Expected Behavior
Should calculate the line of code correctly.
Actual Behavior
The line of code is not correctly calculated.
When the same "raw" secret value is stored sequentially, the line of code value for each subsequent occurrence is the same as the first instance instead of each having their correct line number calculated.
Steps to Reproduce
Environment
Additional Context
Root cause analysis documented in detail here: https://github.com/0x736E/trufflehog_v3_loc_bug
When there are multiple secrets of the same type, in the same data "chunk", TruffleHog incorrectly reports all secrets with the same raw value as having the same line of code.
References
The text was updated successfully, but these errors were encountered: