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.
Add test.html for insecure postMessage example #13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Uh oh!
There was an error while loading. Please reload this page.
Add test.html for insecure postMessage example #13
Changes from all commits
c1d1b7eFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing
Check failure on line 28 in test.html
Missing Origin Validation in postMessage Event Listener (Batch 5)
Raw output
**Category:** vulnerability **Severity:** CRITICAL **File:** test.html:28 **Proof of Concept:** An attacker from any origin can send malicious messages: window.opener.postMessage('<img src=x onerror=alert(1)>', '*') **Finding ID:** a50e8400-e29b-41d4-a716-446655440071Check notice on line 30 in test.html
Origin Information Displayed Without Proper Validation (Batch 5)
Raw output
Check warning on line 32 in test.html
Insufficient Validation of Message Data Type and Structure (Batch 5)
Raw output
**Category:** weakness **Severity:** MEDIUM **File:** test.html:32 **Proof of Concept:** Send unexpected data types or malicious objects: postMessage({__proto__: {polluted: true}}, '*') **Finding ID:** a50e8400-e29b-41d4-a716-446655440073Check failure on line 33 in test.html
DOM-based XSS through Unsafe innerHTML Assignment (Batch 5)
Raw output
**Category:** vulnerability **Severity:** HIGH **File:** test.html:33 **Proof of Concept:** window.opener.postMessage('<img src=x onerror=alert(document.cookie)>', '*') will execute arbitrary JavaScript **Finding ID:** a50e8400-e29b-41d4-a716-446655440072Check notice on line 47 in test.html
Secure Implementation Pattern Available in Comments But Not Applied (Batch 5)
Raw output