Skip to content

Commit

Permalink
Anticheat: Safeguard length against unsafe access in WARDEN_CMSG_CHEA…
Browse files Browse the repository at this point in the history
…T_CHECKS_RESULT
  • Loading branch information
killerwife committed Jul 24, 2024
1 parent a364c15 commit 3fadd9f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/game/Anticheat/module/Warden/warden.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,14 @@ void Warden::HandlePacket(WorldPacket& recvData)
uint32 checksum;
recvData >> length >> checksum;

if (length > (recvData.size() - (recvData.rpos() + 1)))
{
recvData.rpos(recvData.wpos());
_anticheat->RecordCheatInternal(CheatType::CHEAT_TYPE_WARDEN, "Packet checksum length fail");
_session->KickPlayer();
return;
}

if (BuildChecksum(recvData.contents() + recvData.rpos(), length) != checksum)
{
recvData.rpos(recvData.wpos());
Expand Down

1 comment on commit 3fadd9f

@the8887
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

72 Windows Warden modules and 1 Mac Warden modules loaded
ADDON: Blizzard_AuctionUI flags 0x00 modulus crc 0x00000000 url crc 0x00000000
ADDON: Blizzard_BattlefieldMinimap flags 0x00 modulus crc 0x00000000 url crc 0x00000000
ADDON: Blizzard_BindingUI flags 0x79 modulus crc 0x4c1c776d url crc 0x00000000
ADDON: Blizzard_CombatLog flags 0x00 modulus crc 0x00000000 url crc 0x00000000
ADDON: Blizzard_CombatText flags 0x00 modulus crc 0x00000000 url crc 0x00000000
ADDON: Blizzard_CraftUI flags 0x00 modulus crc 0x00000000 url crc 0x00000000
ADDON: Blizzard_GMSurveyUI flags 0x00 modulus crc 0x00000000 url crc 0x00000000
ADDON: Blizzard_GuildBankUI flags 0x00 modulus crc 0x00000000 url crc 0x00000000
ADDON: Blizzard_InspectUI flags 0xe3 modulus crc 0x4c1c776d url crc 0x00000000
ADDON: Blizzard_ItemSocketingUI flags 0x00 modulus crc 0x00000000 url crc 0x00000000
ADDON: Blizzard_MacroUI flags 0x28 modulus crc 0x4c1c776d url crc 0x00000000
ADDON: Blizzard_RaidUI flags 0xc2 modulus crc 0x4c1c776d url crc 0x00000000
ADDON: Blizzard_TalentUI flags 0x00 modulus crc 0x00000000 url crc 0x00000000
ADDON: Blizzard_TradeSkillUI flags 0x00 modulus crc 0x00000000 url crc 0x00000000
ADDON: Blizzard_TrainerUI flags 0x00 modulus crc 0x00000000 url crc 0x00000000
ADDON: Blizzard_TimeManager flags 0x00 modulus crc 0x00000000 url crc 0x00000000
ADDON: Found fingerprint: 0xc228e379. Account THE8886 (id 5) IP 192.168.31.59
WARDEN: Account - 5 get opcode 00 - Load module failed or module is missing...
WARDEN: Account - 5 get opcode 01 - Module has loaded. Recv answer....
Cheat detected: Player: IP: 192.168.31.59 Account ID: 5 Action: Inform Detector: Warden Message: Packet checksum length fail

This is a well-known update that causes my client 2.4.3 version to be kicked as soon as I log in. Unable to enter World of Warcraft game normally!!!

Please sign in to comment.