Commit graph

13 commits

Author SHA1 Message Date
GaltRanch
68e235f457 Fix dangerous-subprocess-use-audit across codebase
Replace all dynamic .split() patterns in subprocess calls with safe
alternatives: shlex.split(), explicit list args, and _run_btc/_run_ln
helpers in PyBlock.py. Covers PyBlock, block_visualizer, clockscript,
lastblockdetail, mempoolclock, nodeconnection, and ai/context.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-02 17:35:03 -03:00
GaltRanch
cdfb258e95 Harden file handling, exception specificity, and API key management
- Replace open() without context managers with `with` statements across all modified files
- Change bare `except:` to `except Exception:` for safer exception handling
- Move Whale Alert API key from hardcoded to environment variable
- Use raw strings for ASCII art to prevent escape sequence issues
- Simplify image file handling in nodeconnection.py
- Convert unsafe shell subprocess calls to list-based format

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-01 11:52:26 -03:00
GaltRanch
0224cfe230 Fix critical security vulnerabilities across the codebase
Replace insecure patterns that exposed the application to command injection,
arbitrary code execution, and data interception attacks.

- Replace os.popen/os.system with subprocess.run using argument lists
- Migrate pickle config serialization to JSON format
- Replace bare except: blocks with specific exception types
- Fix insecure HTTP URLs to HTTPS (opreturnbot.com, ascii.live)
- Replace shell curl commands with requests library calls
- Add migrate_config.py script for pickle-to-JSON config migration
- Convert existing SPV config files to JSON format

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-01 10:24:47 -03:00
Satoshi Nakamoto
2118b24d22
Update print statement for Bitcoin Node connection 2026-03-21 04:10:09 +01:00
Satoshi Nakamoto
95456d16e0
Update clockscript.py 2024-06-26 21:20:24 +02:00
Sourcery AI
da3cd9b9a6 'Refactored by Sourcery' 2022-03-22 22:20:03 +00:00
Satoshi Nakamoto
2c83242410
Update clockscript.py 2022-03-22 23:19:50 +01:00
curly60e
114340cff8
Add files via upload 2022-03-18 18:49:32 -03:00
curly60e
5bc8014265
Add files via upload 2022-03-13 23:59:13 -03:00
Sourcery AI
b530412631 'Refactored by Sourcery' 2022-03-07 23:13:50 +00:00
Satoshi Nakamoto
325bb5bef5
Update clockscript.py 2022-03-08 00:13:31 +01:00
Satoshi Nakamoto
13c5a07da8
Update clockscript.py 2022-03-07 03:07:14 +01:00
Daniel Omar Vergara Pérez
231b533f40 Replace the pyblock pkg with pybitblock 2021-12-03 15:59:28 -06:00
Renamed from pyblock/clockscript.py (Browse further)