T09 · Insecure Skill Coding Practices
- Location
scripts/web_to_all.py:478- Finding
Server-Side Request Forgery Through Content-Derived Original URLs
- Content
View full analysis
len(markdown): print(f"✅ X original fetched: {len(orig_markdown)} chars (was {len(markdown)})") markdown = orig_markdown else: print(f"⚠️ X original shorter than feishu wiki, keeping feishu content") except Exception as e: print(f"⚠️ X original fetch failed: {e}, using feishu wiki content (fallback)") # WeChat or ordinary web original: use markitdown elif "mp.weixin.qq.com" in lower_orig or lower_orig.startswith("http"): try: orig_markdown = convert_to_md(original_url) if len(orig_markdown) > len(markdown): print(f"✅ Web original fetched: {len(orig_markdown)} chars (was {len(markdown)})") markdown = orig_markdown else: print(f"⚠️ Web original shorter than feishu wiki, keeping feishu content") except Exception as e: print(f"⚠️ Web original fetch failed: {e}, using feishu wiki content (fallback)") ``` ```python # scripts/web_to_md.py:112-119 def _convert_markitdown(url_or_path: str, output_path: str = None) -> str: try: from markitdown import MarkItDown except ImportError: print("❌ markitdown not installed. Run: pip install markitdown", file=sys.stderr) sys.exit(1) md = MarkItDown() result ...[truncated 2500 chars]- Remediation
View remediation
