AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=109)
-   -   Rcon locker / exploit fix (https://forums.alliedmods.net/showthread.php?t=93934)

devicenull 06-04-2009 14:53

Rcon locker / exploit fix
 
33 Attachment(s)
This plugin will prevent your rcon password from being changed. It uses whatever password you have set in server.cfg, and resetting the password will require the server to be updated in server.cfg, and then restarted.

This fixes the following exploits:
  • Executing harmful commands via ent_fire/ent_create if cheats are on
  • Around 10 or so commands that can be used to lag the server (adds the cheats flag to them)
  • Loading plugins clientside, allowing you to use cheat commands
  • Clients would be able to teleport, regardless of cheats/plugins on server.
  • If Mani is detected, spammable commands will be blocked (this will break nextmap functionality, but its either that or risk server crashes)
  • Es_tools changelevel exploit
  • Cvar bounds are removed on sv_rcon_minfailures and sv_rcon_maxfailures. These are also set to 10,000 if they are not changed in your config file.
  • "unnamed" users will be kicked once they join.
  • Users with bell or % characters will be kicked when they join
  • Commands executed before a client has connected will be blocked.
  • Prevent logging from being disabled, if it is ever enabled while the plugin is active.
  • All commands on the server will be logged by default.

No configuration is needed for this plugin.

Note:This will leave your server vulnerable to brute force attacks, though that's easily fixed.. just use a secure rcon password. This was necessary to prevent a server crash that happens when a user is banned from accessing rcon.

To generate a secure rcon password go here. These passwords are randomly generated and change each time you refresh the page. If you use these, there are 62^24 possible passwords, so they won't be brute forced any time soon.

Donate

If you wish to disable the command logging functionality, create a file in addons/sourcemod/configs named rcon_lock.cfg. It doesn't matter what this file contains, as long as it exists it will be disabled.

I didn't want to add the ability to disable command logging as a cvar, as many rcon "hack" scripts already attempt to disable normal logs. Unless you are running old eventscripts plugins, you can safely leave command logging enabled.

If you are running 1.3 or higher, you want the "rcon_lock" plugin.

If you are running under 1.3, you want the "rcon_lock_legacy" plugin, or to upgrade sourcemod. Note that the legacy plugin is no longer being updated.

Inflikted 06-05-2009 00:00

Re: Rcon locker / exploit fix
 
which exploit is this prevelant in? CSS.. TF2 or all source games. not that i want to hack people :) just want to no if i need the protection for my servers

bl4nk 06-05-2009 00:08

Re: Rcon locker / exploit fix
 
This will work for all Source games.

DontWannaName 06-05-2009 00:27

Re: Rcon locker / exploit fix
 
So this is only need if we run an addon that messes with rcon? Be specific with who needs to use this, im pretty sure I dont since I run just SM and plugins added by me.

Chris-_- 06-05-2009 06:48

Re: Rcon locker / exploit fix
 
Quote:

Originally Posted by DontWannaName (Post 841942)
So this is only need if we run an addon that messes with rcon? Be specific with who needs to use this, im pretty sure I dont since I run just SM and plugins added by me.

Quote:

Also, this plugin will prevent people from adding admins or shutting down the server using the ent_fire exploits.
If you at some point activate sv_cheats 1 on a server of yours, and someone runs an exploit based on that command then you might want to have this on :p

santaclaus 06-05-2009 12:30

Re: Rcon locker / exploit fix
 
Quote:

Originally Posted by Chris-_- (Post 842072)
If you at some point activate sv_cheats 1 on a server of yours, and someone runs an exploit based on that command then you might want to have this on :p

Is that info true ?
Do you mean that only those who put sv_cheats as 1 need this ?

devicenull 06-05-2009 13:23

Re: Rcon locker / exploit fix
 
If sv_cheats 1 is activated, players can execute rcon commands. This attempts to prevent them from doing permanent damage with it, but.. you still shouldn't turn cheats on.

As far as the rcon exploit, it seems to be confined to servers running a malicious plugin.

Chris-_- 06-05-2009 17:06

Re: Rcon locker / exploit fix
 
santaclaus:

Quote:

Originally Posted by devicenull (Post 842360)
If sv_cheats 1 is activated, players can execute rcon commands. This attempts to prevent them from doing permanent damage with it, but.. you still shouldn't turn cheats on.


devicenull 06-10-2009 14:06

Re: Rcon locker / exploit fix
 
Updated to v0.2, fixes a bunch more exploits.

BAILOPAN 06-10-2009 14:10

Re: Rcon locker / exploit fix
 
Nice work, devicenull.


All times are GMT -4. The time now is 17:02.

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