René's URL Explorer Experiment


Title: Java: Query to detect cleartext storage of sensitive information using Android SharedPreferences by luchua-bc · Pull Request #4675 · github/codeql · GitHub

Open Graph Title: Java: Query to detect cleartext storage of sensitive information using Android SharedPreferences by luchua-bc · Pull Request #4675 · github/codeql

X Title: Java: Query to detect cleartext storage of sensitive information using Android SharedPreferences by luchua-bc · Pull Request #4675 · github/codeql

Description: SharedPreferences is an Android API that stores application preferences using simple sets of data values. Almost every Android application uses this API. It allows to easily save, alter, and retrieve the values stored in SharedPreferences. However, sensitive information shall not be saved in cleartext. Otherwise it can be accessed by any process or user on rooted devices, or can be disclosed through chained vulnerabilities e.g. unexpected access to its private storage through exposed components. This query detects storage of sensitive information in cleartext using SharedPreferences on Android devices. Please consider to merge the PR. Thanks.

Open Graph Description: SharedPreferences is an Android API that stores application preferences using simple sets of data values. Almost every Android application uses this API. It allows to easily save, alter, and retrie...

X Description: SharedPreferences is an Android API that stores application preferences using simple sets of data values. Almost every Android application uses this API. It allows to easily save, alter, and retrie...

Opengraph URL: https://github.com/github/codeql/pull/4675

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:67627658-3d24-1104-5c31-f0a1b8f5d72d
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9852:32FDD1:E23A57:13E8054:6A4CACDA
html-safe-nonce82909fb1be2ba82d865e3bf54678d13001feb78bb42c95e865910b44152f0c7e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5ODUyOjMyRkREMTpFMjNBNTc6MTNFODA1NDo2QTRDQUNEQSIsInZpc2l0b3JfaWQiOiIxODUyMTE2OTcwNzIxMDI5MzM4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac4947f53aa60ceb54b055535cb4410a4d12f73297ac76fbacd4436a7390cc177a
hovercard-subject-tagpull_request:521816265
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/github/codeql/pull/4675/files
twitter:imagehttps://avatars.githubusercontent.com/u/37377780?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/37377780?s=400&v=4
og:image:altSharedPreferences is an Android API that stores application preferences using simple sets of data values. Almost every Android application uses this API. It allows to easily save, alter, and retrie...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/github/codeql git https://github.com/github/codeql.git
octolytics-dimension-user_id9919
octolytics-dimension-user_logingithub
octolytics-dimension-repository_id143040428
octolytics-dimension-repository_nwogithub/codeql
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id143040428
octolytics-dimension-repository_network_root_nwogithub/codeql
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseae90d426644ca15e89bacceb72e51f4e9dbf85f7
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/github/codeql/pull/4675/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fcodeql%2Fpull%2F4675%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fcodeql%2Fpull%2F4675%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=github%2Fcodeql
Reloadhttps://github.com/github/codeql/pull/4675/files
Reloadhttps://github.com/github/codeql/pull/4675/files
Reloadhttps://github.com/github/codeql/pull/4675/files
Please reload this pagehttps://github.com/github/codeql/pull/4675/files
github https://github.com/github
codeqlhttps://github.com/github/codeql
Notifications https://github.com/login?return_to=%2Fgithub%2Fcodeql
Fork 2k https://github.com/login?return_to=%2Fgithub%2Fcodeql
Star 9.8k https://github.com/login?return_to=%2Fgithub%2Fcodeql
Code https://github.com/github/codeql
Issues 987 https://github.com/github/codeql/issues
Pull requests 424 https://github.com/github/codeql/pulls
Discussions https://github.com/github/codeql/discussions
Actions https://github.com/github/codeql/actions
Projects https://github.com/github/codeql/projects
Models https://github.com/github/codeql/models
Security and quality 0 https://github.com/github/codeql/security
Insights https://github.com/github/codeql/pulse
Code https://github.com/github/codeql
Issues https://github.com/github/codeql/issues
Pull requests https://github.com/github/codeql/pulls
Discussions https://github.com/github/codeql/discussions
Actions https://github.com/github/codeql/actions
Projects https://github.com/github/codeql/projects
Models https://github.com/github/codeql/models
Security and quality https://github.com/github/codeql/security
Insights https://github.com/github/codeql/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fgithub%2Fcodeql%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fgithub%2Fcodeql%2Fissues%2Fnew%2Fchoose
aschackmullhttps://github.com/aschackmull
github:mainhttps://github.com/github/codeql/tree/main
luchua-bc:cleartext-storage-shared-prefshttps://github.com/luchua-bc/ql/tree/cleartext-storage-shared-prefs
Conversation 83 https://github.com/github/codeql/pull/4675
Findings https://github.com/github/codeql/pull/4675/findings
Commits 11 https://github.com/github/codeql/pull/4675/commits
Checks 0 https://github.com/github/codeql/pull/4675/checks
Files changed https://github.com/github/codeql/pull/4675/files
Please reload this pagehttps://github.com/github/codeql/pull/4675/files
Java: Query to detect cleartext storage of sensitive information using Android SharedPreferences https://github.com/github/codeql/pull/4675/files#top
Show all changes 11 commits https://github.com/github/codeql/pull/4675/files
0bd6255 Query for cleartext storage using Android SharedPreferences luchua-bc Nov 16, 2020 https://github.com/github/codeql/pull/4675/commits/0bd6255c41a79903219408aba71f9fe3335326ba
85434ca Format the source code and update qldoc luchua-bc Nov 17, 2020 https://github.com/github/codeql/pull/4675/commits/85434ca410328469bb03f781b309002cf2e5bd05
a311462 Move to query-test folder and update qldoc luchua-bc Nov 19, 2020 https://github.com/github/codeql/pull/4675/commits/a31146279123f20abca7204d71d4d094ca0e168c
a491604 Enhance the query and add more test cases luchua-bc Nov 25, 2020 https://github.com/github/codeql/pull/4675/commits/a49160423bccde35a442fb2e276064676f84087f
7ad031c Move to experimental and update qldoc luchua-bc Nov 26, 2020 https://github.com/github/codeql/pull/4675/commits/7ad031ca70c2dc1cb5ac27a5aebd824a94f80f03
a83ddd6 Add comments about how the future promotion should go luchua-bc Nov 26, 2020 https://github.com/github/codeql/pull/4675/commits/a83ddd66eb513094957bb08b85ef2ce46be89e6b
ad0ac5b Change kind to problem luchua-bc Nov 27, 2020 https://github.com/github/codeql/pull/4675/commits/ad0ac5b874158a0601498ee9d11dfd4b01abf3ef
5690bf4 Optimize the query luchua-bc Jan 6, 2021 https://github.com/github/codeql/pull/4675/commits/5690bf49f46f9cadfb99cb824338b1562a9e0831
f13b881 Update class/method names in the module luchua-bc Jan 6, 2021 https://github.com/github/codeql/pull/4675/commits/f13b8814f5d00a2ae3e8826bbcce92b5c2a6c29f
b54e5b1 Revamp the library module luchua-bc Jan 7, 2021 https://github.com/github/codeql/pull/4675/commits/b54e5b1c4977d7a0c8e320893914cac927926863
606d094 Update qldoc luchua-bc Jan 7, 2021 https://github.com/github/codeql/pull/4675/commits/606d0946fcfbd0a4dbabda4885313bc70b1a095f
Clear filters https://github.com/github/codeql/pull/4675/files
Please reload this pagehttps://github.com/github/codeql/pull/4675/files
Please reload this pagehttps://github.com/github/codeql/pull/4675/files
CleartextStorageSharedPrefs.java https://github.com/github/codeql/pull/4675/files#diff-f1b05233eaf6e4ade8947cb7bc82589c75209114a374b4115b749e8bd0103948
CleartextStorageSharedPrefs.qhelp https://github.com/github/codeql/pull/4675/files#diff-5c94fc3542f48238d6b62c1e433b6520891f20f438bbfaa6c46737d006855d21
CleartextStorageSharedPrefs.ql https://github.com/github/codeql/pull/4675/files#diff-e92aaf10db60e004aaa69023e66f3c4517528572c196060f1ed8c00e5c2716c8
SharedPreferences.qll https://github.com/github/codeql/pull/4675/files#diff-08077efd65d46d24ac3ac64f320da081f97ae3323e7ddd0bf27c1c02d07c3460
CleartextStorageSharedPrefs.expected https://github.com/github/codeql/pull/4675/files#diff-c980eb37f539d82f273f783c93202bbb26106e0ccee2bb15a2b90e8f3bbd5050
CleartextStorageSharedPrefs.java https://github.com/github/codeql/pull/4675/files#diff-e97594deebf0eb4929252d586a45fe90bb4021f9f1b49728f8616548ba3908b0
CleartextStorageSharedPrefs.qlref https://github.com/github/codeql/pull/4675/files#diff-2538a59616ba137c27b667db7f510d2e6e246a8add7de57c7e8102544432a995
options https://github.com/github/codeql/pull/4675/files#diff-a316fdc04f652fd8f526c8a4a9594655f490e504e7e4c99c7238e8c3be8695f3
Context.java https://github.com/github/codeql/pull/4675/files#diff-afcaaa92af21f2adc319cae2ff7d88e5dba3aa2d0016b05c6d236ebf5aecec93
SharedPreferences.java https://github.com/github/codeql/pull/4675/files#diff-cd7e59e0dd40e146aee4afd870848254fb6c9ac1bda51265aa3925d4013d7e04
EncryptedSharedPreferences.java https://github.com/github/codeql/pull/4675/files#diff-7b77175fb45c342df05c34c04f66bbbd9050c7fdea7b68cb818ed680a512eb4a
MasterKey.java https://github.com/github/codeql/pull/4675/files#diff-cd2360c92f79507241c1f55a0e7454296255c33028c3629ca76d4ad4de5c3ce7
https://github.com/github/codeql/blob/main/CODEOWNERS#L16
java/ql/src/experimental/Security/CWE/CWE-312/CleartextStorageSharedPrefs.javahttps://github.com/github/codeql/pull/4675/files#diff-f1b05233eaf6e4ade8947cb7bc82589c75209114a374b4115b749e8bd0103948
View file https://github.com/luchua-bc/ql/blob/606d0946fcfbd0a4dbabda4885313bc70b1a095f/java/ql/src/experimental/Security/CWE/CWE-312/CleartextStorageSharedPrefs.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql/pull/4675/{{ revealButtonHref }}
https://github.com/github/codeql/blob/main/CODEOWNERS#L16
java/ql/src/experimental/Security/CWE/CWE-312/CleartextStorageSharedPrefs.qhelphttps://github.com/github/codeql/pull/4675/files#diff-5c94fc3542f48238d6b62c1e433b6520891f20f438bbfaa6c46737d006855d21
View file https://github.com/luchua-bc/ql/blob/606d0946fcfbd0a4dbabda4885313bc70b1a095f/java/ql/src/experimental/Security/CWE/CWE-312/CleartextStorageSharedPrefs.qhelp
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql/pull/4675/{{ revealButtonHref }}
https://github.com/github/codeql/blob/main/CODEOWNERS#L16
java/ql/src/experimental/Security/CWE/CWE-312/CleartextStorageSharedPrefs.qlhttps://github.com/github/codeql/pull/4675/files#diff-e92aaf10db60e004aaa69023e66f3c4517528572c196060f1ed8c00e5c2716c8
View file https://github.com/luchua-bc/ql/blob/606d0946fcfbd0a4dbabda4885313bc70b1a095f/java/ql/src/experimental/Security/CWE/CWE-312/CleartextStorageSharedPrefs.ql
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql/pull/4675/{{ revealButtonHref }}
https://github.com/github/codeql/blob/main/CODEOWNERS#L16
java/ql/src/semmle/code/java/frameworks/android/SharedPreferences.qllhttps://github.com/github/codeql/pull/4675/files#diff-08077efd65d46d24ac3ac64f320da081f97ae3323e7ddd0bf27c1c02d07c3460
View file https://github.com/luchua-bc/ql/blob/606d0946fcfbd0a4dbabda4885313bc70b1a095f/java/ql/src/semmle/code/java/frameworks/android/SharedPreferences.qll
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql/pull/4675/{{ revealButtonHref }}
Please reload this pagehttps://github.com/github/codeql/pull/4675/files
Please reload this pagehttps://github.com/github/codeql/pull/4675/files
https://github.com/github/codeql/blob/main/CODEOWNERS#L16
java/ql/test/experimental/query-tests/security/CWE-312/CleartextStorageSharedPrefs.expectedhttps://github.com/github/codeql/pull/4675/files#diff-c980eb37f539d82f273f783c93202bbb26106e0ccee2bb15a2b90e8f3bbd5050
View file https://github.com/luchua-bc/ql/blob/606d0946fcfbd0a4dbabda4885313bc70b1a095f/java/ql/test/experimental/query-tests/security/CWE-312/CleartextStorageSharedPrefs.expected
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql/pull/4675/{{ revealButtonHref }}
Please reload this pagehttps://github.com/github/codeql/pull/4675/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.