Author: jorton
Date: Thu Jun 4 07:52:10 2026
New Revision: 1934967
Log:
fix: V-004 security vulnerability
Automated security fix generated by OrbisAI Security
fix: the ctauditscts script constructs a command str... in ctauditscts
The ctauditscts script constructs a command string and passes it to os
Submitted by: orbisai0security <mediratta01.pally gmail.com>
Github: closes #664
Modified:
httpd/httpd/trunk/support/ctauditscts
Modified: httpd/httpd/trunk/support/ctauditscts
==============================================================================
--- httpd/httpd/trunk/support/ctauditscts Thu Jun 4 07:47:47 2026 (r1934966)
+++ httpd/httpd/trunk/support/ctauditscts Thu Jun 4 07:52:10 2026 (r1934967)
@@ -20,6 +20,7 @@ import os
import sqlite3
import ssl
import struct
+import subprocess
import sys
import tempfile
@@ -111,7 +112,7 @@ def audit(fn, tmp, already_checked, cur)
already_checked[key] = True
- log_url_arg = ''
+ log_url = None
if cur:
stmt = 'SELECT * FROM loginfo WHERE log_id = ?'
cur.execute(stmt, [log_id_hex])
@@ -122,14 +123,15 @@ def audit(fn, tmp, already_checked, cur)
# verify_single_proof doesn't accept <scheme>://
if '://' in log_url:
log_url = log_url.split('://')[1]
- log_url_arg = '--log_url %s' % log_url
print ' Log URL: ' + log_url
- cmd = 'verify_single_proof.py --cert %s --timestamp %s %s' % \
- (tmp_leaf_pem[1], timestamp_ms, log_url_arg)
- print '>%s<' % cmd
- os.system(cmd)
+ cmd = ['verify_single_proof.py', '--cert', tmp_leaf_pem[1],
+ '--timestamp', str(timestamp_ms)]
+ if log_url:
+ cmd += ['--log_url', log_url]
+ print '>%s<' % ' '.join(cmd)
+ subprocess.call(cmd)
os.unlink(tmp_leaf_pem[1])
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.