what you don't know can hurt you

Mozilla Firefox Denial Of Service

Mozilla Firefox Denial Of Service
Posted Jan 2, 2020
Authored by Social Engineering Neo

Mozilla Firefox versions prior to 72 suffer from a denial of service vulnerability.

tags | exploit, denial of service
MD5 | 6fe29193b99032dd245ea340b003f7e0

Mozilla Firefox Denial Of Service

Change Mirror Download
# Exploit Title: Mozilla Firefox <72 Denial of Service
# Date: 2/1/20
# Exploit Author: Social Engineering Neo - @EngineeringNeo
# Vendor Homepage: https://mozilla.org
# Software Link: https://firefox.com
# Version: 71.0 and below
# Tested on: Firefox 68.0, 69.0, 70.0, 71.0


Mozilla Firefox <72 Denial of Service by Social Engineering Neo.


Affected Platforms: -
Windows
Linux
MacOS


Tested On: -
Firefox 68.0, 69.0, 70.0, 71.0, Multiple ESR versions.
TOR browser


Summary: -
The regexp 'looksLikeURL' Suffers from a Denial of Service Issue Due to Improperly Handling Specific Characters, Allowing Attackers to Send a Specially Crafted URLs to Crash/Hang a Remote Users Browser.


Short Description: -
All versions of Firefox except ESR & Mobile platforms are affected by a specially crafted URL causing the browser to crash/hang on all desktop platforms.


Long Description: -
The function 'looksLikeURL' in 'toolkit/components/places/UnifiedComplete.jsm' does not properly handle characters ('_' & '?') when these characters are appended onto a URL containing ~26 '.' symbols this can cause the browser to crash, resulting in complete loss of information (unrecoverable) on all other tabs.
This patch replaces the regexp with splitting the string on "." and then checking a smaller regexp against each of the parts.

Snippet of modified code from 'toolkit/components/places/UnifiedComplete.jsm' (lines 526-535)

function looksLikeUrl(str, ignoreAlphanumericHosts = false) {
// Single word including special chars.
return (
!REGEXP_SPACES.test(str) &&
(["/", "@", ":", "["].some(c => str.includes(c)) ||
(ignoreAlphanumericHosts
- ? /^([\[\]A-Z0-9.:-]+[\.:]){3,}[\[\]A-Z0-9.:-]+$/i.test(str) #OLD
+ ? /^([\[\]A-Z0-9.-]+\.){3,}[^.]+$/i.test(str) #NEW
: str.includes(".")))
);
}

More info @ https://bugzilla.mozilla.org/show_bug.cgi?id=1587867

Proof of Concept: -
=====
Remove 'https:// & .com/' from the following URL 'https://firefoxcrash.000webhostapp.com/.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a_'
Make sure to include the underscore '_' at the end of the URL string.

VIDEO: - https://youtu.be/KJkCVUIaUEI
=====


Expected Result: -
It shouldn't be possible to crash/hang remote browser upon inserting URL into address bar.


Observed Result: -
Remote browser crashes upon loading character '_' or '?' appended to end of URL.



Special Thanks to Drew Willcoxon (adw) and Marco Bonardo (mak) for the quick response & patch.
Login or Register to add favorites

File Archive:

June 2021

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Jun 1st
    35 Files
  • 2
    Jun 2nd
    14 Files
  • 3
    Jun 3rd
    40 Files
  • 4
    Jun 4th
    22 Files
  • 5
    Jun 5th
    1 Files
  • 6
    Jun 6th
    1 Files
  • 7
    Jun 7th
    19 Files
  • 8
    Jun 8th
    14 Files
  • 9
    Jun 9th
    39 Files
  • 10
    Jun 10th
    20 Files
  • 11
    Jun 11th
    22 Files
  • 12
    Jun 12th
    2 Files
  • 13
    Jun 13th
    1 Files
  • 14
    Jun 14th
    32 Files
  • 15
    Jun 15th
    34 Files
  • 16
    Jun 16th
    9 Files
  • 17
    Jun 17th
    33 Files
  • 18
    Jun 18th
    0 Files
  • 19
    Jun 19th
    0 Files
  • 20
    Jun 20th
    0 Files
  • 21
    Jun 21st
    0 Files
  • 22
    Jun 22nd
    0 Files
  • 23
    Jun 23rd
    0 Files
  • 24
    Jun 24th
    0 Files
  • 25
    Jun 25th
    0 Files
  • 26
    Jun 26th
    0 Files
  • 27
    Jun 27th
    0 Files
  • 28
    Jun 28th
    0 Files
  • 29
    Jun 29th
    0 Files
  • 30
    Jun 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2020 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close