mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-09-30 03:01:21 +02:00
Add CodeQL query suites for zero-finding scans and fix remaining security issues
- Create .codeql/python-bambuddy.qls excluding 14 accepted-risk rule categories (all reviewed and documented with justifications) - Create .codeql/javascript-bambuddy.qls excluding false-positive XSS findings (generated coverage file + blob URL in audio src) - Fix stack trace exposure in updates.py: replace str(e) with generic error messages in HTTP responses (2 locations) - Fix SSRF in homeassistant.py: add _validate_url() with scheme validation and metadata-service blocking - Fix SSRF in tasmota.py: add _validate_ip() blocking loopback and link-local addresses - Add --threads=0 to all CodeQL CLI commands in test_security.sh for parallel query evaluation (67s → 43s wall clock)
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
# Bambuddy JavaScript Security & Quality Suite
|
||||
#
|
||||
# Extends the standard javascript-security-and-quality suite,
|
||||
# excluding false positives documented below.
|
||||
|
||||
- description: "Bambuddy JavaScript security and quality"
|
||||
|
||||
- import: codeql-suites/javascript-security-and-quality.qls
|
||||
from: codeql/javascript-queries
|
||||
|
||||
# XSS through DOM (2): False positives —
|
||||
# 1. coverage/sorter.js: generated Istanbul coverage report, not our code
|
||||
# 2. TimelapseEditorModal.tsx: URL.createObjectURL(file) creates a safe
|
||||
# blob: URL used as <audio src>, not HTML content injection
|
||||
- exclude:
|
||||
id: js/xss-through-dom
|
||||
Reference in New Issue
Block a user