TFlippy / kag_territorycontrol

King Arthur's Gold - Territory Control Mod
https://forum.thd.vg/threads/territory-control-official-forum-badgers.26614/
18 stars 26 forks source link

onCommand sanatize #201

Open Vam-Jam opened 3 years ago

Vam-Jam commented 3 years ago

Example: "shop made item" onCommand often accept any string from params (string name = params.read_string();), this can (and has) be exploited to spawn any item using 3rd party tools.

Solution: Shop cmd should check to see if the user has actually paid for the item Depending on the shop, have a list of 'allowed' blobs Should log (with tcpr) who's spawned what blob with shop cmd