git-snapshot-rollback
Warn
Audited by Socket on Sep 16, 2026
1 alert found:
SecuritySecurityscripts/rollback.py
MEDIUMSecurityMEDIUM
scripts/rollback.py
The code appears intended as a Git archival/rollback helper, not as malware. It contains a significant command-injection vulnerability because untrusted command-line values are interpolated into shell=True commands without validation or quoting. It also has a clear functional defect due to the undefined reset_log variable and does not actually perform the claimed rollback. The code should use subprocess argument lists with shell=False, validate commit hashes and branch names, avoid git add . unless explicitly intended, and fix the logging variable before use.
Confidence: 99%Severity: 82%
Audit Metadata