red-team send-path hardening: hold pada verify False/None, _send_rejected whitelist, fee guard, non-dict skip (V61/B20-B23)

This commit is contained in:
proitlab committed 2026-08-13 23:12:51 +07:00
1 parent 69704fa23d
commit d6b5927307
8 files changed
+182 -32

No files matched your search

+7 -2
View File
@@ -221,11 +221,16 @@ def _get_liquid_vex():
timeout=8,
)
resp.raise_for_status()
raw = resp.json().get('account', {}).get('core_liquid_balance')
data = resp.json()
# V61: bentuk tak dikenal (list/string/proxy salah) → lewati host
raw = None
if isinstance(data, dict):
raw = data.get('account', {}).get('core_liquid_balance')
if raw:
value = float(raw.split()[0])
break
except (requests.RequestException, KeyError, TypeError, ValueError):
except (requests.RequestException, KeyError, TypeError, ValueError,
AttributeError):
continue
if value is None:
value = _liquid_cache['value'] # semua gagal → nilai lama bila ada