Skip to content
Business logic Audit finding Intermediate

KYC credentials are invalid

The Airgrab contract used an outdated KYC credential that did not require liveness checks or citizenship restrictions, allowing users who had not completed those checks to pass KYC. An attacker could potentially bypass the intended KYC requirements.

Mento

Originally disclosed on Sherlock

Source: https://github.com/sherlock-audit/2024-02-mento-judging/issues/28

Found by

We noticed the Airgrab contract was using an incorrect KYC credential and after the contest ended, we discussed this with the KYC provider and updated the contracts accordingly.

Old credential: level:plus;residency_not:ca,us

New credential: level:plus+liveness;citizenship_not:;residency_not:cd,cu,gb,ir,kp,ml,mm,ss,sy,us,ye

This issue is not about the countries that are put as placeholder, it is about the level of the credential which lacks liveness and citizenship_not:

Issue is fixed in this PR: https://github.com/mento-protocol/mento-core/pull/404/files

Please review this fix and include it in the final report if everything looks good now.

Discussion

sherlock-admin4

The protocol team fixed this issue in the following PRs/commits: https://github.com/mento-protocol/mento-core/pull/404/files

sherlock-admin4

The Lead Senior Watson signed off on the fix.

The original report as published on Sherlock. Images and videos are our own copies; raw HTML is shown as text. View it on Sherlock.

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

Likely the contract was configured with an outdated KYC credential string that omitted liveness and citizenship restrictions.

Impact

Users could potentially pass KYC without liveness verification or citizenship restrictions, undermining the intended compliance controls.

What the attacker needed

Access to the Airgrab contract

The fix

The contract was updated to use a new credential that includes liveness and citizenship restrictions, and the fix was reviewed and signed off.

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.

KYC (Know Your Customer) is a process where a service verifies a user's identity. This report says the smart contract checked for a weaker set of identity requirements than intended, so someone might pass the check without meeting the stricter rules.

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.

More from Mento

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.