mirror of
https://github.com/xcat2/confluent.git
synced 2025-07-08 22:01:31 +00:00
Prevent GET from indicating a non-idempotent opreation
This could bypass CSRF protection in theory.
This commit is contained in:
@ -416,7 +416,7 @@ def resourcehandler_backend(env, start_response):
|
||||
reqtype = env['CONTENT_TYPE']
|
||||
operation = opmap[env['REQUEST_METHOD']]
|
||||
querydict = _get_query_dict(env, reqbody, reqtype)
|
||||
if 'restexplorerop' in querydict:
|
||||
if operation != 'retrieve' and 'restexplorerop' in querydict:
|
||||
operation = querydict['restexplorerop']
|
||||
del querydict['restexplorerop']
|
||||
authorized = _authorize_request(env, operation)
|
||||
|
Reference in New Issue
Block a user