X Tutup
Skip to content

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

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

Port (reassigned) MASTG-TEST-0076: Testing iOS WebViews (ios) (by @guardsquare)#3608
serek8 wants to merge 17 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

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.
Copy link
Collaborator

Choose a reason for hiding this comment

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

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.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Move to a MASTG-BEST, add or create new and link in the metadata accordingly.

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

test: MASTG-TEST-0xx319
---

### Sample
Copy link
Collaborator

Choose a reason for hiding this comment

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

in Demos, all the sections must be ## and not ###

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed

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

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. 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.

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

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

X Tutup