mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Added fixes to avoid users to be manipulated with invalid CSRF token
This commit is contained in:
parent
ada218c00e
commit
1b2ceac8f5
4 changed files with 8 additions and 0 deletions
|
|
@ -8,6 +8,7 @@ require "lua_utils"
|
|||
|
||||
sendHTTPHeader('text/html; charset=iso-8859-1')
|
||||
|
||||
if(_GET["csrf"] ~= nil) then
|
||||
if(haveAdminPrivileges()) then
|
||||
username = _GET["username"]
|
||||
full_name = _GET["full_name"]
|
||||
|
|
@ -33,3 +34,4 @@ if(haveAdminPrivileges()) then
|
|||
print ("{ \"result\" : -1, \"message\" : \"Error while adding new user\" }")
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue