docs: scan #101 — mljar/mercury (1 real, reported privately via PVR) - #141
Merged
Conversation
…tely via PVR) Unauthenticated notebook enumeration outside the configured directory: NotebooksAPIHandler honors a caller-controlled ?dir= that its sibling RootIndexHandler ignores; in the default anonymous-firewall mode it is reachable without auth. Bounded to .ipynb enumeration + title/description metadata + a directory-existence oracle (no file content — the read path confines .. traversal). Reproduced against shipped mercury 3.2.11. PVR enabled + no SECURITY.md -> filed privately (GHSA-8hq5-94w5-f4ff, triage); post-only with detail withheld (class only). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Scan #101 of the AI PatchLab public series.
Target: mljar/mercury — turn a Jupyter notebook into a public web app (4.4k★, Apache-2.0), commit
b02bca0.Result: 140 raw findings, 1 real (Medium), reported privately.
The finding (class only — detail withheld)
An intra-repo guard differential. Mercury's standalone default disables the Jupyter token (it is meant to be published publicly) and ships an execution firewall that blocks the dangerous authenticated endpoints so anonymous visitors can only do safe things. Two sibling handlers list notebooks from the same configured directory; one trusts a caller-supplied path to choose which directory, the other ignores it. In the token-less default the trusting one is reachable without authentication.
Impact is bounded and verified: escapes the configured directory to enumerate notebooks elsewhere on the host + read their title/description metadata + a directory-existence oracle — but not file content (the read/render path goes through Jupyter's contents manager, which rejects
..traversal → 404). Reproduced live against the shipped mercury 3.2.11 with positive and negative controls.Channel
PVR enabled + no SECURITY.md → filed privately (GHSA-8hq5-94w5-f4ff, triage). A working unauthenticated request against the product's advertised safety boundary; a public issue would be a live-deployment recipe. Post-only, detail withheld.
Curation notes
docs/+yarn.lock— the documentation website, not the shipped Python wheel. SCA reachability-blindness on artifact-vs-repo._safe_str-sanitized, non-crypto); Jinja autoescape on operator config.Files
docs/scans/mljar-mercury.md(new)docs/index.md(row + counts 100→101)docs/scan-log.md(bullet + count)🤖 Generated with Claude Code