mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
fix: Fix the privilege escalation vulnerability in system variables
This commit is contained in:
@@ -49,7 +49,6 @@ def list_all(session: SessionDep, trans: Trans, variable: SystemVariable):
|
||||
data = SystemVariable(**r.__dict__)
|
||||
if data.type == 'system':
|
||||
data.name = trans(data.name)
|
||||
del data.value
|
||||
res.append(data)
|
||||
return res
|
||||
|
||||
|
||||
Reference in New Issue
Block a user