T09 · Insecure Skill Coding Practices
- Location
scripts/shared_utils/playwright_sso.py:87- Finding
Credential Transmission with TLS Certificate Verification Disabled
- Content
View full analysis
int: """Make a GET request and return the HTTP status code.""" try: import ssl req = urllib.request.Request(url, headers=headers) ctx = ssl.create_default_context() ctx.check_hostname = False ctx.verify_mode = ssl.CERT_NONE with urllib.request.urlopen(req, context=ctx, timeout=8) as resp: return resp.status ``` From `scripts/shared_utils/playwright_sso.py:157-168`: ```python req = urllib.request.Request( "https://slack.com/api/auth.test", headers={"Authorization": f"Bearer {slack_xoxc}"}, ) ctx2 = ssl.create_default_context() ctx2.check_hostname = False ctx2.verify_mode = ssl.CERT_NONE with urllib.request.urlopen(req, context=ctx2, timeout=8) as resp: body = _json.loads(resp.read()) result["slack_xoxc"] = body.get("ok") is True ``` From `scripts/shared_utils/browser.py:104-116`: ```python def http_get(url: str, headers: dict) -> int: """Make a GET request and return the HTTP status code.""" import ssl try: req = urllib.request.Request(url, headers=headers) ctx = ssl.create_default_context() ctx.check_hostname = False ctx.verify_mode = ssl.CERT_NONE with urllib.request.urlopen(req, context=ctx, timeout=8) as resp: return resp.status ``` The same behavior appears in documented executable examples, including: - `references/tool_connections/jira/connection-api-token.md:46-47, 65-66` - `references/too ...[truncated 3288 chars]- Remediation
View remediation
