T05 · Unauthorized Access and Privilege Escalation
- Location
scripts/query_gnss.py:6- Finding
Device Location Lookup Lacks Caller Authorization and Ownership Verification
- Content
View full analysis
") sys.exit(1) imei = sys.argv[1] record_time, address, raw_data = query_location(imei) ``` ### Technical Analysis The script accepts an arbitrary IMEI from the command line and requests the device's latest GNSS record. It does not authenticate the caller, verify that the caller owns or manages the referenced device, obtain the tracked person's consent, or supply an authorization credential to the remote service. An IMEI is an identifier, not an authentication secret. Treating possession of an IMEI as sufficient authority to obtain a device's location creates an insecure direct object reference pattern. The workflow documented in `SKILL.md:15-18` also allows an IMEI to be extracted from a QR code and immediately used for the lookup, without an intervening authorization decision. ### Attack Path 1. An attacker obtains a target device's IMEI from a QR code, exposed record, photograph, support interaction, or another source. 2. The attacker invokes `python scripts/query_gnss.py TARGET_IMEI`, or causes the Skill to process a QR code containing that IMEI. 3. The script sends the identifier directly to the GNSS endpoint as the `deviceid` query parameter. 4. If the endpoint accepts the request, the script retrieves and displays the device's latest address and record time. 5. The attacker uses this information to infer the target's current o ...[truncated 492 chars]- Remediation
View remediation
