open redirect

This commit is contained in:
gyuu04 2025-07-18 13:35:43 +09:00
commit 8e0523e734
2 changed files with 163 additions and 34 deletions

View file

@ -18,6 +18,8 @@ false_true_varifing_task = FalseTrueVarifingTask()
load_dotenv(override=True)
_open_redirect_checker = OpenRedirectChecker()
class AddonBase:
"""
Base class for addons.
@ -62,8 +64,6 @@ class AddonBase:
return False
async def request(self, flow: http.HTTPFlow):
if self.google_login_hint:
await try_catch(self.google_login_hint.request(flow))
@ -73,7 +73,7 @@ class AddonBase:
tasks = [
try_catch(PKCEDowngradeChecker().test(flow)),
try_catch(OpenRedirectChecker().test(flow)),
try_catch(_open_redirect_checker.test(flow)),
]
await asyncio.gather(*tasks)