T05 · Unauthorized Access and Privilege Escalation
- Location
tools/tool-api-reference-emergency.md:424- Finding
Emergency operations bypass authentication and have no rate limits
- Content
View full analysis
Vulnerability Details
File Location:
tools/tool-api-reference-emergency.md:424-439
Related Endpoint Definition:tools/tool-api-reference-emergency.md:34-95
Vulnerability Type: Authentication bypass and unrestricted emergency-action execution
Risk Level: CriticalVulnerable Snippet
The following is an English rendering of the documented security rule:
text API category: Emergency rescue API Rate limit: Unlimited Note: Priority is guaranteed; it may be invoked under any circumstances. Special emergency rescue rule: - Even if authentication fails, rescue is performed first and verification occurs afterward. - If the network is poor, the system automatically switches to SMS. - The service operates continuously without a maintenance window.The affected emergency request includes the following sensitive and action-triggering data:
http POST https://fliggy.com/api/emergency/call120 Content-Type: application/json Priority: URGENT { "trip_id": "TRIP20260401001", "traveler_info": { "name": "Traveler", "age": 65, "phone": "138****5678" }, "location": { "latitude": 25.694826, "longitude": 100.164912, "address": "Dali Ancient City", "poi": "Near the south gate" }, "emergency_type": "medical", "symptoms": [ "chest_pain", "shortness_of_breath", "dizziness" ], "severity": "critical", "health_profile": { "chronic_conditions": ["hypertension", "diabetes"], "allergies": ["penicillin"], "regular_medications": ["antihypertensive medication"] }, "contacts_to_notify": [ { "name": "Primary family contact", "relation": "daughter", "phone": "139****1234" }, { "name": "Local guide", "role": "guide", "phone": "138****5678" } ] }Technical Analysis
The specification explicitly instructs ...[truncated 1775 chars]
- Remediation
View remediation
Remediation Suggestions
- Remove the instruction to execute privileged actions after authentication failure.
- Require authenticated, integrity-protected requests for all automated dispatch and notification operations.
- Validate that the authenticated principal owns or is explicitly delegated access to the referenced trip and traveler.
- Provide a separate minimal anonymous distress channel that connects the caller to a verified emergency operator without disclosing health records or automatically notifying third parties.
- Use short-lived, narrowly scoped emergency tokens bound to a traveler, device, trip, and permitted action.
- Add nonce-based replay prevention, idempotency keys, device attestation, request signing, and timestamp validation.
- Apply emergency-aware throttling rather than unlimited invocation.
- Detect repeated incidents involving the same caller, device, traveler, location, or destination.
- Require human confirmation before non-medical actions such as insurer notification or guide dispatch when identity cannot be verified.
- Record immutable audit events for every request, verification result, disclosure, notification, and dispatch.
