Skip to main content
← Back to list
01Issue
BugShippedExtensionsPublic
Assigneesstack72

Relationships

↔ sibling #4336

#4383 @swamp/cve http2shell, php-rce-2026-10 and tailworm: scan fails with 'Duplicate data instance name' (log and status share a name)

Opened by mtaylor · 11/4/2026· Shipped 11/5/2026

scan fails on every target in three @swamp/cve extensions, because each writes its log file and its status resource under the same data name. Since #3700, swamp refuses the second write in one run:

Duplicate data instance name 'localhost' (already written as file 'log' in this run)
code: method_execution_failed

Affected (latest versions, swamp 20261103.172234.0-sha.b94358f0, Ubuntu 24.04 runner):

  • @swamp/cve/http2shell 2026.11.02.2: models/http2shell.ts:361 creates the log as createFileWriter("log", instanceName(t.label)), then :381 writes status under the same instanceName(t.label). scanFleet does the same per host (:436, :475), and so does mitigate (:557).
  • @swamp/cve/php-rce-2026-10 2026.10.24.2: models/php_rce_2026_10.ts:3229 and :3244; per host in scanFleet at :3285 and :3323; and :3412.
  • @swamp/cve/tailworm 2026.10.25.6: models/tailworm.ts:3647 and :3670; per host in scanFleet at :3720 and :3762; and :3510.

This happens in every mode, local and SSH, because the log and the status share the target's label. @swamp/cve/dirtyfrag and @swamp/cve/emudhra name their log <label>-log and work.

Repro

swamp extension pull @swamp/cve/tailworm
swamp model method run @swamp/cve/tailworm scan tailworm-local

It fails with the error above, and no status record is written. The same happens with http2shell and php-rce-2026-10 (scan), and with targetHost set.

Suggested fix

Name the log as dirtyfrag and emudhra do, for example createFileWriter("log", \${instanceName(label)}-log`), in scan, scanFleet (per host) and mitigate. Anything that reads the old log name needs the same change. A test that runs scan` against a fake target through a context that refuses duplicate names would catch it.

Related: #3700 (refuses a name written as two kinds in one run) and #4302 (the same check across runs).

Upstream repository: https://github.com/swamp-club/swamp-extensions

Environment

  • Extension: @swamp/cve/http2shell@2026.11.02.2
  • swamp: 20261103.172234.0-sha.b94358f0
  • OS: windows (x86_64)
  • Deno: 2.9.8
  • Shell: C:\Program Files\Git\usr\bin\bash.exe
02Bog Flow
✓OPEN✓TRIAGED✓IN PROGRESS✓SHIPPED+ 1 MOREASSIGNED+ 6 MOREREVIEW+ 14 MOREPR_MERGED+ 2 MORESESSION_SUMMARIZED

Shipped

11/5/2026, 9:22:14 PM

Click a lifecycle step above to view its details.

03Sludge Pulse
stack72 assigned stack7211/5/2026, 4:00:02 PM
stack72 linked sibling of #433611/5/2026, 4:26:56 PM
Editable. Press Enter to edit.

system commented 11/4/2026, 2:22:57 PM

Classified automatically when this issue was filed.

  • Source: Extensions

If you feel this classification is incorrect, add a ripple to tell us so.

stack72 commented 11/5/2026, 9:22:18 PM

Thanks @mtaylor for reporting this! We shipped: Fix #4383: http2shell, php-rce-2026-10 and tailworm write each target's log and status under one data name, which swamp refuses since swamp-club 3700, so scan, scanFleet, mitigate (and tailworm grade/gradeFleet) fail. Rename per-target logs to -log, guard a host named fleet, add tests that refuse duplicate names. Fix linked #4336: emudhra flags Ubuntu's pip vendored certifi although Debian/Ubuntu pip is patched to read the OS store; detect the patch from core.py and grade that pip by the OS store's verdict.. The fix has been merged and a release is on its way. We appreciate your contribution to swamp.

Sign in to post a ripple.