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
2.1 KiB
2.1 KiB
API Reference: Testing CORS Misconfiguration
requests Library
Key Methods for CORS Testing
# Test origin reflection
resp = requests.get(url, headers={"Origin": "https://evil.com"})
# Test preflight
resp = requests.options(url, headers={
"Origin": "https://evil.com",
"Access-Control-Request-Method": "PUT",
"Access-Control-Request-Headers": "Authorization"
})
CORS Response Headers
| Header | Description |
|---|---|
Access-Control-Allow-Origin |
Specifies allowed origin(s) |
Access-Control-Allow-Credentials |
Whether cookies/auth headers are sent |
Access-Control-Allow-Methods |
Allowed HTTP methods for cross-origin |
Access-Control-Allow-Headers |
Allowed request headers |
Access-Control-Expose-Headers |
Headers accessible to JavaScript |
Access-Control-Max-Age |
Preflight cache duration in seconds |
Vulnerability Patterns
| Pattern | Severity | Description |
|---|---|---|
| Origin reflection + credentials | Critical | Any site can read authenticated responses |
| Null origin + credentials | High | Exploitable via sandboxed iframes |
| Wildcard + credentials | Critical | Invalid but sometimes misconfigured |
| Subdomain wildcard trust | Medium | XSS on subdomain enables CORS abuse |
| Regex bypass | High | Prefix/suffix matching allows attacker domains |
| Internal origins trusted | Medium | localhost/10.x accepted in production |
Testing Checklist
- Send
Origin: https://evil.com- check if reflected in ACAO - Send
Origin: null- check if null is accepted - Test subdomain variations of target domain
- Test prefix/suffix bypass:
target.com.evil.com - Test protocol downgrade:
http://instead ofhttps:// - Check preflight Max-Age (>86400 is excessive)
- Verify wildcard
*is not combined with credentials
References
- MDN CORS: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS
- PortSwigger CORS: https://portswigger.net/web-security/cors
- OWASP CORS Testing: https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/11-Client-side_Testing/07-Testing_Cross_Origin_Resource_Sharing