Skip to content

fix: audit findings (2026-11-12, round 6) - #51

Merged
franciscbalint merged 1 commit into
mainfrom
fix/audit6-2026-11-12
Nov 12, 2026
Merged

franciscbalint merged 1 commit into
mainfrom
fix/audit6-2026-11-12

Conversation

@franciscbalint

Copy link
Copy Markdown
Collaborator

Fixes from the sixth audit (Medium).

  • deleteInboxPlacementTest and an empty 2xx. A 204 or empty 200 was rejected with "Empty response from ZeroBounce (HTTP 204)"; Go, Rust, Python, PHP, Ruby and iOS treat it as success. It now resolves null (d.ts: Promise<InboxPlacementTestDeleted | null> — TypeScript callers under strictNullChecks need a null check). An empty 2xx on any other Inbox Placement call, and an empty non-2xx on DELETE, still reject with their status.
  • Warmup CSV downloads and HTML. downloadSeeds/downloadStatistics returned an HTML page served on a 200 (as text/html or text/csv) as the CSV text. They now reject with status 200, like the main client's getfile and Python's Warmup.
  • Warmup redaction (Security). A failure while reading the body was rethrown raw; it is now redacted like the main client. A new Warmup sweep over every method (completeness checked against the prototype) echoes the key in 2xx/4xx JSON, text and HTML bodies and in a body-read failure, and searches message, stack and the inspected error.
  • Main-client redaction sweep now also echoes the key in a dead-key 200, a non-JSON 2xx, a finder/domain-search {"Message": …} and 400 JSON/text bodies; the two redactions no test covered now fail the suite when removed.

Tests 186 → 189. Mutations killed: every Warmup and main-client redaction, both Warmup HTML checks, and the IPT empty-success rule (off, on every call, or without the 2xx check). Checked on Node 24 and the packed tarball on Node 18.

@franciscbalint
franciscbalint merged commit ef891d8 into main Nov 12, 2026
12 checks passed
@franciscbalint
franciscbalint deleted the fix/audit6-2026-11-12 branch November 12, 2026 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant