News for hackers. Stuff that matters.
Re:Team Fortress 2 source code has leaked by misnome on Wednesday April 22, 2020 @04:11PM (#22949675)
That was 2004, so not a very busy agent...

I’m slightly shocked with the phrasing in that post “It is definitely possible that someone could install a virus on your machine by just being in the same server.”

That.... seems like a pretty shocking security hole, unless they are talking about unknown possibilities, in which case the term “definitely” is a bad choice. If this can be done with the source, it could have been done before, no?

Re:Team Fortress 2 source code has leaked by MayeulC on Wednesday April 22, 2020 @04:32PM (#22949867)
That sounds pretty reasonable to assume for any game, even those that are singleplayer, if they access the network.

Game code is particularly known to be "spaghetti", "code cowoy"-style, where the result is more important than the form or correctness. I mean, that's art, after all, so that seems obvious.

And do you think a lot of companies update their games after they are out? Most often, the code is definitive, refactors are out of the question, etc. I've never seen a bug that fixes a security issue (CVE), let alone for old titles.

And that's when RCE is not by design. It is in Garry's mod, but that's for client-side mode scripted with lua, so theoretically sandboxed. Unreal Tournament 99 though, has plenty of servers that put some dlls for "anti-cheat" software on your computer before you join. That one probably sn't sandboxed.

While we talk about anti-cheat software, can we think a moment about everything that could go wrong with a piece of software that has a very deep access to the system, is sometimes in-house, and not necessarily audited, and whose functionality often includes:

* downloading challenges from servers, patch them into RAM and see what happens

* scan the RAM of the whole system, plus the filesystem, for known exploits

* upload parts of that RAM and filesystem to random servers for analysis

* take screenshots, log keypresses, monitor the system and upload all of this.

Takeaway: sandbox your games. There's a reason I run Steam in a flatpak, on Wayland... Convenience is part of it, but that's not the main one.

Re:Team Fortress 2 source code has leaked by ccouzens on Wednesday April 22, 2020 @05:03PM (#22950161)
> sandbox your games. There's a reason I run Steam in a flatpak, on Wayland

If flatpak works perfectly, I suppose an attacker could still steal the "cookie" that automatically logs you into Steam.

Ideally you want Steam to be sandboxed, and then Steam to in turn run all the games in individual sandboxes.

Re:Team Fortress 2 source code has leaked by MayeulC on Wednesday April 22, 2020 @07:49PM (#22951401)
I agree, and that's unfortunate, but I value it far less than I value the integrity of my computer and the data on it.

Steam itself has an interesting "Linux runtime" option for games, but it is unclear if that isolates things more than the status quo.

I don't know what I could do, short of replacing every executable in the steam directory with something that uses a mount namespace or a similar restrictive mechanism before launching the actual executable. Inject a modified libc to perform this on steam's exec call? I think the ball is in Valve's camp to improve this.

Re:Team Fortress 2 source code has leaked by gbrown on Wednesday April 22, 2020 @05:36PM (#22950461)
> Unreal Tournament 99 though, has plenty of servers that put some dlls for "anti-cheat" software on your computer before you join.

D:

People put up with that?

Re:Team Fortress 2 source code has leaked by therealidiot on Wednesday April 22, 2020 @06:25PM (#22950870)
For reference, the anti-cheat plugin usually used by Unreal Tournament servers is AntiCheatEngine ("ACE")

https://ace.ut-files.com/index1a8f.html?p=about

Re:Team Fortress 2 source code has leaked by d1zzy on Wednesday April 22, 2020 @06:24PM (#22950865)
Battle.net has been doing that since day 1, so if you played any game on Battle.net you have downloaded server provided code and executed locally with the privileges of the user running the game.

(when a client connects to a battle.net server, one of the early handshake steps is to download a fixed named MPQ file, which is a Blizzard proprietary archive protocol which contains a DLL that is loaded and a certain fixed named function runs from it, which will checksum your client binary and send the result to the server to compare and allow you to progress further)

Re:Team Fortress 2 source code has leaked by AgentME on Wednesday April 22, 2020 @07:34PM (#22951332)
I think there's a big difference between the game downloading a DLL straight from the game developers (not all that different from an update) and a game downloading a DLL from a random server you join (that could be run by anyone that you have no reason to trust and that you don't realize you're giving them full read-write access to your computer).
Re:Team Fortress 2 source code has leaked by gbrown on Wednesday April 22, 2020 @10:48PM (#22952389)
Exactly. Neither is ideal, but they're not exactly equivalent...
Re:Team Fortress 2 source code has leaked by Kaze404 on Wednesday April 22, 2020 @08:42PM (#22951717)
People are defending Riot Games installing an anti cheat driver, so that's not very surprising if you ask me.
Re:Team Fortress 2 source code has leaked by gruez on Wednesday April 22, 2020 @08:52PM (#22951770)
Not just that, the driver starts on boot and stays running even when the game isn't running.
Re:Team Fortress 2 source code has leaked by Kaze404 on Wednesday April 22, 2020 @09:03PM (#22951812)
And removing the game doesn't remove the driver. You have to remove it separately.
Re:Team Fortress 2 source code has leaked by ThrowawayR2 on Wednesday April 22, 2020 @06:07PM (#22950721)
Better than putting up with cheaters ruining the game.
Re:Team Fortress 2 source code has leaked by Karunamon on Wednesday April 22, 2020 @10:20PM (#22952253)
Even if you actually believe this, Riot is not known for their high-quality code. This sounds a bit snarky but is entirely serious: Giving games root rights is bad enough, I absolutely don't want to run anything in kernel space from the same people who wrote the client for League of Legends.

And it's not even about trusting that Riot are not bad actors, tencent conspiracy nonsense aside, it's about leaving that trash running with that level of access in a way that some malicious process could use to elevate its permissions. That is the (ab)use case that worries me.

Re:Team Fortress 2 source code has leaked by bzb3 on Thursday April 23, 2020 @03:17AM (#22953578)
As someone who plays CSGO, I agree with you. I wish valve did something like this. I'm tired of matches getting ruined by cheaters, which happens very often.
Re:Team Fortress 2 source code has leaked by MisterTea on Wednesday April 22, 2020 @04:31PM (#22949850)
Servers can distribute custom maps and assets to players so there's a mechanism to download files to a users computer.

As for uploads, players used to be able to set custom models in quake 2 which were distributed to other players on the server. Though I am not sure if that was done by server admins in special cases for clan payers or members or if there was an actual upload mechanism in the game engine.

Re:Team Fortress 2 source code has leaked by MayeulC on Wednesday April 22, 2020 @04:39PM (#22949948)
> If this can be done with the source, it could have been done before, no?

This analysis is on-point, and something a lot of sources seem to miss. A determined actor can find the exact same exploits with and without access to the source code, though I admit it is much more complicated without ("determined").