Tuesday, September 8, 2026
HomeCyber SecurityGithub cookie leakage – 1000's of Firefox cookie recordsdata uploaded by mistake...

Github cookie leakage – 1000’s of Firefox cookie recordsdata uploaded by mistake – Bare Safety

[ad_1]

Keep in mind when folks used to add their SSH keys onto Github and comparable code sharing websites by mistake?

Two years in the past, we wrote about the truth that incautious software program builders had uploaded tons of of 1000’s of personal entry management keys, solely unintentionally, together with supply code recordsdata that they did intend to make public.

Sometimes, this type of blunder occurs as a result of Linux and Unix computer systems don’t show directories or filenames that begin with a dot character (interval, full cease, ASCII 46, hexadecimal 0x2E) by default.

It’s simple to neglect that these “hidden” recordsdata and directories exist in any respect, given that you simply not often discover they’re there.

One of many super-important “hidden” directories for Unix customers is .ssh, which is often invisible.

So a plain listing itemizing may appear to be this:

$ ls -lR
.:
complete 4
drwxr-xr-x 2 lua  lua  4096 2021-11-18 20:52 lua-utils/

./lua-utils:
complete 32
-rw-r--r-- 1 lua  lua   5107 2021-11-18 20:45 args.lua
-rw-r--r-- 1 lua  lua  12384 2021-11-18 20:45 base.lua
-rw-r--r-- 1 lua  lua   4628 2021-11-18 20:45 socks5.lua

Blindly packaging all these recordsdata into an archive for importing to your favorite public repository appears fairly innocent, given that every one the recordsdata within the lua account are presupposed to be public.

However in case you insist that the file itemizing utility exhibits you all recordsdata (add the choice -a for all to the ls command), together with hidden recordsdata beginning with a dot, you might need a listing tree that appears like this as a substitute:

$ ls -alR
.:
complete 28
drwxr-xr-x  4 lua  lua   4096 2021-11-18 20:46 ./
drwxr-xr-x 27 lua  lua  16384 2021-11-18 20:42 ../
drwxr-xr-x  2 lua  lua   4096 2021-11-18 20:44 .ssh/
drwxr-xr-x  2 lua  lua   4096 2021-11-18 20:52 lua-utils/

./.ssh:
complete 16
drwxr-xr-x 2 lua  lua  4096 2021-11-18 20:44 ./
drwxr-xr-x 4 lua  lua  4096 2021-11-18 20:46 ../
-r-------- 1 lua  lua    74 2021-11-18 20:45 id_rsa
-rw------- 1 lua  lua  1993 2021-11-18 20:45 known_hosts

./lua-utils:
complete 40
drwxr-xr-x 2 lua  lua   4096 2021-11-18 20:52 ./
drwxr-xr-x 4 lua  lua   4096 2021-11-18 20:46 ../
-rw-r--r-- 1 lua  lua   5107 2021-11-18 20:45 args.lua
-rw-r--r-- 1 lua  lua  12384 2021-11-18 20:45 base.lua
-rw-r--r-- 1 lua  lua   4628 2021-11-18 20:45 socks5.lua

As you possibly can see, the total listing tree features a hidden .ssh listing that features a file referred to as id_rsa, which is a non-public key file usually containing the login credentials for a number of on-line servers that you simply connect with usually:


$ cat .ssh/id_rsa 
-----BEGIN RSA PRIVATE KEY-----

[. . . .]

-----END RSA PRIVATE KEY-----
RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments