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 | high | front-running | false | false | ## High: Minority Jailing Majority of Signers
### Description
**Update**
The team fixed the issue by recording the `originalValidSignersCount` in L200 and using that cached value to call `LibCheckpoint.verifyConsensusRule(...)` in L236 inside the `Checkpoint.sol:checkpoint` function. The consensus rule is now verified... | 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: Improper Error Handling
### Description
The `CompoundPrizePool` contract interacts with the Compound system to [mint new cTokens](https://github.com/pooltogether/pooltogether-pool-contracts/blob/23b826b94e62d9c3a49bbe637da44cd1409c5b7f/contracts/prize-pool/compound/CompoundPrizePool.sol#L87) and [redeem them ... | 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: UNNEEDED INITIALIZATION OF UINT256 VARIABLES TO 0
### Description
As `i` is an `uint256`, it is already initialized to 0. `uint256 i = 0` reassigns the 0 to `i` which wastes gas.
Code Location
-------------
`ERC721LazyMinimal.sol`
* Line 59: `for (uint i = 0; i < data.creators.length; i++) {``
* Line 85: `f... | 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 | access-control | false | false | ## High: User funds can be withdraw without their permission
### Description
The `claimFunds()` function enables the owner to withdraw all USDB funds in the contract. This allows pot participants' funds to be withdrawn without their permission:
- The owner creates a Merkle tree with leaves such that the total `claimA... | 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: Cache updated remaining amount to prevent extra storage read | 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: `ConcentratedLiquidityPool`: `initialPrice` should be checked to be within allowable range
### Description
_Submitted by hickuphh3_
##### Impact
No check is performed for the initial price. This means that it can be set to be below the `MIN_SQRT_RATIO` or above `MAX_SQRT_RATIO` (Eg. zero value), which will p... | 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: Add immutable keyword
### Description
**Description:** The comment says to use immutable,but the implementation does not.
**Recommendations:** You should change to Unicrow public immutable unicorn; | 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 | true | ## Medium: Invalid `maxWithdraw()` check in `withdraw()`
### Description
Vault incorrectly checks `maxWithdraw(receiver)` instead of `maxWithdraw(controller/owner)`.
### Impact
- Allows unauthorized withdrawals by exploiting the receiver's limits instead of the owner's.
- DDoS in `withdraw()`
### Proof of Concept
❌ ... | 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 | false | false | ## High: Inadequate Handling Of Large Webassembly (Wasm) Files On The System Leads To Dos
### Description
Inadequate handling of large WebAssembly (WASM) files on the chain can lead to performance issues, slow startup times, and potentially cause system failure. It can cause to DOS.
### Recommendation
To prevent issu... | 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: Array Length of `tickTracking_ ` can be purposely increased to Brick Minting and Burning of most users' liquidity positions
### Description
### Lines of code
### Impact
A malicious user can brick minting, burning and harvesting of liquidity for almost all liquidity providers.
*Important NOTE*: This is a d... | 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: Unnecessary Check Inside `removeDaoManager()`
### Description
The `daoManagers.length > 1,` check in `removeDaoManager()` is unnecessary. The intent behind this check is to prevent a situation where the DAO has no managers left. However, this check is redundant.
It has already prevented a manager from removin... | 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 | true | false | ## High: `ERC20ConvictionScore._updateConvictionScore` uses stale credit score for `governanceDelta`
### Description
In `ERC20ConvictionScore._updateConvictionScore`, when the user does not fulfill the governance criteria anymore, the `governanceDelta` is the old conviction score of the previous block.
The user coul... | 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: Code Redundancy
### Description
## Audit Findings
## Redundant Assignment
Redundant assignment of `balance.lastCumulativeFundingX18` in `_updateBalance`, since the value was overridden below.
**File:** `contracts/PerpEngineState.sol`
**Code:**
## Redundant Code
In the `submitTransactions` function, a p... | 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 | rounding | false | false | ## High: There is a calculation error inside the calculateCompoundedFactor() function, causing users to overpay interest.
### Description
There is a calculation error inside the calculateCompoundedFactor() function, causing users to overpay interest.
### Impact
The user overpaid interest, resulting in financial loss.... | 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 | reentrancy | true | false | ## Low: SherpaUSD does not work with fee-on-transfer tokens
### Description
The SherpaUSD contract cannot work correctly with fee-on-transfer tokens. An example of such a token is USDT, which is expected to be supported as per comments. Note: Fees are not yet activated on USDT however they can be at any time in the fu... | 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: Simplify code
### Description
There is an if/else block in `CidNFT.add` for the `ACTIVE` type which could be simplified. Consider [changing this block of code](https://github.com/code-423n4/2023-01-canto-identity/blob/dff8e74c54471f5f3b84c217848234d474477d82/src/CidNFT.sol#L215-L226) into:
This is easier 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... | skyward_49k | gas | other | true | false | ## Gas: [14] Using `> 0` costs more gas than `!= 0` when used on a `uint` in a `require()` statement
### Description
This change saves **[6 gas](https://aws1.discourse-cdn.com/business6/uploads/zeppelin/original/2X/3/363a367d6d68851f27d2679d10706cd16d788b96.png)** per instance
*There are 7 instances 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 | low | other | true | false | ## Low: StakedSui Object Merge
### Description
`staking_pool::join_staked_sui` facilitates the merging of Staked Sui objects when their metadata matches.
### Recommendation
Utilize this functionality to reduce the quantity of Staked Sui objects. | 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: `MultiInvoker._latest` will return `latestPrice = 0` when latest oracle version is invalid causing liquidation to send 0 fee to liquidator or incorrect order execution
### Description
There was a slight change of oracle versions handling in 2.1: now each requested oracle version must be commited, either as ... | 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: A malicious owner can keep the fee rate at zero, but if a large value transfer enters the mempool, the owner can jack the rate up to the maximum
### Description
File: contracts/NFTLoanFacilitator.sol (lines [306-312](https://github.com/code-423n4/2022-04-backed/blob/e8015d7c4b295af131f017e646ba1b99c8f608f0/con... | 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: Add `require()` for asset address checks before doing the exchange
### Description
The code below should verify that the address is either `0x0` or the LIDO address, in order to prevent wasting gas by doing all of the operations between this point and the actual check done in `_depositToYieldPool()`
*There 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 | gas | access-control | true | false | ## Gas: We can optimize the function `updateLRTConfig()`
### Description
https://github.com/code-423n4/2023-11-kelp/blob/f751d7594051c0766c7ecd1e68daeb0661e43ee3/src/utils/LRTConfigRoleChecker.sol#L47-L51
The above function uses the modifier `onlyLRTAdmin` which has the following implementation:
The modifier reads... | 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 | timing | true | false | ## Low: Inconsistent comparison while checking `eta`
### Description
In `Goldigovernor` and `Timelock`, inconsistent comparisons are used.
```solidity
File: Goldigovernor.sol
386: else if (block.timestamp >= proposal.eta + Timelock(timelock).GRACE_PERIOD()) {
387: return ProposalState.Expired;
388: }
F... | 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: [50] Contract variables should have comments
### Description
Consider adding some comments on non-public contract variables to explain what they are supposed to do. This will help for future code reviews.
BridgeRouterFacet.sol ([26-26](https://github.com/code-423n4/2024-03-dittoeth/blob/91faf46078bb6fe8ce9f55... | 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: Range for variables not set
### Description
Range for variables is not set:
https://github.com/Gearbox-protocol/gearbox-contracts/blob/0ac33ba87212ce056ac6b6357ad74161d417158a/contracts/tokens/Vesting.sol#L45
### Recommendation
We recommend to add allowable range for variables | 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 | true | ## Medium: Operators can lose their reward share
### Description
The `Rewards::distributeRewards` function distributes rewards for epochs that are at least two epochs older than the current one. However, when calculating and distributing these rewards, the contract fetches the list of operators using `l1Middleware.get... | 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: Delay.execute can re-enter and re-execute the same script twice ✓ Addressed
### Description
`Delay.execute` does not follow the “checks-effects-interactions” pattern, and deletes a delayed script only after the script is run. Because the script being run executes arbitrary external calls, a script can be creat... | 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 | token | false | true |
_Submitted by kenzo, also found by cmichel and hyh_
SingleNativeTokenExitV2 allows the user to exit and execute trades via multiple exchanges.
When finishing the trades and sending a single output token back to the user,
the contract takes that token from the last swap in the first exchange's trades.
There is nothing... | Code4rena | 4 | Amun |
[
{
"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: Sponsorship refunds may fail
### Description
In the native zkSync AA control flow, paymasters are refunded excess ETH left over from the transaction's execution. The paymaster is notified of this refund in the `postTransaction()` function, and the `ERC20SponsorPaymaster` uses this function to implement the fol... | 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: DoS for actions performing volatility check
### Description
The `_checkVolatility` function in `AegisVaultCore.sol` requires that the pending holdings ratio of deposit and target vaults are not above a certain threshold (set initially to 1%).
```solidity
require(
_pendingHoldingsRatio(depositVault, dep... | 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: RocketNodeStaking - Node operators can reduce slashing impact by withdrawing excess staked RPL ✓ Fixed
### Description
Oracle nodes update the Minipools' balance and progress it to the withdrawable state when they observe the minipools stake to become withdrawable. If the observed stakingEndBalance is less 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 | high | liquidation | true | true | ## High: Anyone can take a valid commitment combined with a self-registered private vault to steal funds from any vault without owning any collateral
### Description
The issue stems from the following check in `VaultImplementation._validateCommitment(params, receiver)`:
```solidity
if (
msg.sender != holder &&
re... | 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: setDepositsLimit - if decreased, may have ongoing userDepositCount above the new limit
### Description
`DepositsFacet.setDepositsLimit()` sets AppStorage.numeStorage().depositsLimit
If this value decreased, some users with high enough `userDepositCount` can be left with `userDepositCount` potentially above 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 | medium | token | true | false | ## Medium: `StakingRewards.sol` `recoverERC20()` can be used as a backdoor by the `owner` to retrieve `rewardsToken`
### Description
_Submitted by WatchPug, also found by cmichel_
[StakingRewards.sol#L166-L176](https://github.com/code-423n4/2022-02-concur/blob/72b5216bfeaa7c52983060ebfc56e72e0aa8e3b0/contracts/Stakin... | 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 | true | false | ## Gas: `FungibleAssetVaultForDAO.withdraw()`: `collateralAmount` should get cached
### Description
See `@audit` tags: | 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 | Front-Running | true | true |
`Router.getOrCreatePoolAndAddLiquidity` can be frontrunned which allows the setting of a different initial price.
### Proof of Concept
When new Pool is created, it is already initialized with active tick (`Pool.sol#L76`). This allows the pool creator to provide price for assets.
So when first LP calls `Pool.addLiqui... | Code4rena | 5 | Maverick |
[
{
"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: Value of BASE_REWARD state variable is incorrect.
### Description
**Description**
Arkouda.sol, BASE_REWARD
BASE_REWARD equals 10 Arkouda tokens, but according to requirements the minimum tier
equals 3ARK/day (0.00208333/second).
**Recommendation**:
Apply the correct value to BASE_REWARD. | 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 | false | false | ## Medium: Potential DoS when removing keeper gauge
### Description
_Submitted by shenwilly_
### Impact
When `_removeKeeperGauge` is called, there is no guarantee that the keeper gauge isn't currently in use by any `TopUpActionFeeHandler`. If it's still in use, any top up action executions will be disabled as repor... | 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 | true | false | ## Low: Bug in liquidation logic leads to stealing funds from liquidatorsunprofitable liquidations
### Description
> This report is intended to be submitted under my team account "A2Security" but I reached the report submission rate limit on the last day. Please count this report as though it were from "A2Security".
... | 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: BitmapToQuorumIds() will panic on malformed input causing DOS in multiple services
### Description
This is a similar issue to the one found in `bitmapToBytesArray()`. `BitmapToQuorumIds()` will panic: underflow when given `-0` as the `big.Int` to return a bitmap for. This happens when `bitmap.Bit()` is called... | 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: depositDatainterestRate is not correct
### Description
Report type: Smart Contract
Target: https://testnet.snowtrace.io/address/0x96e957bF63B5361C5A2F45C97C46B8090f2745C2
Impacts:
* Direct theft of any user funds, whether at-rest or in-motion, other than unclaimed yield
## Description
## Brief/Intro
In... | 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: Insufficient tests
### Description
It is crucial to write tests with possibly 100% coverage for smart contract systems. Given that BTCPlus has inner complexity and also integrates many DeFi projects, using unit testing and fuzzing in all code paths is essential to a secure system.
Currently there are only... | 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: EthRouter.sell, EthRouter.deposit, and EthRouter.change functions can be DOS’ed for some ERC721 tokens
### Description
## Lines of code
https://github.com/code-423n4/2023-04-caviar/blob/main/src/EthRouter.sol#L152-L209
https://github.com/code-423n4/2023-04-caviar/blob/main/src/EthRouter.sol#L219-L248
https... | 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: NFTXMarketplaceZap.sol#buyAnd***() should return unused weth/eth back to msg.sender instead of to
### Description
## Handle
WatchPug
## Vulnerability details
https://github.com/code-423n4/2021-12-nftx/blob/194073f750b7e2c9a886ece34b6382b4f1355f36/nftx-protocol-v2/contracts/solidity/NFTXMarketplaceZap.so... | 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 | call vs transfer | false | true | ## Handle
hyh
## Vulnerability details
## Impact
When OpenLev operations use a wrapped native token, the whole user withdraw is being handled with a `payable.transfer()` call.
This is unsafe as `transfer` has hard coded gas budget and can fail when the user is a smart contract. This way any programmatical usage o... | Code4rena | 3 | OpenLeverage |
[
{
"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: POTENTIAL MEMORY LEAK ON `signMessage`- BROWSER DENIAL OF SERVICE
### Description
`Pontem Aptos Wallet` allowed an attacker to execute malicious code using the exported wallet functions, triggering a Denial of Service on the extension and the Browser (Chrome v105.0.5195.125).
An attacker could use the malicio... | 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: improved/corrected comment: "a dynamic array of structs representing all desired debt positions to be refinanced."
### Description
### Relevant GitHub Links
https://github.com/Cyfrin/2023-07-beedle/blob/d9718f2ca6521756624c017c90f3d4d4e80da90c/src/Lender.sol#L590
improved/corrected comment: "a dynamic array ... | 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 | true | ## Low: Replay Attack on APR Changes in the Leverage Vaults
### Description
It is possible to execute a replay attack on the `mint()` function of the leverage vaults to exploit changes to the APR rates.
If a call to the `mint()` reverts due to the following require statement:
```solidity
LeverageDNTVault.sol
require... | 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 | true | false | ## Low: `BasisStrategy::_afterIncreasePosition` may send asset to vault without `LogarithmVault.processingPendingWithdrawRequests`
### Description
**Severity:** Low
**Description:** The exit fee is calculated based on the amount of assets to be deutilized for the redeem/withdraw. It means only the asset amount above ... | 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: `unstakeAndWithdraw` inside `BoostAggregator` could lose `pendingRewards` in certain cases
### Description
When `BoosAggregator`'s `unstakeAndWithdraw` is triggered, it will try to unstake the uniswap NFT position token from the staker and get the pending rewards. If conditions are met, it will update the 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 | access-control | true | false | ## High: Lack of segregation of duties, excessive owner permissions, misleading authentication modifiers
### Description
#### Descriptio
In the `FujiERC1155` contract, the `onlyPermit` modifier should not include `owner`.
The `FujiERC1155` is `claimable` (`ownable`) via `F1155Manager`. The `onlyPermit` modifier in... | 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: Allowance Double-Spend Exploit
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation:
> Acknowledged
**File(s) affected:**`PortalToken.sol`
**Description:** As it presently is constructed, the contract is vulnerable to the [allowance double-spend ex... | 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: `OracleManager::lastUpdateTimestamp` updated even if no update performed
### Description
During `OracleManager::generatePerformance()`, the `lastUpdateTimestamp` is supposed to be updated in order for the `MIN_UPDATE_INTERVAL` delay to be enforced between calls. However, if all authorised oracles are inactive,... | 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: Pool functions can be called before initialization in _`init_()` of Pools.sol
### Description
All the external/public functions of `Pools.sol` can be called by other contracts even before `Pools.sol`contract is initialized. This can lead to exceptions, state corruption or incorrect accounting in other contr... | 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 | access-control | false | false | ## High: Missing/Limited Test Suite
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `196b5c612d2b3dd677e7bf844e921d793ee6ed1d`, `43d759425b217dab45f055595c7b6f82a0b12fc4`. The client provided the following explanation:
> The following types of checks/tests were added:
>
>
> 1. Happy path ... | 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: Wrong initializer used
### Description
Currently, the initializer uses `__Access_init(_administrator);` instead of the expected `__MPC_init(_administrator);`. While this works for now—since `__MPC_init` calls `__Access_init` and only does that—there's a potential risk for future code changes. As development 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 | low | dos | true | false | ## Low: updateAggregateBalance() can run out of gas
### Description
## Severity: Low Risk
**Context:** PoolCommitter.sol#L609-L682
**Description:**
The `updateAggregateBalance()` function of the PoolCommitter contract contains a for loop that, in theory, could use up all the gas and result in a revert. The `update... | 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: Functions Can Be Declared External For Gas Savings
### Description
The following functions can be declared external for some small gas savings:
- `RocketAuctionManager.getLotIsCleared()`
- `RocketMinipoolDelegate.getStatus()`
- `RocketMinipoolDelegate.getStatusBlock()`
- `RocketMinipoolDelegate.getStatusTime(... | 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: Pods with `hasTransferTax` set to `true` have an incorrect `totalSupply` because the burn fee is applied recursively to itself
### Description
A pod can have a transfer tax, which is a small portion that stays in the pod as fees with each transfer, while another portion is burned. The problem is that burnin... | 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: `beforeTokenTransfer` called with wrong parameters in `LBToken._burn`
### Description
[LBToken.sol#L237](https://github.com/code-423n4/2022-10-traderjoe/blob/37258d595d596c195507234f795fa34e319b0a68/src/LBToken.sol#L237)
In `LBToken._burn`, the `_beforeTokenTransfer` hook is called with `from = address(0)`... | 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: Function not used internally can be marked `external`
### Description
In the `mip-m17.sol` contract, the `description()` function has its visibility set to `public`. Considering it is not called in the context of the smart contract, the function visibility can be changed to `external`, in order to enhance gas ... | 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: Unauthorized PartyB could settle PNL of other PartyBs and users in the system
### Description
The `settleUpnl` function does not include `notPartyB` modifier. As a result, unauthorized PartyB could settle PNL of other PartyBs and users in the system, causing disruption and breaking core protocol functionali... | 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: Long bitmasks are hard to read
### Description
Consider using bitshifts instead of a bitmap if the value is a power of 2 and the variable is constant, to improve the code readability.
*There is 1 instance of this issue.*
[[10](https://github.com/code-423n4/2024-04-panoptic/blob/6908144756ef0cce2ede6d3b20132... | 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: [07] Extensions to `UniStaker.invariants.t.sol` to track an additional invariant, `invariant_Total_stake_plus_direct_delegations_equals_current_votes`
### Description
We have extended `UniStaker.invariants.t.sol` with an additional invariant that asserts that on all changes, either via `UniStaker` or via direc... | 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: No way to cancel/reduce cooldown requests
### Description
Cooldown of assets and shares can only ever increase, both in time and in assets. If a user changes his mind about cooling down, there's no way for him to cancel this request.
Recommend introducing a way to do this, possibly a bool parameter that incr... | 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: NatSpec comments should be increased in contracts
### Description
**Context:**
All Contracts
**Description:**
It is recommended that Solidity contracts are fully annotated using NatSpec for all public interfaces (everything in the ABI). It is clearly stated in the Solidity official documentation.
In complex p... | 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: Implement Support for ERC-20 transferFrom Method in ParseEthereumTransaction
### Description
The current implementation of `ParseEthereumTransaction` only supports parsing of the `transfer` method for ERC-20 tokens. It lacks support for the `transferFrom` method, which is a common and important function in ... | 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: A "FrontRunning attack" can be made to the `initialize` function
### Description
[AlgebraPool.sol#L193-L206](https://github.com/code-423n4/2022-09-quickswap/blob/main/src/core/contracts/AlgebraPool.sol#L193-L206)
The initialize function in `AlgebraPool.sol#L193-L206` is a very important function and sets 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 | low | other | true | false | ## Low: WRONG EVENT IS EMITTED IN THE UPDATE BORROW SPEED FUNCTION
### Description
The `_updateBorrowSpeed` function in the smart contract is responsible for updating the borrow emission speed for the specified `MToken` and `emissionToken`. However, it has been identified that the wrong event is being emitted at the e... | 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 | reentrancy | true | true | ## High: User can drain escrow via approved withdrawals
### Description
Whenever a user wishes to withdraw, they must create a request via the `HyperEvmVault::requestRedeem` function:
```solidity
function requestRedeem(uint256 shares_) external nonReentrant {
V1Storage storage $ = _getV1Storage();
uint256 balance... | 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 Validations in Polynomial Openings
### Description
Similarly to what will be implemented for EIP-4844, submitted data is represented by a [polynomial](https://github.com/Consensys/linea-contracts-audit/blob/bb6eb7284d1ac9574dc69e654abe5ccb8d8ded1a/contracts/LineaRollup.sol#L384-L413) and opened at... | 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 | upgrade | true | false | ## Low: User cannot claim dividends after withdrawing their DRVS tokens
### Description
In `dividends_claim`, the function checks that `client_community_state.header.drvs_tokens` is greater than zero for the user to be eligible to claim their dividend tokens.
```rust
if client_community_state.header.drvs_tokens >... | 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: TOTALSUPPLY VALUE SHOULD BE OBTAINED BY TOTALSUPPLY() METHOD
### Description
The `Lord.sol` and `Mead.sol` smart contracts use `_totalSupply` variable to obtain the tokens total supply. This value is defined as a private variable in the OpenZeppelin ERC20 implementation; therefore, it should be obtained by usi... | 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: `ValidatorWithdrawalVault.distributeRewards` can be called to make operator slashable
### Description
An attacker can call `distributeRewards` right before `settleFunds` to make `operatorShare This is intended, as we want to `slash SD` for an operator if the penalty is greater than operator share.
> Reward... | 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: Dynamic emissions schedule based on system utilization doesn’t work
### Description
Utilisation rate in the RaacMinter is calculated in a such way
```Solidity
function getUtilizationRate() public view returns (uint256) {
uint256 totalBorrowed = lendingPool.getNormalizedDebt();// get the normalised debt, and... | 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 | signature | true | false | ## Medium: Increment positionNonce in transferFrom in Vault . . . . . .
### Description
## Vault Contract Transfer Function
In the Vault contract, the `transferFrom` function is used to transfer a trader profile to another account.
## Solidity Code
The profile is moved to the `positionNonce[to]` nonce, but this no... | 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: LibUsdOracle inverses Chainlink TWAP price which results in incorrect price
### Description
Here is good article on why arithmetic mean TWAP cannot be inversed to get price of second asset:
https://blog.yacademy.dev/2024-05-24-are-inverse-TWAP-prices-inaccurate/
In short inverse of average price is not equal ... | 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: Redundant `return` in the `try` clause
### Description
This `try` clause has already returned `low` and `high` and is returning the same things again in its nested logic, which is inexpedient and unnecessary. Similar behavior is also found in [`Asset.price`](https://github.com/reserve-protocol/protocol/blob/9e... | 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: Uninitialized reentrance guard
### Description
**Severity**: Low
**Status**: Resolved
**Description**
SakeVaultV2.sol - In function initialize() the initializer of ReentrancyGuardUpgradeable (i.e. __ReentrancyGuard_init() ) is not invoked. This is a bug because the default value of _status is 0 while the in... | 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 | overflow | false | false | ## Gas: Make loop increment unchecked
### Description
Overflowing loop index is virtually impossible, therefore it's cheaper to make the increment unchecked. It's also a bit cheaper to use ++i instead of i++.
Gas saved: up to 300 units
Lines:
* [JBController.sol#L913](https://github.com/jbx-protocol/juice-contract... | 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: Changing VoteWeighting contract can result in lost staking incentives
### Description
The Dispenser contract provides functionality for the owner to update manager accounts at any time, including changing the VoteWeighting contract.
Changing the VoteWeighting contract mid-flight can lead to lost staking 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... | solodit_api | medium | Aave | true | false | Source: https://github.com/sherlock-audit/2023-05-dodo-judging/issues/72
## Found by
roguereddwarf
## Summary
It's expected by the protocol that funds can be in the `MarginTrading` contract without being deposited into Aave as margin.
We can see this by looking at the `MarginTradingFactory.depositMarginTradingETH` ... | Sherlock | 4 | DODO Margin Trading |
[
{
"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: In-Protocol Swaps Only Occur For The Ideal Case
### Description
The logic for using the RocketPool minting/burning process to swap tokens is only activated if the rate produces the ideal token amounts (or more). If the ideal token amounts cannot be achieved solely by the in-protocol swaps, Uniswap and/or Balan... | 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: Users will steal excess funds from the Vault due to `VaultPoolLib::redeem()` not always decreasing `self.withdrawalPool.raBalance` and `self.withdrawalPool.paBalance`
### Description
[Vault::redeemExpiredLv()](https://github.com/sherlock-audit/2024-08-cork-protocol/blob/main/Depeg-swap/contracts/core/Vault.so... | 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: Insu�cient validation of request/response existence could have unintended side e�ects
### Description
Multiple functions in the Oracle contract insufficiently validate if the request or response exists.
The Oracle contract allows users to create requests for arbitrary data and respond to other users' requests. ... | 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 | false | false | ## High: USDC deposited to PerpDepository.sol are irretrievable and effectively causes UDX to become undercollateralized
### Description
PerpDepository rebalances negative PNL into USDC holdings. This preserves the delta neutrality of the system by exchanging base to quote. This is problematic though as once it is in ... | 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: [06] Comments of `renounceOwnership()` on risks is incomplete
### Description
After a completed `renounceOwnership()`, the `owner` will be 0. Not only will direct calls that check the owner fail, but also the checks via `_verifyCall()` will fail. This is because `_verifyCall()` interacts with the `owner`, whic... | 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 | logic-error | true | false | ## Low: Repeated logic can be reused with a shared internal 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 | high | other | true | false | ## High: Triggering the vault's `_accrueFee` while the `IonPool` is paused
### Description
**Severity**
**Impact:** High
**Likelihood:** Medium
**Description**
When `IonPool` is paused, interest accrual stops, and when Ion Protocol's unpausing the `IonPool`, all `ilks.lastRateUpdate` will be updated to `block.time... | 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 | overflow | true | false | ## Gas: Use unchecked when it is safe
### Description
For example, those dealing with eth value will basically never overflow:
[Link to code](https://github.com/code-423n4/2022-12-tessera/blob/f37a11407da2af844bbfe868e1422e3665a5f8e4/src/modules/GroupBuy.sol#L115-L116)
[Link to code](https://github.com/code-423n4/... | 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: Divergence in VerifyPrefixProof error handling
### Description
The `VerifyPrefixProof` implementations diverge. Golang´s `VerifyPrefixProof` function returns an `ErrIndexOutOfRange` when the function tries to access an index of the `prefixProof` that is out of bounds; this is done to avoid a panic.
```go
func ... | 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: [08] `available_period` is not used
### Description
The NFT owner is able to set the `available_period: Vec` but it never gets checked in this contract.
https://github.com/code-423n4/2024-10-coded-estate/blob/main/contracts/codedestate/src/execute.rs#L1300
https://github.com/code-423n4/2024-10-coded-estate/b... | 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: Mint decimal manipulation through `MintCloseAuthority` leads to inflation of `ld2sd_rate`
### Description
The `ld2sd_rate` (local-to-shared decimal rate) can be manipulated by the initializer through the exploitation of the `MintCloseAuthority` extension in the Solana program. This manipulation is possible be... | 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: The getUrn function does not guarantee the urnexistance
### Description
Context: LockstakeEngine.sol#L221-L229
Description: The getUrn function calculates the urn address using create2 . This will also work for future
urn addresses that are not actually created.
Recommendation: Consider adding a comment in 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 | access-control | true | false | ## Low: Redundant Access Control Check in `SecuritizeInternalNavProvider::addRateUpdater, removeRateUpdater`
### Description
**Description:** `SecuritizeInternalNavProvider::addRateUpdater, removeRateUpdater` perform redundant access control checks. These functions have an `onlyRole(DEFAULT_ADMIN_ROLE)` modifier, but ... | 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: StakedYuzuUSD violates the ERC4626 standard
### Description
_Resolved_
Look at the specification for maxWithdraw in [EIP4626]([https://eips.ethereum.org/EIPS/eip-4626#:~:text=type%3A uint256-,maxWithdraw,-Maximum amount of](https://eips.ethereum.org/EIPS/eip-4626#:~:text=type%3A%20uint256-,maxWithdraw,-Maximu... | 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 EIP 4337, which is likely to change, not recommended for general use or application
### Description
An account abstraction proposal which completely avoids the need for consensus-layer protocol changes.
However, this EIP has not been finalized yet, there is a warning situation that is not of general us... | 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: Not Using `SafeERC20` for All Token Transfers
### Description
**Update**
Fixed in `47c87f8e15308e864a2fb2e4a223917cef227dbc`. The client fixed this as recommended and replaced all transfer functions with their `safe` counterpart.
**File(s) affected:**`contracts/StakingWithUnbonding.sol`
**Description:** 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 | overflow | true | false | ## Gas: [19] Don't use `SafeMath` once the solidity version is 0.8.0 or greater
### Description
Version 0.8.0 introduces internal overflow checks, so using `SafeMath` is redundant and adds overhead
*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 | medium | oracle | true | false | ## Medium: Insecure Generation of Randomness Used for Token Determination Logic
### Description
**Severity**
Medium Risk
**Description**
`EmissionLogic.sol` contains the `determineTokenByLogic()` function that determines the rarity and `tokenId` of a `MaterialObject`.
It generates a `uint256 random` value that reli... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.