A single Twitch chat message can execute code on a streamer's PC through OBS Studio

How one Twitch chat message became code execution on a streamer’s PC

A single Twitch chat message can execute code on a streamer's PC through OBS Studio

A malicious Twitch chat message can achieve native code execution on a streamer's Windows PC by chaining an unsanitized chat overlay with an outdated Chromium vulnerability. The attack requires OBS Studio 32.2.2 or older running default security settings. Orange researchers found the overlay injected viewer messages as raw HTML, creating an XSS flaw, then exploited CVE-2024-7971 in the bundled Chromium 127 — a flaw Google fixed in Chrome 128 and which has been exploited in the wild. OBS has since disabled the Chromium sandbox, removing the need for a separate sandbox escape.

The researcher stressed that a default OBS installation is not automatically vulnerable to Twitch messages.
  1. Scryptonite

    Deja Vu. I had to submit an issue and fix a similar issue years ago -- it was similarly Twitch chat overlay XSS, but for that they (the streamer) at least tried to strip the tags (but it was a poor JS implementation of PHP strip_tags), and the streamer didn't understand the issue until I crafted a image with onload/onerror to freeze/hang the chat overlay.

  2. doodlesdev

    Fucking absurd. I'll forever hate developers who allow for such _bizarre_ exploit chains to happen. OBS is an OSS project which I believe has received a lot of love throught the years, but having the Chromium sandbox disabled due to authentication with _certain services_ not working with it enabled is asinine. Don't even want to imagine the other problems the project might have waiting to be exploited.

    Sure, if the plugin developer sanitized the comments before inserting them, this wouldn't have happened _this way_, but having a browser engine two years outdated (for a reason which IMO is absolutely reasonable compared to other situations before) and having the Chromium sandbox completely disabled with nothing to substitute it is crazy in a software onto which people insert random plugins from the internet to get random functionality.

    Hopefully those two changes ship fast to OBS. I may be supporting the project financially in the future if they update their security posture, as I'm generally very fond of OBS.

  3. superkuh

    This shouldn't be a problem right? Javascript is by default allowed to execute on your PC in every modern browser. The days where people did not blindly execute arbitrary code from unknown and random sources are far in the past. Now if you don't do that you are considered weird and no websites actually display anything when you attempt to view them.

    This is not a bug. This is the the entire design architecture's intent for modern JS application execution based "web". If this was the correct choice for the web then this should not be a problem at all. But we all know it is. The architecture choice forces this. Until we stop arbitrarily executing random third party code this will always happen. And the consequences will get worse and worse as more bare metal features are exposed in to browsers JS virtual machines.

    Be the change in the world you want to see. Turn javascript off. Use real native applications that cannot change underneath you.

More from this day

2026-09-27