window.close() can be triggered even didn't open by window.open()
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- javascript
Research direction
Start by saving the supplied HTML proof of concept, opening it in Wavebox, and clicking the javascript:window.close(self) link while comparing the result with Chromium. Then trace the window.close handling in the browser runtime; done means a normal tab no longer closes itself unless it was opened programmatically, and the supplied reproduction no longer closes the tab.
Written by the indexing model from the issue text.
Description
In the Wavebox browser, the window.close() method can be executed successfully even when the current window was not opened via window.open(). This behavior deviates from the standard implementation in most modern browsers (like Chrome, Firefox, Safari), which restrict the use of window.close() to windows opened programmatically. This unexpected behavior could be exploited by attackers to trick users into navigating to a phishing site, and then forcefully close the tab, erasing traces or interrupting user actions.
save this html file :
<html>
<title>Browser Window Object Remote Denial of Service.</title>
<head></head>
<body><br><br>
<h1><center>Browser Window Object Remote Denial of Service</center></h1><br><br>
<h2><center>Proof of Concept</center></br></br> </h2>
<center>
<b>Click the below link to Trigger the Vulnerability..</b><br><br>
<hr></hr>
<hr></hr>
<b><center><a href="javascript:window.close(self);">Browser Window Object DoS Test POC</a></center>
</center>
</body>
</html>
Open then click on link. You should realize that the tab is closed when you click on that link. This behavior is not appears in chromium browser.
- Dominant language
- JavaScript
- Stars
- 1.4k
- Forks
- 136
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from wavebox/waveboxapp
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
wavebox/waveboxapp#1489 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
wavebox/waveboxapp#1485 · 3 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
wavebox/waveboxapp#1484 · 1 comment ·
-
Difficulty 5/5 Over a week Newbie friendliness 15/100
wavebox/waveboxapp#1483 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
wavebox/waveboxapp#1479 · 1 comment ·
All issues in wavebox/waveboxapp
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
[Block] Latest Posts [Type] Bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
sugarlabs/musicblocks#8847 ·