The totalBorrowedCredit function subtracts redeemableCredit from targetTotalSupply, but a decrease in creditMultiplier after a loss can make redeemableCredit exceed targetTotalSupply, causing an underflow revert. This breaks debtCeiling calculations and prevents new borrows in the market.
The SurplusGuildMinter.getReward() function calls ProfitManager.claimRewards() which loops over all gauges the contract is subscribed to, and since the number of gauges is unbounded, the call can consume more gas than the block gas limit and revert. An attacker could cause stake, unstake, and getReward to become unusable by ensuring a large number of terms are added.
The SimplePSM contract allows minting gUSDC without a rate limit, so an attacker with enough USDC can mint a large amount and use it to veto governance actions. The ProfitManager also does not replenish the RateLimitedMinter buffer, which could deplete the buffer for LendingTerm contracts.
The ProfitManager contract calculates the creditMultiplier using totalSupply() instead of targetTotalSupply(), so when a loss is reported, the multiplier is slashed more than it should be. This causes credit token holders to lose value, with some collateral left locked in the SimplePSM contract.
When the protocol is paused, the RateLimitedMinter's mint function is blocked by a whenNotPaused modifier, and because unstaking first tries to mint pending guild rewards, users with staked CREDIT and pending rewards cannot unstake or withdraw. This contradicts the documented expectation that the GUARDIAN role can freeze usage but not block withdrawals.
The AuctionHouse contract lacks a check for sequencer uptime, so a network outage during a Dutch auction can cause the auction to fail or execute at unfavourable prices, leading to protocol losses and slashing of users with weight on the term.
The SurplusGuildMinter contract incorrectly marks a user as slashed when they stake into a gauge that has ever experienced a loss, because it compares the gauge's last loss timestamp against a freshly initialised zero value. An attacker can immediately call getRewards to slash the user, causing them to lose their staked Credit and any guild rewards.
Rounding errors in share calculations can cause transfers and mints involving rebasing addresses to revert due to underflow. This can temporarily block sensitive operations like liquidations and prevent users from exiting rebase.
The borrow() function calculates a lower debt ceiling than the debtCeiling() function, causing the check in GuildToken to be ineffective and leaving liquidity underutilised. An attacker could not exploit this directly, but it leads to missed profit opportunities for lenders.
The auction contract stores the loan debt as a snapshot when a loan is called, but the protocol's credit multiplier can be marked down later if another loan creates bad debt. This makes the stored debt lower than the recalculated principal, so bids in the first auction phase revert and the loan can only be bid on in the second phase, forcing additional bad debt.
A caching error in the rebase token contract allows a user to steal all unminted distributed rewards by transferring tokens to themselves while in rebase. The attacker can frontrun reward distribution transactions and atomically claim the rewards for themselves.
The userGaugeProfitIndex is not initialised when a user first claims gauge rewards, so an attacker can vote after profit is notified and then claim rewards without waiting, stealing yield from other users.
The offboarding contract prevents proposing a new offboarding poll for the same lending term within 7 days, even if the previous offboarding completed and the term was re-onboarded. An attacker could exploit this by re-onboarding a risky term quickly, preventing GUILD voters from offboarding it again, potentially leading to bad debt.
A gauge's debt ceiling calculation uses a tolerance multiplier that allows a staker to unstake a portion of their Guild even when the gauge is at full debt allocation. By repeatedly unstaking small amounts, over 90% of the staked Guild can be withdrawn, bypassing the intended lock that prevents exit when the gauge is fully utilised.
The debtCeiling function incorrectly applies a gauge weight delta only to the gauge's own weight, not to the total weight, causing the calculated ceiling to be too low when a user tries to decrement their gauge weight. This prevents users from withdrawing Guild tokens from the gauge even when it is the only gauge of its type and should have an unlimited ceiling.
The gauge status was not checked before reducing a user's gauge weight, allowing guild holders to decrement their weight on an offboarded term and avoid being slashed for potential losses, transferring the loss to other passive holders and credit token holders.
The auction duration and midpoint were set too short in the deployment script, allowing an attacker to stuff blocks and prevent bids until the auction price dropped, buying collateral cheaply. This could cause losses for stakers and, with ERC-777 tokens, become a self-liquidation attack.
The debtCeiling function in LendingTerm incorrectly computes the minimum of three values, potentially returning a higher debt ceiling than intended. This could allow more debt than the hard cap permits, affecting downstream calculations in GuildToken.
The partial repayment function in a lending contract rejects any repayment where the interest portion is zero, even though loans with zero interest are valid. This prevents users from partially repaying zero-interest loans, while full repayment works fine.
The debtCeiling function incorrectly uses the creditMinterBuffer as a cap on total debt rather than on additional borrowing, causing the ceiling to be lower than it should be. This can prevent guild voters and surplus stakers from removing their votes or stakes from a gauge, even when the true debt ceiling would allow it.
The reward distribution mechanism resets the end timestamp each time a new distribution is triggered, so an attacker can repeatedly call distribute with a tiny amount to extend the distribution period and delay rewards for rebasing users.
A borrower can temporarily stake a large amount of credit tokens just before a profit notification, capturing most of the rewards meant for long-term Guild stakers. The attacker then unstakes and repays the flash loan, leaving other stakers with reduced rewards.
The GuildToken contract stores a single ProfitManager address set at construction, but each market has its own ProfitManager. When a second market's ProfitManager calls notifyGaugeLoss, the call reverts because the sender does not match the stored address, so losses from other markets cannot be recorded and loans are not removed, leading to bad debt.
The SurplusGuildMinter::stake() function does not verify that the provided term's CREDIT token matches the minter's CREDIT token, allowing a user to stake a cheaper token (gUSDC) into a different market's term (gWETH). This inflates the gauge weight for the target term, reducing rewards for legitimate guild holders in that market.
Repayers using externally owned accounts must mint CreditTokens in a separate transaction before repaying, so if bad debt lowers the credit multiplier in between, the computed loan debt rises and the repayment reverts or costs more PeggedTokens. The repayer ends up spending more than the real value of the debt.
Loans can exceed the maximum debt per collateral token after a partial repayment or when periodic repayments are disabled, yet the liquidation function only allows calling a loan if the term is deprecated or a partial repayment deadline was missed. This leaves the position unliquidatable, creating bad debt and forcing the entire term to be offboarded.
The LendingTermOffboarding contract allows an attacker to re-trigger the canOffboard flag for a term after it has been cleaned up, by voting in an old offboarding poll that is still active. This lets the attacker force the offboarding of a re-onboarded term without a new DAO vote, bypassing the governance mechanism.
The profit and loss accounting function can revert when a large borrower's loss exceeds the remaining credit token supply after the surplus buffer is burned, because the calculation of the new credit multiplier subtracts the loss from the total supply and underflows. An attacker could intentionally burn their own credit tokens to trigger this, blocking loan auctions and breaking the gauge slashing and voting systems.
EC
Ethereum Credit Guild
Medium
Instant results are busy. Press Enter to search every report.
No direct matches. Search every report above, or try a bug class like IDOR or SSRF.