Skip to content

Universal SEO skill for Claude Code. 26 sub-skills + 19 sub-agents covering technical SEO, E-E-A-T, schema, GEO/AEO, agent readiness (Lighthouse Agentic Browsing, WebMCP, llms.txt), backlinks, local SEO, e-commerce, international SEO, Google APIs, and PDF/Excel reporting. 9 optional extensions for live SEO data.

fix(sync_flow): require HTTPS in URL validator, add @evil.com bypass test

Danielf29b0d01933f
diff --git a/scripts/sync_flow.py b/scripts/sync_flow.py
index 6cf1942..32872a7 100644
--- a/scripts/sync_flow.py
+++ b/scripts/sync_flow.py
@@ -21,10 +21,10 @@ _SIZE_LIMIT = 5 * 1024 * 1024 # 5 MB
def _validate_github_url(url):
- """Abort if url does not target the expected GitHub API host."""
+ """Abort if url does not use HTTPS or does not target the expected GitHub API host."""
parsed = urllib.parse.urlparse(url)
- if parsed.netloc != _ALLOWED_HOST:
- raise ValueError(f"Blocked request to unexpected host: {parsed.netloc!r}")
+ if parsed.scheme != "https" or parsed.netloc != _ALLOWED_HOST:
+ raise ValueError(f"Blocked request to unexpected host: {parsed.netloc!r} (scheme: {parsed.scheme!r})")
PROMPT_STAGES = ["find", "leverage", "optimize", "win", "local"]
STATIC_FILES = [
("docs/01-framework/flow-framework.md", "flow-framework.md"),
diff --git a/tests/test_sync_flow.py b/tests/test_sync_flow.py
index 47edbfa..8da4f28 100644
--- a/tests/test_sync_flow.py
+++ b/tests/test_sync_flow.py
@@ -150,6 +150,14 @@ def test_validate_github_url_blocks_non_github_host():
sf._validate_github_url("https://evil.example.com/repos/AgriciDaniel/flow/contents/file.md")
+def test_validate_github_url_blocks_userinfo_ssrf():
+ """_validate_github_url must block @evil.com userinfo bypass (VULN-A10)."""
+ sf = _load_sync_flow_module()
+ import pytest
+ with pytest.raises(ValueError, match="Blocked"):
+ sf._validate_github_url("https://[email protected]/repos/AgriciDaniel/flow/contents/file.md")
+
+
def test_validate_github_url_allows_github_api():
"""_validate_github_url must not raise for api.github.com URLs (VULN-A10)."""
sf = _load_sync_flow_module()