r/Tf2Scripts • • Jun 21 '20

Answered Can a server access clients console?

I'm considering making a TF2 script extender of sorts. It would allow you to access cmd.exe from TF2's in-game console.

However I need to know how much can a server do to make sure I avoid any chance of RCE happening. I have never run a server so I have very little knowledge about this.

Can it read echoed text?

Can it execute commands and aliases?

Can modify aliases?

Can it introduce new commands (that could override aliases)?

Can it exec CFGs?

/mobile formatting

0 Upvotes

9 comments sorted by

View all comments

Show parent comment

1

u/tf2junior Jun 22 '20

A whitelist of accepted inputs. Safest approach seems to be only allowing calling specific batch files, that will then do what you want. RCE potential in that scenario would be pretty limited.