At noon on November 18, the admin key for RNT Lend, a Spanish property-token platform, was used to replace the code in two lending markets. Twenty seconds later, more than $450,000 in cash was gone. The person behind the attack wasn’t the first to get the money—the first to arrive were two bots.
RNT Lend is a lending market Reental built on Polygon, based on modified Aave V3 code. Users deposit dollar-pegged stablecoins for an annual yield of around 12%, while borrowers put up property tokens as collateral. The pool has 105 property markets and two dollar markets, USDT0 and USDC. Each market’s funds are managed by a contract called an aToken, whose code can be replaced using the admin key.