Fix ESCAPE issues in threat intelligence and reference DB
- Added -- separator to grep commands in lib/threat-intelligence.sh (5 fixes) - Added -- separator to grep commands in lib/reference-db.sh (3 fixes) - Prevents filename injection attacks where filenames starting with - could be misinterpreted as command options 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
+3
-3
@@ -289,9 +289,9 @@ build_domains_section() {
|
||||
|
||||
# Extract domain info from config
|
||||
local domain="$basename"
|
||||
local doc_root=$(grep "^documentroot:" "$config_file" | awk '{print $2}' || true)
|
||||
local log_path=$(grep "target:.*domlogs" "$config_file" | head -1 | awk '{print $2}' || true)
|
||||
local server_alias=$(grep "^serveralias:" "$config_file" | awk '{print $2}' || true)
|
||||
local doc_root=$(grep "^documentroot:" -- "$config_file" | awk '{print $2}' || true)
|
||||
local log_path=$(grep "target:.*domlogs" -- "$config_file" | head -1 | awk '{print $2}' || true)
|
||||
local server_alias=$(grep "^serveralias:" -- "$config_file" | awk '{print $2}' || true)
|
||||
local php_version=$(grep "^phpversion:" "$config_file" | awk '{print $2}' || true)
|
||||
|
||||
# Determine if primary domain
|
||||
|
||||
Reference in New Issue
Block a user