When users sign a credit loan for bidding on an item, they are forever committed to the loan even if the NFT value drops massively
A signed credit structure used to bid on NFTs lacked a deadline and any revocation mechanism. An attacker could wait until the NFT price dropped and reuse an old signature to force the signer into a loan at an unfavourable price.
Submitted by Trust
In ParaSpace marketplace, taker may pass maker’s signature and fulfil their bid with taker’s NFT. The maker can use credit loan to purchase the NFT provided the health factor is positive in the end.
In validateAcceptBidWithCredit, verifyCreditSignature is called to verify maker signed the credit structure.
function verifyCreditSignature(
DataTypes.Credit memory credit,
address signer,
uint8 v,
bytes32 r,
bytes32 s
) private view returns (bool) {
return
SignatureChecker.verify(
hashCredit(credit),
signer,
v,
r,
s,
getDomainSeparator()
);
}
The issue is that the credit structure does not have a deadline:
struct Credit {
address token;
uint256 amount;
bytes orderId;
uint8 v;
bytes32 r;
bytes32 s;
}
As a result, attacker may simply wait and if the price of the NFT goes down abuse their previous signature to take a larger amount than they would like to pay for the NFT. Additionaly, there is no revocation mechanism, so user has completely committed to loan to get the NFT until the end of time.
Impact
When users sign a credit loan for bidding on an item, they are forever committed to the loan even if the NFT value drops massively.
Recommended Mitigation Steps
Add a deadline timestamp to the signed credit structure.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
The signed credit structure contained no deadline or nonce, so a signature remained valid indefinitely and could not be revoked.
Impact
A user who signed a credit loan could be forced into that loan long after signing, even if the NFT's value had dropped massively, with no way to cancel.
What the attacker needed
Attacker obtains a signed credit; NFT price drops
The fix
A deadline timestamp should be added to the signed credit structure so signatures expire.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
When you sign something with your digital signature, it can be reused later unless the system checks that it is still valid. Here, the signed loan offer had no expiry date, so someone could hold onto it and use it much later when the NFT was worth less, sticking you with a bad loan.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.