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
low
other
false
false
## Low: Misleading variable name ### Description In the methods `mintClaim`, `mintClaimWithFractions` and `createAllowlist` the local variable `claimID` has a misleading name as it actually holds `typeID` value - rename it to `typeID` in the three methods.
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
Bypass limit
false
false
## Severity: Medium Risk **Context:** - aave-v2/EntryPositionsManager.sol#L117 - aave-v2/EntryPositionsManager.sol#L215 - compound/PositionsManager.sol#L258 - compound/PositionsManager.sol#L354 **Description:** When supplying/borrowing, the algorithm attempts to reduce the deltas `p2pBorrowDelta` and `p2pSupplyDel...
Spearbit
5
Morpho
[ { "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
rounding
true
false
## Medium: Weighted average prices are unable to handle currency and tranche tokens with varying decimals ### Description When deposit/redeem orders are decreased, the price needs to be updated to reflect a 1:1 exchange rate of currency or tranche tokens so that they can be readily redeemed. However, if the decimals o...
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: No slippage protection for swaps ### Description The code lines mentioned in the `References` section indicates that a minimum amount of 0 output tokens from the swap is acceptable, opening up the protocol to a loss of funds via MEV bot sandwich attacks. ### Recommendation Allow the caller to specify a max...
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: Incorrect revert message in the 03-UsdsSkyFarmingCheck.s.sol ### Description The revert message that checks if the staking token is usds is incorrect as it should state that the staking-token is invalid. ```solidity require(StakingRewardsLike(rewards).stakingToken() == usds, "StakingRewards/invalid-rewards-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
gas
other
false
false
## Gas: Functions in ERC7540Vault can be made external ### Description Several functions in `ERC7540Vault` are declared as public while they are not called from the contract itself: - `function requestDeposit(uint256 assets, address controller, address owner) public returns (uint256);` - `function pendingDepositReque...
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: Division by two should use bit shifting ### Description ` / 2` is the same as ` >> 1`. While the compiler uses the `SHR` opcode to accomplish both, the version that uses division incurs an overhead of [**20 gas**](https://gist.github.com/IllIllI000/ec0e4e6c4f52a6bca158f137a3afd4ff) due to `JUMP`s to and from a...
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: LiquidityPool can be DoS when a complete withdrawal is performed ### Description `LiquidityPool` can be DoS when all funds are withdrawn from the pool, causing `getTokenPrice()` to revert due to zero `totalSupply()`. ### Impact The `LiquidityPool` will not be able to proceed and requires new deployment o...
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
false
false
## Medium: Malicious pauseGuardian can prevent their replacement ### Description An honest Comptroller admin may find it difficult to replace a malicious/compromised pauseGuardian. To replace the current pauseGuardian, the Comptroller admin must first call [`_setPendingPauseGuardian`](https://github.com/compound-finan...
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
token
true
false
## Low: First transaction on `SpecificActionERC20TransferBatchEnforcer` does not support sending native value ### Description The `SpecificActionERC20TransferBatchEnforcer` is an enforcer to execute an arbitrary transaction first that is constrained by the delegator and afterwards an ERC20 transfer. Both executions ar...
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 `_disableInitializers()` Call in the Constructor ### Description **Update** Marked as "Fixed" by the client. Addressed in: `5754DB9`. **Update** Marked as "Fixed" by the client. Addressed in: `55c3880b64b39f94f2d85cc640940c78e3554645`. The client provided the following explanation: > The _disableIni...
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: Anyone can deploy a new `FraxSwapPair` with a Low fee incurring losses to the protocol ### Description When `LiquidityManager::moveLiquidity` function is called then either a new `FraxSwapPair` is created with a fee of `1%` or if a pair already exists then the liquidity is transferred to that `FraxSwapPair`...
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: Lido withdraw limitation will brick the withdraw process in an edge case ### Description Lido protocol has limitation regarding the requestWithdraw function. However some of these limitation have not been considered in the `_initiateWithdrawImpl` leading to users being unable to claim their vault shares even ...
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: Missing validation for zero `epochDuration` in AvalancheL1Middleware can break epoch based accounting ### Description **Description:** `AvalancheL1Middleware::EPOCH_DURATION` is an immutable parameter set in the constructor. The current implementation only checks that `slashingWindow` is not less than `epochDu...
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: [03] `nonReentrant` MODIFIER CAN BE PLACED AND EXECUTED BEFORE OTHER MODIFIERS IN FUNCTIONS ### Description As a best practice, the `nonReentrant` modifier could be placed and executed before other modifiers in functions to prevent reentrancies through other modifiers and make code more efficient. To follow 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
other
true
false
## Medium: PCVEquityMinter and BalancerLBPSwapper - desynchronisation race ### Description There is nothing that prevents other actors from calling `BalancerLBPSwapper.swap()` `afterTime` but right before `PCVEquityMinter.mint()` would as long as the `minAmount` required for the call to pass is deposited to `BalancerL...
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: Zapper `_swapV3Single()` has multiple integration issues with V3 swap. ### Description Zapper `_swapV3Single()` has multiple integration issues with V3 swap. ### Impact Zap feature does not work as expected, which impacts users calling `IndexUtils#addLPAndStake()`. ### Recommendation N/A
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
true
## Low: ABI encodePacked collision ### Description The `addEthNativeToken` and `addNewSidechainToken` functions use the `abi.encodePacked` Solidity function and pass in two consecutive strings, which could lead to a hash collision. We set the severity of this finding to informational because the `used[txHash]` check 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
other
false
false
## Low: is not supported by all chains ### Description The compiler for Solidity 0.8.20 switches the default target EVM version to Shanghai, which means that the generated bytecode will include PUSH0 opcodes. Be sure to select the appropriate EVM version in case you intend to deploy on a chain other than mainnet like ...
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: Unused storage variables ### Description `CreatorTokenFactory.whitelist` is never used in CreatorTokenFactory. `TWAP.dailySum` is never used in TWAP. ### Recommendation Consider removing unused state 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...
skyward_49k
gas
storage
true
false
## Gas: Use hardcoded address instead of address(this) ### Description Instead of using address(this), it is more gas-efficient to pre-calculate and use the hardcoded address. Foundry's script.sol and solmate's LibRlp.sol contracts can help achieve this. Refrences https://github.com/code-423n4/2023-08-goodentry/blob...
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
true
false
Source: https://github.com/sherlock-audit/2023-02-surge-judging/issues/225 ## Found by joestakey, Ace-30, Tricko, TrungOre, Deivitto, unforgiven ## Summary function `getCurrentState()` Gets the current state of pool variables based on the current time and other functions use it to update the contract state. it calc...
Sherlock
4
Surge
[ { "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
false
false
## Low: [7] Missing non reentrancy modifier ### Description The following functions are missing reentrancy modifier although some other pulbic/external functions does use reentrancy modifer. Even though I did not find a way to exploit it, it seems like those functions should have the nonReentrant modifier as the other...
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 Bootstrap.repay() function is likely supposed to be called by protocol addresses only, but it is public and just burns tokens ### Description repay() takes yETH tokens and burn them, giving nothing in return. - https://github.com/yearn/yETH-bootstrap/blob/2dd219d3af49952275934638e8c9d50d0fef0d8f/contracts/...
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
Slippage
false
true
_Submitted by TomFrenchBlockchain, also found by cmichel_ #### Impact The amount of synths minted / assets received when minting or burning synths can be manipulated to an unlimited extent by manipulating the reserves of the pool #### Proof of Concept See `VaderPool.mintSynth`: <https://github.com/code-423n4/2021-1...
Code4rena
3
Vader Protocol
[ { "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
Timing
true
true
In `L1::xRenzoBridge` the `block.timestamp` from L1 is encoded and sent to L2. When the message is delivered from L1 to L2 with `xRenzoBridge::_updatePrice()`, the function checks the `block.timestamp` like this: ```solidity if (_timestamp > block.timestamp) { revert InvalidTimestamp(_timestamp); ...
Code4rena
5
Renzo
[ { "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: Curve AMO assumes the collateral ratio to be constant ### Description When calculating the amount of collateral available to the AMO, the `CurveAMO_V3` contract assumes that the collateral ratio will not change. The protocol calculates the amount of underlying collateral the AMO has access to by finding the ba...
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: [01] `ChefIncentivesController#batchUpdateAllocPoint()` `ChefIncentivesController#_massUpdatePools()` would be broken when protocol heavily scales ### Description https://github.com/code-423n4/2024-07-loopfi/blob/57871f64bdea450c1f04c9a53dc1a78223719164/src/reward/ChefIncentivesController.sol#L318-L334 Also,...
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: Insufficiently random challenge in BatchVerifyCommitEquivalence ### Description ## Severity: High Risk **Context:** `encoding/kzg/verifier/batch_commit_equivalence.go#L28-L47` **Description:** When generating `randomFr`, it is not enough to only hash the commitments. You must include everything that the ver...
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
reentrancy
false
false
## Gas: Use `ReentrancyGuardTransient` instead of `ReentrancyGuard` or more gas-efficient `nonReentrant` modifiers ### Description **Description:** Use [`ReentrancyGuardTransient`](https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/ReentrancyGuardTransient.sol) instead of `ReentrancyGua...
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: What if the receiver of Axelar _executeWithToken() doesn’t claim all tokens ### Description The function `_executeWithToken()` approves tokens and then calls `callTo`. If that contract doesn’t retrieve the tokens, then the tokens stay within the Executor and are lost. Also see: "Remaining tokens can be sw...
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: Emergency Withdrawal Function Restricted by Timelock ### Description The `BellumNursery.emergencyWithdrawal` function incorrectly includes the `waitForWithdrawal` modifier, which enforces a 6-epoch waiting period before withdrawals. This fundamentally contradicts the purpose of an emergency withdrawal mecha...
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: [10] Lack of Sanity Checks for Reward and Slashing Amounts ### Description **Contract Name:** `DefaultOracle.sol` **Function Name:** `updateValidatorMetrics` **Description:** The `updateValidatorMetrics` function does not validate that `reward` and `slashing` amounts are reasonable relative to the validator’...
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: M11] Missing incentives to complete the voting process ### Description ###### Medium In the `CurrencyGovernance` contract, in order to complete the voting process, the trusted nodes have to [`commit`](https://github.com/BeamNetwork/currency/blob/51b65c5c7af455391af2bc30d13d761566d8c236/contracts/inflation...
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: A solver with insufficient funds can block further processing ### Description The function `_settle()` reverts if the Solver can't pay for the costs. When the function `_settle()` reverts, the `metacall()` also reverts. The costs could be gas usage or any `Borrow()`s after `validateBalances()`. This behavio...
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: Users Could Lose Rewards Due to Missing Check in `RewardsMath` ### Description **Update** Marked as "Fixed" by the client. Addressed in: `2710769ea023cee8bac188302d9d0b9f91a79490`. **File(s) affected:**`RewardsMath.sol` **Description:** The function `RewardsMath.increaseInterest()` updates the state `Stak...
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: Vesting account preemption attack preventing future contract deployment ### Description This vulnerability allows an attacker to preemptively set a target address as a vesting account, permanently blocking contract deployments by Factory contracts or other users to that address. Once the address is marked 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
high
other
true
false
## High: *LevelZeroEdge snapshots are not updated ### Description Snapshots of honest level-zero edges in the `HonestChallengeTree` struct are not refreshed in `RefreshEdgesFromChain`, where only the `edges` field is updated. Since the lower and upper child of a snapshot edge can change, it is possible that incorrect ...
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: Inproper copy-paste in `rebalance()` ### Description amount1Min value is copy-pasted from previous live without proper modification https://github.com/mellow-finance/mellow-contracts/blob/ec766bf844db0bce4b4adae63458fc08d02e21af/contracts/LiquidityVault.sol#L433 ```solidity ClosePositionArgs({ strategyId...
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: Request ID generation should be more complex ### Description As we are talking about RWA, the request IDs must be auditable off-chain and kept track of. The current ID generation is very simple and can become problematic over time. A better approach to track a request ID would be defining it as a `bytes32` 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
gas
initialization
true
false
## Gas: It costs more gas to initialize variables with their default value than letting the default value be applied ### Description If a variable is not set/initialized, it is assumed to have the default value (`0` for `uint`, `false` for `bool`, `address(0)` for address...). Explicitly initializing it with its defau...
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: Role Separation of `Web3MusicNativeTokenManagement` Bypassable by Corresponding Contract Owners ### Description **Update** The client acknowledged the issue and provided the following explanation: > The roles abstraction is a designed behavior. **File(s) affected:**`Web3MusicNativeTokenManagement.sol`, `Web3...
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: ExtraRewardStashV2's stashRewards can become unavailable ### Description _Submitted by hyh_ There is no check for the reward token amount to be transferred out in stashRewards(). As reward token list is external (controlled with `IGauge(gauge).reward_tokens`), and an arbitrary token can end up there, in 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
initialization
true
false
## Low: Use Associated Token Account ### Description ## Fee Receiver Token Account Usage Instead of using the `InitializeFeeReceiver` instruction to create a PDA for the fee receiver token account, an associated token account can be used in the `AcceptBorrowRequest` instruction with `associated_token::authority` set ...
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
Validation
true
false
## Vulnerability Report ## Severity **Medium Risk** ## Context PositionsManagerForAave.sol#L223-L232 ## Description The `claimToTreasury` function is currently not verifying if the `treasuryVault` address is not equal to `address(0)`. In the current state, it would allow the owner of the contract to burn the underly...
Spearbit
5
Morpho
[ { "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: getOracleData() maxExternalDeposit not accurate ### Description in `getOracleData() ` The calculation of `maxExternalDeposit` lacks consideration for `reserve.accruedToTreasury`. This leads to `maxExternalDeposit` being too large, causing `Treasury.rebalance()` to fail. ### Impact An overly large `maxExte...
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: CKB-only cells invoke undefined behavior ### Description The `anyone-can-pay` lock contract uses uninitialized variables when cells hold only CKB. The `input_wallets[j].udt_amount` and `udt_amount` variables are passed to a `ckb_load_cell_data` syscall, but memory is initialized solely for CKB-only cells. 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...
cyfrin_structured
low
signature
false
false
## Low: Missing signature deadline for `GlobalRegistryService::executePreApprovedTransaction` ### Description `GlobalRegistryService::executePreApprovedTransaction` allows an `Operator` to call an arbitrary contract and function, though the current intent is for it to call `addGlobalInvestorWallet`. ### Impact While ...
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
false
false
## Gas: Use `memory` instead of `storage` ### Description Changing `storage` to `memory` we can save some storage access. Affected source code: * [CToken.sol#L255](https://github.com/Plex-Engineer/lending-market-v2/blob/2646a7676b721db8a7754bf5503dcd712eab2f8a/contracts/CToken.sol#L255) **[Alex the Entreprenerd (j...
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: `keccak256()` should only need to be called on a specific string literal once ### Description It should be saved to an immutable variable, and the variable used instead. If the hash is being used as a part of a function selector, the cast to `bytes4` should also only be done once *There are 6 instances of thi...
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 latest version of Solidity ### Description [Current code](https://github.com/iExecBlockchainComputing/rlc-token/blob/3d9aa99ba33bb035c59740a621b1f21cd45cbac5/contracts/RLC.sol#L1) is written for an old version of solc (0.4.8). We recommend changing the solidity version pragma for the latest version (`pragm...
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
false
false
## Medium: The claimer's fee will be stolen by the winner ### Description The user calls `claimPrizes` to collect prizes for the winner, earning some rewards in the process. However, during this process, the winner can steal the fees collected by the user without paying any gas fees. ### Impact The user will lose 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
cross-chain
false
false
## Low: Potential Overreach of Modifier. ### Description **Description** 1. ChainportSideBridge: _cross Chain Transfer. The ChainportSideBridge contract's function_crossChainTransfer employs the modifier isPathNotPaused (bridge Token, "crossChainTransfer") to check whether a transfer path is currently paused. However...
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: Unauthorized access to change acceptanceDelay ### Description The `acceptanceDelay` along with `supportedInterfaces[]` can be set by any user without the need of any Authorization once the init function of `DiamondInit` has been called and set. This is happening since caller checks (`LibDiamond.enforceIsContr...
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: `creatorNftMints` is assigned only 0 or 1 ### Description It is unclear why this mapping points to uint: the only values it could get is either 0 or 1, so a boolean type might be more suitable here. Recommend using true/false values if the intention was that 0 means false and 1 means true:
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: `_calculateRewards()` in PirexGmx don't handle reward calculation properly, and it would revert when `totalSupply()` is zero which will cause `claimRewards()` to revert if one of 4 rewardTracker's totalSupply was zero ### Description ### Impact Function `claimRewards()` in `PirexGmx` claims WETH and esGMX ...
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: level read and write access to storage ### Description In `Scribe.sol`, the `sloadPubkey()` and `sstorePubKey()` functions are used to read and write to storage respectively using inline assembly. It is not advisable to access storage variables in this low-level manner. ### Recommendation Consider using `_pub...
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: Protection too expensive when some capital is locked ### Description The leverage ratio is computed as a ratio of unlocked capital to total protections. This means that each protection position which has locked capital is effectively counted twice: once to lock up capital, and once again to decrease the lev...
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: dETH / ETH / LPTokenETH can become depegged due to ETH 2.0 reward slashing ### Description I want to quote the info from the doc: > SavETH Vault - users can pool up to `24 ETH` where protected staking ensures no-loss. dETH can be redeemed after staking and > Allocate savETH <> dETH to `savETH Vault` (24 ...
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: Reward distribution algorithm is flawed ### Description The ERC4626i contract is intended to distribute the rewards for a given campaign at a constant rate proportional to the shares each user holds in the contract. For example, if `user1` holds 20% of the shares of the vault for a given period of time, they 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
gas
storage
true
false
## Gas: Multiple address mappings can be combined into a single mapping of an address to a struct, where appropriate ### Description We can combine multiple mappings below into structs. This will result in cheaper storage reads since multiple mappings are accessed in functions and those values are now occupying the sa...
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
Wrong Comment
false
false
## Severity: Medium Risk ## Context - StableSwapFacet.sol#L70 - SwapAdminFacet.sol#L103 - StableSwap.sol#L64 - StableSwap.sol#L143 - AmplificationUtils.sol#L24 - SwapUtils.sol#L62 - SwapUtils.sol#L248 - SwapUtils.sol#L304 - SwapUtilsExternal.sol#L54 - SwapUtilsExternal.sol#L127 - SwapUtilsExternal.sol#L285 - SwapUtils...
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
low
overflow
true
false
## Low: Underflows in Node Cash Calculations in BaseRouter ### Description The `BaseRouter` contract performs the following computations in two separate places: ```solidity uint256 currentCash = IERC20(INode(node).asset()).balanceOf(address(node)); ``` ```solidity INode(node).convertToAssets(INode(node).getSharesExiti...
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: Napier pool owner can unfairly increase protocol fees on swaps to earn more revenue ### Description Currently there is no limit to how often a `poolOwner` can update fees which can be abused to earn more fees by charging users higher swap fees than they expect. ### Impact A malicious `poolOwner` could chan...
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: Risk of Overflow ### Description ## Overflow Mitigation in Multiplication It would be appropriate to upcast to `u128` before multiplication to mitigate the risk of overflow as calculations involving large values, especially multiplication, may quickly exceed the maximum value that a `u64` type may hold. ## R...
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: [08] Fix error message in `ExecuteAuthorization:ValidateBasic` ### Description The error message in `ExecuteAuthorization::ValidateBasic` method incorrectly states “invalid module names” when validating empty function names, which could mislead users debugging authorization issues. The error message should acc...
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: The liquidation's auction starting price is not chosen perfectly ### Description When a lien is expired and liquidated, the starting price for its Seaport auction is chosen as `stack.lien.details.liquidationInitialAsk`. It would make more sense to have the `startingPrice` to be the maximum of the amount owe...
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: Program uses same set of ephemeral keys for all transactions in a batch ### Description The same set of ephemeral keys is used for multiple transactions of a batch. As a result, the transactions may fail to execute if they require the ephemeral keys to be unique for each of the transactions. The ephemeral ...
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
true
false
## High: Incorrect decimal usage in score calculation leads to reduced user reward earnings ### Description Users earned rewards are calculated incorrectly because of the incorrect decimals value used to calculate user's `score` and markets `sumOfMembersScore`, which impacts the `delta` that is added to market's `rewa...
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: Protocol Fees Can be Double Claimed ### Description On each update interval, a keeper will perform an upkeep which executes a price change in the asset being tracked before transferring the associated fees to the primary and secondary accounts. The `feeTransfer()` function handles how fee amounts are paid; ho...
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
false
false
## Medium: Same heartbeat for multiple price feeds is vulnerable ### Description ### Finding description and impact `ChainLinkDataConsumer` uses the same heartbeat `allowedPriceUpdateDelay` for multiple feeds when checking if the data feed is fresh. The issue with this is that the [USDC/USD](https://data.chain.link/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
low
other
false
false
## Low: `VersionRegistry.latestVersion()` does not support semantic versioning ### Description From the [version history of the Reserve protocol](https://github.com/reserve-protocol/protocol/tags) it appears that the protocol is using semantic versioning or a similar alternative. This seems a use case that does not 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
medium
liquidation
true
false
## Medium: Attackers can create positions that have no incentive to be liquidated ### Description There is no incentive to liquidate tiny positions, which may lead to insolvency ### Impact Lots of small losses are equivalent to one large loss, which will lead to bad debt that the exchange will have to cover in order ...
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
true
false
## Medium: Incorrect return value of function `BaseTapiocaOmnichainEngine._payNative()` ### Description According to the function `_payNative(_nativeFee)` described in the [LayerZero codebase](https://github.com/LayerZero-Labs/LayerZero-v2/blob/142846c3d6d51e3c2a0852c41b4c2b63fcda5a0a/oapp/contracts/oapp/OAppSender.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
medium
access-control
false
false
## Medium: VotingEscrow ’s Admin can take whitelisted accounts hostage ### Description VotingEscrow’s admin can allow or disallow any contract to interact with VotingEscrow. A malicious owner can use this feature to ask for a ransom from VotingEscrow’s users. ```python @public def add_to_whitelist(addr: address): a...
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: `__placeholder` is not set to 0 inside the Trade data ### Description When a trade is opened, users need to provide `Trade` data that will be stored. Inside the `Trade` struct data, there is a `__placeholder` reserved for future usage. However, open trade operations currently allow users to provide arbitrary 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
low
other
true
false
## Low: [40] There exist a light deviation between the Ethereum VM and zK's in regards to eth deposits ### Description ### Proof of Concept Take a look at https://github.com/code-423n4/2024-03-zksync/blob/4f0ba34f34a864c354c7e8c47643ed8f4a250e13/code/contracts/ethereum/contracts/state-transition/chain-deps/facets/Mai...
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: Remove SVG Files With Data Schema ### Description ## Backend API and SVG Files The backend API allows the use of SVG files via the `data:` schema. Since JavaScript and SVG work in the same ecosystem, an SVG file containing malicious JavaScript code may be crafted. ## TypeScript Code ## Remediation Do not ...
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: Contract Owner Can Become System Admin ### Description **Update** Marked as "Fixed" by the client. Addressed in: `7a4db83f4ebfd3ce535a9cf2c1f7d5b9f103f9cf`. The client provided the following explanation: Updated LibACL._assignRole() to ensure mutual exclusivity between system admins and owner. Also, refactored...
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: Immutable variables can be initialized in the constructor ### Description The issue is identified within the [HanjiLOB](https://github.com/longgammalabs/hanji-contracts/blob/70b15ec4d9e7578248141604503843716a67d875/src/HanjiLOB.sol#L55) contract. Variables with the `immutable` modifier do not use storage, whi...
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: Wrong reward distribution in Bribe because `deliverReward()` won't set `tokenRewardsPerEpoch[token][epochStart]` to 0 ### Description [Bribe.sol#L83-L90](https://github.com/code-423n4/2022-05-velodrome/blob/7fda97c570b758bbfa7dd6724a336c43d4041740/contracts/contracts/Bribe.sol#L83-L90) Function `deliverRew...
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
oracle
true
false
## Gas: `++i`/`i++` should be `unchecked{++i}`/`unchecked{++i}` when it is not possible for them to overflow, as is the case when used in `for`- and `while`-loops ### Description 1. File: contracts/BaseIndex.sol (line [78](https://github.com/code-423n4/2022-04-phuture/blob/594459d0865fb6603ba388b53f3f01648f5bb6fb/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
medium
flash-loan
true
false
## Medium: SwapPool's are vulnerable to flashloan attacks ### Description **Severity** **Impact:** High **Likelihood:** Low **Description** SwapPool allows users to provide liquidity (LP) and earn fees. However, the ability for liquidity providers to deposit and withdraw within the same block makes the system vuln...
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: ALLOWING ERC777-KIND TOKENS ON PROTOCOL LEADS RE-ENTRANCY ### Description The ERC777 standard allows the token contract to notify senders and recipients when ERC777 tokens are sent or received from their accounts with function hooks. These hooks are called as callbacks. If the recipient of the token is a sm...
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: Unnecessary logging statements throughout the contract ### Description **Severity**: Informational **Status**: Acknowledged **Recommendation**: It’s recommended that logging statements and imports from hardhat or foundry referencing the console.sol library are removed pre deployment as these are no longer ...
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: Inconsistent usage of applyInterest ### Description ## Email address pauliax6@gmail.com ## Handle paulius.eth ## Eth address 0x523B5b2Cc58A818667C22c862930B141f85d49DD ## Vulnerability details It is unclear if the function applyInterest is supposed to return a new balance with the interest applied o...
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
Deadline
false
true
<https://github.com/code-423n4/2022-12-caviar/blob/0212f9dc3b6a418803dbfacda0e340e059b8aae2/src/Pair.sol#L63> <br><https://github.com/code-423n4/2022-12-caviar/blob/0212f9dc3b6a418803dbfacda0e340e059b8aae2/src/Pair.sol#L107> <br><https://github.com/code-423n4/2022-12-caviar/blob/0212f9dc3b6a418803dbfacda0e340e059b8aae...
Code4rena
5
Caviar
[ { "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: Missing Zero-Value Check in changeEpochLength Function ### Description The `changeEpochLength` function in the Pepper contract allows the owner to set the `EPOCH_LENGTH` without validating that the new value is non-zero. This oversight can lead to a critical issue in the contract's functionality, specifically:...
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: Loss of funds due to malicious forcing of `mintRecipient` onto Circle blacklist when CCTP message is in-flight ### Description **Description:** A scenario has been identified in which it may not be possible for the `mintRecipient` to execute redemption on the target domain due to the actions of a bad actor ...
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
false
false
## Low: LDO Holder DOS Potential ### Description Holders of the LDO governance token may submit objections to proposed motions, which block the motion once a suitable threshold of objections have been reached. If this threshold is configured too low, a single malicious entity may block operation of the EasyTrack syste...
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
flash-loan
true
false
## Low: Redundant collateral balance check in `_openLoanMorpho` ### Description `RockoFlashRefinance::_openLoanMorpho` contains a redundant check for collateral balance availability. The function verifies that the flash loan contract has sufficient collateral balance, but this check is already performed in the calling...
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
Liquidation
true
false
Source: https://github.com/sherlock-audit/2023-03-notional-judging/issues/194 ## Found by xiaoming90 ## Summary It is possible to liquidate past the debt outstanding above the min borrow without liquidating the entire debt outstanding. Thus, leaving accounts with small debt that are not profitable to unwind if it n...
Sherlock
4.001505
Notional V3
[ { "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: Lack of documentation ### Description Throughout the codebase, we found several instances where documentation was lacking. This hinders reviewers’ understanding of the code’s intention, which is fundamental to correctly assess not only security but also correctness. Additionally, docstrings improve readability...
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
reentrancy
false
false
## Gas: Evaluate security benefit vs gas usage trade-off for using nonreentrant modifier on different functions ### Description _Submitted by 0xRajeev_ While it may be considered extra-safe to have a nonreentrant modifier on all functions making any external calls even though they are to trusted contracts, when funct...
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: Any signer can cancel a pending/active proposal to grief the proposal process ### Description Any proposal signer, besides the proposer, can cancel the proposal later irrespective of the number of votes they contributed earlier towards the threshold. The signer could even have zero votes because `getPriorVote...
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 `@inheritdoc` for overridden functions ### Description `@inheritdoc` Copies all missing tags from the base function. [Documentation](https://docs.soliditylang.org/en/latest/natspec-format.html#tags) *There are 4 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
medium
signature
false
false
## Medium: Race condition based on `TDelay` condition ### Description When a strategy is not rejected or endorsed by the guards, it can be activated after the `TDelay` period. ```python @external def activateStrategy(Nonce: uint256, vault: address): ... #Confirm strategy is approved by guards assert (len(pendin...
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: Unnecessary initialization can be removed ### Description **Description:** Initialization of the `updateCounter` state variable [within the constructor](https://github.com/ChaosLabsInc/risk-oracle/blob/9449219174e3ee7da9a13a5db7fb566836fb4986/src/RiskOracle.sol#L64) of `RiskOracle` is unnecessary and can be 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
high
token
true
false
## High: Wrong ERC20 token transferred ### Description The `tokenUserBuys` ERC20 token is transferred here when it's meant to be `auctionBaseCurrency` since the balance amount transferred is corresponding to `auctionBaseCurrency`: ```solidity if (auctionBaseCurrencyBalance > 0) { ERC20(swapIntent.tokenUserBuys).saf...
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: Insufficient \_receiverGas validation leads to loss of funds ### Description The `send` functions in the `BridgeLR` and `BridgeMB` contracts, as well as the `quote` function in the `Bridge` contract, allow users to specify the `_receiverGas` parameter, which determines how much gas should be used when calling...
0