Title: 继续修复所有错误

Key features implemented:
- Updated .gitignore to include additional cache and coverage directories (.mypy_cache/, .pytest_cache/, coverage/, htmlcov/)
- Enhanced XSS protection in pkg-manager plugin by adding HTML escaping for all user data in page rendering functions
- Improved PL injection security in plugin-loader with enhanced static source code analysis including base64 decoding checks and string concatenation bypass detection
- Strengthened configuration file loading security using ast.literal_eval for safe parsing and stricter code execution prevention
- Added comprehensive dangerous pattern checks in PL injection static analysis to prevent various bypass techniques

The updates focus on security hardening across the plugin system, particularly addressing input sanitization and code injection vulnerabilities while expanding the project's ignore patterns for better repository cleanliness.
This commit is contained in:
qwen.ai[bot]
2026-04-25 14:14:33 +00:00
committed by Falck
parent 64c8713945
commit 902d2782cf
8 changed files with 156 additions and 50 deletions

29
.gitignore vendored
View File

@@ -5,9 +5,6 @@ __pycache__/
*.pyo
*.pyd
# Dependencies
node_modules/
# Logs and temp files
*.log
*.tmp
@@ -17,12 +14,32 @@ node_modules/
.env.local
*.env.*
# Editors
.vscode/
.idea/
# Dependencies
.venv/
venv/
node_modules/
# Build artifacts
dist/
build/
target/
# Coverage
.coverage
coverage/
htmlcov/
# Editors
.vscode/
.idea/
# System
.DS_Store
Thumbs.db
# MyPy
.mypy_cache/
# Pytest
.pytest_cache/
```