prompt
listlengths
2
2
source
stringclasses
3 values
severity
stringclasses
5 values
category
stringclasses
186 values
has_code
bool
2 classes
has_poc
bool
2 classes
reference_response
stringlengths
23
5k
firm
stringclasses
26 values
quality_score
float64
0
5
protocol
stringclasses
398 values
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
other
true
false
## High: RubiconRouter.swapEntireBalance() doesn’t handle the slippage check properly ### Description ## Lines of code https://github.com/code-423n4/2022-05-rubicon/blob/main/contracts/RubiconRouter.sol#L267_L287 ## Vulnerability details ## Impact The `swapEntireBalance()` function allows the user to pass a `buy_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
other
false
false
## Medium: Sensitive Data Exposure Via Logs And Events ### Description ## User-Sensitive Information in Logs In some places, the app logs and emits events with user-sensitive information. Logging levels must be set appropriately before the product ships so that sensitive user data cannot mistakenly be exposed to pote...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: minimumPull Vault parameter cannot be adjusted ### Description `minimumPull` is hardcoded to be `10^6` in Vault and can't be reset thereafter. If vault token has low decimals and high enough value, for example WBTC having 8 decimals (https://etherscan.io/token/0x2260fac5e5542a773aa44fbcfedf7c193bc2c599#cod...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Owner of the Modular Account in `ResourceLockValidator` Cannot Be Smart Contract Wallet ### Description When recovering the signature of the `walletOwner`. We use the ECDSA method for recovery. This prevents modular wallets from setting the owner to a smart contract wallet that uses `eip-1271`. [ResourceLockV...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Can access cards of other markets ### Description _Submitted by [gpersoon](https://twitter.com/gpersoon)_ Within `RCMarket.sol` the functions `ownerOf` and `onlyTokenOwner` do not check if the `_cardId/_token` is smaller than `numberOfCards`. So it's possible to supply a larger number and access cards of oth...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Rent-Exempt Calculated On Theoretical Data Size ### Description ## Rent-Exempt Calculations in Stake Program Ensure rent-exempt calculations are performed on actual data size instead of theoretical data size. For example, in `AddValidatorToPool`, the rent-exempt calculation on the `reserve_pool` is performed ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
front-running
true
false
## High: User can lose all funds when creating or increasing compounded Maker position due to share inflation first deposit attack in any segment of the user's range ### Description Each segment in the Ammplify protocol functions as vault for compounded Makers. This makes the classic first deposit share inflation atta...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
solodit_api
high
Sybil Attack
false
false
## Security Report ## Severity **High Risk** ## Context *File:* BridgeFacet.sol *Lines:* 652-688 ## Description When funds are bridged from source to destination chain, messages must first go through optimistic verification before being executed on the destination BridgeFacet.sol contract. Upon transfer processing...
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
medium
oracle
true
false
## Medium: `EmptyFeedPrice` will cause orders to be canceled ### Description In most cases where orders are submitted using invalid oracle prices, the check for [`isEmptyPriceError()`](https://github.com/sherlock-audit/2023-02-gmx/blob/main/gmx-synthetics/contracts/oracle/OracleUtils.sol#L292-L310) returns true, and 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
access-control
false
false
## Low: Lack of guardian-role transfer ### Description The [guardian address from the `GovernorAlpha` contract](https://github.com/notional-finance/contracts-v2/blob/c37c89c9729b830637558a09b6f22fc6a735da64/contracts/external/governance/GovernorAlpha.sol#L36) has a special role inside the system. However, if the add...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `BondingTax` has invalid slippage implementation ### Description In BondingTax.sol, `swapForAsset` will swap `taxTokens` to `assetToken` through uniswap router. The issue is that the slippage calculation (`minOutput`) is invalid. Currently, `mintOutput` is a percentage that is based on `router.getAmountsOu...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Imprecise Naming of closeCurrentFeePeriod() Variables ### Description The `closeCurrentFeePeriod` function uses two variables, `secondLastFeePeriod` and `lastFeePeriod`. The naming of these variables is not specific enough and can lead to confusion, especially when `FEE_PERIOD_LENGTH` is 2.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Function parameter never used ### Description **Description** File: TransferFragmented Funds.svelte Function: migrate Funds Details: The function has a parameter declared as "isRerun?: boolean", however, it is never used in the function code. Looking for the function calls we can differentiate the two types 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: The maximum number of 50000 vaults invariant can be bypassed and lead to DOS ### Description **Severity**: Medium **Status**: Acknowledged **Description** There is an invariant in the business logic which sets the maximum number of available vaults to 50000. This invariant is checked in the `addVaults` ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: NFT safe transfers will revert using `ERC721TransferEnforcer` ### Description **Description:** The `ERC721TransferEnforcer` enforcer is designed to authorize NFT token transfers, but it currently restricts transfers to only use the `transferFrom` selector. The issue lies in this code section: The ERC721 stan...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Owner can incorrectly pull funds from contests not yet expired ### Description Owner can incorrectly pull funds from a closed contest which has not yet expired using `distributeByOwner()`. ### Impact - **Loss of funds** as it can be drained by the owner by mistake from a not-yet-expired contest. - **Funds/Rew...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: One can attempt to steal a pair's ETH ### Description Anyone can pass the enrolled pair's address instead of a splitter address in `bulkWithdrawFees()` to effectively call the pair's `withdrawAllETH()` instead of a splitter's `withdrawAllETH()`. This allows anyone to attempt to steal/drain all the ETH from ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Event Emitted with Zero Token Ids ### Description **Update** The issue was fixed by adding an if statement such that an event is not emitted when no tokens are locked or unlocked. **File(s) affected:**`ElderGateway.sol` **Description:** The `lock` and `unlock` methods emit the `Locked` and `Unlocked` events ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unexpected Behaviour If RPL Inflation Rate Set to Zero ### Description The protocol DAO can configure the RPL inflation rate (which is initially set to the equivalent of 5% p.a. calculated daily). Should the inflation rate be set to zero for a period then back to some non-zero value, the behaviour of the minti...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: RubiconMarketAddress in BathPair can’t be updated ### Description ## Lines of code https://github.com/code-423n4/2022-05-rubicon/blob/main/contracts/rubiconPools/BathPair.sol#L128 https://github.com/code-423n4/2022-05-rubicon/blob/main/contracts/rubiconPools/BathHouse.sol#L335-L337 ## Vulnerability detai...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Transfer of 0 funds ### Description If `withdrawFee == 0`, then here 0 amount of asset transferred: https://github.com/Gearbox-protocol/gearbox-contracts/blob/0ac33ba87212ce056ac6b6357ad74161d417158a/contracts/pool/PoolService.sol#L191 ### Recommendation We recommend adding a check, so 0 funds wouldn't be ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
cyfrin_structured
low
other
false
false
## Low: Remove unused function `USDCBridgeV2::_redeemUSDC` ### Description The `private` function `USDCBridgeV2::_redeemUSDC` is not used anywhere; 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
front-running
false
false
## Medium: Old owner can frontrun the ownerChanger ### Description The [`Ownable` contract](https://github.com/holdefi/Holdefi/blob/f4df394d7cf6df347b1f1e9af8e2676c5933c2c9/contracts/Ownable.sol) is a modified version of [the OpenZepplin `Ownable` contract](https://github.com/OpenZeppelin/openzeppelin-contracts/blob/5...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `require()` or `revert()` statements that check input arguments should be at the top of the function ### Description Checks that involve constants should come before checks that involve state variables 1. File: contracts/ChainlinkPriceOracle.sol (line [62](https://github.com/code-423n4/2022-04-phuture/blob/5...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unnecessary Allowance Buildup in the `UniswapNFTManager` ### Description In `UniswapNFTManager.sol`, `callback()` approves Uniswap NFT to spend amount to burn + 1 by only sending amount to burn as amount desired in the Uniswap NFT increase liquidity calls. This could lead to significant consequences. ### Impa...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
flash-loan
true
false
## Low: [05] Overpaid asset is locked in lending pool when flashloan ### Description *Note: At the judge’s request [here](https://github.com/code-423n4/2024-01-init-capital-invitational-findings/issues/7#issuecomment-1934027323), this downgraded issue from the same warden has been included in this report for completen...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: A Buyer May Be Able to Make Free Payments ### Description **Update** Marked as "Fixed" by the client. Addressed in: `27c78f19475de50475788fc87585c0ddecc892a5`. The client provided the following explanation: Add Accepting Payments As A Contract Section to the Readme. This finding has been addressed via document...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Documentation Mentions Blacklisting Functionality that Is Not Present in Code ### Description **Update** The team stated that the comment regarding the blacklisting functionality was an artifact from a previous iteration of the protocol and removed the wrong parts of the function documentation. Addressed in: `...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
token
true
false
## Low: Potential Owner/Operator Backdoor in ERC721z Tokens ### Description Token owners or operators can approve themselves to a particular token ID. ### Impact If the `isApprovedForAll()` status of the user is removed, his self-approval to the `tokenId` via `approve()` still stands, providing a potential approval b...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
access-control
true
false
## High: Incorrect implementation of access control in MIMOProxy:execute ### Description There is a function `execute` in `MIMOProxy` smart contract. The function performs a delegate call to the user-specified address with the specified data. As an access control, the function checks that either it was called by the 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
low
rounding
false
false
## Low: SwapGuardV2 has multiple problems ### Description 1. Contracts that use SwapGuardV2 together with Facade+Executor are out of scope 2. All functions are public and anyone can makeCheckpoint() 3. This contract will not work with native ETH. 4. allowedLoss adds up with tokens having different decimals. Or tokensP...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inefficient Commission Accounting for Administrator and Market Maker ### Description The [`transferCommissions`](https://github.com/longgammalabs/hanji-contracts/blob/09b6188e028650b9c1758010846080c5f8c80f8e/src/OnchainLOB.sol#L582) function updates commissions by modifying the `Trader` struct for both the adm...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
signature
true
false
## Medium: Replay attack in case of hard fork ### Description [GolomTrader.sol#L98](https://github.com/code-423n4/2022-07-golom/blob/7bbb55fca61e6bae29e57133c1e45806cbb17aa4/contracts/core/GolomTrader.sol#L98) If there is ever a hardfork for Golom then `EIP712_DOMAIN_TYPEHASH` value will become invalid. This is becau...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Users can delete all validators from `Nexus` account ### Description In the Nexus smart account system, validators are essential for authorizing transactions through the `validateUserOp` function. The `_uninstallValidator` function allows users to remove validators from their account. If a user removes all ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
cross-chain
true
false
## High: MISMATCHING DATA LOCATION DURING INHERITANCE ### Description It was identified that the `dPrimeConnectorHyperlane` contract was incompatible with the latest `Hyperlane` protocol and might not work with new versions of `Hyperlane Inbox` contracts, which can lead to users losing their `dPrime` tokens during cro...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Withdraw Priority Updates Lack Validation of Allocation Keys ### Description The `StrategyManager.setWithdrawPriority()` function updates the withdrawal queue without validating that the provided keys correspond to existing allocations. Although the function is restricted to the manager, the absence of on-chai...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Function Selectors On Deprecated Functions Are Not Locked ### Description [Pull request 1031](https://github.com/across-protocol/contracts/pull/1031/commits/e05964b074e6906e4dcb1d0fcd333dc7eb0b87be) removes already announced deprecated functionalities, such as the `depositDeprecated_5947912356` and `depositFor...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: No deadline for user signatures ### Description **Description:** Signatures signed by users should always have an [expiration or timestamp deadline](https://dacian.me/signature-replay-attacks#heading-no-expiration), such that after that time the signature is no longer valid. When users sign a transaction they...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `maxWithdraw()` return values exceed actual withdrawable amounts due to fee exclusion ### Description _Resolved_ The `YuzuIssuer.maxWithdraw()` returns the maximum amount of assets that can be withdrawn by a user without considering withdrawal fees. When a user attempts to withdraw assets: 1. User has 100 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
other
true
false
## Gas: Use `""` instead of `new bytes(0)` ### Description **Files:** `StateTransitionManager.sol`, `Mailbox.sol` [File: code/contracts/ethereum/contracts/state-transition/chain-deps/facets/Mailbox.sol](https://github.com/code-423n4/2024-03-zksync/blob/main/code/contracts/ethereum/contracts/state-transition/chain-dep...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
cross-chain
true
false
## Medium: Merkle-tree-related contracts vulnerable to cross-chain-replay attacks ### Description _Submitted by IllIllI_ > Bank is a token vesting, airdrop and payroll tool. It uses merkle trees to massively scale token distributions with integrated vesting (time locks). The idea of this tool is that it allows DAOs 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
signature
false
false
## Gas: Caching the domainSeparator will optimise gas ### Description The current implementation of `Signature::getDomainSeparator` recomputes the domain separator on each method call. It is a smart optimization to cache the value of the domain separator as it should never change unless the `chain.id` changes, which 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
low
other
true
false
## Low: Potential Malfunction in Admin-Controlled Functions ### Description **Update** The client Acknowledged this issue. **File(s) affected:**`Sleeves.sol` **Description:** For `Sleeves.adminUnsleeveBatch()` and `adminWithdrawWithProofBatch()` to execute successfully, the user must have previously approved `PDT` 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
true
false
## Gas: [G‑06] `internal` functions only called once can be inlined to save gas ### Description Not inlining costs **20 to 40 gas** because of two extra `JUMP` instructions and additional stack operations needed for function calls. *There are 2 instances of this issue:*
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
access-control
false
false
## Low: Unused `flashGovernor` variable ### Description The [`PoolFactory.flashGovernor`](https://github.com/clearpool-finance/permissionless-protocol/blob/f1f38c5ba83e2c3a68155042229b04678d9425ce/contracts/PoolFactory.sol#L26) variable is not being used in the code and is always zero. ### Recommendation Remove the u...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
access-control
false
false
## Medium: Transfer intents cannot be invalidated ### Description Operators earn fees by being facilitators of trades between payers and merchants. Protocol operators are a permissionless role, and Coinbase is one of these. Transfer intents are signed by payers, and when processed, the `processedTransferIntents` is se...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
solodit_api
high
Business Logic
true
true
## Lines of code https://github.com/code-423n4/2022-11-stakehouse/blob/main/contracts/liquid-staking/GiantPoolBase.sol#L57-L60 https://github.com/code-423n4/2022-11-stakehouse/blob/main/contracts/liquid-staking/GiantMevAndFeesPool.sol#L176-L178 https://github.com/code-423n4/2022-11-stakehouse/blob/main/contracts/liqui...
Code4rena
5
Stakehouse 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...
skyward_49k
medium
other
false
false
## Medium: OUTDATED VERSIONS OF TLS SUPPORTED ### Description Several misconfigurations were identified within the application's TLS configuration that could compromise the security of communications. Scoped URLs in the application have been identified to support the deprecated and vulnerable versions of TLS: v1.0 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
signature
false
false
## Low: Upgrade openzeppelin/contracts 's version ### Description There are known vulnerabilities in the current `@openzeppelin/contracts` version used. This affects SeaDrop.sol with a potential Improper Verification of Cryptographic Signature vulnerability as `ECDSA.recover` is used. ### Recommendation Consider upgr...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [03] Wrong event emitted in `removeStrategy` ### Description ### Finding description and impact The `RemoveStrategy` event is emitted with an incorrect strategy address. ### Proof of Concept When removing a strategy in MultiStrategy, the last strategy in the array is moved to the position of the strategy be...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
other
false
false
## High: User’s stakes after admin’s removed can not be refunded again ### Description **Severity**: High **Status**: Resolved If users continue staking after admin has executed `refundFromAdminInETH()` or `refundFromAdminInUSDT()` in `treasury.sol` then the funds will not be able to get refunded again. These 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
low
oracle
false
false
## Low: A missing zero address check ### Description There is an issue in the following functions - https://github.com/p2p-org/eth-staking-fee-distributor-contracts/blob/30a7ff78e8285f2eae4ae552efb390aa4453a083/contracts/feeDistributor/ContractWcFeeDistributor.sol#L181, https://github.com/p2p-org/eth-staking-fee-distr...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inconsistent usage of seed constants and byte literals ### Description _Resolved_ When checking the `fund_pool` address, the seeds used are inconsistent. Some places use the constant `FUND_POOL_SEED`, while others directly use the literal `b"fund_pool"`. Although both are currently equivalent, accidental mo...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Improper Snapshotter Address Handling when Disabling Nodes ### Description **File(s) affected:**`SnapshotterState.sol` **Description:** When a node is burned, a call to `_disableNode()` is made. The function removes the snapshotter address of the node from the `allSnapshotters` mapping without checking if `sn...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Consider Using Named Mappings ### Description The project accepts using a Solidity compiler version greater than `0.8.18`, which supports named mappings. Using named mappings can improve the readability and maintainability of the code by making the purpose of each mapping clearer. This practice helps developer...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Privileged Roles and Ownership ### Description **Update** The client acknowledged the issue and provided the following explanation: > This is a design behavior. It will need to be deepened on the documentation. **File(s) affected:**`FanToArtistStaking.sol`, `Web3MusicNativeToken.sol`, `Web3MusicNativeTokenDA...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
overflow
false
false
## High: integer overflow in slice() ### Description There is an integer overflow in the slice() code, which will cause memory corruption. ### Impact Medium Risk
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: MessageQueue Stores Incorrect Value if not Initialized Before Appending ### Description In `L2MessageQueue` it is expected that `initialize` is called before `appendMessage`. This initializes the [`zeroHashes` array](https://github.com/scroll-tech/scroll/blob/3bc8a3f5c6ac816ddffadca41024331dcf4d3064/contrac...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
flash-loan
true
false
## Low: Missing Validation Logic ### Description ## Asset Validation and Flashloan Issues in Metastable Pool ## Issues Identified ### 1. Absence of Validation for Asset Decimals There is an absence of validation for asset decimals when creating a metastable pool in `pool::validate_assets_metadata`. Currently, the fu...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
access-control
false
false
## Low: Missing Zero-Address Validation for Token Admin Risks Permanent Loss of Role Management ### Description **Update** Marked as "Fixed" by the client. Addressed in: `8f5288a5d2eceec7c856b965e040361c91a25d2e`. The client provided the following explanation: > Fixed **File(s) affected:**`src/Token.sol` **Descript...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Centralization risk ### Description Currently, the `operator` account is the **only signer** of critical batch deposit and withdraw operations, handling significant amount of tokens multiple tokens, such as `USDC`, `TBill` and `sUSD (Solayer USD)`. It is not mentioned in the documentation that it is a require...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
other
true
true
## High: Incorrect reward distribution when t == roundedtimestamp in feedistributor.sol contract ### Description The `FeeDistributor` contract has a vulnerability that leads to incorrect reward distribution when a transaction occurs at the beginning of an epoch. The issue is related to the `_checkpointTotalSupply` 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
high
signature
true
false
## High: Multiple tokens could be minted by the same msg.sender ### Description The `StoryBadgeNFT` contract allows users to mint a badge NFT by providing a valid signature. The current implementation uses the `usedSignatures` mapping to track which signatures have been used, ensuring that each `msg.sender` can mint 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
low
other
false
false
## Low: | Inaccurate Comment ### Description **Description** In the `completeConversion` and `completeConversionToMpKey` functions it is stated that `the sender's vesting tokens must be non-zero` however the sender’s vesting tokens must be zero or else the `acceptTransfer` on the `RewardRouter` will revert. **Recomm...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
front-running
false
false
## High: Front-running certain validator operations leads to honest edges not being tracked ### Description Front-running the validator when a bisection or a new sub-challenge operation is being performed prevents the newly created honest edge(s) from being tracked. The validator is responsible for keeping track of al...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
cyfrin_structured
low
other
true
false
## Low: Loop can use unchecked arithmetic and cache array length ### Description The `Network::scheduleBatch()` function has multiple loops that can be optimized with unchecked arithmetic and cached array lengths. ### Recommendation ```solidity function scheduleBatch(/*...*/) public virtual override onlyRole(PROPOSER...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
access-control
false
true
Source: https://github.com/sherlock-audit/2023-02-hats-judging/issues/116 ## Found by unforgiven ## Summary in normal scenario middle level admins can't relink a child tree to another tree and when code link a tree it checks that the old and new admin is in the same tree(have same tippy hat). but middle level admin...
Sherlock
4
Hats
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Code Refactoring ### Description ## Refactor Summary ## Changes Made 1. **Modify `force_transfer_amount`** - The `ForceTransferred` event is now only emitted once, preventing duplicate emissions from the internal call to `force_transfer` and in `force_transfer_amount`. 2. **Update `add_holder_address_int...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Mismatching variable naming for `Metadata.depositBlock` ### Description **Description:** Based on [the inline doc ](https://github.com/USD-Pi-Protocol/contract/blob/main/contracts/lib/STBL_Structs.sol#L26-L27)of `Metadata.depositBlock` implies it saves the block number when the deposit was created, but in real...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Seizing assets as collateral without entering the market may result in incorrect value calculation ### Description During liquidation, collateral may be seized even if the borrower has not entered the market with it. Sanity checks regarding the price oracle status for the seized asset will be skipped if the m...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Multiple functions across the protocol codebase make use of the Ethereum-specfic `ecrecover` function directly to verify the given signatures. However, using `ecrecover` directly allows malleable (non-unique) signatures and thus is suscept...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Division before multiple can lead to precision errors ### Description Because Solidity integer division may truncate, it is often preferable to do multiplication before division to prevent precision loss. **Affected source code:** - [FraxlendPairCore.sol#L315](https://github.com/code-423n4/2022-08-frax/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...
skyward_49k
low
other
false
false
## Low: Unlimited Registrations with Same Referral Code ### Description **Severity**: Low **Status**: Resolved **Description**: In the referral.sol The current implementation allows unlimited registrations using the same referral code, which can be exploited by creating multiple accounts to earn referral rewards ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Referral discount is not applied when `fees_prepayment` is zero in `PerpEngine::fill` ### Description **Description:** In `PerpEngine::fill`, when `fees_prepayment` is zero we do not apply the referral discount even though we still send `ref_payment` to `ref_address`. `self.fee_rate` is equal to `perp_fee...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
Front-Running
false
true
Source: https://github.com/sherlock-audit/2022-11-buffer-judging/issues/82 ## Found by \_\_141345\_\_, 0x52 ## Summary When an option is created, enough collateral is locked in BufferBinaryPool to cover a payout should it close ITM. As long as an LP isn't locked (trivially 10 minutes) and there is sufficient liqui...
Sherlock
5
Buffer 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
reentrancy
true
false
## Low: Exposure to Reentrance ### Description **Severity**: Informational **Status**: Resolved **Description** SubnetActorManagerFacet.sol - Function `unstake()` is exposed to reentrancy as well as cross-function reentrancy. The reentrancy is can be triggered when the execution reaches `LibStaking.withdrawWithConf...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Code Refactoring ### Description ## Code Review Recommendations 1. **Utilization of `ordered_map::reverse`** Make use of `ordered_map::reverse` for both the asks and bids maps in `place_limit_order` within `Orderbook` so that the order of elements in the map is reversed, providing a correctly sorted list ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Events In Initialize Functions ### Description None of the initialize functions emit emit init-specific events. They all however have the initializer modifier (from Initializable) so that they can be called only once. Off-chain monitoring of calls to these critical functions is not possible. ### Recom...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Not proper variable naming ### Description **Severity:** Informational **Description:** The contract `FeeData` has a internal variable `_feeValue` that is used to calculate the fee. Across the usage of this variable, it is used as a numerator while calculating the fee percentage. We recommend renaming this va...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
oracle
false
false
## High: CTokenOracle.sol#getCErc20Price contains critical math error ### Description CTokenOracle.sol#getCErc20Price contains a math error that immensely overvalues CTokens ### Impact All lenders could be drained of all their funds due to excessive over valuation of CTokens cause by this error ### Recommendation Fi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Precision loss in the invariant function can lead to loss of funds ### Description [src/core/Pair.sol#L56](https://github.com/code-423n4/2023-01-numoen/blob/2ad9a73d793ea23a25a381faadc86ae0c8cb5913/src/core/Pair.sol#L56) An attacker can steal the funds without affecting the invariant. ### Proof of Concept ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
access-control
false
false
## Low: Burn and bridge mechanism can be delayed due to paused token bridge state ### Description **Description:** Contract RollupRevenueVault provides the BURNER_ROLE with the burnAndBridge() function. In this process, Linea tokens are meant to be bridged to L1 and burned there. For bridging, the `tokenBridge` servi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
true
## Medium: Allocate and remove are not exact inverses of each other ### Description Due to the rounding logic used in the codebase, when users allocate funds into a system, they may not receive the same amount back when they remove them. When funds are allocated into a system, the values are rounded down (through na...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Holographable tokens can be reinitialized ### Description When new holographable tokens are created, they typically set a state variable that holds the address of the holograph contract. When creation is done through the `HolographFactory`, the holograph contract is [passed in as a parameter](https://github...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Accounting available flow as available liquidity will lead to underestimate utilization ### Description When computing available liquidity for minipools, available flow from main lending pool is counted as available liquidity. ### Recommendation Please consider removing available flow from the available li...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of Validation of the `frozen` and `revision_height` Values in `try_from()` for `ClientState` ### Description **Update** Marked as "Fixed" by the client. Addressed in: `fc06501f1ec94f44d2b482894a1fb86aeb85c5f2`. The appropriate values are now validated in `create_client()`. **File(s) affected:**`light-cl...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Certain function can be blocked if the ERC20 token revert in 0 amount transfer after `PublicVault#transferWithdrawReserve` is called ### Description The function transferWithdrawReserve in Public Vault has no access control. If this function is called, the token balance is transfered to withdrawProxy 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
gas
other
true
false
## Gas: Stack variable used as a cheaper cache for a state variable is only used once ### Description If the variable is only accessed once, it's cheaper to use the state variable directly that one time *There is 1 instance of this issue:*
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
other
false
false
## Gas: Multiple accesses of a mapping/array should use a local variable cache ### Description The instances below point to the second+ access of a value inside a mapping/array, within a function. Caching a mapping's value in a local `storage` or `calldata` variable when the value is accessed [multiple times](https://...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
cyfrin_structured
low
timing
true
false
## Low: Assembly blocks could benefit from `"memory-safe"` annotation ### Description When hashing request data in [`Spin::_hashParticipation`](https://github.com/Consensys/linea-hub/blob/295344925ec4321265f7cbac174fcf903b529a4e/contracts/src/Spin.sol#L383-L409) and [`Spin::_hashClaim`](https://github.com/Consensys/li...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
overflow
true
false
## High: Incorrect Loop Condition. ### Description **Severity**: Critical **Status**: Resolved **description** 1. PROPCStakingV2.sol: redeem(). The function contains a critical flaw in its loop construct that results in the function not accounting for the very first staking position (stake ID 0) when calculating 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
high
other
true
false
## High: JSON-RPC Memory Amplification Vulnerability ### Description The JSON-RPC server processes and parses JSON requests before applying rate limiting controls, creating potential for memory exhaustion attacks within configured payload limits. JSON payloads can be manipulated to be much larger in memory due to the u...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
rounding
false
false
## Medium: Rounding Errors Result In Lost Accrued Rewards ### Description ## Staking Pool Withdrawal Issue In `staking_pool.move`, `request_withdraw_stake` is responsible for withdrawing staked tokens and accrued rewards from a staking pool. However, the function utilizes `get_token_amount` to calculate the number 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...
solodit_api
medium
Business Logic
true
true
_Submitted by xiaoming90, also found by shenwilly, unforgiven, and WatchPug_ <https://github.com/code-423n4/2022-05-rubicon/blob/8c312a63a91193c6a192a9aab44ff980fbfd7741/contracts/rubiconPools/BathPair.sol#L213> <https://github.com/code-423n4/2022-05-rubicon/blob/8c312a63a91193c6a192a9aab44ff980fbfd7741/contracts/rub...
Code4rena
5
Rubicon
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Usage of uints/ints smaller than 32 bytes (256 bits) incurs overhead ### Description When using elements that are smaller than 32 bytes, your contract’s gas usage may be higher. This is because the EVM operates on 32 bytes at a time. Therefore, if the element is smaller than that, the EVM must use more operati...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
cyfrin_structured
medium
access-control
true
false
## Medium: Anyone can cancel traders' market orders due to missing access control in `OrderBranch::cancelMarketOrder` ### Description Anyone can cancel traders' market orders due to missing access control in `OrderBranch::cancelMarketOrder`: ```solidity function cancelMarketOrder(uint128 tradingAccountId) external { ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unpredictable behavior for users due to admin front running or general bad timing ### Description In a number of cases, administrators of contracts can update or upgrade things in the system without warning. This has the potential to violate a security goal of the system. Specifically, privileged roles coul...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
token
true
false
## Low: [01] Set treasury missing check `address(0)` ### Description The code should validate _treasury address is not address(0) when setting Treasury in [lending pool](https://github.com/code-423n4/2024-01-init-capital-invitational/blob/a01c4de620be98f9e57a60cf6a82d4feaec54f58/contracts/lending_pool/LendingPool.sol#...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
cyfrin_structured
medium
other
true
false
## Medium: Hard-coding 0 max fee with fast finality is incompatible as this combination commonly has minimum fees of 1 ### Description Circle's [CCTPv2 Technical Guide](https://developers.circle.com/cctp/technical-guide) provides the following relevant information: * Messages with `minFinalityThreshold` of 1000 or low...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Use Of slot0 To Get `sqrtPriceX96` Can Lead To Price Manipulation ### Description **Severity** - Low **Status** - Resolved **Description** Inside OracleLibrary the price (`sqrtPriceX96`) from UniswapV3 AMM is pulled from slot0, which is the most recent data point and can be manipulated easily via MEV bots a...
0