mirror of
https://github.com/fulpstation/fulpstation.git
synced 2025-12-10 10:01:40 +00:00
Fixes permissions elevation exploit
This commit is contained in:
@@ -67,6 +67,11 @@ GLOBAL_PROTECT(admin_ranks)
|
|||||||
|
|
||||||
// Adds/removes rights to this admin_rank
|
// Adds/removes rights to this admin_rank
|
||||||
/datum/admin_rank/proc/process_keyword(word, previous_rights=0)
|
/datum/admin_rank/proc/process_keyword(word, previous_rights=0)
|
||||||
|
if(IsAdminAdvancedProcCall())
|
||||||
|
var/msg = " has tried to elevate permissions!"
|
||||||
|
message_admins("[key_name_admin(usr)][msg]")
|
||||||
|
log_admin_private("[key_name(usr)][msg]")
|
||||||
|
return
|
||||||
var/flag = admin_keyword_to_flag(word, previous_rights)
|
var/flag = admin_keyword_to_flag(word, previous_rights)
|
||||||
if(flag)
|
if(flag)
|
||||||
switch(text2ascii(word,1))
|
switch(text2ascii(word,1))
|
||||||
|
|||||||
@@ -31,6 +31,11 @@ GLOBAL_PROTECT(admin_datums)
|
|||||||
GLOB.admin_datums[ckey] = src
|
GLOB.admin_datums[ckey] = src
|
||||||
|
|
||||||
/datum/admins/proc/associate(client/C)
|
/datum/admins/proc/associate(client/C)
|
||||||
|
if(IsAdminAdvancedProcCall())
|
||||||
|
var/msg = " has tried to elevate permissions!"
|
||||||
|
message_admins("[key_name_admin(usr)][msg]")
|
||||||
|
log_admin_private("[key_name(usr)][msg]")
|
||||||
|
return
|
||||||
if(istype(C))
|
if(istype(C))
|
||||||
owner = C
|
owner = C
|
||||||
owner.holder = src
|
owner.holder = src
|
||||||
|
|||||||
Reference in New Issue
Block a user