Java: add a few summary models - #15767
Conversation
Click to show differences in coveragejavaGenerated file changes for java
- Java Standard Library,``java.*``,10,735,239,80,,9,,,25
+ Java Standard Library,``java.*``,10,737,239,80,,9,,,25
- Totals,,308,18951,2558,336,16,128,33,1,409
+ Totals,,308,18953,2558,336,16,128,33,1,409
- java.util,47,2,520,,,,,,,,,1,,,,,,,,,,,34,,,,2,,,,5,2,,1,2,,,,,,,,,,,,2,,,46,474
+ java.util,47,2,522,,,,,,,,,1,,,,,,,,,,,34,,,,2,,,,5,2,,1,2,,,,,,,,,,,,2,,,46,476 |
atorralba
left a comment
There was a problem hiding this comment.
Could you explain the reasoning behind SyntheticField[cipher.Encrypted]? It's a bit different than what I had in mind, so maybe my initial assessment wasn't accurate enough.
|
Hmm, I think I had the wrong idea about what was happening. I thought that if you had code like this: then you could decrypt |
If we're not able to track encrypted/decrypted status, I think I'd prefer not propagating taint through those calls at all (i.e. make them neutrals). Because I can't think of many kinds of taint that would remain meaningful after an encryption operation, so this would add more FPs than TPs IMHO (where TPs are results that go both through encryption and decryption in the same path). |
|
Okay - you are in a better position than I am to judge the trade-off. Shall I make |
|
Yes, I think the same logic applies. Sorry that we agreed on this after your modeling work 😞. |
The first commit adds summary models for a method that I noticed I had generated a bad summary model for in #14919. The second commit models a whole class (
javax.crypto.Cipher), because the model generated in this PR created too much flow and caused thejava/sensitive-logquery onapache/geodeto never terminate.