Skip to content

Commit

Permalink
Fix Python SSRF ISSUE (#534)
Browse files Browse the repository at this point in the history
* update

* fix
  • Loading branch information
MrChengmo authored Oct 18, 2024
1 parent e4df041 commit a24a975
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions appbuilder/core/_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,16 @@ def send(self, request, **kwargs):

@session_post
def post(self, url, data=None, json=None, **kwargs):
return super().post(url=url, data=data, json=json, **kwargs)
return super().post(url=url, data=data, json=json, allow_redirects=False, **kwargs)

@session_post
def delete(self, url, **kwargs):
return super().delete(url=url, **kwargs)
return super().delete(url=url, allow_redirects=False, **kwargs)

@session_post
def get(self, url, **kwargs):
return super().get(url=url, **kwargs)
return super().get(url=url, allow_redirects=False, **kwargs)

@session_post
def put(self, url, data=None, **kwargs):
return super().put(url=url, data=data, **kwargs)
return super().put(url=url, data=data, allow_redirects=False, **kwargs)

0 comments on commit a24a975

Please sign in to comment.