T09 · Insecure Skill Coding Practices
- Location
scripts/baidu_route_link.py:75- Finding
Precise Location Data Exposed Through a Plaintext HTTP Route URL
- Content
View full analysis
str: if origin_name: origin = f"name:{origin_name}|latlng:{origin_lat},{origin_lng}" else: origin = f"{origin_lat},{origin_lng}" if dest_name: destination = f"name:{dest_name}|latlng:{dest_lat},{dest_lng}" else: destination = f"{dest_lat},{dest_lng}" params: Dict[str, str] = { "origin": origin, "destination": destination, "mode": mode, "coord_type": coord_type, "output": "html", "src": self.src, } if region: params["region"] = region return "http://api.map.baidu.com/direction?" + urlencode(params) ``` ### Technical Analysis The generated route URL uses plaintext HTTP while embedding exact origin and destination coordinates. Optional human-readable origin and destination names are also included in the query string. Although the preceding route-calculation API call uses HTTPS, the link returned to the user does not. When the link is opened, its query string may be visible to network intermediaries such as public Wi-Fi operators, proxies, gateways, or other on-path observers. An active intermediary could also modify the response or redirect the user to a malicious destination. URLs may additionally be retained in browser history, proxy logs, analytics systems, and referrer data. In the context of a medical triage Skill, the destination may reveal an intended hospital or medical specialty, making the exposed route data more ...[truncated 1201 chars]- Remediation
View remediation
