mirror of
https://github.com/openai/codex-security.git
synced 2026-11-21 02:12:29 +08:00
Exercise both ownership outcomes in the loopback example and verify the target invoice exists.
1.6 KiB
1.6 KiB
Validate the invoice-ownership finding against this local fixture.
- Run
node validate.mjsin its default vulnerable mode from the supplied repository root. Pass--outputwith the absolute path toartifacts/custom-validation/http-proof.jsoninside this scan's directory. The runner has already compiled the TypeScript fixture to JavaScript. - The script starts a server on an ephemeral
127.0.0.1port, makes four HTTP requests using synthetic identities, and shuts the server down. This local server is the only authorized test target. Do not install packages or contact any external service. - Read the saved JSON.
modemust bevulnerable, the anonymous request must return 401, and each owner must receive their own invoice with status 200. Check thattarget_owner_invoicecontains Bob's target record andserver_stoppedis true. If the script or those controls fail, returnstatus: "incomplete"with the reason. Do not substitute source-only validation. - For each invoice-ownership candidate, return
reportablewhencross_account_readis true. Usesuppressedif the other-account request returns 403 or 404. Usedeferredfor an unexpected or inconclusive result. Explain the actual HTTP results. Referenceartifacts/custom-validation/http-proof.jsoninartifact_paths. - Return exactly one result for every supplied candidate. Defer unrelated
candidates with an explicit proof gap. Use
nullfor severity and impact unless the observed behavior supports a change. Return only the required structured result; do not edit the canonical scan files.