codeql icon indicating copy to clipboard operation
codeql copied to clipboard

Java: Additional hardcoded credentials candidates 3rd-party api calls

Open bananabr opened this issue 4 years ago • 9 comments

Included the methods that might receive hard-coded credential material in their parameters from some of the most used SSH, FTP, and MongoDB Java libraries in the Maven official repository to the SensitiveApi.qll library.

bananabr avatar Sep 18 '21 00:09 bananabr

I can provide at least one valid result from each of the added services/libs but as these are credential disclosure issues, I would like to do that through a private channel.

bananabr avatar Sep 19 '21 01:09 bananabr

Should I move this into an experimental query?

bananabr avatar Sep 22 '21 15:09 bananabr

This is straightforward enough that assuming seclab can confirm the results are reasonable I'd be happy to take it straight into the non-experimental library

smowton avatar Sep 22 '21 16:09 smowton

This is straightforward enough that assuming seclab can confirm the results are reasonable I'd be happy to take it straight into the non-experimental library

I already have an issue open for this https://github.com/github/securitylab/issues/432, just need to know about the best way to provide the seclab with the results as they contain potentially confidential information.

bananabr avatar Sep 22 '21 16:09 bananabr

Please add to the tests in java/ql/test/security/CWE-798 (and needed stubs to java/ql/test/stubs) (this is basically checking that all the method prototypes you've given here are spelled correctly)

Please add a change note in java/change-notes briefly summarising what has changed.

smowton avatar Sep 24 '21 17:09 smowton

Will sure do @smowton. I should push the changes in the next couple of days.

bananabr avatar Sep 24 '21 18:09 bananabr

ping @bananabr

smowton avatar Oct 19 '21 11:10 smowton

Hey @smowton. I am going through a phase where dedicating time to this PR is almost impossible. Please, feel free to close it if you need.

bananabr avatar Oct 23 '21 18:10 bananabr

In finally got some free time to work on this, so I've added tests at https://github.com/github/codeql/pull/10041

smowton avatar Aug 13 '22 13:08 smowton

Merged via #10041

smowton avatar Aug 23 '22 09:08 smowton