Skip to content

Port MASTG-TEST-0076: Testing iOS WebViews (ios) (by @guardsquare)#3608

Open
serek8 wants to merge 29 commits intoOWASP:masterfrom
serek8:port-reassigned-3041
Open

Port MASTG-TEST-0076: Testing iOS WebViews (ios) (by @guardsquare)#3608
serek8 wants to merge 29 commits intoOWASP:masterfrom
serek8:port-reassigned-3041

Conversation

@serek8
Copy link
Collaborator

@serek8 serek8 commented Dec 31, 2025

This PR closes #2962

@serek8 serek8 marked this pull request as draft December 31, 2025 13:52
@serek8 serek8 marked this pull request as ready for review January 2, 2026 08:26
@serek8 serek8 requested a review from cpholguera January 2, 2026 08:26
serek8 and others added 2 commits February 20, 2026 13:46
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use r2 instead.

Correct the demo .md accordingly as well.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@cpholguera cpholguera changed the title Port (reassigned) MASTG-TEST-0076: Testing iOS WebViews (ios) (by @guardsquare) Port MASTG-TEST-0076: Testing iOS WebViews (ios) (by @guardsquare) Mar 14, 2026
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: regenerate

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: regenerate

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: fix addresses

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: regenerate

public static func mastgTest(completion: @escaping (String) -> Void) {
DispatchQueue.main.async {
// Build the alert
completion("Showing WebView for 2s...")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: no timers

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") ?? "") ) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: better example as discussed

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: regenerate

@@ -0,0 +1,35 @@
---
platform: ios
title: Attacker-Controlled Input in WebViews
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: Consider new title about URL/URI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MASTG v1->v2 MASTG-TEST-0076: Testing iOS WebViews (ios)

2 participants