FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Java: Refactor Cleartext Storage queries by atorralba · Pull Request #6493 · github/codeql · GitHub

/ codeql Public

Java: Refactor Cleartext Storage queries - #6493

Merged
aschackmull merged 5 commits into
github:mainfrom
atorralba:atorralba/cleartext-storage-query-refactor
Sep 23, 2021
Merged

Java: Refactor Cleartext Storage queries#6493
aschackmull merged 5 commits into
github:mainfrom
atorralba:atorralba/cleartext-storage-query-refactor

Conversation

atorralba commented Aug 17, 2021
edited
Loading

Copy link
Copy Markdown
Contributor

This PR splits the SensitiveStorage library in several files, one for each query. The *Query.qll naming convention has been followed, and the base CleartextStorageQuery.qll library has been generalized to have extensible sinks, sanitizers and taint steps. The encryption sanitizer that was being used in the Shared Preferences query has also been generalized, and now all sensitive storage queries benefit from it.

Copy link
Copy Markdown
Contributor

⚠️ The head of this PR and the base branch were compared for differences in the framework coverage reports. The generated reports are available in the artifacts of this workflow run. The differences will be picked up by the nightly job after the PR gets merged. The differences can be found in the comparison artifact of this workflow run.

atorralba changed the title Java: Refactor Sensitive Storage queries Java: Refactor Cleartext Storage queries Aug 17, 2021
atorralba force-pushed the atorralba/cleartext-storage-query-refactor branch 2 times, most recently from 4dbd67f to 710a9f3 Compare August 23, 2021 14:56

Copy link
Copy Markdown
Contributor

⚠️ The head of this PR and the base branch were compared for differences in the framework coverage reports. The generated reports are available in the artifacts of this workflow run. The differences will be picked up by the nightly job after the PR gets merged. The differences can be found in the comparison artifact of this workflow run.

github-actions Bot commented Sep 3, 2021

Copy link
Copy Markdown
Contributor

⚠️ The head of this PR and the base branch were compared for differences in the framework coverage reports. A recent commit removed the previously reported differences.

Copy link
Copy Markdown
Contributor Author

Force pushed to rebase this refactor to main instead of building on top of previous PRs. This should facilitate the review.

Copy link
Copy Markdown
Contributor

This definitely changes the performance characteristics of these 3 queries, and it no longer makes sense for SensitiveSource.flowsToCached to be cached. This may be perfectly fine, but you should make sure to do a thorough performance evaluation.

atorralba commented Sep 22, 2021
edited
Loading

Copy link
Copy Markdown
Contributor Author

@aschackmull performance evaluation done. Apparently there's no negative impact on performance after this PR (CleartextStorageProperties.ql took +164s but CleartextStorageCookie.ql took -223s, so it seems like a normal tradeoff depending on which query runs first, plus a ~60s improvement).

Still not sure why the integration tests are failing though.

Copy link
Copy Markdown
Contributor

Do you have a link to the perf eval?

atorralba force-pushed the atorralba/cleartext-storage-query-refactor branch from b12a0b7 to d0b9920 Compare September 23, 2021 08:42
Co-authored-by: Anders Schack-Mulligen <aschackmull@users.noreply.github.com>

Copy link
Copy Markdown
Contributor Author

Thanks for your comments @aschackmull, applied in b52a2cd.

aschackmull merged commit a031b2a into github:main Sep 23, 2021
atorralba deleted the atorralba/cleartext-storage-query-refactor branch September 23, 2021 14:46
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Java no-change-note-required This PR does not need a change note

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL