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
57 lines
1.8 KiB
Markdown
57 lines
1.8 KiB
Markdown
# API Reference: Testing for Business Logic Vulnerabilities
|
|
|
|
## requests Library
|
|
|
|
### Concurrent Testing (Race Conditions)
|
|
```python
|
|
import threading
|
|
|
|
def send_request():
|
|
resp = requests.post(url, headers=headers, json=payload)
|
|
results.append(resp.status_code)
|
|
|
|
threads = [threading.Thread(target=send_request) for _ in range(10)]
|
|
for t in threads: t.start()
|
|
for t in threads: t.join()
|
|
```
|
|
|
|
## Business Logic Test Categories
|
|
|
|
### Price Manipulation Payloads
|
|
| Test | Payload | Expected |
|
|
|------|---------|----------|
|
|
| Negative quantity | `{"quantity": -1}` | Should reject |
|
|
| Zero price | `{"price": 0}` | Should reject |
|
|
| Float quantity | `{"quantity": 0.001}` | Should reject for physical goods |
|
|
| Integer overflow | `{"quantity": 2147483647}` | Should reject |
|
|
| Negative price | `{"price": -99.99}` | Should reject |
|
|
|
|
### Workflow Bypass Tests
|
|
1. Skip email verification -> access dashboard
|
|
2. Skip payment -> confirm order
|
|
3. Skip MFA -> access protected resources
|
|
4. Repeat one-time steps (coupon, voucher)
|
|
|
|
### Race Condition Targets
|
|
| Endpoint | Risk |
|
|
|----------|------|
|
|
| Coupon application | Applied multiple times |
|
|
| Balance transfer | Double spending |
|
|
| Reward claiming | Multiple claims |
|
|
| Inventory purchase | Overselling |
|
|
|
|
### Referral/Reward Abuse
|
|
- Self-referral with own email
|
|
- Referral code reuse across accounts
|
|
- Coupon stacking (multiple codes)
|
|
- Earn points -> cancel order -> keep points
|
|
|
|
## OWASP Category
|
|
- A04:2021 - Insecure Design
|
|
- Business logic flaws are not detectable by automated scanners
|
|
|
|
## References
|
|
- OWASP Testing Business Logic: https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/10-Business_Logic_Testing/
|
|
- PortSwigger Business Logic: https://portswigger.net/web-security/logic-flaws
|
|
- requests docs: https://docs.python-requests.org/
|