AI-generated analysisPublished automatically and not human-verified. Validated context appears in community notes below.
← Watch feed
Low 33 Bitcoin

Fix "File traversal detected" crash processing plugin commands on Windows (#7422)

Public commit record

What the developer wrote

Authored by Andrew Camilleri

58/100 · Thin
Fix "File traversal detected" crash processing plugin commands on Windows (#7422)
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Links an issue, advisory, or supporting reference! No meaningful explanatory body
The short version

What changed, and why it matters

This commit fixes a bug in BTCPay Server's plugin system where a safety check that prevents directory traversal attacks was accidentally rejecting valid plugin names on Windows. The original code always appended a '/' slash, but Windows uses '\' as its path separator, so the safety check compared paths with mismatched slashes and falsely flagged them as attacks, causing a crash. The fix makes the trailing slash match the operating system's separator. There is no direct evidence in the commit that an actual security vulnerability was exploited; it appears to be a bug fix for a false-positive crash.

Recommended action

Treat as a reliability/correctness fix rather than a security patch. Verify the fix on Windows by running plugin commands and confirming the 'File traversal detected' crash no longer occurs. Review whether any other path-prefix checks in the codebase use hard-coded '/' separators and could have similar false positives on Windows.

Security signals we found

01

Path traversal guard present and being repaired

02

Use of Path.GetFullPath and directory-prefix check for sandboxing

03

Fix for cross-platform path separator mismatch

04

No new input validation or sanitization added

05

Crash/DoS symptom ('InvalidOperationException: File traversal detected') on Windows

Risk score

Why this scored 33/100

Our methodology →
Potential impact 8/30
Exploitability 6/25
Stealth signal 4/15
Affected reach 5/15
Confidence 7/10
Evidence quality 3/5
Human-validated context

Community notes

Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.

No validated notes yet.

The AI analysis stands alone for now. Submit a note if you can add evidence or important context.