if you view this image, YOU GET HACKED.

Поділитися
Вставка
  • Опубліковано 23 лис 2024

КОМЕНТАРІ •

  • @LowLevelTV
    @LowLevelTV  6 місяців тому +38

    wanna get good at programming? check out lowlevel.academy and use code THREADS20 for 20% off lifetime access. or dont. im not a cop

    • @cerealpeer
      @cerealpeer 6 місяців тому

      when?

    • @docbrown1157
      @docbrown1157 6 місяців тому +1

      This is an Ad!!! Why are people "Thumbs UPing" an AD???? Huh, I guess the channel owner is getting a kick back from them...

    • @Serpsss
      @Serpsss 6 місяців тому

      ​​@@docbrown1157
      If you're not interested you don't have to click but an upvote on an ad for the Creator's livelihood is a small sign of appreciation of the time & effort that goes into educational videos like this that have been made freely available.
      At least it's relevant and not some annoying sh*te like nordvpn or some sweepstakes scam.

    • @musicneverd_es
      @musicneverd_es 6 місяців тому

      I could offer a cheap tutorial on how to sync your audio and video already the during recording process :)

    • @GEMSofGOD_com
      @GEMSofGOD_com Місяць тому

      Was always sus of webp to the level of canceling it completely in my projects.

  • @KazyEXE
    @KazyEXE 6 місяців тому +1822

    I miss the days of jailbreaking my iPhone by just going to a website, but in hindsight, maybe that wasn't a good idea.

    • @ryangrogan6839
      @ryangrogan6839 6 місяців тому +165

      Exploiting webkit has been a pretty popular way to jailbreak things. You can even do it on the PS3. I used to have to use an E3 flasher back in the day. I totally prefer webkit exploits any day over popping open something and attaching random shit to the onboard chips

    • @syrus3k
      @syrus3k 6 місяців тому +61

      There's been loads of very scary bugs in software that nobody ever seems to have cared about the potential risks. For example, you have no idea whether you've been hacked or not. Really.

    • @Relkond
      @Relkond 6 місяців тому +32

      It was an ok idea. Buuut it revealed that the phones security was garbage.

    • @theairacobra
      @theairacobra 6 місяців тому

      @@ryangrogan6839 Yeah, i modded my PS3 with HEN all thanks to the browser

    • @potential900
      @potential900 6 місяців тому +46

      @@syrus3k Ah yes, if only there was a popup on the screen every time the PC got hacked, lol

  • @mrsvcd
    @mrsvcd 6 місяців тому +684

    The TIFF image format was used to hack the PSP early on.

    • @ST-actual
      @ST-actual 6 місяців тому +37

      Came here to say this!! Haha. The tiff overflow!

    • @mgancarzjr
      @mgancarzjr 6 місяців тому +35

      I still remember even somebody got a PSP back from being serviced with a magic battery in it that was immediately sent to the cracking scene.

    • @danielditlev
      @danielditlev 6 місяців тому +3

      It definitely was 😊

    • @memes_gbc674
      @memes_gbc674 6 місяців тому +1

      @@mgancarzjr yeah that was crazy

    • @ColdRacoons
      @ColdRacoons 6 місяців тому +1

      Also the iPhone/iPod Touch. 1.0 - 1.1.1. Was patched in 1.1.2.

  • @MrWoodward42
    @MrWoodward42 6 місяців тому +598

    Seem to recall a similar bug in Internet Explorer (IE 5.0.x) from nearly 20 years ago that allowed a carefully crafted JPEG file to exploit a Windows system.

    • @jsrodman
      @jsrodman 6 місяців тому +57

      Yeah, similar problems have existed in libjpeg and libpng, both exploitable in practice.
      Shows the value of both memory safe programming environments and simple data formats.

    • @Aplysia
      @Aplysia 6 місяців тому +14

      I seem to recall a similar bug in IE 5 once or twice a week, back in the day. 😂

    • @uranoxyd
      @uranoxyd 6 місяців тому +5

      Jeah, i think the bug was in the GDI or GDI+ library, but maybe this was another bug.

    • @sanicswaghog5278
      @sanicswaghog5278 6 місяців тому +6

      There was a similar exploit in IE and Firefox involving animated mouse cursors.

    • @Juksemakeren
      @Juksemakeren 6 місяців тому +7

      the first iphone jailbreak was through a image parsing exploit

  • @TheEVEInspiration
    @TheEVEInspiration 6 місяців тому +278

    So....where is the payload then?
    A double free by itself will not hand over control to desired code, I like to see this explained.

    • @Omena0
      @Omena0 6 місяців тому +12

      Fr

    • @MSheepdog
      @MSheepdog 6 місяців тому +18

      I would assume either in the image data, or the table itself, but I also would have liked the video to cover it.

    • @jnharton
      @jnharton 6 місяців тому +2

      That's an interesting question, yes.
      You have to somehow get the compiled form of the code you want to run into a region of memory that will be executed from.

    • @craigslist6988
      @craigslist6988 6 місяців тому +7

      He made a previous video explaining exactly how the webp exploit works.

    • @bernard3992
      @bernard3992 6 місяців тому +3

      He explained the hardest part.

  • @KFLawless1412
    @KFLawless1412 6 місяців тому +125

    Exploits that target software used for handling media are so interesting to me because they're such an unintuitive way to hack something. The Car Hacking Village had a case study where a similar vulnerability was exploited against a tesla

    • @eanredur9920
      @eanredur9920 6 місяців тому +3

      In this case, it was a bug. But especially with Machine Learning, there can be 100% correct code, but the AI is still vulnerable to image/video/data stream manipulation. Fascinating stuff!
      I don't know about the case with tesla, but it is (or was) possible to confuse many AIs used for street sign recognition in a way that made them completely useless (Stop signs to 50 signs and similar things).
      Luckily, as far as I know, it is near impossible outside of laboratory circumstances, as it relies on the specific learned topology of the target AI. It is very weakly transferrable and near impossible to generate without access to the AI.
      Do you maybe remember the paper? It sounds very interesting, but I could not pin it down with a quick google search. "Hacking Tesla with image" seems too generic.

    • @omegahaxors9-11
      @omegahaxors9-11 5 місяців тому +1

      The problem with hacking a tesla is that you can never tell if it was you causing it to fail, or if it just failed on its own.

    • @omegahaxors9-11
      @omegahaxors9-11 5 місяців тому

      @@eanredur9920 Machine Learning turned out to be the biggest crock of shit once it started being rolled out, it can't even hold a conversation without its mind wandering into fucking Narnia, and you expect it to write perfect code??

  • @samiraperi467
    @samiraperi467 6 місяців тому +105

    3:34 He's trying say "matryoshka dolls".

    • @illiadenysenko7776
      @illiadenysenko7776 6 місяців тому +18

      maryastroyka dolls :D

    • @fcantil
      @fcantil 6 місяців тому +7

      Mary Striker Dolls! 🤘

    • @Mackerdaymia
      @Mackerdaymia 6 місяців тому +19

      ngl, Perestroika Dolls hit me hard. The idea of the dolls redesigning themselves so they no longer stack.

  • @darkpixel2k
    @darkpixel2k 6 місяців тому +150

    Decades ago I was told "we use Windows at this company because it's secure and stable. You cannot run Linux". So I sent out an email to the entire company with an urgent sounding headline. It contained an HTML IMG tag with the source set to C:\CON\CON
    There was absolute chaos as nobody could open Outlook after their computers blue-screened and restarted... Because it was the last message in their inbox, and it would display it before it got around to polling the exchange server for new messages. It would even crash if you went in through the web interface.

    • @em7dim9
      @em7dim9 6 місяців тому +37

      Ironically this particular exploit also affects Linux. It couldn't run as root of course but it could sure erase your home folder!

    • @squoosh8285
      @squoosh8285 6 місяців тому +1

      🗣️😭☠️🙏🛐‼️ deserved

    • @ggsap
      @ggsap 6 місяців тому +2

      @@em7dim9 ???

    • @em7dim9
      @em7dim9 6 місяців тому +16

      @@ggsap Running Linux wouldn't have protected you from the exploit in the video. The comment was about Linux offering more protection.

    • @ggsap
      @ggsap 6 місяців тому +11

      @@em7dim9 You made "this particular exploit" sound like the exploit OP was referring to

  • @peel90
    @peel90 6 місяців тому +59

    thanks for making this awesome content LLL. I used to think cybersecurity and low level programming were really dry but the way you narrate how these major events unfolded makes it so engaging.

    • @LowLevelTV
      @LowLevelTV  6 місяців тому +17

      its all so magical

    • @BirdsPawsandClaws
      @BirdsPawsandClaws 6 місяців тому +3

      I was thinking the same thing. I like the narration as well! Now I have to research more.

  • @MeriaDuck
    @MeriaDuck 6 місяців тому +50

    I'm so old that I think I remember something like this has also happened to JPEG images; maybe in the exif data. May be all the way back to the very early days of the interwebs. Edit: discovered in 2004 apparently.

  • @voidkid420
    @voidkid420 6 місяців тому +109

    Quite a lot of evil has happened with a 1x1 image, over the years.

    • @2Fast4Mellow
      @2Fast4Mellow 6 місяців тому +8

      True, but you don't know it is a 1x1 pixel image unless you parse the image. Size is also misleading, because many image formats have many meta-data fields that allow me balloon the image to a point you no longer consider it suspicious. Browsers might be updates by now, but there is a lot of software that are embedding webbrowser components that might not be updated, like mail and chat applications. Linux users get most of their applications from the distro repository which will automatically update the applications. Under Windows this is much more messy and we all know that people don't like to upgrade their software because it is often asked when you want to use the application. VLC for example tells me when I'm want to watch a video that there is a newer version and I only have a yes or no option, why not a install on exit of application?

    • @voidkid420
      @voidkid420 6 місяців тому

      @@2Fast4Mellow Aye, the webview world is due a massive wake up ... I mentioned the webP thing a while ago, barely got a response ... till I started listing all the things that use it.

    • @JxH
      @JxH 6 місяців тому

      A company that I know... ...sends out emails that contain 1x1 tracking pixels. The reason I know this is that the same company has MS-Outlook policies that prevent the automatic downloading of images, instead marking the email's missing images with little squares on each corner. At the bottom of each email is a 1x1 pixel collection of four squares, that contains a link to an online (served) image that contains a lengthy and obviously unique identifier in the filename. In summary: 1) Company uses tracking pixels on all Corporate Communication emails, and 2) Company's MS-Outlook reveals this to anyone that knows about the general topic of 1x1 pixel images. SMH...

    • @rnts08
      @rnts08 6 місяців тому

      You can still do a ton of damage with a 1x1, depending on if you host it or not.

    • @omegahaxors9-11
      @omegahaxors9-11 5 місяців тому +1

      If you think that's bad you should see how Pokemon handles 0x0 images.

  • @OsamaDh-h5k
    @OsamaDh-h5k 6 місяців тому +21

    0:35 Bro's parents named this guy LowLevelLearning

  • @andrewzelitt
    @andrewzelitt 6 місяців тому +78

    It’s kinda neat that after taking a data structures and algorithms class I now understand so much more in a lot of these types of videos.

    • @gangstaberry2496
      @gangstaberry2496 6 місяців тому

      I've been feeling the same!! Enjoy, happy learning ♥️

    • @eanredur9920
      @eanredur9920 6 місяців тому +1

      Did you do Huffman Trees or is it more about understanding trees, compression, and recursion?
      Just asking because I found our Algorithms and Data Structures lecture useless. We did basic stuff, but nothing one could not have learned to a reasonable degree by reading 2-3 hours a day for a week.

    • @andrewzelitt
      @andrewzelitt 6 місяців тому +1

      @@eanredur9920 we learned both. Had to do Huffman encoding for an exam question actually.

    • @eanredur9920
      @eanredur9920 6 місяців тому

      @@andrewzelitt Cools stuff. I wish we did go a bit deeper.

    • @iyeetsecurity922
      @iyeetsecurity922 5 місяців тому

      Picture go boom. Computer be sad now.

  • @JessicaFEREM
    @JessicaFEREM 6 місяців тому +81

    Reminds me of the discord videos that crash discord. also turns out WebM has an infinitely adjustable dynamic resolution that can change on the fly, the speed bottleneck is the player. you can change the resolution of a WebM videos 60 times a second even.
    discord didn't put a box limit so users were making videos that would seemingly disappear (turn into 1x1) the second you clicked on it, also videos that look like a game character dancing and it's bouncing the discord chat up and down with it.
    personally I think they should keep it but they removed it.

    • @jsrodman
      @jsrodman 6 місяців тому +8

      Meanwhile i would prefer a compile of discord that cannot render user content.

    • @jmvr
      @jmvr 6 місяців тому +9

      I downloaded two videos using that. It was the Rick Roll that slowly shrunk, and a cat meowing where the video would change size when the cat meowed. It's pretty cool, and is even viewable in certain desktop media players.

    • @Fasteroid
      @Fasteroid 6 місяців тому +6

      Remember that clip of the annoying orange coming through the TV that crashed your discord? I think it also used this tech.

    • @Mr_Yeah
      @Mr_Yeah 6 місяців тому +6

      AFAIK, that behavior was not removed in Discord directly, but through a patch in Chromium

    • @henryfleischer404
      @henryfleischer404 6 місяців тому +1

      @@jsrodman What's the point of that? Wouldn't that just be the UI?

  • @jpsousa4
    @jpsousa4 6 місяців тому +5

    At "maristroika dolls" I lost it. I think you made a portmanteau of matryoshka (the doll), and perestroika (the 1980s transparency policy used by gorbechev in the USSR)

  • @CH32mix
    @CH32mix 6 місяців тому +29

    Nice, just in case WebP doesn’t get more hate

  • @blacklistnr1
    @blacklistnr1 6 місяців тому +8

    The sad part is that it doesn't even surprise me, CVE after CVE I see that complexity + interaction => exploit.
    Given the complexity stack of anything today, the only way to avoid exploits is to avoid interactions with untrusted data. i.e. no internet, no file sharing.
    Next best thing is to separate everything, but that is really hard without carrying 3 phones in your pocket.
    I'm going with option 3 which is eat popcorn while reading the news.

    • @erikkonstas
      @erikkonstas 6 місяців тому

      Guess what, you're not safe even without Internet... and I don't mean your computer, I mean your physical body... the chance a sniper kills you is never zero.

  • @m4rt_
    @m4rt_ 6 місяців тому +133

    Technically not the picture will render the picture, the picture will be used to render a picture.

    • @jnharton
      @jnharton 6 місяців тому +4

      The "picture" is a file which contains binary data representing the red, green, and blue (RGB) components of the color to be used for each distinct subunit of a digital image.
      With a large enough set of colored pencils (or an image composed from a limited color palette) and some graph paper you could open up the "picture" in a hex editor and render it on your graph paper in colored pencil.

    • @paulstelian97
      @paulstelian97 6 місяців тому +3

      @@jnharton That's only true of uncompressed formats.

    • @jnharton
      @jnharton 6 місяців тому

      @@paulstelian97 The first and modt important part is technically still true, because unless the compression is lossy decompression restores the original.
      A different encoding of data doesn't mean you don't have the data.

    • @paulstelian97
      @paulstelian97 6 місяців тому

      @@jnharton PNG is the only often encountered lossless encoding soooooooo… there’s others like jpg or webp

    • @lyrimetacurl0
      @lyrimetacurl0 4 місяці тому

      "I used the picture to render the picture"

  • @LeeLikesFrenchFries
    @LeeLikesFrenchFries 6 місяців тому +2

    at my work, we called these types of attacks compression bombs. that kind of terminology helped put my mind in the right frame of reference when i evaluate useful compression code.

  • @cesaraugustomarcelinodossa5138
    @cesaraugustomarcelinodossa5138 6 місяців тому +4

    How is it possible that you can do so nice videos, in a very simple arrangement and good explanations, causing time to fly so fast!!! Never looks like it's an almost 10min video 😊
    Thanks for the good quality material you have been donating to the internet

  • @Ilix42
    @Ilix42 6 місяців тому +17

    I think the researcher name was “Misty Mountain Cop”.
    Thanks for the informative video.

    • @Collif
      @Collif 6 місяців тому +1

      Yep, definitely a play on Misty Mountain Hop by Led Zeppelin

  • @Mehdital89
    @Mehdital89 6 місяців тому +3

    Tbh you keep hearing about those buffer overflows and how dangerous they are but tbh other than crashing your browser, I haven't heard of any concrete exploit in recent times that managed to do a big intrusion thanks to such a bug

    • @teknixstuff
      @teknixstuff 4 місяці тому

      Almost anything that can crash the browser, could be used to run arbitrary code before crashing the browser.

  • @owlstock679
    @owlstock679 6 місяців тому +75

    New LLL vid == good day => true

    • @swiss_eng
      @swiss_eng 6 місяців тому +8

      #ifdef newlllvid
      bool goodday = true;
      #endif

    • @electrolyteorb
      @electrolyteorb 6 місяців тому +12

      ​@@swiss_engplease don't use macro for runtime checks...

    • @owlstock679
      @owlstock679 6 місяців тому +3

      @@swiss_eng
      I'll do you one better.
      #ifndef newLLLvid
      *(char*)0 = 0;
      #endif // newLLLvid

    • @Kane0123
      @Kane0123 6 місяців тому

      This is some real strange dotnet syntax guys…

    • @Hellbending
      @Hellbending 6 місяців тому +1

      fn lllvid(new: Vid) {
      match new.is_ok() {
      true => true,
      false => Err(Error::Nonsensical)
      }
      }

  • @TesserId
    @TesserId 6 місяців тому +1

    The storing of the Huffman table in the file does not occur in all Huffman use cases. I had to think about it for a moment, but unlike text compression, you can't assume a default starting point for images, so taking up space to store the table makes sense.

  • @javabeanz8549
    @javabeanz8549 6 місяців тому +3

    When I started to play the video, I was wondering if it was on the UEFI spash image hack. Alas, it was not, but another interesting bug. I remember writing code and then setting up automated testing back on a Pr1me Mini back in the 1980's. Most of the programs were reasonable simple, and testing for invalid input didn't take long, until we got to the final project for the semester. And of course, final project time meant every class was in the lab trying to get their final project done. So, automating my testing was a big speed boost for my team. Rather than twenty minutes of entering something and waiting for our time slice to come around again, the mini took my scripts and gave us back a results file we could browse in about a minute.

  • @S3Kglitches
    @S3Kglitches 6 місяців тому +5

    Too bad you didn't explain Huffman encoding in a simpler way. It can be described as giving the least amount of bits to most occurring repeating sequences of characters/data which gives the maximum possible compression while preserving some special properties in the bit sequences which allow constructing the tree.

  • @Amipotsophspond
    @Amipotsophspond 6 місяців тому +1

    the people that make and catch these things are geniuses.

  • @ArturStefanczyk-bf5qh
    @ArturStefanczyk-bf5qh 6 місяців тому +3

    "I wont talk about this very complex algortihm." Procced to talk about this very complex algorithm

  • @janm4442
    @janm4442 5 місяців тому

    Great explanation and nice video (no annoying music, no effects and no loud voice). Thanks for it.

  • @sittingstill3578
    @sittingstill3578 6 місяців тому +1

    This bug sounds well worth a deep dive into. I wonder if it is something that also bypasses other typical security protocols by rendering the image as unrenderable. It reminds me of something that could be easily exploited in captive WiFi login portals where the user has no ability to block the execution image files being loaded and rendered. A bad actor could setup a spoofed WiFi related to their target’s activity and just embed the exploited file when they login out of habit.

  • @abstractrussian5562
    @abstractrussian5562 6 місяців тому +11

    This is insane, and what is more insane that to this day there's no containerization of user apps by default on desktop OS's. Think of docker and careful management of permissions between apps and system stuff like FS. Or like on mobile OS's. This would prevent many security issues. MacOS doesn't even support MacOS inside docker.

    • @mvwouden
      @mvwouden 6 місяців тому +4

      Flatpak sort of does this on Linux

    • @jnharton
      @jnharton 6 місяців тому +2

      You don't need containerization to achieve a reasonable degree of security.
      Buffer overflows can only compromise memory that the executing program with the "bug" actually has access to write. If that isn't the case, your program would a segmentation fault and crash.
      So if you just don't give a program more permissions than it needs to do it's job that reduces the risk considerably.
      This is precisely why you almost never login as root (super user) on a Unix/Linux system and you don't run background processes as root unless absolutely necessary.

    • @capability-snob
      @capability-snob 6 місяців тому

      MacOS is a bit of a fun case. It does support isolation, but it's not obvious to the user which apps are running with the capability sandbox and which aren't. Add to that, they added some vulnerabilities to the sandbox configuration of some apps (notably, ms office) that can be exploited to achieve complete and persistent system takeover.
      There are operating systems that can provably isolate applications and safely delegate permissions to them; these are known as object-capability systems. SculptOS and Fuchsia are some attempts to explore this area, although there are a lot of mainframe operating systems that already meet this standard.

  • @mjmeans7983
    @mjmeans7983 6 місяців тому +1

    So, maybe find an initial table that unpacks to include one or more copies of the original table within it so that it results in a fractal unpack that can always be further unpacked into ever larger and larger tables.

  • @azertyQ
    @azertyQ 6 місяців тому +20

    lmao, huffman encoding is one of the easiest compression algos, an undergrad came up with it

    • @johnc3403
      @johnc3403 6 місяців тому +13

      ..and that makes you "laugh my ass off"? OK then. And what have you come up with?

    • @oncetwice6366
      @oncetwice6366 6 місяців тому +18

      ​@@johnc3403it's funny because he constantly refers to it as this incredibly complex algorithm. I don't think he's trying to diminish the achievement in any way.

    • @dagomara8380
      @dagomara8380 6 місяців тому +12

      @@johnc3403 In azertyq's defense, I did also chuckle when he called Huffman Encoding super complex, because it's taught in undergraduate CS programs. After laughing, though, I did realize that most of LLL's audience likely lacks a degree in the field.

    • @81milliontotallylegitimate10
      @81milliontotallylegitimate10 6 місяців тому

      @@dagomara8380 just like anything else, its complicated unless you understand it

    • @vylbird8014
      @vylbird8014 6 місяців тому +1

      Huffman? WebP uses Huffman? Ugh... I thought we'd move on from that. Huffman was fine in its day, but we can do better now.

  • @xXBlueSheepXx
    @xXBlueSheepXx 6 місяців тому +57

    Thanks for validating my hatred for WEBP format.

    • @LightTheMars
      @LightTheMars 6 місяців тому +11

      It's a good format. Very efficient encoding (small file size) and high image quality. A programming error in one implementation has nothing to do with that.

    • @pierrotA
      @pierrotA 6 місяців тому +12

      ​@@LightTheMars​ I think the main reason people hate it is because it's annoying to work with.
      By default it will open in a browser, generaly speaking you cannot copy/paste it from a webpage, and a lot of softwares do not even know the format.
      It's efficient and the gain is obvious for big web companies that want to reduce servers cost, but for the simple mortals like us it's just an additionnal step to download/upload/modify an image.

    • @thesenamesaretaken
      @thesenamesaretaken 6 місяців тому +3

      ​@@pierrotA it's annoying because big tech makes some software that doesn't support their own file format conspiracy? At least back in the day it felt like they didn't support .ogg files out of malice

    • @KordaMachala
      @KordaMachala 6 місяців тому +1

      It's a PNG with a size of JPEG. I think it's annoying to work with, but useful.

    • @konayasai
      @konayasai 6 місяців тому +1

      ​@@pierrotAIt's not .webp's fault if the user has failed to install software that can handle a file format that's been around since before I suspect that kind of user must have been born.

  • @lerneninverschiedenenforme7513
    @lerneninverschiedenenforme7513 6 місяців тому +1

    Reminds me of the the time when I wrote to Thunderbird developers "showing image files in mails might be a security issue" and a developer responded: "There's no security issue here. Image libraries are so mature now, that they do not contain any severe bugs anymore".

    • @KopperNeoman
      @KopperNeoman 5 місяців тому

      Never assume that because something's modern, it's secure.

  • @Randomynous01
    @Randomynous01 5 місяців тому +1

    There was a stupid movie where they hacked a terrorist on a plane by sending him an image

  • @memes_gbc674
    @memes_gbc674 6 місяців тому +1

    it's crazy how google has been pushing webp so hard yet doesn't support the format in their apps (docs, slides, etc)

  • @MP3-b5w
    @MP3-b5w 6 місяців тому +2

    Interesting timing for the hair overflow condition to occur at 6:30

  • @cmoon178D8H-K9
    @cmoon178D8H-K9 6 місяців тому +26

    that's just another reason why you never trust a webp user...

    • @csharpcoffee
      @csharpcoffee 6 місяців тому +19

      JPG has had worse exploits years ago.
      Webp is a good format, it's biggest flaw is being too young for widespread support yet. Give it 10 years and people might look at JPG like they look at AVI and FLV

    • @vylbird8014
      @vylbird8014 6 місяців тому

      @@csharpcoffee Not any more. Every web browser supports it now, except the legacy IE that is only left in Windows for compatibility reasons. Given that there are only two rendering engines and they both support WebP, you can safely use WebP on websites. Same for AVIF.
      Application support other than browsers is a bit inconsistent, and strangely so at times. Telegram, for example, won't recognise WebP as an image file - even though it uses WebP internally as the format for sticker images.

    • @ChrisD__
      @ChrisD__ 6 місяців тому

      *Laughs in AVIF*

    • @kuroilight1676
      @kuroilight1676 5 місяців тому

      It’s already been around a long time, nobody wants it or it would already be widespread, nothing wrong with png/gif and the other dozen other media formats that work just fine

    • @vylbird8014
      @vylbird8014 5 місяців тому

      @@kuroilight1676 They work just fine, but it's a matter of resource use. PNG's compression is more capable than GIF, and WebP's lossless mode is in turn more capable then PNG. Substantially so - convert a PNG to WebP and it can be reduced to half the size. That means lower hosting cost and faster loading, especially important for people on lower-bandwidth mobile connections. There's no downside any more, now that all web browsers support PNG and AVIF, so there's no longer a reason not to adopt the new formats.

  • @sylvainforget2174
    @sylvainforget2174 27 днів тому

    Right off the bat, I will say that I don't understand your videos because I only have a first year college computer education as I quit learning there after heart surgery. The thing that I had never considered is that when I download a useful program off the internet I have no idea if it is dangerous because the code has vulnerabilities or is malicious. When I need to do a task (image manipulation for example), I rely on the Google to show me what is available.

  • @pyropoops139
    @pyropoops139 6 місяців тому +4

    NSA just lost another one of their favourite toys

  • @KvapuJanjalia
    @KvapuJanjalia 6 місяців тому +12

    "Maristroka" dolls? Bruh.

    • @DaveBucklin
      @DaveBucklin 6 місяців тому

      Matroshka was how I learned it.

    • @williamdrum9899
      @williamdrum9899 6 місяців тому +2

      At least he didn't call it "Perestroika" 😂😂😂

    • @mikedegeofroy
      @mikedegeofroy 5 місяців тому

      was looking for this comment

  • @trag1czny
    @trag1czny 6 місяців тому +3

    "marystroika dolls" killed me 💀

  • @tiagotiagot
    @tiagotiagot 6 місяців тому

    Fuzzing shouldn't be applied just to the final program; individual functions should be tested in order to catch things like this more easily. You shouldn't need ti find the external input that would trigger the bug if you tested directly the last step that fails when receiving too big of an input.

  • @skilletpan5674
    @skilletpan5674 6 місяців тому +1

    This reminds me of the old PKZip bug from the 90s that caused PKZip to keep decompressing the same data over and over again. A ZIPBomb. It'd cause pkzip to "bomb" the harddrive and fill it up.
    Mind you the first version of that (that I remember) used pointers to make the pkzip file loop. It wasn't out of bounds as it stayed within bounds.

    • @stitchfinger7678
      @stitchfinger7678 6 місяців тому +1

      People still make zipbombs today, if mostly for tinkering and not as much harm
      There's one that has a theoretical decompression size of like more than Google's entire infrastructure lol

  • @maximusdarja
    @maximusdarja 6 місяців тому

    Back in the AOL days, we would boot people from chat rooms by sending them an empty jpeg file. You could boot everyone by making your user icon an empty jpeg file. It would cause the renderer to crash the chat program.

  • @mauriciolee7349
    @mauriciolee7349 5 місяців тому

    Thank Low Level Learning for such an EYE-OPENING video.

  • @HaydonRyan
    @HaydonRyan 6 місяців тому

    These image conversion libraries feel like a great smallish project to begin re-writing (and optimizing) code that is very commonly used into a safe language.

  • @StayCHilL24
    @StayCHilL24 6 місяців тому +6

    If I understand correctly Huffman encoding wasn't causing the overflow but an implementation that converted the tree data structure into a table to get some speed benefits. An interesting reminder that speed comes at a risk. Did this error checking add any extra time cost to the algo?

    • @erikkonstas
      @erikkonstas 6 місяців тому

      Imagine that you want to load a huge image... most likely you can already see how it loads slowly, row by row or column by column. Now imagine they had bounds checking in there as well, and there's a recipe to make you switch back to dial-up...

    • @TheRadiastral
      @TheRadiastral 6 місяців тому

      Checking the size of a variable and continuing or not, is literally a few CPU clock cycles, so the speed penalty for this would be expressed in nanoseconds. You could confidently say there would be no extra time added by this check, although if you had to check and re-check multiple times, this could become microseconds, but still an absolutely tiny amount of time. I think the developers simply thought it's not necessary and skipped it.

    • @erikkonstas
      @erikkonstas 6 місяців тому

      @@TheRadiastral Do you know why Tim Berners-Lee regrets including the "//" part of the URI in the HTTP protocol? It's just 2 keypresses, not that hard right...?

  • @Kevin-jb2pv
    @Kevin-jb2pv 5 місяців тому

    Reminds me of when there was that picture going around that if you set it as your phone's background (on Samsungs only, I think) it would brick your phone because it would get stuck in an endless crash - reboot loop.

  • @rootdevelopment
    @rootdevelopment 6 місяців тому +15

    Nice video! 🎉

  • @LaMirah
    @LaMirah 6 місяців тому +2

    I remember a remote code execution available in the WMP and EMP image formats that affected Windows from version 3.0 to server 2003; that's twenty years' worth of Windows versions...

    • @aylen7062
      @aylen7062 6 місяців тому

      *ten years

    • @LaMirah
      @LaMirah 6 місяців тому

      @@aylen7062 True.

    • @AnneJan
      @AnneJan 4 місяці тому

      yes !! I created an EPS that exploited it to run regedit to disable the EPS rendering and show an alert stating "you are now safe" ..
      years later this got my website blocked by McAffee corporate firewalls for hosting malicious files 🙂
      It was the easiest way for us to patch a lot of workstations :-)

  • @BrunoVinicius-ix8wt
    @BrunoVinicius-ix8wt 6 місяців тому +37

    It always amazes me how far 'people' are willing to go just to make someone else's day miserable.

    • @aegoni6176
      @aegoni6176 6 місяців тому

      It's a bit more than that. The NSO is an Israeli organisation that specialises in making malwares/spywares that they can sell to governments to allow them to spy on individuals, cyber warfare basically. And as you may guess, there is a lot, and I mean A LOT of money to make worth the effort

    • @no_name4796
      @no_name4796 6 місяців тому +14

      They really most do it for money.
      Others having a bad day is just a sideeffect.
      This is why capital- (no, i am not gonna do an essay on how capitalism is bad. It just is)

    • @BrunoVinicius-ix8wt
      @BrunoVinicius-ix8wt 6 місяців тому +8

      @@no_name4796 I'd say it goes deeper than that. Right into human nature. History has proven that time and again, way before any ideology was born.

    • @AlbatrossCommando
      @AlbatrossCommando 6 місяців тому

      People like NSO don't do it for fun or just to be dicks they do it for absolute boatloads of government cash.

    • @nikolabegonja5490
      @nikolabegonja5490 6 місяців тому

      @@no_name4796 If you think people screwing over others for financial gain is a capitalist invention, you need to check out some more history.

  • @DeathSugar
    @DeathSugar 6 місяців тому

    I love the how NSO exploited legacy scan compression to create virtual processor and then evaluate whatever code you do and eventually escape it's prison and eventually take over device. AND it's zero interaction from the user at all.

  • @darnelwashinton1295
    @darnelwashinton1295 6 місяців тому

    It's hard to find these issues but not hard to make them. The feds invest teams to find possibilities like this that are hard to detect, then pays them to put their bugs into open source libraries. Easiest way to get backdoors anywhere you want.

  • @thatoneguy229OG
    @thatoneguy229OG 6 місяців тому

    The Darknet Diaries podcast actually talked to one of the folks at Citizen Labs in a episode that is centered around NSO. Highly recommend it, as they go into more of the high-level overview of what NSO (and their clients) were doing.

  • @opposite342
    @opposite342 6 місяців тому +16

    crazy how primeagen is doing a huffman encoding stream soon and you're uploading this right now

    • @sb_dunk
      @sb_dunk 6 місяців тому +1

      Dead internet theory

    • @opposite342
      @opposite342 6 місяців тому +1

      @@ramtennae it was scheduled but now it's gone. He's live right now on twitch though so maybe he changed plans/will be starting it later

  • @januzi2
    @januzi2 6 місяців тому

    As for the images that could be used to hack somebody's pc, jpg lib in Windows had a bug like that. If I remember correctly, the lib was created for Windows 3.11 and got patched in Vista (or maybe 7?).

  • @nicwilson89
    @nicwilson89 4 місяці тому

    Ask some of my friends...I used to use images to non-maliciously prank them years ago and they quickly learned haha. Then they learned it certainly wasn't just images that might contain some sort of payload...y'know, gotta pass time somehow. This is a rather interesting method, even fascinating.

  • @tofu_golem
    @tofu_golem 6 місяців тому +1

    Shouldn't operating systems have elements to prevent buffer overflow in general?

    • @FalcoGer
      @FalcoGer 6 місяців тому +1

      the operating system is responsible for allocating the memory and giving it to the program. what the program does with the memory is up to it. the operating system only intervenes when the program tries to access memory that doesn't belong to it or that the program itself asked the operating system to be protected.

  • @drtechno-v3e
    @drtechno-v3e Місяць тому

    I don't know if they ever got rid of those 0 day injection bugs with pictures. Gif and Jpegs with browsers for a long time, if not patched, is still needed address, is code injection through pictures.

  • @MrVecheater
    @MrVecheater 6 місяців тому +5

    We should start running our OS exclusively through a debugger and check each assembly step before running it

    • @williamdrum9899
      @williamdrum9899 6 місяців тому

      Homer Simpson 5 seconds in: "BOOORING"

  • @piyh3962
    @piyh3962 6 місяців тому +5

    I'm going through your pico videos now to learn C for the first time, thnx 4 the content bby.

  • @mikegofton1
    @mikegofton1 6 місяців тому

    Thanks, its amazing how ingenious some exploits are.
    I'd be interested to know if you think IoT devices are a significant risk to home networks - many of those devices don't get any attention after initial installation and have control servers located in foreign countries. Even if the vulnerability is unintended it may last for years before the device is updated or replaced

  • @rursus8354
    @rursus8354 6 місяців тому

    Such a bug could easily have been stopped from occurring if the library had a simple bounds check. I can see why some people like the idea of Rust automatically enforcing such a bounds check, languages like Ada provided that in a long-long time ago, but people aren't coding rationally. Personally I think bounds checks should be a hardware part of the CPU.

    • @williamdrum9899
      @williamdrum9899 6 місяців тому

      I agree but that would be one slow CPU.

  • @em7dim9
    @em7dim9 6 місяців тому +1

    Interestingly this exploit supposedly affects Linux. Of course it couldn't elevate, but an exploit like this could sure erase your home directory. I guess everyone saying that Linux is malware-proof aren't really thinking of their browser.

  • @daviddunmore8415
    @daviddunmore8415 6 місяців тому

    Buffer overflow - just know the size of the buffer, easy in most languages and stop filling it when it's full.

  • @ariseyhun2085
    @ariseyhun2085 6 місяців тому +1

    You mentioned a few times that a double free leads to remote code execution, but how? You really don't explain it, it's so vague how a simple buffer overflow leads to RCE

    • @juleslondon3088
      @juleslondon3088 6 місяців тому

      Yeah, this wasn’t at all clear to me either, though I’m no expert in such exploits. It would be interesting to know how the rather unlikely buffer overflow can actually lead to a meaningful exploit.

  • @BritishBeachcomber
    @BritishBeachcomber 6 місяців тому

    Huffman coding was invented in 1952. I implemented a version of it in 1980 in a commercial product.

  • @CastToVoid
    @CastToVoid 6 місяців тому +1

    Loved the explanation of this, short, sweet. Really interesting

  • @a68k_de
    @a68k_de 6 місяців тому

    this webp is blocked here on my systems, the biggest nightmare
    how insane ...

  • @__hannibaalbarca__
    @__hannibaalbarca__ 6 місяців тому

    I was very interested in Virus program when i was 20 (1996 - 1999), and i have used to use this technic to store some executable or calling executable by using html and two image bmp.

  • @Portablesounds
    @Portablesounds 6 місяців тому

    Honestly, I think relying on fuzzing for detecting this is overkill. Wouldn't most static analysis tools catch something as simple as unbounded array access? Is it not standard for most open source projects to run some semblance of static analysis checks regularly? I run them at work and it catches all sorts of bugs all the time.

  • @mp_rho
    @mp_rho 6 місяців тому

    literally just learned about huffman coding in my algorithms class when we went over greedy algorithms a week or so ago. pair that with the operating systems class im taking and im understanding a lot more in these videos.

    • @vylbird8014
      @vylbird8014 6 місяців тому

      In your next lesson you learn that Huffman coding has been largely replaced by arithmetic coding, which is more complicated but can achieve better compression.

  • @rc_retro
    @rc_retro 6 місяців тому

    I not a coder but can understand when people like you talk about it. Do you think that this was used in email as well, reasoning is I would sometimes get unpacked images in emails that when I hit show images they would still not unpack. I just left them alone because my spidey sense tingled

  • @Nasa-cosmonaut
    @Nasa-cosmonaut 6 місяців тому

    Most of the terms you use are Greek to me, but I watched every second like "yup, that tracks". You've intrigued me into this and learning. Any good places to start? Brilliant?

  • @duck-in-space-engineers
    @duck-in-space-engineers 6 місяців тому +6

    Pronounced Matryoshka dolls (/ˌmætriˈɒʃkə/ MAT-ree-OSH-kə; Russian: матрёшка, IPA: [mɐˈtrʲɵʂkə]

  • @devindehar8911
    @devindehar8911 6 місяців тому +1

    amazing
    exploit, subject, and video
    nice dude

  • @cassianomartin2699
    @cassianomartin2699 6 місяців тому

    Crazy stuff, I remember Wii Zelda bug where the char name could trigger a buffer overflow and it was used to exploit it

    • @KopperNeoman
      @KopperNeoman 5 місяців тому +1

      It was Epona's (the horse's) name, not Link's (the hero's) that was used as the bootstrap.

  • @philadams9254
    @philadams9254 6 місяців тому +1

    Where's the actual malicious code stored though?

    • @jyvids
      @jyvids 6 місяців тому

      In the tree!

  • @herpederpe4320
    @herpederpe4320 6 місяців тому

    Huffman coding is one of the simplest (and also provable optimal) universal compression encoding though

  • @kakalisaha9428
    @kakalisaha9428 6 місяців тому +1

    Pls start an advanced C course

  • @potential900
    @potential900 6 місяців тому +2

    I don't understand what can be done with an RCE bug, how it helps an attacker. What does it do to the attack surface? There must be a lot between "do overflow" and "hijack computer". Another vuln called Cable Haunt was also an RCE vuln but in Docsis modems.
    Anyone willing to help shed some light?
    Thanks.

    • @potential900
      @potential900 6 місяців тому +1

      Asking because I've seen rce vulns mentioned several times over the years but as a dev not working that low-level, my understanding is lacking.

    • @sapo-san8054
      @sapo-san8054 6 місяців тому

      @@potential900 remote code execution is dangerous because it allows an external agent to run software on your computer. any software.
      from a simple "hello world" program to something that could leak all of your private files to third parties and steal all of your passwords and basically anything stored in your machine.
      An attacker exploiting an RCE bug means it's literally using the bug to run unwanted software on your machine.

    • @stitchfinger7678
      @stitchfinger7678 6 місяців тому +1

      As no kind of expert, my understanding at the most basic level is, feeding a program/system/etc the right kind of garbage can make it enter unexpected states (ungraceful crashes, half-executed functions, etc). These unexpected states may leave the system in a place where it is not safeguarded in ways it would normally always be.
      For example, your car's battery died before you got a chance to lock the doors. Sure you can flip the manual locks if your car even has them, but then your alarm still doesn't work, so if someone DOES get in there's nothing left the car can do.
      So the subject of the video is more the vector of harm than the tool of harm; its the way in. Once you have access to the right things, you can make the infected system do whatever you want.

    • @williamdrum9899
      @williamdrum9899 6 місяців тому +1

      Often it involves overwriting a function's intended return address with the location of a hacker's payload code

  • @Veptis
    @Veptis 6 місяців тому

    Wasn't there an iPhone zero day a few months ago that exploited fonts?
    Meaning you could compromise a phone with a SMS

  • @OGmolton1
    @OGmolton1 6 місяців тому

    im starting to appreciate how linux handles dependencies, it used to just be annoying, its making a lot of sense now

  • @frognik79
    @frognik79 6 місяців тому

    Yes I did know about this.
    I mean it's whole reason you could jailbreak the PSP using a TIFF buffer overflow and downgrade or put custom firmware on it back in 2005 or so.

  • @freebyte
    @freebyte 6 місяців тому +3

    man some people are so smart

  • @lucast2212
    @lucast2212 6 місяців тому

    What happened to the "Would rust have fixed that?" Section. The answer would have been yes, right?

  • @Bunny99s
    @Bunny99s 6 місяців тому

    The moral of the story: Write your own image library :D
    I actually wrote some code to parse png files without actually extracting the image data but just the chunks. I also wrote my own gif and bmp loaders. You learn alot about the formats and can be sure that any bug that may be in their belongs to yourself.

    • @erikkonstas
      @erikkonstas 6 місяців тому

      That's how you take years off your life... oh and you're not likely to make the code as bug-free OR efficient as the major libraries out there, instead you'd most likely end up with MORE bugs, MORE space and LESS speed!

  • @old486whizz
    @old486whizz 6 місяців тому

    ... Why do certain programmers skip bounds checking and expect to not have buffer overflow vulnerabilities?
    It's basic stuff and yet people keep not caring about proper memory management... Why!?

    • @williamdrum9899
      @williamdrum9899 6 місяців тому

      "If you never index out of bounds you don't need to bounds check"

    • @old486whizz
      @old486whizz 6 місяців тому

      @@williamdrum9899 I know several kids with the same mentality.. 'this cube will definitely go through this round hole if I just push harder!".
      When you're dumping one bit of memory into another bit of memory, just spend the few clock cycles for a few microseconds of performance and check sizes.

  • @foufou33g
    @foufou33g 6 місяців тому

    I don't know about mobile platforms, but, IIRC firefox didn't need to be updated as it's linked against whatever libwebp exists in the system.
    The webapps (the slacks and discords of this world) that emebed libweb is an other story.
    one of the perks of dynamic linking I guess?
    edit:
    Oh well, may be a gentoo only thing?firefox has a system-webp useflag, so * in my case *, I didn;t need to update firefox.

    • @erikkonstas
      @erikkonstas 6 місяців тому

      Except that most of us use Windows and guess what Windows doesn't have 😂

    • @foufou33g
      @foufou33g 6 місяців тому

      @@erikkonstas ah man, I totally fofgot about that 🤣

  • @darknetworld
    @darknetworld 6 місяців тому

    Well I did remember this but there was another image exploit. Some thing to do with one person finding the loop hole image data. I wonder if remember if there was emotion pack message infected.

  • @nomore6167
    @nomore6167 6 місяців тому

    Regarding the question, "how did we get here?", the answer is easy -- people don't like to validate data. They assume they will always be handed valid data which will conform to their implementation.

  • @noprivacyverner
    @noprivacyverner 6 місяців тому

    there is a bug in swift i reported must be over a year ago now and its stille there in some iphone apps when you tilt the phone to landscape and back it restart the phone out of the blue

  • @jmi967
    @jmi967 6 місяців тому

    The beginning of every coding book should be dedicated to buffer overflows.

  • @ManInTheAttic57
    @ManInTheAttic57 6 місяців тому

    Great video - excellent explanation! Thank you!

  • @mistikalcanavarlarparlamen3265
    @mistikalcanavarlarparlamen3265 6 місяців тому +1

    Hello, do you know anything about Tlauncher being spyware? I heard so many rumours but there never was concrete evidence. It has been reportedly and allegedly found out that Tlauncher incorporates an altered version of Java and that's why it was able to remain undetected throughout years on end, an explanation whcih I find palpable yet dubious. I would love to hear an expert's , like you, opinion on this matter!!!

    • @pootispiker2866
      @pootispiker2866 4 місяці тому

      TLauncher is probably spyware, yes. Do not use it, there are better version managers.

  • @wal-3732
    @wal-3732 6 місяців тому

    This video reminds me of Richard describing about middle out to the judges in silicon valley. Pure classic.

  • @xodzphone
    @xodzphone 6 місяців тому

    This needs to be automatically understood without explanation

  • @morkallearns781
    @morkallearns781 6 місяців тому +1

    did you mix up Matroyshka dolls with Perestroyka to make Merestroyka dolls? Lol