Skip to content

Commit

Permalink
Fix merge
Browse files Browse the repository at this point in the history
  • Loading branch information
timokoessler committed Dec 18, 2024
1 parent c5a25d4 commit a8f910b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions library/agent/hooks/onInspectionInterceptorResult.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ export function onInspectionInterceptorResult(
source: result.source,
blocked: agent.shouldBlock(),
stack: cleanupStackTrace(new Error().stack!, libraryRoot),
path: result.pathToPayload,
paths: result.pathsToPayload,
metadata: result.metadata,
request: context,
payload: result.payload,
});

if (agent.shouldBlock()) {
throw new Error(
`Zen has blocked ${attackKindHumanName(result.kind)}: ${result.operation}(...) originating from ${result.source}${escapeHTML(result.pathToPayload)}`
`Zen has blocked ${attackKindHumanName(result.kind)}: ${result.operation}(...) originating from ${result.source}${escapeHTML((result.pathsToPayload || []).join())}`
);
}
}
Expand Down
2 changes: 1 addition & 1 deletion library/sinks/Prisma.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export class Prisma implements Wrapper {
operation: `prisma.${operation}`,
kind: "nosql_injection",
source: result.source,
pathToPayload: result.pathToPayload,
pathsToPayload: result.pathsToPayload,
metadata: {
collection: collection,
operation: operation,
Expand Down

0 comments on commit a8f910b

Please sign in to comment.