Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
burp-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
17
Issues
17
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ziirish
burp-ui
Commits
0b1cd503
Verified
Commit
0b1cd503
authored
Jul 02, 2019
by
Ziirish
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
check ACL against both client and server (fix
#313
)
parent
60c22730
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
burpui/api/settings.py
burpui/api/settings.py
+7
-6
No files found.
burpui/api/settings.py
View file @
0b1cd503
...
...
@@ -429,14 +429,15 @@ class NewClientSettings(Resource):
)
def
put
(
self
,
server
=
None
):
"""Creates a new client"""
newclient
=
self
.
parser
.
parse_args
()[
'newclient'
]
if
not
newclient
:
self
.
abort
(
400
,
'No client name provided'
)
if
not
current_user
.
is_anonymous
and
\
current_user
.
acl
.
is_moderator
()
and
\
not
current_user
.
acl
.
is_
server_rw
(
server
):
not
current_user
.
acl
.
is_
client_rw
(
newclient
,
server
):
self
.
abort
(
403
,
'You don
\'
t have rights on this server'
)
newclient
=
self
.
parser
.
parse_args
()[
'newclient'
]
if
not
newclient
:
self
.
abort
(
400
,
'No client name provided'
)
parser
=
bui
.
client
.
get_parser
(
agent
=
server
)
clients
=
parser
.
list_clients
()
for
cl
in
clients
:
...
...
@@ -508,7 +509,7 @@ class ClientSettings(Resource):
"""Saves a given client configuration"""
if
not
current_user
.
is_anonymous
and
\
current_user
.
acl
.
is_moderator
()
and
\
not
current_user
.
acl
.
is_
server_rw
(
server
):
not
current_user
.
acl
.
is_
client_rw
(
client
,
server
):
self
.
abort
(
403
,
'You don
\'
t have rights on this server'
)
args
=
self
.
parser_post
.
parse_args
()
...
...
@@ -599,7 +600,7 @@ class ClientSettings(Resource):
"""Deletes a given client"""
if
not
current_user
.
is_anonymous
and
\
current_user
.
acl
.
is_moderator
()
and
\
not
current_user
.
acl
.
is_
server_rw
(
server
):
not
current_user
.
acl
.
is_
client_rw
(
client
,
server
):
self
.
abort
(
403
,
'You don
\'
t have rights on this server'
)
args
=
self
.
parser_delete
.
parse_args
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment