security: improve TeapotController header sanitization #13
Labels
No labels
P1
P2
P3
PHP
agent-ready
bug
clotho
discovery
docs
epic
refactor
review
security
testing
athena
athena-gemini
audit
clotho
clotho-gemini
codex
darbs-claude
security
wiki
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: core/php-admin#13
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Issue
src/Mod/Hub/Controllers/TeapotController.phpuses header blacklisting instead of whitelisting.Current Implementation (lines 50-58)
Problem:
Recommended Fix
Use whitelisting approach:
Additional Issues
IPv6 Localhost Detection (line 62)
Current:
Missing:
::ffff:127.0.0.1172.17.0.0/1610.0.0.0/8,192.168.0.0/16Recommended fix:
Referer Validation (line 47)
Current:
Issue:
Recommended:
Testing Requirements
Priority
Medium - Defense-in-depth improvement, not critical vulnerability.
Discovered by
Automatic codebase scan (issue #3)