mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 13:10:02 +01:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user