tidy
Fail
Audited by Gen Agent Trust Hub on Nov 10, 2026
Risk Level: HIGHDATA_EXFILTRATIONCOMMAND_EXECUTIONPRIVILEGE_ESCALATIONCREDENTIALS_UNSAFEINDIRECT_PROMPT_INJECTION
Full Analysis
- [DATA_EXFILTRATION]: In
evals/fixtures/proof-upload/head/src/routes/proof-upload.ts, theuploadProoffunction uses a client-suppliedfilenameto construct a server-side storage path viajoin(directory, file.filename). This lack of sanitization allows an attacker to use../segments to perform directory traversal, potentially overwriting or creating files anywhere the process has write permissions. - [DATA_EXFILTRATION]: In
evals/fixtures/referral-reward-job/head/src/jobs/award-referral.ts, theawardReferralfunction performs a ledger credit before sending an email and updating the referral status. Since the queue worker (inevals/fixtures/referral-reward-job/base/src/queue/worker.ts) automatically retries failed jobs, a failure during the email step will cause the job to rerun and credit points multiple times, as the ledger credit is not idempotent and lacks a unique reference. - [COMMAND_EXECUTION]: The
dailyAveragefunction inevals/fixtures/workday-average/head/src/reports/averages.tsfilters days based on theworkdaysOnlyflag. If the provided period consists only of weekends andworkdaysOnlyis true,days.lengthbecomes zero, leading to a division by zero that returnsNaN. This value propagates to theteamDigestheadline, leading to corrupted data and potential UI crashes. - [CREDENTIALS_UNSAFE]: The
evals/fixtures/signature-verify/head/src/webhooks/verify.tsimplementation includes a customconstantTimeEqualfunction and a hand-rolledtoHexutility. While not a direct secret leak, using hand-rolled cryptographic primitives instead of establishednode:cryptobuilt-ins liketimingSafeEqualincreases the risk of side-channel attacks and implementation errors. - [DATA_EXFILTRATION]: The
saveReceiptfunction inevals/fixtures/receipt-upload-catch/head/src/receipts/save.tswraps theputObjectcall in a try-catch block that only logs the error. Because it still returns areceiptKey, the caller (submitExpense) assumes success and discards the temporary upload, resulting in the permanent loss of the user's receipt file while the database records it as successfully stored.
Recommendations
- AI detected serious security threats
Audit Metadata