| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:67627658-3d24-1104-5c31-f0a1b8f5d72d |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9852:32FDD1:E23A57:13E8054:6A4CACDA |
| html-safe-nonce | 82909fb1be2ba82d865e3bf54678d13001feb78bb42c95e865910b44152f0c7e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5ODUyOjMyRkREMTpFMjNBNTc6MTNFODA1NDo2QTRDQUNEQSIsInZpc2l0b3JfaWQiOiIxODUyMTE2OTcwNzIxMDI5MzM4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 4947f53aa60ceb54b055535cb4410a4d12f73297ac76fbacd4436a7390cc177a |
| hovercard-subject-tag | pull_request:521816265 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/github/codeql/pull/4675/files |
| twitter:image | https://avatars.githubusercontent.com/u/37377780?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/37377780?s=400&v=4 |
| og:image:alt | 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... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/github/codeql git https://github.com/github/codeql.git |
| octolytics-dimension-user_id | 9919 |
| octolytics-dimension-user_login | github |
| octolytics-dimension-repository_id | 143040428 |
| octolytics-dimension-repository_nwo | github/codeql |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 143040428 |
| octolytics-dimension-repository_network_root_nwo | github/codeql |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ae90d426644ca15e89bacceb72e51f4e9dbf85f7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://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 AI | https://github.com/features/copilot |
| GitHub Copilot appDirect agents from issue to merge | https://github.com/features/ai/github-app |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| View all resources | https://github.com/resources |
| GitHub SponsorsFund open source developers | https://github.com/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/accelerator |
| GitHub Stars | https://stars.github.com |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://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 |
| Reload | https://github.com/github/codeql/pull/4675/files |
| Reload | https://github.com/github/codeql/pull/4675/files |
| Reload | https://github.com/github/codeql/pull/4675/files |
| Please reload this page | https://github.com/github/codeql/pull/4675/files |
|
github
| https://github.com/github |
| codeql | https://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 service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fgithub%2Fcodeql%2Fissues%2Fnew%2Fchoose |
| aschackmull | https://github.com/aschackmull |
| github:main | https://github.com/github/codeql/tree/main |
| luchua-bc:cleartext-storage-shared-prefs | https://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 page | https://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 page | https://github.com/github/codeql/pull/4675/files |
| Please reload this page | https://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.java | https://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.qhelp | https://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.ql | https://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.qll | https://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 page | https://github.com/github/codeql/pull/4675/files |
| Please reload this page | https://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.expected | https://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 page | https://github.com/github/codeql/pull/4675/files |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |