HMAC signature verification omits endpoint and payload allowing request forgery on CoinMate API
The CoinMate API's HMAC signature only covers the nonce, client ID and public key, omitting the endpoint and request body. An attacker who intercepts and drops a legitimate request can reuse its signature to forge a different request to a trading or withdrawal endpoint.
Originally disclosed on HackerOne
- Fixed in 43 hours
- Disclosed after 37 days
ZERO-DAY VULNERABILITY REPORT
Asset: coinmate.io (Core REST API - https://coinmate.io/api)
Vulnerability Type: CWE-325 (Missing Required Cryptographic Step) / CWE-345 (Payload Malleability & Request Forgery)
Severity Category: High (CVSS v3.0: 8.1 - AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N)
Important Triage Note: To prevent false negatives during verification, please carefully read the "Attacker Execution Methodology" section before attempting manual reproduction. Manual re-use of cURL signatures will fail due to the Database's Nonce Replay Protection. We have provided an automated Python PoC to simulate the precise network conditions of the exploit.
1. Executive Summary & Impact
The CoinMate API employs HMAC-SHA256 signatures for authentication. However, a systemic architectural flaw exists in how the backend constructs the HMAC pre-image.
Currently, the signature is calculated strictly using:
HMAC(private_key, nonce + clientId + publicKey)
CRITICAL FINDING: The cryptographic signature completely omits the HTTP Endpoint (URL Path) and the Request Body (Payload/Parameters).
Because identity (the Signature) is not bound to intent (the Payload/Endpoint), the implementation lacks integrity and non-repudiation.
The Attack Vector (Man-in-the-Middle)
An attacker intercepting network traffic (e.g., via a rogue public WiFi, compromised ISP layer, or malicious browser extension) can steal a valid API signature intended for a harmless, read-only action (such as /api/balances).
By dropping the harmless request from reaching Coinmate, the attacker prevents the nonce from being consumed by your database. The attacker then injects malicious POST parameters (e.g., amount, price, currencyPair) and forwards the hijacked signature to a destructive trading or withdrawal endpoint (e.g., /api/sellLimit).
The Coinmate backend mathematically verifies the HMAC, sees a valid, unburned Nonce, and executes the forged payload on the destructive endpoint without realizing the data was altered in transit.
Security Impact: Complete compromise of API-connected accounts. An attacker can drain funds, execute Flash Crashes via market manipulation, and bypass all intended API Key endpoint restrictions, resulting in catastrophic loss of user assets.
2. Exploitation Flow (Malleability Diagram)
[Victim Device] -----> (Initiates: POST /api/balances with Signature X & Nonce 1) -----> [Attacker]
|
[Attacker DROPS the packet]
[Attacker HIJACKS Signature X]
[Attacker INJECTS 'sellLimit' parameters]
|
[Coinmate Database] <----- (Attacker Forges: POST /api/sellLimit with Signature X) <---------/
|
[Coinmate verifies Signature X is mathematically valid]
[Coinmate executes the SELL ORDER based on the Attacker's forged parameters]
3. Steps to Reproduce (Using Attached E2E PoC)
Why Manual cURL Testing Often Fails (False Positives):
If a security analyst tries to test this by sending a valid request to /balances, taking the signature from that successful request, changing the URL/body, and sending it again via cURL to /sellLimit, the backend will reject it with "Access denied". This is NOT because the signature validation caught the changed payload; it is because the backend's Anti-Replay mechanism saw that the nonce was already used.
In a real attack, the attacker intercepts and drops the first request, preserving the freshness of the nonce.
To irrefutably prove the vulnerability, use the attached automated Python validation script:
- Download the attached
02_Coinmate_Exploit_E2E_Validator_Script.py. - Open the script and insert your active isolated testing API Keys into the
CLIENT_ID,PUBLIC_KEY, andPRIVATE_KEYvariables. - Ensure Python and the requests library are installed (
pip install requests). - Run the script:
python3 02_Coinmate_Exploit_E2E_Validator_Script.py
What the Script Automatically Proves (Wire-by-Wire):
- Action 1 (Safeguard Check): The script validates your keys by hitting
/balances. - Action 2 (Proving the Nonce Trap): The script intentionally reuses the signature from Action 1. It receives
Access denied, demonstrating to the analyst the exact behavior of Nonce Exhaustion. - Action 3A (Body Malleability Isolation): The script injects malicious POST parameters (
MALICIOUS_INJECTION=HACKED_DATA) into a secure request. CoinMate processes it perfectly, proving the Hash completely ignores the Payload Body. - Action 3B (Zero-Day Cross-Endpoint Hijacking): The script generates a fresh signature for
/balances, intercepts it internally, injects forged trading variables (currencyPair=BTC_EUR), and redirects the payload to a completely different endpoint (/api/openOrders). - Conclusion: Coinmate processes the hijacked payload and returns
200 OK(or a business logic error inside a 200 response), officially bypassing the Cryptographic HMAC constraints and proving the CWE-325 and CWE-345 vulnerabilities simultaneously across two different vectors.
4. Required Remediation (API Authentication Upgrade)
To secure the Mainnet API, CoinMate must immediately deprecate the current signature logic and adopt the industry standard for cryptographic API validation (utilized by Binance, Kraken, and Coinbase).
The CoinMate backend must be updated to expect and verify signatures that include the full request context:
HMAC = SHA256( private_key, nonce + HTTP_METHOD + REQUEST_PATH + POST_BODY_STRING + clientId + publicKey )
By enforcing this structure, any MITM attacker attempting to alter an /api/balances request into an /api/openOrders request will instantly break the Hash integrity, causing the backend to throw a legitimate cryptography exception.
Scope Declaration: This vulnerability resides entirely within CoinMate's proprietary backend API architecture algorithms. It is not a vulnerability in a third-party application, but rather a systemic flaw in the core REST API authentication framework.
Impact
Complete compromise of API-connected accounts. An attacker can drain funds, execute Flash Crashes via market manipulation, and bypass all intended API Key endpoint restrictions, resulting in catastrophic loss of user assets. Because identity (the Signature) is not bound to intent (the Payload/Endpoint), the implementation lacks integrity and non-repudiation.
Context
CoinMate.io exposes a core REST API at https://coinmate.io/api. Clients authenticate to it with HMAC-SHA256 signatures derived from an API key pair: a clientId, a publicKey and a privateKey, plus a per-request nonce. The signature is what proves to the backend that a request comes from the holder of the private key, and the nonce is what stops a captured request from being replayed.
The report argues that the signature construction is too narrow. The backend computes the HMAC over the nonce, the client ID and the public key only, and never over the HTTP method, the request path or the request body. The signature therefore authenticates the caller but says nothing about what the caller is asking for. The report classifies this as CWE-325 (Missing Required Cryptographic Step) and CWE-345 (Payload Malleability and Request Forgery), and the researcher rates it High with a CVSS v3.0 score of 8.1 (AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N). The platform record for the report lists it as low severity; the two ratings differ and both are worth keeping in mind.
Setup
Reproduction needs an isolated testing API key set on CoinMate: CLIENT_ID, PUBLIC_KEY and PRIVATE_KEY. The researcher supplies an automated Python proof of concept, [redacted].py, which needs Python and the requests library (pip install requests). The keys are inserted into the three variables named above before the script is run.
The report opens with a triage warning that matters for anyone trying to reproduce this by hand: reusing a cURL signature manually will fail because of the database's nonce replay protection. The script exists to simulate the network conditions of the real attack, in which the first request never reaches the server.
Finding it
The researcher's observation is about the HMAC pre-image. As implemented, the signature is calculated strictly as:
HMAC(private_key, nonce + clientId + publicKey)
Nothing in that string depends on the endpoint being called or on the parameters being sent. Identity (the signature) is not bound to intent (the payload and endpoint), so the implementation provides neither integrity nor non-repudiation for the request itself. A signature that is valid for a read-only call such as /api/balances is, mathematically, equally valid for a trading call such as /api/sellLimit.
The attack the report describes is a man in the middle: someone intercepting traffic through a rogue public WiFi network, a compromised ISP layer or a malicious browser extension. The attacker captures a valid signature issued for a harmless read-only action, drops that request so it never reaches CoinMate and the nonce is never consumed, then attaches the same signature to a forged request against a destructive endpoint with injected parameters such as amount, price and currencyPair. The backend verifies the HMAC, sees a valid and unburned nonce, and executes the forged payload.
The report includes a diagram of this flow:
[Victim Device] -----> (Initiates: POST /api/balances with Signature X & Nonce 1) -----> [Attacker]
|
[Attacker DROPS the packet]
[Attacker HIJACKS Signature X]
[Attacker INJECTS 'sellLimit' parameters]
|
[Coinmate Database] <----- (Attacker Forges: POST /api/sellLimit with Signature X) <---------/
|
[Coinmate verifies Signature X is mathematically valid]
[Coinmate executes the SELL ORDER based on the Attacker's forged parameters]
Exploitation
The report is explicit that naive manual testing produces a false negative. If an analyst sends a valid request to /balances, copies the signature from that successful request, changes the URL or body, and sends it again with cURL to /sellLimit, the backend answers "Access denied". That rejection is not signature validation catching the changed payload; it is the anti-replay mechanism seeing that the nonce has already been used. In a real attack the first request is dropped, so the nonce stays fresh. The automated script reproduces that condition.
Step 1: Prepare the validator
- Download the attached
[redacted].py. - Insert active isolated testing API keys into the
CLIENT_ID,PUBLIC_KEYandPRIVATE_KEYvariables. - Install Python and the requests library (
pip install requests). - Run the script:
python3 [redacted].py
Step 2: Safeguard check
The script first validates the supplied keys by hitting /balances. This establishes that the key pair works before any forgery is attempted.
Step 3: Prove the nonce trap
The script deliberately reuses the signature from the /balances call. The backend returns Access denied, which demonstrates nonce exhaustion: the signature is rejected because its nonce was already spent, not because the request changed.
Step 4: Body malleability in isolation
The script injects malicious POST parameters into a secure request, using the marker MALICIOUS_INJECTION=HACKED_DATA. CoinMate processes the request successfully, which shows that the hash ignores the request body entirely.
Step 5: Cross-endpoint hijacking
The script generates a fresh signature for /balances, intercepts it internally before it is sent, injects forged trading variables (currencyPair=BTC_EUR) and redirects the payload to a different endpoint, /api/openOrders. CoinMate processes the hijacked payload and returns 200 OK, or a business logic error wrapped inside a 200 response. Either outcome shows that the HMAC constraint has been bypassed, and the report presents this as proof of CWE-325 and CWE-345 together across two vectors.
Root cause
The backend builds the HMAC pre-image from nonce + clientId + publicKey and nothing else. Because the endpoint and the body are outside the signed material, the signature is a bearer credential for the account rather than a binding commitment to a specific operation. Any party who can observe a signature in transit and prevent the original request from arriving can reuse it against any endpoint with any parameters, for as long as the nonce remains unused.
The existing defences do not cover this. Nonce replay protection stops a signature being used twice, but it does not stop a signature being used once for something other than what it was issued for. The report does not describe any other control that would have caught the substitution.
Impact
The report describes complete compromise of API-connected accounts. An attacker in the interception position described above could drain funds, execute flash crashes through market manipulation, and bypass all intended API key endpoint restrictions, with catastrophic loss of user assets. Because identity is not bound to intent, the implementation lacks integrity and non-repudiation.
These outcomes depend on the attacker being able to intercept traffic and drop the original request, which is why the report frames the vector around rogue WiFi, a compromised ISP layer or a malicious browser extension. The report's automated proof points are the accepted injected body parameter and the accepted cross-endpoint request to /api/openOrders; the sell order execution is described in the attack flow rather than demonstrated by the script.
Fix
The report asks CoinMate to deprecate the current signature logic and adopt the industry standard for cryptographic API validation, which it says is utilised by Binance, Kraken and Coinbase, with the signature covering the full request context:
HMAC = SHA256( private_key, nonce + HTTP_METHOD + REQUEST_PATH + POST_BODY_STRING + clientId + publicKey )
With that structure, an attacker who tries to turn an /api/balances request into an /api/openOrders request breaks the hash integrity, and the backend raises a legitimate cryptography exception. The report does not say whether any change was made; it presents the remediation as required work.
Variants to test
- Signed material missing the path. Take a valid signature for one endpoint and replay it, with the original request dropped, against a different endpoint on the same account. A positive result is a
200 OKor a business logic error inside a 200 rather than an authentication failure. - Signed material missing the body. Add an unexpected parameter to a signed request and send it with a fresh nonce. A positive result is the server processing the request without complaint, as with the
MALICIOUS_INJECTION=HACKED_DATAmarker here. - Signed material missing the HTTP method. Capture a signature from a GET-style read and reuse it on a state-changing POST with a fresh nonce. A positive result is the state change being accepted.
- Nonce handling under dropped requests. Check whether a nonce is consumed when the request is never delivered, for example by observing whether a captured signature still works after the original is discarded. A positive result is the signature remaining usable, which is the precondition for every variant above.
- Per-key endpoint restrictions. Use a key that is meant to be limited to read operations and attempt a trading call with a hijacked signature. A positive result is the restricted key performing the trade.
What happened, in plain words
CoinMate.io is a cryptocurrency exchange: a website where people buy and sell digital currencies such as Bitcoin. Besides the website you click on, CoinMate offers something called an API. An API (Application Programming Interface) is a way for a computer program, rather than a person with a browser, to talk to the service. Trading bots, portfolio trackers and mobile apps use the CoinMate API to check balances, place orders and move funds without a human clicking anything.
To make sure a request really comes from the account owner, the API uses a signature. Think of it like a wax seal on an envelope: the server can check the seal and know the letter came from someone holding the right stamp. The seal is produced with a secret key that only the account owner and the server know. In this report, a security researcher found that the seal is placed only on the envelope's outside label (who is sending it) and not on the letter inside (what is being asked). So someone who intercepts a sealed envelope can throw away the original letter, put a completely different one inside, and the server will still accept the seal.
That is the whole finding. The signature proves who is calling, but not what they are asking for. An attacker who can sit between the user and CoinMate, for example on a public WiFi network, can take a signature meant for a harmless balance check and reuse it to place a trade or move funds.
The researcher classifies this as CWE-325 (Missing Required Cryptographic Step) and CWE-345 (Payload Malleability and Request Forgery). Those are catalogue numbers for well-known categories of security bug; the next sections explain what each means. The researcher rates it High with a CVSS v3.0 score of 8.1 (AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N). CVSS is a standard scoring system for how serious a vulnerability is; 8.1 out of 10 is high. The platform record for the report lists it as low severity, so the two ratings differ and both are worth keeping in mind.
The pieces you need to know
Before the details make sense, a few everyday ideas need unpacking.
- API: a menu of commands a program can send to a service. Each command has an address, called an endpoint, such as
/api/balances(show me my balances) or/api/sellLimit(place a sell order at a chosen price). - HTTP method: the verb attached to a request.
GETusually means "read something";POSTusually means "send data and change something". - Request body: the data sent along with a
POSTrequest, for example the amount, price and currency pair of a trade. - API key pair: three values the exchange gives you.
clientIdidentifies your account,publicKeyis like a username, andprivateKeyis like a password that must never be shared. The private key is used to make signatures. - HMAC-SHA256: a mathematical recipe that takes a secret key and some text and produces a short fixed-length string, the signature. Anyone with the secret can produce the same string; anyone without it cannot. SHA256 is the hashing function inside; HMAC is the wrapper that mixes in the secret.
- Nonce: a number that must be different for every request, usually counting upwards. The server remembers which nonces it has already seen and refuses repeats. This is called replay protection: it stops someone from capturing a request and sending it again later.
- Man in the middle (MITM): an attacker who sits on the network path between you and the server, able to read, change, drop or delay traffic. Public WiFi, a compromised internet provider or a malicious browser extension are the examples the report gives.
- Integrity: the guarantee that data was not altered in transit.
- Non-repudiation: the guarantee that the sender cannot later deny having sent a particular message.
With those in hand, the finding is easier to state: the signature gives the server a way to check identity, but because the endpoint and the body are not part of what gets signed, it gives no integrity or non-repudiation for the request itself.
Setup
To reproduce the issue you need an isolated testing API key set on CoinMate: CLIENT_ID, PUBLIC_KEY and PRIVATE_KEY. "Isolated" means a throwaway account or key that is not connected to real funds, so a mistake during testing cannot cost anyone money.
The researcher supplies an automated Python proof of concept called [redacted].py. Python is a programming language; a script is a text file of instructions the computer runs. The script needs the requests library, which is an add-on that lets Python make web requests. You install it with:
pip install requests
pip is Python's package installer. install requests tells it to download and set up the requests library. After that, the three key values are pasted into the three variables named above inside the script before it is run.
The report opens with a triage warning that matters for anyone trying to reproduce this by hand. Triage is the first pass a security team makes on a report to decide whether it is real. The warning says that reusing a cURL signature manually will fail because of the database's nonce replay protection. cURL is a command-line tool for sending web requests; the point is that if you copy a signature from one request and paste it into another, the server will reject it, but for the wrong reason. The script exists to simulate the network conditions of the real attack, in which the first request never reaches the server at all.
Finding it
The researcher's observation is about the HMAC pre-image. The pre-image is simply the text that gets fed into the HMAC recipe before hashing. As implemented, the signature is calculated strictly as:
HMAC(private_key, nonce + clientId + publicKey)
Line by line: HMAC is the signing function. private_key is the secret only the account owner and the server hold. Inside the brackets, the text being signed is built by gluing together three values: the nonce (the one-time number), the clientId (which account) and the publicKey (which key). The + means concatenation, joining the strings end to end.
Notice what is not in that list: the endpoint being called and the parameters being sent. Nothing in the signed text depends on whether the request is asking for a balance or placing a trade. Identity (the signature) is not bound to intent (the payload and endpoint), so the implementation provides neither integrity nor non-repudiation for the request itself. A signature that is valid for a read-only call such as /api/balances is, mathematically, equally valid for a trading call such as /api/sellLimit.
The attack the report describes is a man in the middle. The attacker captures a valid signature issued for a harmless read-only action, drops that request so it never reaches CoinMate and the nonce is never consumed, then attaches the same signature to a forged request against a destructive endpoint with injected parameters such as amount, price and currencyPair. The backend verifies the HMAC, sees a valid and unburned nonce, and executes the forged payload. "Unburned" here means the nonce has not yet been recorded as used, so the replay protection has nothing to object to.
The report includes a diagram of this flow:
[Victim Device] -----> (Initiates: POST /api/balances with Signature X & Nonce 1) -----> [Attacker]
|
[Attacker DROPS the packet]
[Attacker HIJACKS Signature X]
[Attacker INJECTS 'sellLimit' parameters]
|
[Coinmate Database] <----- (Attacker Forges: POST /api/sellLimit with Signature X) <---------/
|
[Coinmate verifies Signature X is mathematically valid]
[Coinmate executes the SELL ORDER based on the Attacker's forged parameters]
Reading the diagram from the top: the victim's device sends a POST to /api/balances carrying Signature X and Nonce 1. The arrow points to the attacker, who is on the network path. The attacker drops the packet, so the original request never arrives and Nonce 1 is never spent. The attacker hijacks Signature X and injects sellLimit parameters. The forged request goes to CoinMate as a POST to /api/sellLimit, still carrying Signature X. CoinMate checks the signature, finds it mathematically valid, and executes the sell order using the attacker's parameters.
Exploitation
The report is explicit that naive manual testing produces a false negative. A false negative is a test that says "not vulnerable" when the bug is actually there. If an analyst sends a valid request to /balances, copies the signature from that successful request, changes the URL or body, and sends it again with cURL to /sellLimit, the backend answers "Access denied". That rejection is not signature validation catching the changed payload; it is the anti-replay mechanism seeing that the nonce has already been used. In a real attack the first request is dropped, so the nonce stays fresh. The automated script reproduces that condition.
Step 1: Prepare the validator
- Download the attached
[redacted].py. - Insert active isolated testing API keys into the
CLIENT_ID,PUBLIC_KEYandPRIVATE_KEYvariables. - Install Python and the requests library (
pip install requests). - Run the script:
python3 [redacted].py
Line by line: python3 is the command that starts the Python 3 interpreter. The rest is the filename of the script. Running this command tells Python to read the file and execute its instructions in order. The reason for using a script rather than hand-typed requests is that the script can drop the first request internally, which is exactly the condition a real attacker creates on the network.
Step 2: Safeguard check
The script first validates the supplied keys by hitting /balances. This establishes that the key pair works before any forgery is attempted. If the keys were wrong, every later result would be meaningless, so this step is a sanity check.
Step 3: Prove the nonce trap
The script deliberately reuses the signature from the /balances call. The backend returns Access denied, which demonstrates nonce exhaustion: the signature is rejected because its nonce was already spent, not because the request changed. This step exists to show the analyst the trap described above, so that a later Access denied is not mistaken for proof that the signature is safe.
Step 4: Body malleability in isolation
The script injects malicious POST parameters into a secure request, using the marker MALICIOUS_INJECTION=HACKED_DATA. CoinMate processes the request successfully, which shows that the hash ignores the request body entirely. "Malleability" means the ability to change something without breaking it; here, the body can be changed freely and the signature still checks out.
Step 5: Cross-endpoint hijacking
The script generates a fresh signature for /balances, intercepts it internally before it is sent, injects forged trading variables (currencyPair=BTC_EUR) and redirects the payload to a different endpoint, /api/openOrders. CoinMate processes the hijacked payload and returns 200 OK, or a business logic error wrapped inside a 200 response. 200 OK is the HTTP status code for success; a business logic error inside a 200 means the server accepted the request and only complained about the content, not about the authentication. Either outcome shows that the HMAC constraint has been bypassed, and the report presents this as proof of CWE-325 and CWE-345 together across two vectors. A vector here just means a way of carrying out the attack.
Root cause
The backend builds the HMAC pre-image from nonce + clientId + publicKey and nothing else. Because the endpoint and the body are outside the signed material, the signature is a bearer credential for the account rather than a binding commitment to a specific operation. A bearer credential is like a cinema ticket: whoever holds it gets in, regardless of whose name is on it. Any party who can observe a signature in transit and prevent the original request from arriving can reuse it against any endpoint with any parameters, for as long as the nonce remains unused.
The existing defences do not cover this. Nonce replay protection stops a signature being used twice, but it does not stop a signature being used once for something other than what it was issued for. The report does not describe any other control that would have caught the substitution.
Impact
The report describes complete compromise of API-connected accounts. An attacker in the interception position described above could drain funds, execute flash crashes through market manipulation, and bypass all intended API key endpoint restrictions, with catastrophic loss of user assets. A flash crash is a sudden, sharp price drop, which an attacker could cause by placing large sell orders. Because identity is not bound to intent, the implementation lacks integrity and non-repudiation.
These outcomes depend on the attacker being able to intercept traffic and drop the original request, which is why the report frames the vector around rogue WiFi, a compromised ISP layer or a malicious browser extension. The report's automated proof points are the accepted injected body parameter and the accepted cross-endpoint request to /api/openOrders; the sell order execution is described in the attack flow rather than demonstrated by the script.
Fix
The report asks CoinMate to deprecate the current signature logic and adopt the industry standard for cryptographic API validation, which it says is utilised by Binance, Kraken and Coinbase, with the signature covering the full request context:
HMAC = SHA256( private_key, nonce + HTTP_METHOD + REQUEST_PATH + POST_BODY_STRING + clientId + publicKey )
Line by line: HMAC is the signing function, and SHA256 is the hash inside it. private_key is the secret. The text being signed now includes the nonce, the HTTP_METHOD (for example POST), the REQUEST_PATH (for example /api/sellLimit), the POST_BODY_STRING (the parameters), the clientId and the publicKey. Because the method, path and body are now part of what is signed, changing any of them changes the expected signature.
With that structure, an attacker who tries to turn an /api/balances request into an /api/openOrders request breaks the hash integrity, and the backend raises a legitimate cryptography exception. The report does not say whether any change was made; it presents the remediation as required work.
Variants to test
- Signed material missing the path. Take a valid signature for one endpoint and replay it, with the original request dropped, against a different endpoint on the same account. A positive result is a
200 OKor a business logic error inside a 200 rather than an authentication failure. - Signed material missing the body. Add an unexpected parameter to a signed request and send it with a fresh nonce. A positive result is the server processing the request without complaint, as with the
MALICIOUS_INJECTION=HACKED_DATAmarker here. - Signed material missing the HTTP method. Capture a signature from a GET-style read and reuse it on a state-changing POST with a fresh nonce. A positive result is the state change being accepted.
- Nonce handling under dropped requests. Check whether a nonce is consumed when the request is never delivered, for example by observing whether a captured signature still works after the original is discarded. A positive result is the signature remaining usable, which is the precondition for every variant above.
- Per-key endpoint restrictions. Use a key that is meant to be limited to read operations and attempt a trading call with a hijacked signature. A positive result is the restricted key performing the trade.
Glossary
- API: a set of commands a program can send to a service, each with its own address (endpoint).
- API key pair: the
clientId,publicKeyandprivateKeyvalues that identify an account and let it sign requests. - Bearer credential: a secret that grants access to whoever holds it, regardless of who it was issued to.
- Business logic error: an error about the content of a request (for example a bad amount), as opposed to an authentication failure.
- clientId: the value identifying which account a request belongs to.
- Concatenation: joining strings end to end, shown as
+in the report's formulas. - cURL: a command-line tool for sending web requests.
- CVSS: a standard scoring system for the severity of a vulnerability, from 0 to 10.
- CWE-325: Missing Required Cryptographic Step, a catalogue entry for a cryptographic check that was left out.
- CWE-345: Payload Malleability and Request Forgery, a catalogue entry for data that can be altered without detection.
- Endpoint: the address of a specific API command, such as
/api/balances. - False negative: a test that reports "not vulnerable" when the bug is actually present.
- Flash crash: a sudden, sharp drop in a market price.
- HMAC-SHA256: a signing recipe that mixes a secret key with text and produces a fixed-length signature.
- HTTP method: the verb on a request, such as
GET(read) orPOST(send and change). - Man in the middle (MITM): an attacker positioned on the network path who can read, change or drop traffic.
- Malleability: the ability to change data without breaking its validity.
- Nonce: a one-time number that must differ for every request, used to stop replays.
- Non-repudiation: the guarantee that the sender cannot deny having sent a message.
- Pre-image: the text that is fed into a hash or signing function.
- privateKey: the secret half of the key pair, used to make signatures.
- publicKey: the public half of the key pair, sent with requests to identify the key.
- Replay protection: a defence that refuses requests whose nonce has already been seen.
- Request body: the data sent with a
POSTrequest, such as trade parameters. - Signature: the short string produced by HMAC that proves the sender holds the private key.
- Triage: the first pass a security team makes on a report to decide whether it is real.
- Vector: a way of carrying out an attack.
- 200 OK: the HTTP status code meaning the server accepted and processed the request.