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

Skip non-key entries in list_paginated

Public commit record

What the developer wrote

Authored by benthecarman

78/100 · Adequate
Skip non-key entries in list_paginated

Use dir_entry_is_key in list_paginated_impl to skip .tmp files,
directories, and other non-key entries, to be the same as list_impl.

Claude added a test for this as well.
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification
The short version

What changed, and why it matters

This commit fixes a consistency bug in a file-based storage component used by Lightning Dev Kit. A paginated listing function was including temporary files and stray directories as if they were real data keys, which could confuse callers, leak internal filenames, or cause errors when reading back data. The fix makes the paginated listing skip the same non-key entries that the non-paginated listing already skipped.

Recommended action

Review whether any downstream code already received or acted on bogus keys from list_paginated; consider backporting to release branches that include FilesystemStoreV2. No immediate emergency response is indicated, but the fix should be included in the next maintenance release.

Security signals we found

01

Information disclosure: paginated listing could expose internal .tmp filenames and stray directory names to API consumers

02

Availability/reliability: callers iterating returned keys could fail when later reading entries that are not real persisted keys

03

Behavioral inconsistency between paginated and non-paginated listing APIs in the same store

04

Regression test added for non-key entry filtering

Risk score

Why this scored 37/100

Our methodology →
Potential impact 8/30
Exploitability 5/25
Stealth signal 6/15
Affected reach 7/15
Confidence 7/10
Evidence quality 4/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.