Database credential leak via server.log
See original GitHub issueOn startup, for at least the postgres connector, properties are printed in the clear to (world readable) server.log. This includes database accounts and passwords:
2017-03-21T14:24:05.973Z INFO main com.facebook.presto.metadata.StaticCatalogStore -- Loading catalog /etc/presto/catalog/harness-archive.properties --
2017-03-21T14:24:06.917Z INFO main Bootstrap PROPERTY DEFAULT RUNTIME DESCRIPTION
2017-03-21T14:24:06.918Z INFO main Bootstrap connection-password null *mydatabasepassword*
2017-03-21T14:24:06.918Z INFO main Bootstrap connection-url null jdbc:postgresql://*connectionstring*
2017-03-21T14:24:06.918Z INFO main Bootstrap connection-user null *mydatabaseuser*
2017-03-21T14:24:06.918Z INFO main Bootstrap allow-drop-table false false Allow connector to drop
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
What can an attacker do if he knew my database credentials?
That being said, it'd be very bad practice to let your credentials leak out like this. If you suspect that they're compromised, ...
Read more >XSS to Database Credential Leakage & Database Access
After fiddling around, trying to login via “wp-admin” endpoint, there was no luck but I reported it anyway. All of sudden, I again...
Read more >Understanding the Windows Credential Leak Flaw and How to ...
Below is a technique that a user can use to prevent Windows and applications from disclosing login credentials to remote servers.
Read more >A Step-By-Step Guide to Uncovering Data Leaks - nVisium Blog
A Step-By-Step Guide to Uncovering Data Leaks · Once imported, start the machine and log in using the credentials: kali/kali · Click the...
Read more >Use of Security Logs for Data Leak Detection - Hindawi
This paper presents a systematic literature review on the use of security logs for data leak detection. Our findings are fourfold: (i) we...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
For instance, if we send those logs to a third party service, now those credentials are stored plaintext in that service. It’s a fairly common pattern to want people to have access to operational logs without having access to the underlying credentials. And in some deployments, the configuration and the logging may be stored differently or have different permissions on the filesystem.
This will be fixed in the next release. Thanks @amrutagokhale!