T08 · Insecure Dependencies
- Location
scripts/skill-rank.py:248- Finding
Unverified third-party catalog data can influence skill installation
- Content
View full analysis
List[Dict]: """Fetch skills from Tencent SkillHub API.""" skills = [] try: print("Fetching from Tencent SkillHub API...") api_url = config.get( "tencent_api_url", DEFAULT_CONFIG["tencent_api_url"] ) page = 1 page_size = 100 total_fetched = 0 while True: url = ( f"{api_url}?page={page}" f"&pageSize={page_size}&sortBy=downloads" ) req = Request(url, headers={ "Accept": "application/json", "User-Agent": "OpenClaw-SkillRank/1.0" }) with urlopen(req, timeout=30) as response: data = json.loads(response.read().decode("utf-8")) if data.get("code") != 0: print( f" API error: " f"{data.get('message', 'Unknown error')}" ) break skills_data = data.get("data", {}).get("skills", []) if not skills_data: break for skill in skills_data: skills.append({ "name": skill.get( "slug", skill.get("name", "") ), "description": ( skill.get("description_zh") or skill.get("description", "") ), "downloads": skill.get("downloads", 0), "stars": skill.get("st ...[truncated 3712 chars]- Remediation
View remediation
