SecretScanner icon indicating copy to clipboard operation
SecretScanner copied to clipboard

[Secrect Scanner] some secrects that were not detected

Open jo19in1 opened this issue 3 years ago • 0 comments

  1. Type: circle ci config file keys such as auth, username, password is not detected

Ex: auth: username: circleclidockeruser password: circleclidockerpassword # context / project UI env-var reference

  1. API keys in openweather maps (must be shown as a warning)

Example: Highligted text is not detected: url = "https://api.openweathermap.org/data/2.5/find?q=Palo+Alto&units=imperial&type=accurate&mode=json&APPID=ba3447bf3NOTREAL18414e1f995f68aeb6d"

  1. Variable names such as username, user, password and passwd are not detected

Example: USER = 'realusername' PASSWORD = 'Realpassword@1234'

usr = 'anotherrealluser' passwd = 'anotherrealpasswd'

  1. There is no username and password in this line, https://github.com/apache/jmeter/blob/efe50ca5b150cdbdb578886f8b4d98d3f1ea264f/xdocs/usermanual/curl.xml#L173 I get a false positive scan result:
 {
      "Image Layer ID": "",
      "Matched Rule ID": 118,
      "Matched Rule Name": "Username and password in URI",
      "Matched Part": "contents",
      "String to Match": "",
      "Signature to Match": "([\\w+]{1,24})(://)([^$\u003c]{1})([^\\s\";]{1,}):([^$\u003c]{1})([^\\s\";/]{1,})@[-a-zA-Z0-9@:%._\\+~#=]{1,256}\\.[a-zA-Z0-9()]{1,24}([^\\s]+)",
      "Severity": "high",
      "Severity Score": 7.53,
      "Starting Index of Match in Original Content": 9408,
      "Relative Starting Index of Match in Displayed Substring": 50,
      "Relative Ending Index of Match in Displayed Substring": 72,
      "Full File Name": "/deepfence/mnt/root/jmeter/xdocs/usermanual/curl.xml",
      "Matched Contents": "xy\u003c/b\u003e\u003csource\u003ecurl 'https://example.invalid/' -x '[31mhttps://aa:[email protected][0mvalid:8042'\u003c/source\u003e\u003c/p\u003e"
    }
  1. However this line must be detected as there is a mention of passwd https://github.com/apache/jmeter/blob/efe50ca5b150cdbdb578886f8b4d98d3f1ea264f/xdocs/usermanual/curl.xml#L174

"https://example.invalid" -u 'user:passwd' --basic</source></p>

jo19in1 avatar Feb 17 '22 04:02 jo19in1