What is a Browser Security Sandbox?! (Learn to Hack Firefox)

Поділитися
Вставка
  • Опубліковано 27 лип 2024
  • It's surprisingly easy to do security research on Firefox trying to find sandbox escapes. You should give it a try!
    Long video version (stream Q&A): • Examining JavaScript I...
    The Original Article: blog.mozilla.org/attack-and-d...
    Fuzzing IPC: blog.mozilla.org/attack-and-d...
    Mozilla Bug Bounty: www.mozilla.org/en-US/securit...
    00:00 - Intro
    01:44 - What is a Process Sandbox?
    03:04 - How to Implement a Sandbox?
    03:43 - Introducing Inter Process Communication (IPC)
    05:17 - Why Browsers Need a Complex Sandbox Architecture
    07:19 - Browser Exploitation requires Sandbox Escape
    08:42 - Strategy 1: OS Sandbox Implementation Bypass
    08:59 - Strategy 2: Attacking the IPC Implementation Layer
    09:48 - Strategy 3: IPC Logic Bugs
    10:10 - HTML/JS Components in Firefox
    11:21 - IPC Messages Implemented in JavaScript
    11:58 - Setting Up Firefox Nightly For Debugging
    13:20 - alert() IPC Message Handler
    14:04 - IPC Message Sender
    15:21 - Send Malicious IPC Messages
    16:12 - CVE-2019-11708 Prompt:Open Sandbox Escape
    17:13 - Outro
    =[ ❤️ Support ]=
    → per Video: / liveoverflow
    → per Month: / @liveoverflow
    =[ 🐕 Social ]=
    → Twitter: / liveoverflow
    → Website: liveoverflow.com/
    → Subreddit: / liveoverflow
    → Facebook: / liveoverflow
  • Наука та технологія

КОМЕНТАРІ • 204

  • @LiveOverflow
    @LiveOverflow  3 роки тому +56

    Watch the long version with Q&A and more context on my second channel @LiveUnderflow ua-cam.com/video/VEaoDFdq95g/v-deo.html

    • @user-uo8ny1kj4c
      @user-uo8ny1kj4c 3 роки тому

      you should make a video explaining the difference between arch linux and other linux distros

    • @1CT1
      @1CT1 3 роки тому

      Accept Jesus Christ as your Lord and Savior and you will be saved. John 3:16 (Share the good news of the gospel around the world!)...... ,,..
      Have a wonderful rest of your day/night everyone, may the LORD bless you all, and farewell!.,,, ,,,,.. ,,,,,

    • @user-uo8ny1kj4c
      @user-uo8ny1kj4c 3 роки тому +1

      @@1CT1 nobody wants anything to do with your cult

    • @johanbtheman
      @johanbtheman 3 роки тому

      I am curious about webassembly and sandboxing. Have read something about that multiprocessing of webassembly isnt secure in sandboxing. Anyway i Think that wasm is the future. Would be Nice if you could do a video about the security concerns.

  • @aniksamiurrahman6365
    @aniksamiurrahman6365 3 роки тому +36

    So this is what the "--no-sandbox" tag in de-googled Chrome means. See, I at least learned one thing from this video, it didn't go entirely over my head, LOL!

  • @stankojankovic
    @stankojankovic 3 роки тому +36

    I really liked this one. It was not on the heavy (technical) side. Working in infosec full time, I sometimes don't have the energy to dig through code and do heavy technical lifting in my free time, but some light reading or videos like this one are perfect.

  • @antricks2546
    @antricks2546 3 роки тому +145

    Whoa, Firefox seems like an open book now! (Not like I read it but at least it's open now...) I always thought it's some magic, super 1337 stuff (which is not really typical for me because I normally like to explore software / tech). Thanks for changing my view there. I guess that's an extremely interesting rabbit hole to go down into in the near future.

    • @otesunki
      @otesunki 3 роки тому +1

      doown the rabbit hole 🐇

    • @ChristopherGray00
      @ChristopherGray00 Рік тому

      not that this video isn't good at explaining it but it's been documented for a while also the code was always open to look at

    • @antricks2546
      @antricks2546 Рік тому

      @@ChristopherGray00 Sure, but I didn't even have the idea of looking into it back then. I wrote my comment to express how thankful I was for him to open my eyes there. No one starts out as a genius...

  • @divakarbisht7951
    @divakarbisht7951 3 роки тому +14

    The way you explain a Concept Is Just Super Great, loved your videos Keep up the Good work :)

  • @Jack-fs3pp
    @Jack-fs3pp 3 роки тому +5

    I've been watching these videos for a while now, Decided to signup as a patreon! Love it whenever you upload new content! Always quality stuff!

  • @TracyNorrell
    @TracyNorrell 3 роки тому +3

    Great stuff. Always glad to see you pop up in my notifications.

  • @ShortHax
    @ShortHax 3 роки тому +230

    Damn, I was thinking the exploit would be Firefox’s old oversimplified logo

    • @Agent-ew6jw
      @Agent-ew6jw 3 роки тому +8

      Firefox old oversimplified logo? Is that a joke or was that supposed to be a idiotic comment?
      Is there any logic in what you said?

    • @joachimprz
      @joachimprz 3 роки тому +23

      @@Agent-ew6jw Don't be so toxic it's a joke about Firefoxes new Logo

    • @Agent-ew6jw
      @Agent-ew6jw 3 роки тому +6

      @@joachimprz I am not being rude I am being logical and I'm being technical and in a technical and rational way.
      I was worried whether there could be a exploitative method of what the user was talking about.
      But I now am aware it is a joke or a pawn to refer to the firefox's new logo.

    • @PlanetComputer
      @PlanetComputer 3 роки тому +2

      ok

    • @otesunki
      @otesunki 3 роки тому +6

      @@kreuner11 pov: you dont understand icons are still oversimplified

  • @heyserge
    @heyserge 3 роки тому

    You seem like such a chill dude man, gg for being one of the greatest youtube channels in your field

  • @parthghughriwala6799
    @parthghughriwala6799 3 роки тому +1

    Man soo goood!!🍻
    You're helping the community sd much as you can by making and sharing such content! 🙌

  • @jordanhanna6884
    @jordanhanna6884 3 роки тому +1

    This is really well delivered and produced, great job with a complex topic!

  • @MrTurbo_
    @MrTurbo_ 3 роки тому +5

    This is really cool! i've just been playing around with reverse engineering websites till now as i'm not familiar with debugging compiled code but this might be something i'd actually be able to do, i'm definitely going to give this a try!

  • @alexwhb122
    @alexwhb122 3 роки тому +3

    Absolutely fantastic video! I learned so much! Thank you for posting.

  • @mojed6666
    @mojed6666 3 роки тому

    I hope he never stops to explain stuff :-)

  • @FaZeInvite17
    @FaZeInvite17 3 роки тому +14

    Really nice, learned a lot thank you

  • @nmnxe
    @nmnxe 3 роки тому

    Just wanted to share that the knowledge you are sharing is pure gold!

  • @krlst.5977
    @krlst.5977 3 роки тому

    That was fascinatingly, great content!

  • @crfslickh4x708
    @crfslickh4x708 3 роки тому +1

    Great video as always, although I do miss the drawing and visual examples while explaining things. You still explain things well, but my mind wanders off without the visual part haha.

  • @gouravkhator
    @gouravkhator 2 роки тому

    I can't imagine that this type of videos are in youtube. It is worthier than even the paid content on best websites. He has become my idol

  • @isiraadithya
    @isiraadithya 3 роки тому +4

    As Always 👌
    Btw, What happened to your fingers?

  • @arivanhouten6343
    @arivanhouten6343 3 роки тому +7

    Finally another masterpiece!

  • @danielfernandes1010
    @danielfernandes1010 3 роки тому

    That was an interesting one. Thank you!

  • @secCheGuevara
    @secCheGuevara 3 роки тому

    This was really cool! Thanks :)

  • @maurolimaok
    @maurolimaok Рік тому

    I'm still learning Linux and Terminal prior to learn to code, but liked the channel very much!
    Thanks for the videos!

  • @PhoenixClank
    @PhoenixClank 3 роки тому +4

    When I first found out that a browser's own UI is just more HTML/JS I was shocked, but it actually makes a lot of sense! When you already _have_ a program to render HTML and execute JS, you can just use these technologies to implement the program's own UI, and don't have to rely on whatever toolkit happens to be installed on the OS you're running on.

  • @antoniofranciscorenteribei792
    @antoniofranciscorenteribei792 3 роки тому

    Very well explained thanks!!

  • @matthewboyd1834
    @matthewboyd1834 3 роки тому +1

    this is the content I want thank you so much interesting and informative great job

  • @dylanlawhon8010
    @dylanlawhon8010 3 роки тому +1

    Awesome content, thanks!

  • @alexeynavalny4732
    @alexeynavalny4732 3 роки тому

    very intresting.
    expecting more like this

  • @DaJC87
    @DaJC87 3 роки тому

    Another great vid. Thanks a lot

  • @w3z315
    @w3z315 3 роки тому

    Thanks a lot for this video! Very interesting!

  • @neilthomas5026
    @neilthomas5026 2 роки тому +1

    Thanks for your amazing content

  • @itaybarok9405
    @itaybarok9405 Рік тому

    Great Video!
    Sandbox is cool and fun

  • @chittodihoc
    @chittodihoc 3 роки тому +1

    thank a lot, you gave me more knowledge

  • @leenalkaraki5652
    @leenalkaraki5652 3 роки тому

    thank you so much for making this video!!!!

  • @mohameai5997
    @mohameai5997 3 роки тому

    that's the good stuff that i expect from live over flow

  • @francosnowden6117
    @francosnowden6117 3 роки тому

    Good one. Thx dude

  • @mushenji
    @mushenji 3 роки тому +1

    Absolutely Awesome

  • @balloney2175
    @balloney2175 3 роки тому +1

    Mr. LiveOverflow is very knowledgeable sent from heaven.

  • @cksuwarnaraj
    @cksuwarnaraj 3 роки тому +1

    really cool brother

  • @yjk_ch
    @yjk_ch 3 роки тому +1

    I am blown away by the fact that web browser itself is written using web technologies.

  • @adihacks3755
    @adihacks3755 3 роки тому

    Would like to see more sandbox

  • @awakeus8080
    @awakeus8080 3 роки тому

    A very important video

  • @wlockuz4467
    @wlockuz4467 3 роки тому +1

    I was watching this on Firefox and when you showed dev tools I was confused because I thought my browser just randomly opened dev tools lol

  • @hassaannoor
    @hassaannoor 3 роки тому +1

    This deserves to be a netflix series.

  • @sidhantsrivastava7426
    @sidhantsrivastava7426 3 роки тому

    Awesome video

  • @KarlMaged
    @KarlMaged 3 роки тому

    Very cool!

  • @allezvenga7617
    @allezvenga7617 3 роки тому

    Thanks for your sharing

  • @elliot_yoyo
    @elliot_yoyo 3 роки тому

    Super interesting thanks

  • @EvilSapphireR
    @EvilSapphireR 2 роки тому

    I don't understand. So the message loop in the parent process responsible for handling javascript messages coming from the sandboxed processes is implemented in Javascript itself?

  • @Anonymous-ib7dc
    @Anonymous-ib7dc 3 роки тому

    cleanes video einfach nur

  • @SB-qm5wg
    @SB-qm5wg 3 роки тому

    cool video. ty

  • @saklandking9303
    @saklandking9303 3 роки тому

    Waow awesome video.

  • @vladx3539
    @vladx3539 3 роки тому +1

    Mind blowing

  • @RandomGeometryDashStuff
    @RandomGeometryDashStuff 2 роки тому +3

    I found weird bug in firefox javascript console: if you copy+paste (don't press enter)
    Function.prototype.call.bind(Function.prototype.call,alert,window,'lol')()
    if will show alert without you pressing enter 🙃

  • @gmdzbanwic
    @gmdzbanwic 2 роки тому +2

    restore session exploit is latest for firefox. and not many know about it essentialy if u turn down machine via power button or loss of power and it asks to restore session of pre-loaded website the payload loads then. it is similar to the sad face of crashing chrome sometimes. yes it is live yes it is unpatched

  • @wellsilver3972
    @wellsilver3972 3 роки тому +1

    Imagine a sandbox as a walled in area, sure there are gates but how can you get through the gates? Within the walled in area you can do whatever you want, however its a small enough area where you can only do the purpose your suppost to do. The problem is getting out of the wall

  • @apt0x125
    @apt0x125 3 роки тому +1

    Knowledgeable!

  • @attention_shopping
    @attention_shopping 3 роки тому +1

    that's awesome

  • @bradley1995
    @bradley1995 Рік тому +1

    Java drive bys... I remember having a few of them back in the day.

  • @joshsegarino8468
    @joshsegarino8468 3 роки тому +3

    but why? why would you do that?

  • @steven-lin
    @steven-lin 3 роки тому

    So cool.

  • @studyshit4418
    @studyshit4418 3 роки тому +3

    why are channels like these so underrated. Makes me ask tf god?

    • @TheVertical92
      @TheVertical92 3 роки тому +5

      dafuq 😮
      His channel is one of the biggest "tech in detail" channels i know, or even the biggest.
      I wouldnt say this channel is underrated. I mean its a niche topic for YT in general.

    • @studyshit4418
      @studyshit4418 3 роки тому +1

      @@TheVertical92 I am talking about his views. Subs don't make money. It's the views

    • @SuperSohaizai
      @SuperSohaizai 3 роки тому +1

      @@studyshit4418 because it is less interesting than let's say cat video. Not exactly a joke but yeah because it is a specific area (security) in a specific (IT) field. It is just less appealing to mass public because most people don't care. The ones that do, the numbers are not that big unfortunately

  • @nibirray1877
    @nibirray1877 3 роки тому

    this browser sandbox model is also there in electron as it uses the V8 engine but why do electron uses this sand boxing model when there framework was created to create desktop apps which are supposed to access the filesystem

  • @alexandremarinhodesouzajun8106
    @alexandremarinhodesouzajun8106 3 роки тому

    very goood

  • @garagedoorvideos
    @garagedoorvideos 2 роки тому +1

    16:23 whoo hooo

  • @HarryBallsOnYa345
    @HarryBallsOnYa345 3 роки тому +1

    *shouts in a rage* IFRAAMMEES!

  • @01eksii
    @01eksii 7 місяців тому

    so if a website demands me to remove sandbox attribute from the , it wants to hack me, correct?

  • @imyasharya
    @imyasharya 3 роки тому +1

    What are you wearing in your fingers?

  • @shapelessed
    @shapelessed 3 роки тому +27

    Mhmm... Now that I watched it and you reminded me how browsers use HTML/JS for their own interfaces I am wondering...
    How slow would a browser built in Electron actually be...
    A browser built in... a browser?

    • @shapelessed
      @shapelessed 3 роки тому +9

      Obviously I'm oversimplifying saying that Electron is "a browser", but whoever worked with it would get the point...

    • @giacomo.delazzari
      @giacomo.delazzari 3 роки тому +1

      You might want to take a look at the Min browser. It's actually quite fast and light. At least it was at the time.. I remember using it on my previous laptop (dual core Celeron with 2GB of RAM) because Chrome was too heavy

    • @peulleieoyukino6369
      @peulleieoyukino6369 3 роки тому +3

      take a look at the Discord app :)

    • @shapelessed
      @shapelessed 3 роки тому +3

      @@peulleieoyukino6369 No because that's not the point...

    • @peulleieoyukino6369
      @peulleieoyukino6369 3 роки тому +1

      @@shapelessed The Discord app is a browser built in electron
      sure it does lack a way to search the web, but it can run web pages to a certain extent

  • @TheZenytram
    @TheZenytram 3 роки тому +1

    So thats why FireFox are eating ram as candy now

  • @SIRBOB102
    @SIRBOB102 2 роки тому

    Firefox also has a lot of rust code now but it might not be used for IPC

  • @skylo706
    @skylo706 Рік тому +1

    @LiveOverflow Could you, if you're interested in this as well, make a video about windows 95 vulnerabilities and exploits? Would be very interested in seeing how insecure old systems like this really are compared to todays standards

  • @SrRunsis
    @SrRunsis 3 роки тому +1

    Disable adblockers to support this guy!

  • @igorgiuseppe1862
    @igorgiuseppe1862 3 роки тому +1

    if the browser create an sandbox for every page it loads, can some attacker "DDOS" the memory for sandbox pointers?
    i mean, how many sandboxes can an browser realy create before it crashes?
    what if i for example, put 1 million s for different urls in the page?

    • @lekhakaananta5864
      @lekhakaananta5864 3 роки тому +1

      Can you turn crashing into a security issue though? Remember that other Liveoverflow video where they decided to "fix" a browser security bug by crashing the browser? Can't steal data or install malware through the browser when the browser is crashed...

    • @itsfuckingtomboythursday
      @itsfuckingtomboythursday 2 роки тому +1

      that's just troll, lol

  • @markholm6955
    @markholm6955 2 роки тому

    What about known vulnerabilities that are not 0 days but still have not been fixed?

  • @ALZlper
    @ALZlper 3 роки тому +7

    I hope your fingers are doing well.

    • @skywizard3319
      @skywizard3319 3 роки тому +2

      also i think he might have a cat cause of the scrtach on his arm

  • @foxinrot
    @foxinrot 3 роки тому +3

    Browser exploits?
    *webkit on (game)consoles intensifies*

  • @bennort6035
    @bennort6035 3 роки тому +1

    Hey, what do you think about the BRAVE browser? Is it more/less secure than Firefox/Chrome? I would love to hear your opinion on that browser. Thanks!

    • @LiveOverflow
      @LiveOverflow  3 роки тому +9

      It’s just a skin. I prefer using one of the original broesers

    • @rand0mtv660
      @rand0mtv660 3 роки тому +1

      Brave is built on Chromium which is what Chrome and new MS Edge use under the hood.

    • @bennort6035
      @bennort6035 3 роки тому +1

      @@LiveOverflow But still it seems to be promoting more security/privacy? Is there some truth behind it or just marketing?

    • @SapphFire
      @SapphFire 3 роки тому +1

      ​@@bennort6035 To me it seems like just marketing. They've done very shady things behind people's backs, like replacing urls for different sites with their referral urls. They're also funded by a US department of defense contractor, which specializes in big data analytics. In general their for-profit model very much goes against what they claim they stand for, as they can just do a 180 turn once they find something else to be more profitable than privacy/security.
      They like to act privacy friendly on the surface, but they completely violate what they claim to stand for whenever they can get away with it.

  • @sandboxescapersandboxescap4705
    @sandboxescapersandboxescap4705 3 роки тому

    Cool

  • @robertwinking6832
    @robertwinking6832 3 роки тому +1

    How do I hire your company... I am 100% sandboxed and its being used to cripple me.

  • @RoGiftRBLX
    @RoGiftRBLX 3 роки тому +1

    Hey LiveOverflow, what happened to your elbow? It seems to be cut open or something.

  • @dukeetannerpuppypd2275
    @dukeetannerpuppypd2275 3 роки тому

    Thank you my friend I find it highly ironic that I switched back onto your channel here and there was a thumbs-down and I didn't do that. But that's okay I know who is doing it. Follow the money. You're more than welcome to get into anything that you want on my end and sign these mofos. Although I already know who they are. Take care all of my best to you and yours stay blessed

  • @suncrafterspielt9479
    @suncrafterspielt9479 3 роки тому +2

    Can someone please explain who Freddy is?

  • @cho4d
    @cho4d 3 роки тому +1

    after watching this, and thinking how long its been since i clean installed windows... im like... not sure man

  • @advdebug
    @advdebug 2 роки тому

    but i think if all for example s on the page gets it's own process this can open firefox to DoS attacks, but at least my websites credentials are kinda safe.

  • @chronically_late
    @chronically_late 3 роки тому

    I agree with you on ozone in low concentrations, but to describe ozone in higher concentrations as merely an irritant is a rather large understatement.

  • @btarg1
    @btarg1 3 роки тому +1

    Seeing this just after the news about Firefox being overtaken by Edge... it seems like Firefox is getting a lot of shit recently

  • @Fist_34
    @Fist_34 3 роки тому +1

    Hey bro how about "android exploitation" explanation. :) Plzz

  • @typingcat
    @typingcat 2 роки тому

    Can't the W3C drop from the standard? I don't imagine many legitimate use cases for it.

    • @gd44481
      @gd44481 2 роки тому

      Ads

    • @LiveOverflow
      @LiveOverflow  2 роки тому +1

      s are actually a really great security feature nowadays. Checkout sandboxed s.

  • @mohammedibrahimkhan7018
    @mohammedibrahimkhan7018 3 роки тому

    Still here.

  • @cabonamigo
    @cabonamigo 2 роки тому +1

    Can we sandbox the sandbox, and at least garantee that even if the browser sandbox is compromised, the entire system won't, in a Easy Way ?

  • @soaphornseuo8630
    @soaphornseuo8630 3 роки тому

    🥰🥰🥰

  • @ilanisme3698
    @ilanisme3698 3 роки тому +1

    i just wonder what happened to your hand.. lol

  • @godnyx117
    @godnyx117 3 роки тому

    Firefox users:
    Current objective: survive

  • @MystixHalo
    @MystixHalo 3 роки тому +2

    679th!!

  • @itsmeyaw_id
    @itsmeyaw_id 3 роки тому

    OMG Sauercloud XD

  • @KangJangkrik
    @KangJangkrik 3 роки тому

    Even browser do better than our COVID lockdown
    oh humanity

  • @johngrave5554
    @johngrave5554 3 роки тому

    Me who took only a few classes of Coding during HS, oh yes the javascript engine

  • @piotrbrzozowski920
    @piotrbrzozowski920 3 роки тому +2

    What happened to your fingers?

    • @LiveOverflow
      @LiveOverflow  3 роки тому +11

      Played too rough in the sandbox