-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Java: Promote Cleartext storage of sensitive information using SharedPreferences from experimental #6468
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
atorralba
merged 7 commits into
github:main
from
atorralba:atorralba/promote-cleartext-sharedprefs
Jan 11, 2022
Merged
Java: Promote Cleartext storage of sensitive information using SharedPreferences from experimental #6468
atorralba
merged 7 commits into
github:main
from
atorralba:atorralba/promote-cleartext-sharedprefs
Jan 11, 2022
Conversation
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
java/ql/src/Security/CWE/CWE-312/CleartextStorageSharedPrefs.qhelp
Outdated
Show resolved
Hide resolved
This was referenced Aug 17, 2021
Marcono1234
reviewed
Aug 17, 2021
java/ql/src/semmle/code/java/security/CleartextStorageQuery.qll
Outdated
Show resolved
Hide resolved
68f2fcc
to
7cd7ffb
Compare
7cd7ffb
to
da47abc
Compare
Force pushed to rebase #6493. |
ethanpalm
previously approved these changes
Nov 12, 2021
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These changes look good from a docs point of view. I just made one small suggestion ⚡
java/ql/src/Security/CWE/CWE-312/CleartextStorageSharedPrefs.qhelp
Outdated
Show resolved
Hide resolved
Thanks @ethanpalm! Suggestion applied :) |
ethanpalm
previously approved these changes
Nov 12, 2021
aschackmull
reviewed
Jan 5, 2022
java/ql/lib/semmle/code/java/security/CleartextStorageSharedPrefsQuery.qll
Outdated
Show resolved
Hide resolved
aschackmull
reviewed
Jan 5, 2022
java/change-notes/2021-08-10-cleartext-storage-sharedprefs-query.md
Outdated
Show resolved
Hide resolved
Co-authored-by: Ethan Palm <56270045+ethanpalm@users.noreply.github.com>
- Update CleartextStorage library to latest refactor - Move change note to new location
e30ed41
to
e1e5e78
Compare
aschackmull
reviewed
Jan 11, 2022
java/ql/lib/change-notes/2021-08-10-cleartext-storage-sharedprefs-query.md
Outdated
Show resolved
Hide resolved
aschackmull
reviewed
Jan 11, 2022
java/ql/lib/semmle/code/java/security/CleartextStorageSharedPrefsQuery.qll
Outdated
Show resolved
Hide resolved
Co-authored-by: Anders Schack-Mulligen <aschackmull@users.noreply.github.com>
aschackmull
reviewed
Jan 11, 2022
java/ql/lib/semmle/code/java/security/CleartextStorageSharedPrefsQuery.qll
Outdated
Show resolved
Hide resolved
aschackmull
approved these changes
Jan 11, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
documentation
Java
ready-for-doc-review
This PR requires and is ready for review from the GitHub docs team.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR to promote the Cleartext storage of sensitive information using
SharedPreferences
on Android query created in #4675.Changes
CleartextStorageSharedPrefsQuery.qll
file was created.InlineExpectationsTest
.qhelp
file.To Consider
There were three
DataFlow::Confiugration
working together in this query:SharedPreferencesFlowConfig
,EncryptedValueFlowConfig
andEncryptedSharedPrefFlowConfig
. I removedEncryptedSharedPrefFlowConfig
and usedDataFlow::localExprFlow
instead, to avoid having that manyDataFlow::Configuration
instances around.