Port MASTG-TEST-0076: Testing iOS WebViews (ios) (by @guardsquare)#3608
Open
serek8 wants to merge 29 commits intoOWASP:masterfrom
Open
Port MASTG-TEST-0076: Testing iOS WebViews (ios) (by @guardsquare)#3608serek8 wants to merge 29 commits intoOWASP:masterfrom
serek8 wants to merge 29 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
Collaborator
There was a problem hiding this comment.
Use r2 instead.
Correct the demo .md accordingly as well.
Co-authored-by: Carlos Holguera <perezholguera@gmail.com>
…nto port-reassigned-3041
cpholguera
requested changes
Mar 16, 2026
| public static func mastgTest(completion: @escaping (String) -> Void) { | ||
| DispatchQueue.main.async { | ||
| // Build the alert | ||
| completion("Showing WebView for 2s...") |
| let webView = WKWebView() | ||
|
|
||
| // Optional: Load a URL so the screen isn't just white | ||
| if let url = URL(string: "https://owasp.org/"+(UserDefaults().string(forKey: "username") ?? "") ) { |
Collaborator
There was a problem hiding this comment.
TODO: better example as discussed
| @@ -0,0 +1,35 @@ | |||
| --- | |||
| platform: ios | |||
| title: Attacker-Controlled Input in WebViews | |||
Collaborator
There was a problem hiding this comment.
TODO: Consider new title about URL/URI
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