T09 · Insecure Skill Coding Practices
- Location
scripts/image_processing_diagnosis.py:942- Finding
Unrestricted Endpoint Allows Credential-Signed Requests to Untrusted Hosts
- Content
View full analysis
"_RetryingHandle": """Build an oss2.Bucket handle carrying UA + per-call timeout. oss2.Bucket raises oss2.exceptions.ClientError for an illegal bucket name (uppercase / underscore / special character / wrong length); it is converted here to the unified OssClientError(category="invalid") so the entry script degrades with [WARN] + STATUS: DEGRADED instead of a bare Traceback. """ auth = oss2.ProviderAuth(EnvCredentialsProvider()) session = oss2.Session() # Inject the observability User-Agent into every SDK request of this run. session.session.headers["User-Agent"] = user_agent() try: return _RetryingHandle( oss2.Bucket(auth, endpoint, bucket_name, s ...[truncated 3053 chars]- Remediation
View remediation
