prompt listlengths 2 2 | source stringclasses 3
values | severity stringclasses 5
values | category stringclasses 186
values | has_code bool 2
classes | has_poc bool 2
classes | reference_response stringlengths 23 5k | firm stringclasses 26
values | quality_score float64 0 5 | protocol stringclasses 398
values |
|---|---|---|---|---|---|---|---|---|---|
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | oracle | true | false | ## Medium: Pending keeper and position fees are not accounted for in vault collateral calculation which can be abused to liquidate vault when it's small
### Description
Vault opens positions in the underlying markets trying to keep leverage at the level set for each market by the owner. However, it uses sum of market ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Insufficient Tests
### Description
It is crucial to write tests with possibly 100% coverage for smart contract systems.
The following functions were found to be not included in the test cases:
* `PuttyV2.batchFillOrder` -
* `PuttyV2.acceptCounterOffer` -
### Recommendation
It is recommended to write pr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | dos | true | false | ## Medium: Incorrect Update of `calculateCumulativeRate` in `_withdraw` Results in Erroneous Interest Calculation
### Description
In the Borrowing::_withdraw function, the calculateCumulativeRate method is invoked after the lastEventTime variable is updated to the current block.timestamp.
Here's the relevant portion ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | token | true | false | ## Low: Operator: incorrect accounting for fee-on-transfer reserve token
### Description
*
If the reserve token is fee-to-transfer token and the user is buying ohm, the `Operator::swap` will incorrectly assume the `amountIn_` value is transferred, which fails to consider the fees. If the fee is rounded up, the atta... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: _getMimicCreationCode relies on Solidity format for layout
### Description
In function `_getMimicCreationCode()`, the expression `add(shl(88, 0x63) ..)` is redundant, as it is already retained by the mask with `00` above.
With the current compiler version, this value in the Mimic code is `0x63`. In this case... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | medium | overflow | true | true |
`OpenEdition.buy()` might revert due to uint overflow when it should work.
### Proof of Concept
`OpenEdition.buy()` validates the total funds like below.
```solidity
function buy(uint256 _amount) external payable {
uint24 amount = uint24(_amount);
Sale memory temp = sale;
IEscher721 nft ... | Code4rena | 5 | Escher |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: `PolygonStrategy::upgradeVaults` does not verify if vaults to upgrade are the same as the ones stored in strategy
### Description
**Description:** `PolygonStrategy::upgradeVaults` takes an input of `_vaults` array and upgrades them to the latest `vaultImplementation` as follows:
Current implementation has se... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | false | false | ## Gas: rewardBalance is set but not used
### Description
Here, `rewardBalance` is set but isn't used later.
### Recommendation
Skip setting `rewardBalance`. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | reentrancy | true | false | ## Medium: Reentrancy lock hinders reward distribution
### Description
A reentrancy lock conflict exists in the reward distribution flow between `GaugeV2` and `Voter` contracts.
1. User calls `GaugeV2.getReward()`. The first `nonReentrant` lock is acquired when `getReward` is called:
```solidity
function getReward(... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | initialization | false | false | ## Medium: Insufficient Validation of Loaded Data Allows Out-of-Order Submission, Preventing Finalization
### Description
Data loaded from storage during the initialization in [`_submitData`](https://github.com/Consensys/linea-contracts-audit/blob/bb6eb7284d1ac9574dc69e654abe5ccb8d8ded1a/contracts/LineaRollup.sol#L132... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | token | false | false | ## Low: Vault is incompatible with tokens exhibiting "weird" traits
### Description
Some tokens that adhere to the ERC-20 standard exhibit unusual characteristics, such as rebasing or fee-on-transfer mechanisms. Integrating such tokens into the Vault can disrupt its accounting system and lead to financial losses for i... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | false | false | ## Medium: User can't repay with force flag
### Description
If some token was blocked on account, user can't close this account and must wait until account would be liquidated by someone:
https://github.com/Gearbox-protocol/gearbox-contracts/blob/0ac33ba87212ce056ac6b6357ad74161d417158a/contracts/credit/CreditManager.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Make joinPot() non-payable
### Description
The `joinPot()` function currently allows the acceptance of ETH but does not utilize any ETH sent to it.
### Recommendation
Remove the `payable` keyword from the `joinPot()` function. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | true | false | ## Low: TRST-L-2 setPositionRouter leaks approval to previous positionRouter
### Description
**Description:**
positionRouter is used to change GMX positions in GMXFuturesPoolHedger. It can be replaced
by a new router if GMX redeploys, for example if a bug is found or the previous one is hacked.
The new positionRoute... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | liquidation | true | true | ## High: Vault fails to track debt correctly that leads to bad debt
### Description
_Submitted by jonah1005, also found by WatchPug_
#### Impact
It's similar to the issue "misuse amount as increasing debt in the vault contract".
Similar issue in a different place that leads to different exploit patterns and severity.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | oracle | false | false | ## Low: Incorrect prices will be returned if the NodeType is `PRICE_DEVIATION_CIRCUIT_BREAKER`
### Description
Report type: Smart Contract
Target: https://testnet.snowtrace.io/address/0x46c425F4Ec43b25B6222bcc05De051e6D3845165
Impacts:
- Griefing (e.g. no profit motive for an attacker, but damage to the users or t... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | token | true | false | ## Medium: Certain ERC20 token does not return bool from approve and transfer and transaction revert
### Description
Certain ERC20 token does not return bool from approve and transfer and transaction revert
### Impact
Some tokens do not return a bool on ERC20 methods and use IERC20 token interface will revert transac... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | initialization | true | false | ## Medium: setVoteFactor() does not change existing supply of votes. As a result, some may be unable to withdraw.
### Description
`AdvancedDistributor.setVoteFactor()` does not change existing supply of vote tokens. If it is called before all distribution records have been initialized, there will be a skew between tho... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: Bypass blacklist using `safeBatchTransferFrom` and approval redirection
### Description
The contract includes a blacklist feature intended to prevent certain addresses from transferring tokens. While the `safeTransferFrom` function checks both the sender and the recipient against the blacklist, the `safeBat... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | other | true | false | ## Low: Consider adding a getter for `QuantAMMWeightedPool.poolDetails`
### Description
[`QuantAMMWeightedPool.poolDetails`](https://github.com/QuantAMMProtocol/QuantAMM-V1/blob/7213401491f6a8fd1fcc1cf4763b15b5da355f1c/pkg/pool-quantamm/contracts/QuantAMMWeightedPool.sol#L170) is a nested array:
```solidity
string[][]... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | oracle | true | false | ## Low: Redundant Code
### Description
## Code Review Notes
## 1. Discriminator Check Removal in `get_price`
The first byte type discriminator check in `get_price` within `oracles/switchboard_v1.rs` should be removed. Instead, this check should be performed while setting price info accounts in the oracle mapping. Th... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | rounding | false | false | ## Low: Token collection failure during update leads to mixed accounting
### Description
_Resolved_
In the `MarketplaceAdmin.sol` contract, the `updateAcceptedCurrency()` function attempts to collect pending fees before updating the payment token.
The issue occurs when the fee collection silently fails (e.g., if the... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | true | false | ## Low: lastPriceUpdate should be updated in the constructor
### Description
When the contract is created, all the native prices are set and the contract is set to `paused` mode. Only the owner can unpause the contract by calling `start()`.
`start()` will set `lastPriceUpdate = block.timestamp`.
In the period betwee... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: Incorrect SURCHARGE multiplication
### Description
In the `_setAtlasLock()` function, the following code sets claims to the maximum amount of ETH the bundler will use, including a surcharge:
```solidity
// Set the claimed amount
uint256 rawClaims = (gasMarker + 1) * tx.gasprice;
claims = rawClaims + ((rawC... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | high | Validation | true | false | ## Severity: High Risk
## Context
- `FxBaseChildTunnel.sol#L38-L41`
- `FxBaseRootTunnel.sol#L58-L61`
- `Connector.sol#L119-L121`
- `PolygonSpokeConnector.sol#L78-L82`
- `PolygonHubConnector.sol#L51-L55`
## Description
`PolygonSpokeConnector` (`PolygonHubConnector`) inherits from `SpokeConnector` (`HubConnector`) and ... | Spearbit | 5 | Connext |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | oracle | true | false | ## Gas: Using `private` rather than `public` for constants, saves gas
### Description
If needed, the values can be read from the verified contract source code, or if there are multiple values there can be a single getter function that [returns a tuple](https://github.com/code-423n4/2022-08-frax/blob/90f55a9ce4e25bceed... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: Add __gap to all upgradeable contracts
### Description
## ERC4337Account Storage Layout
## Context
- **Files:** ERC4337Account.sol, MultiOwnable.sol
## Current Storage Layout of ERC4337Account
| Name | Type | Slot | Offset | Bytes |
|-----------------|--------------------|------|--------|-------|
| ownerIn... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | initialization | true | false | ## High: updateWeightsGradually allows change rates to start in the past with a very high maximumRatio
### Description
The current `updateWeightsGradually` is using `startTime` instead of the minimal start time that should be `Math.max(block.timestamp, startTime)`. Because internally Balancer will use `startTime = Mat... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: `_swapUniswapV2` may use an improper `path` which can cause a loss of the majority of the rewardTokens
### Description
_Submitted by WatchPug_
[StrategyPUSDConvex.sol#L311-L334](https://github.com/code-423n4/2022-04-jpegd/blob/e72861a9ccb707ced9015166fbded5c97c6991b6/contracts/vaults/yVault/strategies/Stra... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | overflow | false | false | ## Medium: Overflow/underflow protection
### Description
Having overflow/underflow vulnerabilities is very common for smart contracts. It is usually mitigated by using `SafeMath` or using solidity version ^0.8 (after solidity 0.8 arithmetical operations already have default overflow/underflow protection).
In this co... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | overflow | false | false | ## Low: uint64 \_target parameter can be declared directly as a uint32 in the StakingPool.getBalanceAt() function
### Description
The staking pool contracts implement the function `getBalanceAt()`:

This function dow... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Unused errors
### Description
There are unused errors at the following lines:
https://github.com/MetaLex-Tech/LeXscrow/blob/94ca277528bb25b8421dc127941c18915144eb29/src/DoubleTokenLexscrow.sol#L188
https://github.com/MetaLex-Tech/LeXscrow/blob/94ca277528bb25b8421dc127941c18915144eb29/src/EthLexscrow.sol#L170
h... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | token | true | false | ## Medium: fee-on-transfer underlying can cause problems
### Description
_Submitted by 0xsanson_.
#### Impact
The current implementation doesn't work with fee-on-transfer underlying tokens. Considering that Compound can have these kind of tokens (ex. USDT can activate fees), this issue can affect the protocol.
The ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | liquidation | false | false | ## Gas: Replace OZ's library with Solmate to save gas
### Description
Solmate's ERC20 and Ownable implementations are more optimized than OZ's version. In order to save gas is recommended to switch such implementations from OZ to Solmate in `DecentralizedStableCoin.sol`
### Impact
testRevertsIfMintFails() (gas: -60 (... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | liquidation | true | false | ## High: Mismatch between yield amount deposited in shares calculation and `getAccountYieldBalance()`
### Description
Mismatch between the return amount in all yield Etherfi and Lido assets and the `getAccountYieldBalance()` call causes the yield amount of each staked nft to the same `YieldAccount` to be incorrect, le... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | oracle | true | false | ## Medium: Malicious Buyers Can Get Skins Without Paying For Them If The Steam Trade Is Accepted By the Seller After More Than 24 Hours Have Passed Since the Buy Commit Placement
### Description
The `CSXTrade.sol` contract requires sellers to accept the Steam trade of the buyer for the skin they are selling before rec... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | reentrancy | true | false | ## Low: Inconsistent token usage between WETH and TokenIn
### Description
The contract demonstrates inconsistent usage between `tokenIn` and `weth` variables, which could lead to confusion and potential issues:
1. While the contract documentation indicates WETH is used as the input token, the contract maintains s... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | false | false | ## High: Division before multiplication can cause round down issue. Almost in all the places,it is happening
### Description
**Description:**
Computation is done such that the division first and then multiplication.
**Recommendations:**
Perform multiplication first and then do divide.
**Status:** Resolved | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | cross-chain | true | false | ## Low: Unaccounted Message Fee
### Description
## Observations
It was observed that during the test cases for non-native deposits or repayments, the `deliveryCost` does not account for the `messageFee` that is required to send the token to the tokenBridge for Deposit and Repay.
### Code Reference
**File:** `contra... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | true | false | ## Low: [11] `address.isContract` check
### Description
Lots of the contracts in this project import `import "@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol"` and use `address.isContract()` to check if an address is a contract and not a EOA. I guess this is only a check if the deployer by mistake pro... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | storage | false | false | ## Gas: State variables can be packed to use fewer storage slots
### Description
The EVM works with 32 byte words. Variables less than 32 bytes can be declared next to each other in storage and this will pack the values together into a single 32 byte storage slot (if the values combined are <= 32 bytes). If the variab... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | initialization | false | false | ## Gas: Owner role only used for initializing subscription parameters
### Description
In `BalanceTrackerNvmSubscriptionNative.sol`, the owner is only utilized to set `subscriptionNFT` and `subscriptionTokenId`, but does not serve other administrative functions. If these values are determined at deployment and do not n... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | liquidation | false | false | ## Low: [L-02]
### Description
[L-02] latestAuctionStartTime can be wrongly set to 0 even if an NFT is still selling in auction
https://github.com/with-backed/papr/blob/9528f2711ff0c1522076b9f93fba13f88d5bd5e6/src/PaprController.sol#L519-L530
This issue can happen when multiple collaterals are sent for auction. The v... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | front-running | true | false | ## Medium: Missing deadline check for AfEth actions
### Description
AfEth main actions execute on-chain swaps and lack an expiration deadline, which enables pending transactions to be maliciously executed at a later point.
### Impact
Both AfEth deposits and withdrawals include on-chain swaps in AMM protocols as part... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | false | false | ## Low: Inaccurate comments
### Description
The comment for the `mint()` function in the `SPGNFT` contract inaccurately states that the function is `"Only callable by the minter role."` However, this is not entirely correct. The function can also be called by anyone if the `_publicMinting` flag is set to true. This me... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | initialization | true | false | ## Medium: Yield fees collected when exiting recovery mode will be lost
### Description
Yield fees collected when the `disableRecoveryMode` function is called will be removed from the pool balances but never attributed to the aggregate fee balance, leading to the fee being permanently lost.
The pool “recovery mode” i... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: TRST-L-4 _getUnderlyingBalances() does unnecessary computation when not in active position
### Description
**Description:**
If the RangeOrderReactor contract is not currently active, it should simply return the current
token balances. However, it does a lot of expensive logic to calculate position value.
**... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: Same reward can be claimed multiple times in certain cases
### Description
The `ODefaultOperatorRewards` contract distributes rewards to operators based on their active stake. To prevent multiple claims, the contract tracks claimed amounts via:
```solidity
claimed[eraIndex][recipient]
```
However, the recip... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | dos | true | false | ## High: Empty Token Account DoS
### Description
## Vulnerability in `prepare_order_execution` and `improve_offer` Functions
Within the current implementation of `prepare_order_execution` and `improve_offer` functions, the `data_is_empty` checks have a potential vulnerability that could result in denial-of-service is... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Deposit blockage by liability increase may leave dust
### Description
_Acknowledged_
The `Overseer::deposit()` enables the manager to deposit HYPE into the staking module, which contains sufficient checks to ensure that the contract contains at least a bare minimum balance to fulfill the redemptions and proto... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | front-running | true | false | ## Medium: Front running in matchOrders() Won't Fix
### Description
Calls to `matchOrders()` are made to extract profit from the price difference between two opposite orders: left and right.
**code/contracts/exchange/contracts/src/MixinMatchOrders.sol:L106-L111**
```
function matchOrders(
LibOrder.Order memory ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | initialization | true | false | ## High: `activeValidatorCount` is never set or increased
### Description
In the `NativeVault` contract `Storage.ownerToNode[nodeOwner].activeValidatorCount` keeps track of the total validators with withdrawal credentials pointed to a specific node.
This value is decreased in `NativeVaultLib.validateSnapshotProof` wh... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | true | false | ## Gas: State variables can be cached instead of re-reading them from storage
### Description
Caching of a state variable replaces each `Gwarmaccess (100 gas)` with a much cheaper stack read.
**Note: Some view functions are included below since they are called within state mutating functions.**
Total Instances: `6`
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | front-running | true | false | ## Low: Add checks for zero returned shares
### Description
Due to the round down in the deposit function, if a user gets frontrun my a large depositor or a whale, or if deposited assets is > `minDepositAmount` but its product with `totalSupply` is less than tvl, a user may end up receiving 0 shares for deposited asse... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | initialization | true | false | ## High: RubiconMarket `batchOffer` and `batchRequote` make offers as self; complete loss of funds for some types of tokens, for example WETH
### Description
The `RubiconMarket` functions `batchOffer` and `batchRequote` both contain calls to `offer` as follows:
But calling `offer` using `this.offer` will [use a mess... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: Unchecked Error in ResetChurnableTopics Function
### Description
The `ResetChurnableTopics` function in the keeper does not check the error returned by the `Clear` method of `churnableTopics`. This could lead to silent failures and potential inconsistencies in the system state.
### Impact
1. Silent Failure... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | other | true | false | ## Low: Vault calls can be done directly to EVC
### Description
In [`FundsLib::depositAssets`](https://github.com/euler-xyz/euler-swap/blob/1022c0bb3c034d905005f4c5aee0932a66adf4f8/src/libraries/FundsLib.sol#L61-L114), two calls are made to the Euler Vault:
* [Line 92](https://github.com/euler-xyz/euler-swap/blob/102... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | front-running | true | false | ## Low: `liquidate()` is at risk of a sandwich attack
### Description
Currently ``liquidate()`` requires `_amountOut >= _vaultAssets` to execute `_yieldVault.deposit()` if there is a residual balance in the contract. This presents some risk for a sandwich attack.
Example:
1. A malicious user monitors `memory pool`, ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | liquidation | false | false | ## Low: Asset settings made prior to vault creation are silently reset
### Description
Severity: Low Risk
Context: HoneyFactory.sol#L201-L203, HoneyFactory.sol#L211-L213
Description: Vault creation sets theupper/lowerPegOffset as well as therelativeCap for anasset . In scenarios
where theses values are set prior to va... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | liquidation | true | false | ## Medium: Risk with Liquidation - Because of partnership requirement, caller may be unable to redeem during liquidation making it less likely for them to be willing to perform the liquidation
### Description
Due to the approval system with pvGLP, liquidations may be less likely | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | dos | true | false | ## Low: Attackers can mint vaults to a victim to gas grief them
### Description
When a user mints a vault and the tries to send it, the `_afterTokenTransfer` of the ERC721 vault token is invoked. This is shown in the snippet below.
```solidity
smartVaultIndex.transferTokenId(_from, _to, _tokenId);
if (address(_from) ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | true | false | ## High: `Controller.setCap` sets wrong vault balance
### Description
_Submitted by cmichel_
The `Controller.setCap` function sets a cap for a strategy and withdraws any excess amounts (`_diff`).
The vault balance is decreased by the entire strategy balance instead of by this `_diff`:
#### Impact
The `_vaultDetails... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Emission rewards are stuck when there is no liquidity in pool
### Description
RamsesV3Pool.sol tracks internal accounting, so that GaugeV3 can reward positions for provided liquidity. During testing, it was discovered that emission rewards are not distributed when there is no liquidity in the pool. General flo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | dos | true | false | ## High: Incorrect signature validation for different signer policies
### Description
* https://github.com/KintoXYZ/kinto-core/blob/f7dd98f66b9dfba1f73758703b808051196e740b/src/wallet/KintoWallet.sol#L200
A KintoWallet can have from one to three owners and have different signer policies. Incorrect verification of sig... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | overflow | true | false | ## High: Overwriting collateral breaks collateral gains logic
### Description
In the `StabilityPool` contract, when 180 days have passed since the sunset of a collateral, enabling a new collateral overwrites the previous one.
In this process, the `epochToScaleToSums` mapping is cleared, but not the `collateralGainsBy... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | front-running | false | false | ## Medium: Allowance frontrunning results in double-spending
### Description
**Severity**: Medium
**Status**: Resolved
**Description**
Contract PoolWithLpToken is vulnerable to the ERC20 approve and double spend front-running attack. In this attack, a token owner authorizes another account to transfer a specific am... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | other | true | false | ## Low: Redundant condition in `LibSilo::_mow` can be removed | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Centralization risk as admin can game the random minting process
### Description
Admin can cause different issues during minting process like:
1. Changing the commitment to make sure to receive Ultra Rare tokens.
2. Doesn't generate proof for some users. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | token | false | false | ## Medium: Use `safeTransfer()`/`safeTransferFrom()` instead of `transfer()`/`transferFrom()`
### Description
It is a good idea to add a `require()` statement that checks the return value of ERC20 token transfers or to use something like OpenZeppelin’s `safeTransfer()`/`safeTransferFrom()` unless one is sure the given... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | initialization | false | false | ## High: amount_claimable_per_share accounting is broken and will result in vault insolvency
### Description
Claim accounting is incorrect if there is a deposit when amount_claimable_per_share !=0, because position.amount_claimed isn't initialized when the deposit is created.
### Impact
Contract will become insolvent... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | logic | true | false | ## Medium: Incorrect calculations in deposit() function in TokenisableRange.sol can make the users suffer from immediate loss
### Description
Calculations of uncompounded fee in deposit() in TokenisableRange.sol is incorrect, this can make a potential immediate fund loss after a user make a deposit.
### Proof of Conc... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Call `For`/`From` variants instead of copying an pasting code
### Description
Duplicating code can lead to errors when a change is made to only one of the locations
*There is 1 instance of this issue:* | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | oracle | true | false | ## High: UniV3 Oracle unsafe on L2s in event of Sequencer downtime
### Description
The UniV3 oracle uses the built in `consult()` function provided by Uniswap's Oracle Library to query the pool and determine the time weighted price. This takes in a `secondsAgo` and observes the price at `secondsAgo` and `block.timesta... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | token | false | false | ## Low: The DAO address is not validated when buying tokens
### Description
The `_daoAddress` parameter is not validated in any of the functions: `buyGovernanceTokenERC20DAO()`, `buyGovernanceTokenERC721DAO()`, or `crossChainBuy()`. This doesn't pose any risks on the current codebase because of unexpected reverts deep... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | true | false | ## Low: [04] Hardcoded manager lacks ability to renounce control
### Description
### Finding description
The contract defines an `onlyManager` modifier that restricts access to certain functions exclusively to a hardcoded `genesisManager` address. However, there is no mechanism to transfer or renounce this privileged... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | false | false | ## Medium: Missing access modifier
### Description
**Severity**: Medium
**Status**: Resolved
**Description**
StakingConfigurator.sol, setTolerancePercentageForRewards()
The `setTolerancePercentageForRewards()` function can be called by anyone, so tolerance
percentage for rewards can be changed without HordCongres... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | overflow | true | false | ## Low: validateDeleverage() might revert with underflow instead of ITradeService_HlpHealthy()
### Description
The `validateDeleverage()` function is intended to revert if deleveraging is not necessary (because HLP is already healthy). This is implemented as follows:
```solidity
uint256 _aum = _calculator.getAUME30(fa... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Missing Validations
### Description
## Validation of add_ephemeral_multiplier
Currently, `add_ephemeral_multiplier` does not validate whether the new multiplier’s `expiry_time` is set in the future. If `expiry_time` is in the past or equal to the current time, the multiplier will immediately expire, rendering... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | access-control | true | false | ## Medium: Denial of Service on Repayments and Liquidations
### Description
**Update**
While some forms of this attack have now been blocked due to the addition of `onlyOwner` to the `repayBorrowBehalf()` function, the attack is still possible through the `liquidateBorrow(),` which may be used to front-run legitimate ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: Missing Zero Address Checks in Constructor
### Description
**Severity**: Low
**Status**: Resolved
**Description**
The constructor of the contract does not perform checks to ensure that the provided addresses are not zero addresses. It is important to validate that the addresses passed to the constructor are ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | front-running | true | false | ## Low: Merkle Tree related contracts will be subject to Cross Chain Replay attacks
### Description
Considering Sablier is compatible with any evm chain, this unfortunately opens up the below scenario.
In multi-chain deployments, the claim function in the SablierV2MerkleLL & SablierV2MerkleLT contract is vulnerable to... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | medium | other | true | false | ## Medium: In `Goldigovernor`, wrong assumption of block time
### Description
In `Goldigovernor.sol`, voting period/delay limits are set with 15s block time.
```solidity
/// @notice Minimum voting period
uint32 public constant MIN_VOTING_PERIOD = 5760; // About 24 hours
/// @notice Maximum voting period
uint... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | false | false | ## Medium: Unclaimed Fees Become Inaccessible After `V2Locker.unlock()`
### Description
`Locker.claimFees()` is protected by the `onlyLocked` modifier, which requires `lockedUntil != 0`. Inside `V2Locker.unlock()`, the contract sets `lockedUntil = 0` before transferring the LP tokens to the recipient. During the trans... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Use of magic numbers
### Description
Throughout the files in scope, particularly in `Escrow` and `BoostSideKick` contracts, there are instances where magic numbers are used.
Magic numbers are direct numerical or string values used in the code without any explanation or context. This practice can lead to c... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: Missing Amount Checks
### Description
## Airdrop Code Improvements
In Airdrop, including the check `amount != 0` within `_verifyProof` will make the code more self-explanatory and reinforce the requirement that the claimed amount should be greater than zero. A similar check in `withdrawLiquidity`, `withdrawUs... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | cross-chain | false | false | ## Medium: Third-Party Message Claiming for EOAs Is Uneconomical
### Description
Users on L1 and L2 can send cross-chain messages which are anchored on the other layer by the coordinator. These anchored messages can then be [claimed](https://github.com/Consensys/linea-contracts-audit/blob/bb6eb7284d1ac9574dc69e654abe5... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | token | false | false | ## High: Missing the unwrapping of native token in `RootBridgeAgent.sweep()` causes fees to be stuck
### Description
`RootBridgeAgent.sweep()` will fail as it tries to transfer `accumulatedFees` using `SafeTransferLib.safeTransferETH()` but fails to unwrap the fees by withdrawing from `wrappedNativeToken`.
### Impact... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | false | false | ## Medium: No bar fees for `IndexPools`?
### Description
_Submitted by 0xsanson, also found by pauliax_
#### Impact
`IndexPool` doesn't collect fees for `barFeeTo`. Since this Pool contains also a method `updateBarFee()`, probably this is an unintended behavior.
Also without a fee, liquidity providers would probably ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | initialization | true | false | ## High: Malformed admin update data
### Description
The `update_code_cell` helper function writes a cell with the wrong structure to storage. If the `opcodes::update_code_cell` functionality is ever used, the factory contract will become permanently unusable.
For context, the `load_data` method, shown in Figure 4.1... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | liquidation | true | false | ## High: Inconsistent Use of Basis Points Leading to Enormous Fees
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `34a671ebe036ab208f49628c2f41fbe967d882ea`.
**File(s) affected:**`Lending.sol`
**Description:** In `Lending.sol#L61`, `L124`, `L204` and `L249` the code documentation states ce... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | medium | oracle-manipulation | false | false | ## Medium: Missing `LDFType` type validation against `ShiftMode` can result in losses due disabled surge fees
### Description
While it is not required, some existing LDFs shift their liquidity distribution based on behavior derived from the TWAP oracle. If the `ShiftMode` is specified as the `STATIC` variant, the dist... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | overflow | false | false | ## Low: [FIXED] Casting to types in unsafe way
### Description
In these locations, there are casts to the `int256` and `uint256` types. In some cases, there are validations to prevent overflow, while in other locations, any checks are missing.
### Recommendation
We recommend unifying the handling of casting to `int25... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | false | false | ## Low: `setBlockchainRid()` Is Front-Runnable by Anyone
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `04df3127eeca2943cfb5c3c1026461b8791c620b`.
**File(s) affected:**`ManagedValidator.sol`
**Description:** Function `ManagedValidator.setBlockchainRid()` lacks any access controls and may ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | overflow | false | false | ## Medium: Potential gas overflow due to unlimited array length
### Description
**Description**
In function massUpdatePools() there is a loop that depends on pool.length. In the case
significant amount of pools, this function potentially could not be completed due to gas limits.
**Recommendation**:
Add a comment th... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | access-control | true | false | ## Medium: Unprivileged Unstaking
### Description
## Solvent Contract Overview
The solvent contract allows any user to stake or unstake an NFT in a gem farm configured by `solvent-admin`. Staking in Solvent was implemented to gain some rewards by staking NFTs in buckets and lockers. As such, the contract allows any u... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | false | false | ## High: Non-deterministic Ranges in Inference Synthesis Causing Inconsistent State Across Nodes
### Description
In the `inference_synthesis` package, the inference synthesis process is utilizing non-deterministic ranges. This non-deterministic behavior can lead to inconsistent state across different nodes, particular... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | signature | true | false | ## Low: Potential replay attacks due to static DOMAIN_SEPARATOR
### Description
**Description:** The DOMAIN_SEPARATOR is set only once during initialization and includes `block.chainid`. This could theoretically enable cross-chain replay attacks in the event of a hard fork.
Although the contract implements a nonce sys... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | token | true | false | ## Gas: [G‑13] Use custom errors rather than `revert()`/`require()` strings to save gas
### Description
Custom errors are available from solidity version 0.8.4. Custom errors save [**\~50 gas**](https://gist.github.com/IllIllI000/ad1bd0d29a0101b25e57c293b4b0c746) each time they're hit by [avoiding having to allocate ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Forced Eviction Of Legit Orders
### Description
## AVL Queue Order Eviction
AVL queue evicts orders when the tree exceeds a `CRITICAL_HEIGHT` or when the number of active nodes becomes equal to `N_NODES_MAX`, to prevent excessive gas costs for insertion and deletion. In theory, due to the limited orderbook ca... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | token | true | false | ## Low: Incorrect check in createERC20DAO and createERC721DAO
### Description
In the `createERC20DAO()` and `createERC721DAO()` functions, a loop iterates through the user's deposit chain IDs only if the length is not zero:
However, this approach is flawed. The loop initiates even when `_depositChainIds.length == 1`... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.