Port (reassigned) MASTG-TEST-0076: Testing iOS WebViews (ios) (by @guardsquare)#3608
Open
serek8 wants to merge 17 commits intoOWASP:masterfrom
Open
Port (reassigned) MASTG-TEST-0076: Testing iOS WebViews (ios) (by @guardsquare)#3608serek8 wants to merge 17 commits intoOWASP:masterfrom
serek8 wants to merge 17 commits intoOWASP:masterfrom
Conversation
6 tasks
cpholguera
reviewed
Feb 20, 2026
cpholguera
reviewed
Feb 20, 2026
Co-authored-by: Carlos Holguera <perezholguera@gmail.com>
cpholguera
requested changes
Feb 21, 2026
|
|
||
| The test case fails if there are any references to `UIWebView`. | ||
|
|
||
| For iOS apps on iOS 8.0 and above, using [`WKWebView`](../../../Document/0x06h-Testing-Platform-Interaction.md/#wkwebview) is essential. `WKWebView` provides enhanced security and control over web view behavior, including the ability to disable JavaScript by setting `javaScriptEnabled` to `false`, reducing the risk of script-based attacks. Additionally, `WKWebView` supports `hasOnlySecureContent`, which ensures that only secure (HTTPS) resources are loaded, further strengthening the app's protection against insecure content and mixed content vulnerabilities. |
Collaborator
There was a problem hiding this comment.
Move to a MASTG-BEST, add or create new and link in the metadata accordingly.
|
|
||
| The test case fails if an attacker-controlled input is passed into a load operation without being sanitized. | ||
|
|
||
| The URL should not depend on dynamic input. If this is not avoidable, the input must be sanitized. For example, the app must ensure that only URLs with a set of well-known domains are loaded. |
Collaborator
There was a problem hiding this comment.
Move to a MASTG-BEST, add or create new and link in the metadata accordingly.
| test: MASTG-TEST-0xx319 | ||
| --- | ||
|
|
||
| ### Sample |
Collaborator
There was a problem hiding this comment.
in Demos, all the sections must be ## and not ###
Collaborator
There was a problem hiding this comment.
Use r2 instead.
Correct the demo .md accordingly as well.
Collaborator
There was a problem hiding this comment.
Use r2 instead. For the Info.plist do as in https://mas.owasp.org/MASTG/demos/ios/MASVS-NETWORK/MASTG-DEMO-0083/MASTG-DEMO-0083/#steps
Correct the demo .md accordingly as well.
Co-authored-by: Carlos Holguera <perezholguera@gmail.com>
…nto port-reassigned-3041
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR closes #2962