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

Use `git log` for most recent commit's edit time when writing version.json

Public commit record

What the developer wrote

Authored by kdmukai

50/100 · Thin
Use `git log` for most recent commit's edit time when writing version.json
✓ Specific, descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
The short version

What changed, and why it matters

This commit changes how SeedSigner records the 'last edit time' in its version.json file. Previously it scanned all source files for the most recent modification time. Now it runs a git command to use the most recent commit timestamp. The main concern is that it uses os.popen(), which executes a shell command, and does not validate the output. In normal use this is benign, but if an attacker can control the working directory or git executable, it could become a command-injection or misleading-metadata issue. There is no direct evidence this is being exploited.

Recommended action

Treat as a low-priority hygiene issue. Replace os.popen() with subprocess.run() using an explicit argument list and validate the returned ISO-8601 timestamp before writing it to version.json. Ensure the build environment controls PATH and the git executable. No urgent patch is required absent evidence of exploitation.

Security signals we found

01

Use of os.popen() to execute a shell command

02

Unvalidated external command output written to JSON metadata

03

Potential command injection if git binary or PATH is attacker-controlled

04

Build-time metadata change, not cryptographic or seed-handling code

Risk score

Why this scored 14/100

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