T05 · Unauthorized Access and Privilege Escalation
- Location
scripts/fetch_swagger.py:41- Finding
Unrestricted URL Fetching Enables Server-Side Request Forgery
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This skill does what it claims, but it handles API credentials and generates app source code with too little safety guidance or input hardening.
Install only if you are comfortable reviewing generated Kotlin before it is compiled, and use it only with trusted Swagger documents. Prefer HTTPS URLs, short-lived read-only credentials, and safer secret input methods than command-line passwords or tokens. Avoid query-string API keys and avoid fetching from untrusted or internal-only URLs unless you understand the network exposure.
scripts/fetch_swagger.py:41Unrestricted URL Fetching Enables Server-Side Request Forgery
scripts/fetch_swagger.py:46Authentication Secrets Can Be Exposed Through Plaintext Transport, URLs, and Process Arguments
scripts/generate_retrofit.py:516Untrusted Swagger Fields Can Inject Arbitrary Kotlin Source into Generated Files
The implemented script accurately covers the fetching/authentication portion of the description, including HTTP retrieval of Swagger v2 docs with none/basic/bearer/api-key auth and optional file output. However, the declared primary purpose is broader and centered on generating Android Retrofit/Kotlin client code from Swagger documentation. No code generation logic exists in this chunk: it neither parses Swagger into Kotlin models nor emits Retrofit service interfaces. Therefore the description materially overstates the code's functionality, making it a mismatch.
The code clearly matches the core code-generation portion of the description: it reads Swagger v2 JSON, parses definitions and paths, supports endpoint filtering/search/tag selection, and generates Retrofit/Kotlin models and service interfaces. However, the declared description materially claims support for fetching Swagger docs via HTTP with multiple auth schemes. This code has no networking logic, no HTTP client usage, no URL input handling beyond a local file path or stdin, and no auth-related implementation. Therefore the description overstates key capabilities that are not present in the supplied code chunk.
The skill promotes fetching authenticated Swagger documents over plain HTTP without warning that Basic Auth, bearer tokens, or API keys could be transmitted in cleartext. In this context the danger is elevated because the skill specifically supports multiple credential types and demonstrates insecure http:// URLs in examples.
Referenced artifact was not completely inspected
使用 `scripts/generate_retrofit.py` 生成代码:
Referenced artifact was not completely inspected
使用 `scripts/generate_retrofit.py` 生成代码:
Referenced artifact was not completely inspected
使用 `scripts/generate_retrofit.py` 生成代码:
Referenced artifact was not completely inspected
使用 `scripts/generate_retrofit.py` 生成代码:
Referenced artifact was not completely inspected
使用 `scripts/generate_retrofit.py` 生成代码:
Referenced artifact was not completely inspected
使用 `scripts/generate_retrofit.py` 生成代码:
Referenced artifact was not completely inspected
使用 `scripts/generate_retrofit.py` 生成代码:
Referenced artifact was not completely inspected
使用 `scripts/generate_retrofit.py` 生成代码:
Referenced artifact was not completely inspected
使用 `scripts/generate_retrofit.py` 生成代码:
Referenced artifact was not completely inspected
使用 `scripts/generate_retrofit.py` 生成代码:
Referenced artifact was not completely inspected
使用 `scripts/generate_retrofit.py` 生成代码:
Referenced artifact was not completely inspected
使用 `scripts/generate_retrofit.py` 生成代码:
Referenced artifact was not completely inspected
使用 `scripts/generate_retrofit.py` 生成代码:
Referenced artifact was not completely inspected
使用 `scripts/generate_retrofit.py` 生成代码:
Referenced artifact was not completely inspected
使用 `scripts/generate_retrofit.py` 生成代码:
Referenced artifact was not completely inspected
使用 `scripts/generate_retrofit.py` 生成代码:
Referenced artifact was not completely inspected
使用 `scripts/generate_retrofit.py` 生成代码:
Referenced artifact was not completely inspected
使用 `scripts/generate_retrofit.py` 生成代码:
Referenced artifact was not completely inspected
使用 `scripts/generate_retrofit.py` 生成代码:
Referenced artifact was not completely inspected
使用 `scripts/generate_retrofit.py` 生成代码:
Referenced artifact was not completely inspected
使用 `scripts/generate_retrofit.py` 生成代码:
Referenced artifact was not completely inspected
使用 `scripts/generate_retrofit.py` 生成代码: