forked from github/codeql
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from egregius313/egregisu313/webview-setAllowC…
…ontentAccess-single-query Merge `setAllowContentAccess` queries into singular query
- Loading branch information
Showing
8 changed files
with
22 additions
and
32 deletions.
There are no files selected for viewing
21 changes: 0 additions & 21 deletions
21
java/ql/src/Security/CWE/CWE-200/AndroidWebViewSettingsContentAccess.ql
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains 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
2 changes: 1 addition & 1 deletion
2
java/ql/src/change-notes/2022-12-21-android-allowcontentaccess-query.md
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
--- | ||
category: newQuery | ||
--- | ||
* Added a new query `java/android/websettings-content-access` to detect Android WebViews which do not disable access to `content://` urls. | ||
* Added a new query `java/android/websettings-permit-contentacces` to detect Android WebViews which do not disable access to `content://` urls. |
5 changes: 5 additions & 0 deletions
5
java/ql/test/query-tests/security/CWE-200/semmle/tests/WebViewContentAccess.expected
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
| WebViewContentAccess.java:15:9:15:57 | setAllowContentAccess(...) | Sensitive information may be exposed via a malicious link due to access of content:// links being permitted. | | ||
| WebViewContentAccess.java:38:9:38:55 | setAllowContentAccess(...) | Sensitive information may be exposed via a malicious link due to access of content:// links being permitted. | | ||
| WebViewContentAccess.java:41:25:41:49 | (...)... | Sensitive information may be exposed via a malicious link due to access of content:// links being permitted. | | ||
| WebViewContentAccess.java:43:9:43:44 | setAllowContentAccess(...) | Sensitive information may be exposed via a malicious link due to access of content:// links being permitted. | | ||
| WebViewContentAccess.java:46:25:46:41 | new WebView(...) | Sensitive information may be exposed via a malicious link due to access of content:// links being permitted. | | ||
| WebViewContentAccess.java:48:9:48:44 | setAllowContentAccess(...) | Sensitive information may be exposed via a malicious link due to access of content:// links being permitted. | | ||
| WebViewContentAccess.java:51:25:51:44 | getAWebView(...) | Sensitive information may be exposed via a malicious link due to access of content:// links being permitted. | | ||
| WebViewContentAccess.java:53:9:53:44 | setAllowContentAccess(...) | Sensitive information may be exposed via a malicious link due to access of content:// links being permitted. | | ||
| WebViewContentAccess.java:55:29:55:48 | getAWebView(...) | Sensitive information may be exposed via a malicious link due to access of content:// links being permitted. | | ||
| WebViewContentAccess.java:57:25:57:44 | getAWebView(...) | Sensitive information may be exposed via a malicious link due to access of content:// links being permitted. | |
2 changes: 1 addition & 1 deletion
2
java/ql/test/query-tests/security/CWE-200/semmle/tests/WebViewContentAccess.qlref
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Security/CWE/CWE-200/AndroidWebViewSettingsContentAccess.ql | ||
Security/CWE/CWE-200/AndroidWebViewSettingsPermitsContentAccess.ql |
5 changes: 0 additions & 5 deletions
5
java/ql/test/query-tests/security/CWE-200/semmle/tests/WebViewContentAccessDataFlow.expected
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
java/ql/test/query-tests/security/CWE-200/semmle/tests/WebViewContentAccessDataFlow.qlref
This file was deleted.
Oops, something went wrong.