mirror of
https://github.com/SHOGGOTH-SECTOR/sica-fondt.git
synced 2026-08-01 08:30:20 +00:00
Place useful parts of the surrounding repos into sica-fondt by layer, per the
body model (Ada = membrane; brain/endocrine/capabilities/knowledge non-Ada):
- brain/ LLM reasoning + providers (dapr, hermes, MoMoA)
- capabilities/ REPRAG sidecars: hermes tools/skills, dapr tools, parallel
dispatch, A51 channels, and the OSINT cluster
- knowledge/ LORAG corpus: 754 cyber-skills, agency personas, secure-coding,
MITRE ATT&CK data
- reference/ defensive threat-reference (C3, shhbruh doc) + AdaYaml parser
License handling: AGPL sources (worldosint, advanced_evolution, mercury,
Reticulum) and GPL DeTTECT are SPEC-only clean-room/port descriptions — no
copyleft code copied. MIT/Apache/data parts copied as working trees.
Safety: shhbruh escape/persistence material and C3 covert-C2 kept as reference
only, not wired into the running organism. See CONSOLIDATION.md.
https://claude.ai/code/session_01UehUqEXXJJCsHoA4voCU5c
56 lines
1.7 KiB
Markdown
56 lines
1.7 KiB
Markdown
# API Reference: Testing for Email Header Injection
|
|
|
|
## CRLF Encoding Variants
|
|
|
|
| Encoding | Representation | Description |
|
|
|----------|---------------|-------------|
|
|
| `%0A` | LF | URL-encoded line feed |
|
|
| `%0D%0A` | CRLF | URL-encoded carriage return + line feed |
|
|
| `%0D` | CR | URL-encoded carriage return |
|
|
| `%250A` | Double-encoded LF | Bypasses single decode |
|
|
| `\n` | Raw LF | Direct newline character |
|
|
|
|
## Injectable Headers
|
|
|
|
| Header | Impact | Severity |
|
|
|--------|--------|----------|
|
|
| Cc: | Send copy to attacker | High |
|
|
| Bcc: | Hidden copy to attacker | High |
|
|
| From: | Email spoofing | Medium |
|
|
| Reply-To: | Phishing redirect | Medium |
|
|
| Subject: | Subject override | Low |
|
|
| Content-Type: | Body injection | High |
|
|
| To: | Additional recipients | High |
|
|
|
|
## Common Injection Points
|
|
|
|
| Endpoint | Field | Risk |
|
|
|----------|-------|------|
|
|
| /contact | email, name, subject | Header injection |
|
|
| /share | to, from | Recipient injection |
|
|
| /invite | email | Mass invitation abuse |
|
|
| /forgot-password | email | CC token to attacker |
|
|
| /api/send-email | to, subject, body | Full control |
|
|
|
|
## Attack Scenarios
|
|
|
|
| Scenario | Technique |
|
|
|----------|-----------|
|
|
| Spam relay | Inject BCC with mass recipients |
|
|
| Phishing | Override From/Reply-To |
|
|
| Password reset hijack | CC reset token email |
|
|
| Content override | MIME boundary injection |
|
|
|
|
## Python Libraries
|
|
|
|
| Library | Version | Purpose |
|
|
|---------|---------|---------|
|
|
| `requests` | >=2.28 | HTTP form submission |
|
|
| `json` | stdlib | Report generation |
|
|
|
|
## References
|
|
|
|
- OWASP Email Injection: https://owasp.org/www-community/attacks/Email_Injection
|
|
- swaks SMTP testing: https://www.jetmore.org/john/code/swaks/
|
|
- mailhog: https://github.com/mailhog/MailHog
|