T09 · Insecure Skill Coding Practices
- Location
ent_main_business.py:4- Finding
Enterprise API Data Transmitted Over Plaintext HTTP
- Content
View full analysis
Vulnerability Details
File Location:
ent_main_business.py:4-7, 40-46
Vulnerability Type: Cleartext transmission of enterprise identifiers and API responses
Risk Level: MediumVulnerable Code
python config = { "host": "http://agent-data.ihdwork.com", "base_path": "/handi-ai", "endpoint": "/ent-analysis/main-business" }python response = requests.post( url=url, headers=headers, data=json.dumps(payload), timeout=10 )The same insecure endpoint is prescribed for both API operations in
SKILL.md:45-53andSKILL.md:90-99:python config = { "host": "http://agent-data.ihdwork.com", "base_path": "/handi-ai", "endpoint": "/common-api/search-ent" } response = requests.get(url, params=params, timeout=10)python config_main = { "host": "http://agent-data.ihdwork.com", "base_path": "/handi-ai", "endpoint": "/ent-analysis/main-business" } response = requests.post( url, headers=headers, data=json.dumps(payload), timeout=10 )Technical Analysis
Both the documented workflow and executable implementation use an
http://endpoint. Consequently, the enterprise name or identifier in each request and all business information in the response are transmitted without transport encryption or authenticated server identity.An attacker able to observe or alter the relevant network path could read query data, modify returned business records, inject fabricated response fields, or impersonate the API server. Because the returned data is intended to support enterprise-analysis reports, tampered responses may be treated as authoritative input and produce inaccurate conclusions.
Attack Path
- A user invokes the Skill to search for or analyze an enterprise.
- The Skill sends the enterprise name or
ent_idtoagent-data.ihdwork.comover plaintext HTTP. - An ...[truncated 1020 chars]
- Remediation
View remediation
Remediation Suggestions
- Replace the endpoint with an
https://URL and ensure the service presents a certificate trusted foragent-data.ihdwork.com. - Retain TLS certificate verification; do not use
verify=Falseor suppress certificate errors. - Reject configuration values using plaintext HTTP rather than silently accepting insecure endpoints.
- Apply the HTTPS requirement consistently to both the enterprise-search and main-business endpoints in
SKILL.md. - Consider response authentication or signing if report integrity is especially sensitive.
- Validate the expected response schema and status code before treating a response as successful.
- Restrict outbound network access so the Skill can contact only the approved HTTPS API host.
- Replace the endpoint with an
