prompt
listlengths
2
2
source
stringclasses
3 values
severity
stringclasses
5 values
category
stringclasses
186 values
has_code
bool
2 classes
has_poc
bool
2 classes
reference_response
stringlengths
23
5k
firm
stringclasses
26 values
quality_score
float64
0
5
protocol
stringclasses
398 values
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
true
false
## Medium: PaprController.buyAndReduceDebt: msg.sender can lose paper by paying the debt twice ### Description ### Impact The `PaprController.buyAndReduceDebt` function () should work like this: 1. `msg.sender` swaps some amount of the underlying token for papr token 2. This amount of papr token is used to repay 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
false
false
## Low: Vulnerable Dependencies ### Description A range of dependencies have been flagged as containing security vulnerabilities on crates.io. These are not direct dependencies as they do not appear in `Cargo.toml` but exist in the dependency tree. The following is a list of crates which are vulnerable: - **cranelif...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: User's prize might be forever locked if the setting winning tickets transaction is settled on the end timestamp of a round ### Description ### Instances(1) In ThrusterTreasure.sol, there is no on-chain check to ensure owner's `setWinningTickets()` transaction will not settle on the max end timestamp of a roun...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: PSMSource.sol:availableToWithdraw does not check available USDS liquidity ### Description The USDS peg stabilization module can be used to swap USDS for USDC tokens and vice versa at 1:1 ratios. The current USDS PSM actually just uses the older DAI PSM module underneath it. Thus, during a USDC to USDS swap, 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
gas
initialization
true
false
## Gas: Setting the *constructor* to `payable` ### Description You can cut out 10 opcodes in the creation-time EVM bytecode if you declare a constructor payable. Making the constructor payable eliminates the need for an initial check of `msg.value == 0` and saves `13 gas` on deployment with no security risks. ### 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
low
other
true
false
## Low: Incorrect Amount Emitted in `emitCancelDeposit()` Event During `withdraw()` Function ### Description In the `Vault.withdraw(uint256 amount)` function, when a user withdraws tokens before the investment period ends, the contract processes multiple individual deposits to fulfil the total withdrawal amount. Howev...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Scaled Allowance Mismatch Enables Over-Approval Exploit ### Description The `transferFrom` function in RToken calculates a scaled transfer amount before checking the user’s allowance. This discrepancy allows spenders to exceed the user’s intended approval, resulting in unauthorized transfers of more tokens 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
front-running
true
false
## Medium: Griefing risk in `mint` ### Description [CidNFT.sol#L147-L157](https://github.com/code-423n4/2023-01-canto-identity/blob/dff8e74c54471f5f3b84c217848234d474477d82/src/CidNFT.sol#L147-L157) [CidNFT.sol#L177-L182](https://github.com/code-423n4/2023-01-canto-identity/blob/dff8e74c54471f5f3b84c217848234d474477d8...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Calling `splitValue` when token index is not the latest will overwrite other claims' storage ### Description **Impact:** High, as it can lead to loss of units for an account without any action on his side **Likelihood:** Medium, because it can happen only with a token that has a non-latest index **Descripti...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Can manipulate the `C.SHORT_STARTING_ID` `ShortRecord` of the `TAPP` ### Description ### Impact Attackers can make it so that risky debts are not liquidated, and unliquidated risky debts can accumulate over the long term. ### Proof of Concept `ShortRecord` of `TAPP` can also be liquidated. If all `ercDeb...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
false
false
## Low: Incorrect documentation for mint function ### Description The `mint` function's documentation incorrectly states it "disallows burning from address(0)" when it should be "disallows minting to address(0)". ### Recommendation Update the documentation to correctly reflect the function's behavior
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Insufficient Slippage Protection in swapToStables() Function ### Description The `swapToStables()` function in GeniusMultiTokenVault.sol implements a weak slippage control mechanism that accepts any positive increase in balance after a swap, regardless of how minimal the increase is: ``` function swapToSta...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Users Can Lose Funds and Collateral by Repaying Loans After Liquidation Grace Period Expiry ### Description Users can lose money if they repay their loan after the liquidation grace period has passed. This occurs because the repayment does not close the liquidation process, and the Stability Pool is the onl...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
false
false
## Low: Use the complete name of types ### Description Replace `uint` with `uint256` everywhere in the codebase, it is seen in `HoneyJarPortal` for example. Subtle bugs can slip if you just use `uint`, for example if you are hashing the signature of a method and use `uint` instead of `uint256` for any parameter type.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
overflow
true
false
## Medium: Performing a direct multiplication in `_getPriceFromSqrtX96` will overflow for some uniswap pools ### Description The _getPriceFromSqrtX96 will revert for pools that return a _sqrtPriceX96 bigger than type(uint128).max. ### Impact Medium. Some uniswap pool’s will be unusable and will DoS in LenderCommitmen...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect social loss ### Description When a bankrupt position is liquidated and the insurance fund is empty, the [opponent position holders should cover the loss](https://mcdex.io/references/#/en/perpetual?id=auto-liquidation). In this way, the profits on one side are garnished to fund the loss on 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
medium
dos
true
false
## Medium: Attacker can partially DoS L1 operations in StakingManager by making huge number of deposits ### Description When a user **stakes** in `StakingManager`, initially the funds go towards `hypeBuffer` and when it is filled, every deposit is placed in a L1 operation queue. Once a day an operator calls `process...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
liquidation
true
false
## High: `_computeClosingFactor` function will return incorrect values, lower than needed, because it uses `collateralizationRate` to calculate the denominator ### Description `_computeClosingFactor` is used to calculate the required borrow amount that should be liquidated to make the user's position solvent. 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
low
storage
false
false
## Low: Deviation From Specifications ### Description Throughout the codebase, multiple instances of deviations from specifications were identified: * In line [83](https://github.com/matter-labs/zksync-sso-clave-contracts/blob/c7714c0fe0a33a23acce5aa20355f088d330b4f7/src/validators/GuardianRecoveryValidator.sol#L83) ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: When Oracles Are Down, Stale Prices Are Used ### Description **Update** Marked as "Acknowledged" by the client. The client provided the following explanation: > We use the oracle that liquity used. **File(s) affected:**`PriceFeed.sol` **Description:** In every case where `fetchPrice()` is called, either 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
low
rounding
true
false
## Low: The locker owner can redirect all fees to the referrer ### Description The `Beekeeper` contract distributes fees from reward tokens to the protocol and the referrer, if present. However, the fee share for the referrer is calculated with the `mulDivUp` function, which rounds up, see the snippet. This means 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: Users Should Not be Able to Get Vyper Until Initial Liquidity is Minted in The Auction ### Description Users can deposit dragonX in `Auction.sol` and get back vyper (new token) in return. The auction contract intends to mint the liquidity position once enough dragonX is in the contract, and it will create a dr...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
false
false
## Medium: Missing slippage protection on sellCredits() ### Description Users trading credit tokens are prone to slippage by bots. Since VisibilityCredits.sol utilises a bonding curve, the price of credit tokens increase and decrease as the total supply increases and decreases. **Slippage on sell:** - Alice submit...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 computation is wrong ### Description _Submitted by cmichel_ The `LendingPair.accrueAccount` function distributes rewards **before** updating the cumulative supply / borrow indexes as well as the index + balance for the user (by minting supply tokens / debt). This means the percentage of the user's bal...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Potential loss of accuracy on unstake. ### Description **Description** StWXS.sol, unstake() The interface suggests that the user enter the amount he wants to withdraw. However, since the accounting is performed in shares, the unstake function performs a double conversion, leading to accuracy losses. The 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
false
false
## Low: Ownable: Does not implement 2-Step-Process for transferring ownership ### Description `MuteAmplifier` inherits from the `Ownable` contract. This contract does not implement a `2-Step-Process` for transferring ownership. So ownership of the contract can easily be lost when making a mistake when transferring own...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
false
false
## Low: Recommendations to Avoid Replay Attacks ### Description **Update** Fixed in `41ad2a235fcaf0ed53d7224f6ebf7e02b34fcb45`. The address of the verifying contract is now included in the signed data. **File(s) affected:**`NFTFilter.sol` **Description:**`NFTFilter` verifies messages signed by `oracle` (off-chain sy...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Memory Overflow ### Description ## Memory Overflow Issue in Vyper The memory overflow issue involves situations where Vyper may have inconsistent behavior with numbers exceeding the maximum representable value in Ethereum, \(2^{256}\). Ethereum’s Ethereum Virtual Machine operates with 256-bit numbers, so exc...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: LENDER LIQUIDITY LOCKOUT POSSIBLE VIA DEPOSITANDCLOSE FUNCTION ### Description In the `LineOfCredit` contract, the borrower has two possibilities to pay off the debt: by calling `depositAndRepay()` and then `close()` functions, or by calling a single `depositAndClose()` function.`LineOfCredit``depositAndRepay...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `requestConfirmations` below Chainlink minimum allowed in `UpdateVRFConfig()` ### Description _Acknowledged_ In `CardAllocationPool.sol`, the `updateVRFConfig()` function allows setting the `requestConfirmations` parameter without enforcing Chainlink's minimum requirement. The function only checks that `_requ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Don't worry about keccak256 collisions ### Description When `cancelBid` is called, the `commitment` is set to 0 in order to force to fail the `computeCommitment` comparison. In case of the result of `computeCommitment` returns 0, because a collision or an error, a cancelled bid will be processed as valid. ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing validation in the method `swapRequest()` ### Description **Severity**: Low **Status**: Resolved **Description** In Contract Branch.sol, the method `swapRequest(...)` allows to swap funds between different chains. It also allows ETH but does not check if `msg.value > qty` or not. The transaction will...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
false
false
## Medium: Stakers Could Not Withdraw Their Assets ### Description In the LT.sol contract, the protocol allows the staked tokens to become 1. This situation leads to the staked supply not being attributed to a single staker but rather to multiple stakers, resulting in the inability for stakers to withdraw their assets...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
token
true
false
## Gas: State variables only set in the constructor should be declared `immutable` ### Description 1. File: contracts/pcv/compound/ERC20CompoundPCVDeposit.sol (line [16](https://github.com/code-423n4/2022-03-volt/blob/f1210bf3151095e4d371c9e9d7682d9031860bbd/contracts/pcv/compound/ERC20CompoundPCVDeposit.sol#L16))
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `anchorTime()` will not work properly on Optimism due to use of `block.number` ### Description When deploying to Optimism, Equity.anchorTime() will not be accurate due to the use of block.number. function anchorTime() internal view returns (uint64){ return uint64(block.number ### Detailed Explanation...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
false
false
## Medium: Incorrect LP Calculations Due to Unvalidated Oracle Price Decimal Precision ### Description **Update** The client acknowledged the issue and stated that they will develop the token Oracles used for the protocol, ensuring the issue does not occur. The client provided the following explanation: > All new Ora...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Minting can be DOSed by any of the fee recipients ### Description The minting process might be DOS by malicious fee recipients, breaking the protocol's core functionality. This would also result in the loss of fee for the rest of the innocent fee recipients as the minting cannot proceed, resulting in the mi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unlocked Pragma ### Description **Update** The client fixed the issue in `8c333777b1cbde71916d9b78084c88c4ca62de03` by locking the pragma version to 0.8.3. **File(s) affected:**`MeowToken.sol` **Description:** Every Solidity file specifies in the header a version number of the format `pragma solidity (^)0.8....
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Tokens with `decimals` larger than `18` are not supported ### Description _Submitted by WatchPug, also found by 0x1f8b_ For tokens with decimals larger than 18, many functions across the codebase will revert due to underflow. [ConnextPriceOracle.sol#L99-L115](https://github.com/code-423n4/2022-06-connext/...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 The contracts are written for an old version of the Solidity compiler (0.4.8). We recommend changing the solidity version pragma to the [latest version](https://github.com/ethereum/solidity/releases/tag/v0.4.10) (`pragma solidity ^0.4.11;`) to enforce the use of 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
gas
token
true
false
## Gas: No need to `inherit` `ERC721` again ### Description Since `OwnableApprovableERC721` already inherits `ERC721`, there's no need to inherit `ERC721` again in `LiquidInfrastructureNFT` contract. Additionally, removing the unnecessary import of `ERC721` above will streamline the code. [LiquidInfrastructureNFT....
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Create your own import names instead of using the regular ones ### Description For better readability, you should name the imports instead of using the regular ones. Example: Instances - All of the 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...
skyward_49k
low
other
false
false
## Low: Missing Authorization Check for `PTokensFactory.createPToken()` ### Description **Update** Both the `DebtTokenFactory.createDebtToken()` and `PTokenFactory.createPToken()` functions now feature an `onlyBucketsFactory()` modifier. This modifier ensures that the designated caller is the address stored in the `bu...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing validations in _approve() ### Description The `_approve()` function in the BaseRouter contract does not validate the return value of the `approve` function. It should implement similar validation as seen in `Escrow._safeApprove()`. This would prevent issues with non-standard ERC-20 tokens. ### Recomme...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect Updates of `fundingFees` ### Description **Update** Native team has fixed the issue, with additional modification to clarify the flow of fees to LP token holders and to the protocol itself. The portion of the fee that goes to the LP token holders is named `fundingFee` and the portion of the fee that...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Events lacking information ### Description We identified two events which could benefit from being more complete. Specifically, the [`ProposalDeleted`](https://github.com/UMAprotocol/protocol/blob/fca8e24275e928f7ddf660b5651eb93b87f70afb/packages/core/contracts/zodiac/OptimisticGovernor.sol#L35) and [`Transact...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
front-running
false
false
## Low: Possible DoS attack on Rebalance ### Description **Severity**: Low **Status**: Resolved **Description** In Contract GlmRebalance.sol, the method `startRebalance(...)` rebalances the Vaults’ assets as per the configured weights of the assets. Since rebalance checks only 2 conditions before considering if 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
liquidation
false
false
## Low: Zero repayment risk from rounding in partial liquidation ### Description _Resolved_ In the _liquidate() function, the following line performs integer division: `USGToRepay = (collatAmountToLiquidate * liquidateInput.userDebt) / liquidateInput._collateralBalance; ` Because Solidity integer division truncates 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: Minimal `sqrtPriceLimitX96` slightly differs from actual minimal price limit ### Description Currently value 4295128749 is used: However the smallest value is `4295128739 + 1` [according to UniswapV3](https://github.com/Uniswap/v3-core/blob/d8b1c635c275d2a9450bd6a78f3fa2484fef73eb/contracts/libraries/TickMat...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Fees can become stuck in `UniswapV4Wrapper` ### Description **Description:** When a modification is made to Uniswap V4 position liquidity, such as in the case of a partial `UniswapV4Wrapper` unwrap which decreases liquidity, any outstanding fees are also transferred and required to be completely settled. Fo...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of slippage check in `rebalance` Function ### Description **Severity** **Impact:** Medium **Likelihood:** Medium **Description** The `rebalance` function updates the Uniswap V3 LP position and performs the indicated swap based on the specified lower and upper ticks. However, this function lacks a 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...
cyfrin_structured
low
upgrade
false
false
## Low: Unused internal functions should be removed to decrease bytecode size ### Description The internal functions `_safeMint()`, `_safeMintBatch()`, `_airdrop()`, `_mintBatch()`, and `_burn()`, do not appear to be used and it is understood that there is not currently any requirement for additional functionality 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
medium
other
true
false
## Medium: Max allocations can be bypassed with multiple addresses because of guaranteed allocations ### Description [`TokenSale._processPrivate()`](https://github.com/sherlock-audit/2024-03-zap-protocol/blob/c2ad35aa844899fa24f6ed0cbfcf6c7e611b061a/zap-contracts-labs/contracts/TokenSale.sol#L226) ensures that a user ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Fee can be applied multiple times to same rewards in MyStaking. ### Description **Description** MyStaking.sol: function claimableAmount(). The function calculates user's rewards and subtracts fees. However, the claimable amount is firstly calculated with the unclaimed amount and then a fee is applied to it. ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
false
false
## Low: Direct usage of ecrecover allows signature malleability ### Description ## Handle shw ## Vulnerability details ## Impact The `verify` function of `NativeMetaTransaction` calls the Solidity `ecrecover` function directly to verify the given signature. However, the `ecrecover` EVM opcode allows for malleable...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
front-running
false
false
## Low: Inaccurate `isVulnerable()` Can Lead to Frustrating Behavior ### Description **Update** Marked as "Acknowledged" by the client. The client provided the following explanation: Hits are confirmed within a block or two, so they still have a 15 minute window to reinforce if they survive the disaster. **File(s) af...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: seniorLoss is not compared to seniorTotalAssets to make sure only the minimum value is subtracted ### Description `seniorLoss` is not compared to `seniorTotalAssets` to make sure only the minimum value is subtracted. ### Recommendation Like `juniorLoss`, calculate `seniorLoss` as below: ```solidity uint256 s...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
other
true
false
## High: Word range check uses unconstrained `upper_all_one` local variable when field prime is `Mersenne31` ### Description The comments under the gadget used to enforce field prime range check for a word when field type is Mersenne31 are correct; They describe the correct methodology for checking that the word 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
oracle
false
false
## Low: Potential division by zero if gas token oracle is faulty ### Description ## Vulnerability Report ## Severity: **Low Risk** ## Context: **SponsorVault.sol#L250-L252** ## Description: In the event that the gas token oracle is faulty and returns malformed values, the call to `reimburseRelayerFees()` in `_ha...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incomplete Docstrings ### Description Throughout the codebase, several instances of incomplete docstrings were identified where either parameters or return values were not fully documented: * The [`requestWithdrawal`](https://github.com/OriginProtocol/origin-dollar/blob/eca6ffa74d9d0c5fb467551a30912cb722fab9...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Initialization to zero price can cause permanent stuck state due to clamping ### Description **Description:** In `ChainlinkOracle` in the constructor, the contract initializes `currentPriceX96`, `lastPriceX96`, and `emaPrice` using the current `sqrtPriceX96` from the Uniswap V4 pool. If the pool is uninitializ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: ClaggBaseAdapter._handleIncentive() withdraws the wrong token from the incentive vault ### Description In `ClaggBaseAdapter._handleIncentive()`, when distributing incentive tokens from the `incentiveVault` to depositors, the token is passed to `withdrawTokens`: ```solidity try IIncentiveVault(incentiveVa...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing access control allows nonce manipulation ### Description The `validateUserOp` function in the `JWTRecovery` module lacks access control, allowing any caller to validate a user’s recovery operation signature and increment their nonce. When a malicious actor calls the `validateUserOp` function of the `JW...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
rounding
false
false
## Low: DevtMine.sol::Lines 21-26. DevtMine::33-36 DevtLpMine::14-15 ### Description **Description** The code can be simplified You can use the “days” keyword to get an amount of seconds in a day (86400). It allows you to delete useless “DAY” variables. The same thing is with “ONE” variable. You can use the “ethers”...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: 1] Rewards in StakingRewards are lost if total supply is zero ### Description **Severity:** Low **Path:** StakingRewards.sol:rewardPerToken#L90-L96 **Description:** The function rewardPerToken calculates the current amount of reward tokens per share inside of the StakingRewards. It is calculated using 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
low
other
false
false
## Low: The Solidity version should be updated. ### Description **Description** Best practices for Solidity development and auditors standard checklist requires strict and explicit usage of the latest stable version of Solidity, which is 0.8.11 at the moment. **Recommendation**: Consider updating to “pragma solidit...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: fund loss because calculated Interest would be 0 in getCurrentState() due to division error ### Description 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 calculates interest accrued for debt from 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
oracle
false
false
## High: Validator's withdrawn principal could be counted as rewards ### Description **Severity:** High **Path:** lib/withdrawals/withdrawals.go:ComputeWithdrawals#L57-69 **Description:** In order to correctly count withdrawals and separate principal from reward amounts, the oracle uses the `ComputeWithdrawals` fun...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Missing event emission in multiple functions at Vesting ### Description **Severity**: Low **Status**: Resolved **Description** Multiple missing event emits are missing in Vesting.sol. Emitting events is crucial for tracking state changes and actions performed. Events provide a reliable way to monitor contra...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
initialization
false
false
## Medium: Missing Uniswap V3 cardinality initialization in `StNxmOracle` leads to permanent Denial of Service ### Description The `StNxmOracle` contract calculates the price of `stNXM` using a 30-minute Time-Weighted Average Price (TWAP) from a Uniswap V3 pool. However, newly created Uniswap V3 pools are initialized ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The function onERC721Received() allows writing duplicates in the array “nfts”. Another functions dealing with this array do not expect duplicates met. ### Description ## Handle Sherlock ## Vulnerability details ## Impact Duplicates can be written accidentally. If_removeNft() function is running, it will br...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Division by zero error can block `RewardsPool#startRewardCycle` if all multisig wallet are disabled ### Description A user needs to call the function startRewardsCycle in RewardsPool.sol which calls: We need to pay special attention to the code block below: which calls: The code distributes the 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
medium
other
false
false
## Medium: Overpayment not Returned in mint Function ### Description **Severity**: Medium **Status**: Resolved **Description**: In the `mint()` function of the Solidity smart contract, users can potentially pay more than the required minting price. However, the function does not handle this overpayment scenario an...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: 14] 10 KAS Permanently Locked in MoonBound Contract ### Description **Severity:** Low **Path:** contracts/MoonBound.sol#L186-L189 **Description:** The `distributeRevenue()` function handles the distribution of revenue from MoonBound tokens to relevant parties (e.g., projects, stakers, etc.). It distributes ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: MemberWithdraws event not fired ### Description ## Handle cmichel ## Vulnerability details ## Vulnerability Details The `MemberWithdraws` event of the `DAO` contract is not used. ## Impact Unused code can hint at programming or architectural errors. ## Recommended Mitigation Steps Use it or remove it. #...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Twav._getTwav() will return a wrong result when twavObservations[TWAV_BLOCK_NUMBERS - 1].timestamp = 0. ### Description _Submitted by hansfriese_ The "if" condition of Twav.\_getTwav() is missing some edge cases. In this case, this function will return 0 which is different from the correct value and it wi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: entropy RNG does not guarantee high entropy ### Description The `HighEntropyRandomGenerator` is used as a source of cryptographically secure randomness. Unfortunately, this is based on `std::random_device`, which is not guaranteed to be high-entropy or cryptographically secure. Without explicit hardening of...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Usage of address.transfer ### Description ## Handle @cmichelio ## Vulnerability details ## Vulnerability Details The `transfer` function is used in `Maximillion.sol` to send ETH to an account. ## Impact It is performed with a fixed amount of GAS and might fail if GAS costs change in the future or if 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
flash-loan
true
false
## Medium: Withdrawal caps can be bypassed by opening positions against the SpotHedgeBaseMaker ### Description Deposits/withdrawals of base tokens to the SpotHedgeBaseMaker aren't accounted for in the CircuitBreaker's accounting, so the tokens can be used by attackers to increase the amount withdrawable past the high ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Redundant logic in status handling functions ### Description In the `Escrow` contract, two functions contain redundant or unnecessary logic that increases code complexity and gas costs without providing benefits: 1. The`processPayment()` includes a logically impossible condition: * `isRefund` is defined ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
false
false
## Low: Withdrawals priced at execution problematic during large price swings ### Description Withdrawals are “price-locked” at request time: `requestRedeem` stores `shares` and the computed `assetsAfterFee = previewRedeem(shares)` using the at-request exchange rate. When an agent later calls `processWithdrawal`, 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
token
true
false
## Low: Lack of a zero-value check in the validate function ### Description Certain token transfer functions have an assertion, `_assertNonZeroAmount`, that reverts if the token amount is set to zero. However, the `validate` function does not check whether an order’s token amount is set to zero and will validate such ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Tokens irrecoverable by owner on L1 if not an `ERC721` receiver ### Description The current implementation of the `withdrawTokens` function on L1 Bridge introduces a crucial security risk where `ERC721` tokens could become permanently locked within the escrow contract  if the receiving address does not supp...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Pair. _safeTransfer should check that token has code ### Description _safeTransfer has multiple implementations in the codebase (e.g. Router, FeeDistributor, Gauge). All these implementations revert in case `token.code.length` is 0, whereas the Pair implementation of _safeTransfer does not. ### Recommendation...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
storage
false
false
## Medium: NFT Owner can stuck Crowdfund user funds ### Description _Submitted by csanuragjain_ Consider a scenario where few users contributed in auction but no one has placed any bid due to reason like NFT price crash etc. So there was 0 bid, the NFT owner could seize the crowdfund users fund until they pay a ranso...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 threshold percentage validation could brick future threshold percentage updates ### Description Function `setProposalThresholdPercentage()` should be using the parameter instead of the state variable in the second if condition. Due to this, if there is a proposal that passes quorum, it would be able ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Outdated Solidity versions ### Description The version of Solidity used throughout the codebase is outdated, varies between contracts, and is not pinned. The choice of Solidity version should always be informed by the features each version introduces and that the codebase could benefit from, as well as 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...
solodit_api
medium
Rounding
false
true
## Lines of code https://github.com/code-423n4/2022-10-inverse/blob/main/src/Oracle.sol#L124 ## Vulnerability details ## Impact The two-day feature of the oracle can be gamed where you only have to manipulate the oracle for ~2 blocks. ## Proof of Concept The oracle computes the day using: ```sol uint day = block.t...
Code4rena
5
Inverse Finance
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unlocked Pragma ### Description **Update** The issue was fixed by locking the Solidity version of the contract to 0.8.9. **File(s) affected:**`ElderGateway.sol` **Description:** Every Solidity file specifies in the header a version number of the format `pragma solidity ^0.8.0;`. The caret `^` before the vers...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unconventional test structure ### Description Tilt is the primary means of testing Wormhole watchers. Relying on such a coarse testing mechanism makes it difficult to know that all necessary conditions and edge cases are tested. The following are some conditions that should be checked by native Go unit tests:...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 docstrings ### Description Some of the contracts and functions in Primitive’s code base lack documentation. 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 and 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
reentrancy
true
false
## Low: (HAL-12) Missing Interface Inheritance ### Description The `SHTokenFactory` contract implements the `ISHTokenFactory` interface, but does not inherit from it. See its declaration: ``` contract SHTokenFactory { ``` Similarly, the `SHProduct` and `SHToken` contracts are expected to implement the `ISHProduc...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
token
true
false
## Gas: Caching global variables is more expensive than using the actual variable (use `msg.sender` instead of caching it) ### Description [Reference](https://code4rena.com/reports/2022-12-forgeries#g-07-caching-global-variables-is-more-expensive-than-using-the-actual-variable-use-msgsender-instead-of-caching-it) ht...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `Liquidate` Event Emits Shares and Assets in Wrong Order ### Description **Description:** The `Liquidate` event is fired making `shares` as the second parameter and `assets` as the third parameter > bc-solana-vault-sc/programs/sc-vault/src/instructions/liquidator/liquidate.rs#liquidate_handler But the event...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: No events for critical operations ### Description Several critical operations do not trigger events. As a result, it will be difficult to review the correct behavior of the contracts once deployed. Critical operations that would benefit from triggering events include: - **MixOracle.sol#L35-L41** - Lack of 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
signature
false
false
## Low: [23] Typos ### Description [SystemContractHelper, line 347](https://github.com/code-423n4/2023-10-zksync/blob/72f5f16ed4ba94c7689fe38fcb0b7d27d2a3f135/code/system-contracts/contracts/libraries/SystemContractHelper.sol#L347) - `2-bit IS set`, `not 2-bit it set`. [KnownCodesStorage, lines 16 to 17](https://git...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: fCash of the wrong maturity and asset can be sent to wrapper address before wrapper is deployed ### Description _Submitted by 0x52, also found by jonah1005 and unforgiven_ Minting becomes impossible ### Proof of Concept onERC1155Received is only called when the size of the code deployed at the address co...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Lack of l2Logs validation ### Description In the [`ExecutorFacet` contract](https://github.com/matter-labs/zksync-2-dev//blob/c05b49d7e303996f60a0e35f18ef224e45ee19f5/contracts/ethereum/contracts/zksync/facets/Executor.sol) within the `commitBlocks` function, the array `_newBlock.l2Logs` is processed in the he...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `UniV3Decomposer` will always revert due to incorrect `RFTPayer` support and lack of token approvals to `MakerFacet` ### Description `UniV3Decomposer` takes Uniswap v3 NFT position and converts it into Ammplify Maker position. This is done by burning NFT position into corresponding asset tokens and then cal...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Move immutable branch check outside `for` loop in `RootUpgrade::removeBranch` ### Description **Description:** Move immutable branch check outside `for` loop in `RootUpgrade::removeBranch` - this check should only occur once not during every loop iteration. **Recommended Mitigation:** **Zaros:** Fixed in co...
0