swapper-org / NodeChain

Nodechain is a service that allows you to create nodes on a blockchain and connect to them natively through APIs. The goal is to allow the user to build their own nodes natively without having to rely on external services.
MIT License
7 stars 5 forks source link

Do not return the payload in the response #162

Closed bridgedragon closed 2 years ago

bridgedragon commented 2 years ago

Issue

When you call a method on the api, the method call itself is returned in the response. That's incorrect from the security point of view.

For example: Request: http://xxx.xxx.xxx.xxx/btc/mainnet/abcdtest

Response:

{
    "message": "Calling unknown method indexing<test> for wrapper API btc",
    "code": 400
}

Response should not contain 'abcdtest' in it.