GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Java: Promote Cleartext storage of sensitive information using SharedPreferences from experimental by atorralba · Pull Request #6468 · github/codeql

Conversation

@atorralba

@atorralba atorralba commented Aug 11, 2021 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

PR to promote the Cleartext storage of sensitive information using SharedPreferences on Android query created in #4675.

Changes

  • Existing files were moved out of experimental
  • The CleartextStorageSharedPrefsQuery.qll file was created.
  • Refactored tests to use InlineExpectationsTest.
  • Minor improvements in QLDoc and the qhelp file.

To Consider

There were three DataFlow::Confiugration working together in this query: SharedPreferencesFlowConfig, EncryptedValueFlowConfig and EncryptedSharedPrefFlowConfig. I removed EncryptedSharedPrefFlowConfig and used DataFlow::localExprFlow instead, to avoid having that many DataFlow::Configuration instances around.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@github-actions github-actions Bot added documentation Java labels Aug 11, 2021
@atorralba
atorralba marked this pull request as ready for review August 11, 2021 13:08
@atorralba
atorralba requested a review from a team as a code owner August 11, 2021 13:08
intrigus-lgtm
intrigus-lgtm reviewed Aug 11, 2021
View reviewed changes
Comment thread java/ql/src/Security/CWE/CWE-312/CleartextStorageSharedPrefs.qhelp Resolved

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Aug 17, 2021
Java: Create new query Cleartext storage of sensitive information in Android databases #6492
Merged
Java: Refactor Cleartext Storage queries #6493
Merged
Marcono1234
Marcono1234 reviewed Aug 17, 2021
View reviewed changes
Comment thread java/ql/src/semmle/code/java/security/CleartextStorageQuery.qll Resolved

Uh oh!

There was an error while loading. Please reload this page.

@atorralba
atorralba force-pushed the atorralba/promote-cleartext-sharedprefs branch from 68f2fcc to 7cd7ffb Compare August 23, 2021 14:55
@atorralba
atorralba force-pushed the atorralba/promote-cleartext-sharedprefs branch from 7cd7ffb to da47abc Compare September 3, 2021 11:29
@atorralba

atorralba commented Sep 3, 2021

Copy link
Copy Markdown
Contributor Author

Force pushed to rebase #6493.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@atorralba atorralba added the ready-for-doc-review This PR requires and is ready for review from the GitHub docs team. label Nov 11, 2021
ethanpalm
ethanpalm previously approved these changes Nov 12, 2021
View reviewed changes

@ethanpalm ethanpalm left a comment

Copy link
Copy Markdown
Contributor

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 ⚡

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread java/ql/src/Security/CWE/CWE-312/CleartextStorageSharedPrefs.qhelp Resolved

Uh oh!

There was an error while loading. Please reload this page.

@atorralba
atorralba dismissed ethanpalm’s stale review via e30ed41 November 12, 2021 14:24
@atorralba

atorralba commented Nov 12, 2021

Copy link
Copy Markdown
Contributor Author

Thanks @ethanpalm! Suggestion applied :)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

ethanpalm
ethanpalm previously approved these changes Nov 12, 2021
View reviewed changes
aschackmull
aschackmull reviewed Jan 5, 2022
View reviewed changes
Comment thread java/ql/lib/semmle/code/java/security/CleartextStorageSharedPrefsQuery.qll Resolved

Uh oh!

There was an error while loading. Please reload this page.

aschackmull
aschackmull reviewed Jan 5, 2022
View reviewed changes
Comment thread java/change-notes/2021-08-10-cleartext-storage-sharedprefs-query.md Resolved

Uh oh!

There was an error while loading. Please reload this page.

atorralba and others added 4 commits January 10, 2022 17:09
@atorralba
Move from experimental and refactor
55dc783
@atorralba
Fix predicate name
ec8c234
@atorralba @ethanpalm
Apply suggestions from code review
d17e973
Co-authored-by: Ethan Palm <[email protected]>
@atorralba
Apply suggestions from code review
e1e5e78
- Update CleartextStorage library to latest refactor
- Move change note to new location
@atorralba
atorralba dismissed ethanpalm’s stale review via e1e5e78 January 10, 2022 16:11
@atorralba
atorralba force-pushed the atorralba/promote-cleartext-sharedprefs branch from e30ed41 to e1e5e78 Compare January 10, 2022 16:11
@atorralba
Fix QLDoc
cc92ce2
aschackmull
aschackmull reviewed Jan 11, 2022
View reviewed changes
Comment thread java/ql/lib/change-notes/2021-08-10-cleartext-storage-sharedprefs-query.md Resolved

Uh oh!

There was an error while loading. Please reload this page.

aschackmull
aschackmull reviewed Jan 11, 2022
View reviewed changes
Comment thread java/ql/lib/semmle/code/java/security/CleartextStorageSharedPrefsQuery.qll Resolved

Uh oh!

There was an error while loading. Please reload this page.

@atorralba @aschackmull
Move change note to new location and remove import
50caf7d
Co-authored-by: Anders Schack-Mulligen <[email protected]>
aschackmull
aschackmull reviewed Jan 11, 2022
View reviewed changes
Comment thread java/ql/lib/semmle/code/java/security/CleartextStorageSharedPrefsQuery.qll Resolved

Uh oh!

There was an error while loading. Please reload this page.

@atorralba
Remove unused code
394c4a9
aschackmull
aschackmull approved these changes Jan 11, 2022
View reviewed changes
@atorralba
atorralba merged commit 4aacba8 into github:main Jan 11, 2022
@atorralba
atorralba deleted the atorralba/promote-cleartext-sharedprefs branch January 11, 2022 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@aschackmull aschackmull aschackmull approved these changes
+3 more reviewers
@Marcono1234 Marcono1234 Marcono1234 left review comments
@intrigus-lgtm intrigus-lgtm intrigus-lgtm left review comments
@ethanpalm ethanpalm ethanpalm left review comments
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

documentation Java ready-for-doc-review This PR requires and is ready for review from the GitHub docs team.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

5 participants

@atorralba @Marcono1234 @aschackmull @ethanpalm @intrigus-lgtm
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.