GatewayBalances account/ident parameters not type-checked before asString()
Severity: LOW
The gateway_balances handler accesses params[jss::account].asString() or params[jss::ident].asString() without first verifying the parameter is a string type. If a non-string value (integer, object, array) is passed, JsonCpp's asString() will throw a Json::LogicError. The RPC framework's exception handler (RPCHandler.cpp:177) catches this and returns rpcINTERNAL, but this is a defense-in-depth gap
GatewayBalances account/ident parameters not type-checked before asString()
Severity: LOW
The gateway_balances handler accesses params[jss::account].asString() or params[jss::ident].asString() without first verifying the parameter is a string type. If a non-string value (integer, object, array) is passed, JsonCpp's asString() will throw a Json::LogicError. The RPC framework's exception handler (RPCHandler.cpp:177) catches this and returns rpcINTERNAL, but this is a defense-in-depth gap