nonceCheck 수정

This commit is contained in:
sultanofdisco 2025-05-31 11:55:06 +09:00
commit cc81947bd8
3 changed files with 23 additions and 11 deletions

View file

@ -2,6 +2,7 @@ import type { SDK, DefineAPI } from "caido:plugin";
import type { Request } from "caido:utils";
import { ImplicitGrantController } from "./controller/implictGrant";
import { AuthZCodeGrantController } from "./controller/authZCodeGrant";
import { NonceCheckController } from "./controller/nonceCheck";
export type API = DefineAPI<{}>;
@ -40,5 +41,14 @@ export function init(sdk: SDK<API>) {
reporter: "",
});
}
if(NonceCheckController.isOidcFlow(req)) {
await sdk.findings.create({
title: "OIDC Flow Detected",
description: "The request appears to be part of an OIDC flow.",
request: req,
reporter: "",
});
}
});
}
}