Raised This Month: $12 Target: $400
 3% 

[L4D1] Voting exploit fix help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Diggingwolf2605
Junior Member
Join Date: Apr 2020
Old 04-17-2021 , 06:32   [L4D1] Voting exploit fix help
Reply With Quote #1

In Left 4 Dead 1, there is an exploit where a player can call a vote while connecting to the server which causes the vote to pass immediately kicking the player off the server. This exploit also works with the change Difficulty votes. I'm currently using votemanager 2 with the cooldown enabled to help prevent this from happening.

I'm looking for a specific plugin that blocks votes from being called while connecting to the server and maybe kick clients that abuse the exploit.

While using the votemanager 2 plugin, these errors appear in the console log as the user tries to execute the exploit.

Potential vote being called
L 04/17/2021 - 00:588: [SM] Exception reported: Client 5 is not in game
L 04/17/2021 - 00:588: [SM] Blaming: votemanager2.smx
L 04/17/2021 - 00:588: [SM] Call stack trace:
L 04/17/2021 - 00:588: [SM] [0] PrintToChat
L 04/17/2021 - 00:588: [SM] [1] Line 358, /home/forums/content/files/4/7/4/2/1/50484.attach::Callvote_Handler
Potential vote being called
L 04/17/2021 - 00:587: [SM] Exception reported: Client 5 is not in game
L 04/17/2021 - 00:587: [SM] Blaming: votemanager2.smx
L 04/17/2021 - 00:587: [SM] Call stack trace:
L 04/17/2021 - 00:587: [SM] [0] PrintToChat
L 04/17/2021 - 00:587: [SM] [1] Line 358, /home/forums/content/files/4/7/4/2/1/50484.attach::Callvote_Handler
Potential vote being called
L 04/17/2021 - 00:587: [SM] Exception reported: Client 5 is not in game
L 04/17/2021 - 00:587: [SM] Blaming: votemanager2.smx
L 04/17/2021 - 00:587: [SM] Call stack trace:
L 04/17/2021 - 00:587: [SM] [0] PrintToChat
L 04/17/2021 - 00:587: [SM] [1] Line 358, /home/forums/content/files/4/7/4/2/1/50484.attach::Callvote_Handler
Diggingwolf2605 is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 04-17-2021 , 09:21   Re: [L4D1] Voting exploit fix help
Reply With Quote #2

To fix the exception you just need add

PHP Code:
if (!IsClientInGame(client) return Plugin_Handled
(this doesn't mean that the exploit gets fixed btw, is just to stop generating error logs)
__________________
Marttt is online now
cravenge
Veteran Member
Join Date: Nov 2015
Location: Chocolate Factory
Old 04-18-2021 , 00:48   Re: [L4D1] Voting exploit fix help
Reply With Quote #3

It's better to block every command that exists from being executed by clients while they're not in game.
PHP Code:
public void OnAllPluginsLoaded()
{
    
AddCommandListener(OnAllCmds"");
}

public 
Action OnAllCmds(int client, const char[] commandint argc)
{
    return (
client == || IsClientInGame(client)) ? Plugin_Continue Plugin_Handled;


Last edited by cravenge; 04-18-2021 at 00:49.
cravenge is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 04-18-2021 , 21:55   Re: [L4D1] Voting exploit fix help
Reply With Quote #4

Those exploit is fixed in plugin: [L4D1 & L4D2] Votekick (no black screen)
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
CosmicD
Senior Member
Join Date: Dec 2009
Location: Hasselt, Belgium
Old 02-04-2022 , 14:16   Re: [L4D1] Voting exploit fix help
Reply With Quote #5

thanks, i was looking for a fix for this too.
__________________
CosmicD is offline
Diggingwolf2605
Junior Member
Join Date: Apr 2020
Old 03-09-2022 , 09:38   Re: [L4D1] Voting exploit fix help
Reply With Quote #6

I've notified Valve about this issue several times and it still has not been patched. The Votemanager 2 seems to be working fine to prevent this exploit. Hopefully this exploit gets resolved soon with an update to the game.
Diggingwolf2605 is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:11.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode