Welcome to hackvshack.net Forum!
Download Free HvH CS2/CS:GO Cheats, CFG, LUA/JS Scripts, and More!
Register

Info Do not play any Source 1 games atm!

bonesetup

Newbie HvHer
User ID:
312028
Messages:
1
Reactions:
1
Badges:
0
REP:
−0/0+
Level:
1
So a new RCE exploit has been found and it affects ALL the source 1 games (Gmod, Counter Strike (everything that is not Source 2), TF2 etc)

It already has hit a few known figures in the HvH scene (one of them being Oneshot, the monolith owner)

As for the 2018 CS:GO build, the only server that is safe from this and has patched the exploit is gametime.
 
  • Haha
Reactions: listn
if that is the same rce that has been used to tokenlog people on 2018(Arovina has it installed btw)
then here are a couple patches for the 2018 engine.dll that people can replicate:


C++:
Expand Collapse Copy
bool SecurityPatches::WriteBytes(Memory address, std::initializer_list<uint8_t> bytes) {
    std::vector<uint8_t> data(bytes);
    DWORD oldProtection = 0;

    if (!VirtualProtect(address.ToType<void*>(), data.size(), PAGE_EXECUTE_READWRITE, &oldProtection))
        return false;

    memcpy(address.ToType<void*>(), data.data(), data.size());
    VirtualProtect(address.ToType<void*>(), data.size(), oldProtection, &oldProtection);
    return true;
}

void SecurityPatches::Apply() {
    /* CPlugin::Load */
    static auto pluginLoadAddressPatched = Globals::Modules::engineModule.FindSignature(_("31 C0 C2 04 00 90 90 90 90 8D 85 F8 FE FF FF 53 8B 5D 08 8B D3 56 8B F1 8B C8 57 2B D1"), false);
    static auto pluginLoadAddress = Globals::Modules::engineModule.FindSignature(_("55 8B EC 81 EC 08 01 00 00 8D 85 F8 FE FF FF 53 8B 5D 08 8B D3 56 8B F1 8B C8 57 2B D1"), pluginLoadAddressPatched.ToAddress() == 0);
    if (pluginLoadAddress.ToAddress()) {
        /* prevent the usage of "plugin_load <filename>", as this isn't used by clients anyways */
        /* this has been used to load malware during rce chains, known to be used recently / 23th November 2026? */
        WriteBytes(pluginLoadAddress, {
            0x31, 0xC0,             /* xor eax, eax */
            0xC2, 0x04, 0x00,       /* ret 0x4 */
            0x90, 0x90, 0x90, 0x90  /* nop x4 */
            });
    }

    /* CBaseClientState::ProcessConnectionlessPacket */
    static auto redirectSkipPatched = Globals::Modules::engineModule.FindSignature(_("E9 D8 00 00 00 00 8D 8F"), false);
    static auto redirectSkip = Globals::Modules::engineModule.FindSignature(_("0F 84 ?? ?? ?? ?? 8D 8F"), redirectSkipPatched.ToAddress() == 0);
    if (redirectSkip.ToAddress()) {
        /* prevent servers from forcing a redirected, as they might buffer cvars for us to execute when we redirect. */
        /* this has been used to cause the loading of malware during rce chains, known to be used recently / 23th November 2026? */
        WriteBytes(redirectSkip, {
            0xE9, 0xD8, 0x00, 0x00, 0x00,   /* jmp 0xDD */
            0x90                            /* nop */
            });
    }

    /* ShouldPreventServerCommand */
    static auto maxClientsCheckPatched = Globals::Modules::engineModule.FindSignature(_("0F 94 C0 84 C0 75 ?? 85 D2"), false);
    static auto maxClientsCheck = Globals::Modules::engineModule.FindSignature(_("0F 94 C0 84 C0 75 ?? 85 D2"), maxClientsCheckPatched.ToAddress() == 0);
    if (maxClientsCheck.ToAddress()) {
        /* patch the inlined "Host_IsSinglePlayerGame" check, that considers maxClients m_nMaxClients == 1 to be singleplayer. */
        /* this has been used to give the server unrestricted access to any cvars on the clients, last usage date unknown */
        WriteBytes(maxClientsCheck, {
            0xB0, 0x00,     /* mov al, 0x0 */
            0x90            /* nop */
            });
    }
}

EDIT: these are all clientside patches.
also if you want to check if you've been hit by it you can check "%temp%/dc_ctf_exfil.log", that's atleast the file that was produced by their rce a while back.
 
if that is the same rce that has been used to tokenlog people on 2018(Arovina has it installed btw)
then here are a couple patches for the 2018 engine.dll that people can replicate:


C++:
Expand Collapse Copy
bool SecurityPatches::WriteBytes(Memory address, std::initializer_list<uint8_t> bytes) {
    std::vector<uint8_t> data(bytes);
    DWORD oldProtection = 0;

    if (!VirtualProtect(address.ToType<void*>(), data.size(), PAGE_EXECUTE_READWRITE, &oldProtection))
        return false;

    memcpy(address.ToType<void*>(), data.data(), data.size());
    VirtualProtect(address.ToType<void*>(), data.size(), oldProtection, &oldProtection);
    return true;
}

void SecurityPatches::Apply() {
    /* CPlugin::Load */
    static auto pluginLoadAddressPatched = Globals::Modules::engineModule.FindSignature(_("31 C0 C2 04 00 90 90 90 90 8D 85 F8 FE FF FF 53 8B 5D 08 8B D3 56 8B F1 8B C8 57 2B D1"), false);
    static auto pluginLoadAddress = Globals::Modules::engineModule.FindSignature(_("55 8B EC 81 EC 08 01 00 00 8D 85 F8 FE FF FF 53 8B 5D 08 8B D3 56 8B F1 8B C8 57 2B D1"), pluginLoadAddressPatched.ToAddress() == 0);
    if (pluginLoadAddress.ToAddress()) {
        /* prevent the usage of "plugin_load <filename>", as this isn't used by clients anyways */
        /* this has been used to load malware during rce chains, known to be used recently / 23th November 2026? */
        WriteBytes(pluginLoadAddress, {
            0x31, 0xC0,             /* xor eax, eax */
            0xC2, 0x04, 0x00,       /* ret 0x4 */
            0x90, 0x90, 0x90, 0x90  /* nop x4 */
            });
    }

    /* CBaseClientState::ProcessConnectionlessPacket */
    static auto redirectSkipPatched = Globals::Modules::engineModule.FindSignature(_("E9 D8 00 00 00 00 8D 8F"), false);
    static auto redirectSkip = Globals::Modules::engineModule.FindSignature(_("0F 84 ?? ?? ?? ?? 8D 8F"), redirectSkipPatched.ToAddress() == 0);
    if (redirectSkip.ToAddress()) {
        /* prevent servers from forcing a redirected, as they might buffer cvars for us to execute when we redirect. */
        /* this has been used to cause the loading of malware during rce chains, known to be used recently / 23th November 2026? */
        WriteBytes(redirectSkip, {
            0xE9, 0xD8, 0x00, 0x00, 0x00,   /* jmp 0xDD */
            0x90                            /* nop */
            });
    }

    /* ShouldPreventServerCommand */
    static auto maxClientsCheckPatched = Globals::Modules::engineModule.FindSignature(_("0F 94 C0 84 C0 75 ?? 85 D2"), false);
    static auto maxClientsCheck = Globals::Modules::engineModule.FindSignature(_("0F 94 C0 84 C0 75 ?? 85 D2"), maxClientsCheckPatched.ToAddress() == 0);
    if (maxClientsCheck.ToAddress()) {
        /* patch the inlined "Host_IsSinglePlayerGame" check, that considers maxClients m_nMaxClients == 1 to be singleplayer. */
        /* this has been used to give the server unrestricted access to any cvars on the clients, last usage date unknown */
        WriteBytes(maxClientsCheck, {
            0xB0, 0x00,     /* mov al, 0x0 */
            0x90            /* nop */
            });
    }
}

EDIT: these are all clientside patches.
also if you want to check if you've been hit by it you can check "%temp%/dc_ctf_exfil.log", that's atleast the file that was produced by their rce a while back.
Only for 2018, 2023 engine.dll has a check for this :

if ( Host_IsSinglePlayerGame() && sv.IsActive() ) return false;

2018 build only has

if ( Host_IsSinglePlayerGame() ) return false;

That sv.IsActive() solves it
 
The RCE exploit used was another one, I've posted a patch + PoC showcase in here, awaiting approval.
i've just also gotten notice of that one, it's caused by this correct?1796505722493.webp

where the server can send every client an arbitrary voice quality, leading too OOB access in the array, which can be freely controlled.
 
  • Like
Reactions: wizardballs
i've just also gotten notice of that one, it's caused by this correct?1796505722493.webp

where the server can send every client an arbitrary voice quality, leading too OOB access in the array, which can be freely controlled.

Init is only the OOB read. The RCE is in DecodeFrame: the OOB iPacketSize becomes encodedFrameSize and is then copied into a 1024-byte stack buffer.

The patch is one-byte jge -> jae (jle -> jbe on macOS/Linux) patch.
 
  • Like
Reactions: NebeltheCet
there needs to be a megathread to fix all of these bits of code that could be part of an rce chain / an rce by themselves 🙏
Yep, I've also got some information that GMod, CS:S, CS 1.6 are also concerned, I'm checking it out and will then make a patch for them aswell
 
  • Love
Reactions: NebeltheCet
Yep, I've also got some information that GMod, CS:S, CS 1.6 are also concerned, I'm checking it out and will then make a patch for them aswell
Correction: GMod and CS 1.6 aren't affected. GMod doesn't ship CELT, and CS 1.6 is GoldSrc; celt_decode is a Source1 codec, so it isn't affected either.
 
  • Like
Reactions: NebeltheCet