• NaibofTabr@infosec.pub
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    1 month ago

    YSK: SVG files are a security risk. Be careful where you get them from and how you handle them.

    Basically, an SVG can contain JavaScript. If you open an SVG in an application that can interpret the JS (e.g. a web browser) then the script will execute (just as with a malicious PDF), at which point it could download other files (malware) or perform any other function that the application has access to (creating, editing or deleting files on the hard drive) because you gave it permission to do that by opening the SVG. Effectively opening an SVG in a JS-capable application is the same as allowing a stranger to run arbitrary code on your computer. You might as well go around the Internet wearing a “please hack me” sign.

    Downloading an SVG to your hard drive directly should be relatively safe, and opening it in a graphics program that does not execute JavaScript should have no risk, but viewing random SVGs in a web browser is a real hazard.

    • [object Object]@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      1 month ago

      Effectively opening an SVG in a JS-capable application is the same as allowing a stranger to run arbitrary code on your computer.

      If your browser allows JS access or create random files, or do other arbitrary stuff, that’s an extremely shit browser.

    • m-p{3}@lemmy.ca
      link
      fedilink
      arrow-up
      0
      ·
      1 month ago

      SVGs are everywhere nowadays, from website logos, to UI elements to even the favicon.

      • TrickDacy@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        1 month ago

        Yes, and the security risks associated with JavaScript are not typically seen as significant since your filesystem is not accessible and most any other vulnerable data isn’t either for that matter

        • NaibofTabr@infosec.pub
          link
          fedilink
          English
          arrow-up
          0
          ·
          1 month ago

          the security risks associated with JavaScript are not typically seen as significant since your filesystem is not accessible and most any other vulnerable data isn’t either for that matter

          heh, hehha ha ha

          go on mate, pull the other one!

          Rowhammer is unfixable, by the way, until someone invents a replacement for DRAM.

          • TrickDacy@lemmy.world
            link
            fedilink
            arrow-up
            1
            ·
            1 month ago

            There’s some weird exception to pretty much any statement. Funny enough though

            which had made Rowhammer impractically slow against web browsers.