Fix a href exploit in limbgrower (#76247)

This could be used to spoof category which may then be useable to inject
html into the tgui or into vv


All credit to @powerfulbacon

https://github.com/BeeStation/BeeStation-Hornet/pull/9274
This commit is contained in:
oranges
2023-06-22 07:35:57 +00:00
committed by GitHub
parent 63200f1fe8
commit 866a06a248
+4 -1
View File
@@ -185,7 +185,10 @@
use_power(power)
flick("limbgrower_fill", src)
icon_state = "limbgrower_idleon"
selected_category = params["active_tab"]
var/temp_category = params["active_tab"]
if( ! (temp_category in categories) )
return FALSE //seriously come on
selected_category = temp_category
addtimer(CALLBACK(src, PROC_REF(build_item), consumed_reagents_list), production_speed * production_coefficient)
return TRUE