Skip to content

Commit

Permalink
[fix] gnuboard#582 Open Redirect 검증 로직 우회 취약점 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Letm3through committed Jun 9, 2024
1 parent fcd8dc7 commit 4c94838
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/dependency/dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ def validate_login_url(request: Request, url: str = Form(default="/")):
allow_urls = []

if (url
or url.startswith("//")
and not url.startswith("/")
and not url.startswith(str(request.base_url))
and url not in allow_urls):
Expand Down

0 comments on commit 4c94838

Please # to comment.