포팅은 했는데 테스트는 안해보긴 했어요 테스트좀 해주세요
This commit is contained in:
parent
dfeab629d7
commit
b1f3534e1c
4 changed files with 116 additions and 85 deletions
|
|
@ -3,12 +3,14 @@ import type { Request } from "caido:utils";
|
|||
import { ImplicitGrantController } from "./controller/implictGrant";
|
||||
import { AuthZCodeGrantController } from "./controller/authZCodeGrant";
|
||||
import { PKCECheck } from "./controller/PKCECheck";
|
||||
import { ScopeDetection } from "./controller/scopeDetection";
|
||||
|
||||
export type API = DefineAPI<{}>;
|
||||
|
||||
const implicitGrantController = new ImplicitGrantController();
|
||||
const authZCodeGrantController = new AuthZCodeGrantController();
|
||||
const pkceCheckController = new PKCECheck();
|
||||
const ScopeDetectionController = new ScopeDetection();
|
||||
|
||||
// function matchSSORequest(req: Request): boolean {
|
||||
// const raw = req.getRaw().toString();
|
||||
|
|
@ -36,6 +38,7 @@ export function init(sdk: SDK<API>) {
|
|||
|
||||
if (result) {
|
||||
await pkceCheckController.test(sdk, req);
|
||||
await ScopeDetectionController.scan(sdk, req.getUrl());
|
||||
|
||||
await sdk.findings.create({
|
||||
title: "Possible SSO Request Detected",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue