prompt
listlengths
2
2
source
stringclasses
3 values
severity
stringclasses
5 values
category
stringclasses
186 values
has_code
bool
2 classes
has_poc
bool
2 classes
reference_response
stringlengths
23
5k
firm
stringclasses
26 values
quality_score
float64
0
5
protocol
stringclasses
398 values
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: NewDomain event emitted before state changes are applied ### Description In the `register_domain` function, the `NewDomain` event is emitted at the start of the function before the arguments are validated and state changes are made. This does not cause any problems, because if the transaction reverts, the stat...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
access-control
true
true
## Low: Owner of `StrategyPassiveManagerUniswap` can rug-pull users' deposited tokens by manipulating `onlyCalmPeriods` parameters ### Description While `StrategyPassiveManagerUniswap` does have some permissioned roles, one of the attack paths we were asked to check was that the permissioned roles could not rug-pull t...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
cross-chain
true
false
## Medium: `ERC1155Bridgable` is not EIP-1155 compliant ### Description According to the [README](https://github.com/sherlock-audit/2024-08-flayer/blob/main/README.md#moongate-4): > The Bridged1155 should be strictly compliant with EIP-1155 and EIP-2981 [EIP-1155](https://eips.ethereum.org/EIPS/eip-1155) states 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
rounding
false
false
## Low: Missing Emergency Withdrawal Capability ### Description Neither the `SwapManager` nor the `CurveSwapper` contracts have an emergency withdrawal function. This functionality could help recover any residual funds left in the contracts, such as small balances from rounding, or cases where users mistakenly send 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
high
dos
false
false
## High: StUSR Inflation Attack ### Description * https://github.com/resolv-im/resolv-contracts/blob/a36e73c4be0b5f233de6bfc8d2c276136bf67573/contracts/ERC20RebasingUpgradeable.sol#L386-L398 The empty StUSR pool is vulnerable to an Inflation Attack despite having some protective measures, which can lead to the loss 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
liquidation
true
false
## Low: The liquidation reward does not match the documentation ### Description The documentation states that the liquidator receives a collateral reward equal to 105% of the liquidated asset value. However, in the contract, the liquidation reward is not fixed at 105% but instead depends on the vault's MCR and `liquid...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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‑23] Use assembly to emit events ### Description We can use assembly to emit events efficiently by utilizing scratch space and the free memory pointer. This will allow us to potentially avoid memory expansion costs. Note: In order to do this optimization safely, we will need to cache and restore the free mem...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
high
other
true
true
## High: During the yield phase, when using supported vaults, users can't withdraw vault assets they are entitled to ### Description During the yield phase, when using supported vaults, users can't withdraw vault assets they are entitled to. ### Proof of Concept ```solidity function test_yieldPhase_supportedVaults_us...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: Default Fee Fallback to Zero When No Fee Tier Matches ✓ Fixed ### Description The `getFee` function calculates the applicable fee by iterating through the `feeTiers` array and returns `0` if no tier matches the transaction amount. This default behavior can unintentionally exempt certain transactions from fees ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Some legitimate `UniV3Decomposer` decompose attempts will always revert due to incorrect liquidity offset calculation ### 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 ca...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
initialization
false
false
## Low: Inefficient Initialization and Missing Validation in Setters ### Description The `OrderBookVault` contract includes separate setter functions, such as `setOrderBook` and `setOrderBookConfig`, to configure its dependencies. However, these could be directly initialized in the `initialize` function to streamline ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incomplete Test Coverage ### Description While the overall coverage is close to 100%, there are several lines of code lacking test coverage: * In the [`ExclusiveDutchOrderReactor` contract](https://github.com/Uniswap/UniswapX/blob/7c5e359fc476f3e55497a8cd6f405f67af2c1dcf/src/reactors/ExclusiveDutchOrderRea...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
token
true
false
## High: Mishandling of receiving HYPE in the StakingManager, user can’t confirm withdrawal and inflate the exchange ratio ### Description ### Finding description and impact Mishandling of receiving `HYPE` in the `StakingManager` , user can’t confirm withdrawal and inflate the exchange ratio. Based on the [Hyperliqu...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing range checks in AUIPC ### Description The linked for loop misses the final two limbs of `pc_limbs` and fails to range constrain them to be bytes. ### Recommendation Iterate over all limbs of `pc_limbs` when range constraining them.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
reentrancy
true
false
## High: VouchFaucet can be immediately drained by anyone ### Description The `claimTokens` function in the VouchFaucet contract fails to properly enforce the `maxClaimable` limit because it does not update the value in the `claimedTokens` mapping. This allows any address to claim an arbitrary amount of any token, pot...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
storage
true
false
## Gas: `PersistentSet` library storage access ### Description **Description:** Multiple expensive storage reads (SLOAD ~2100 gas each) for the same `set._statuses[value]` occur in several functions: `_add`, `_remove`, `_containsAt`, and `_contains`. Each repeated access to the same storage slot wastes gas. **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
low
reentrancy
false
false
## Low: Risk of Storage Slot Overlap Leading to Unpredictable Behavior ### Description This issue has been identified due to the shared use of the same storage address (`_SLOT_PTOKEN_STORAGE`) for both transient reentrancy guard data and persistent protocol data. While currently functional, any future refactoring 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
medium
cross-chain
true
false
## Medium: Potential loss of capital due to fixed fee calculations ### Description The `StargateBridgeAdapter` relies on a fixed fee calculation (0.06% of the current Stargate fee), but as explained in the Stargate documentation, fees can be automatically adjusted to meet demand. ([here](https://stargateprotocol.gitbo...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing Sender Validation for Proposal Submissions ### Description The current implementation of the `submit_proposal` function in the RollupManager does not verify the identity of the sender submitting the proposal. The relevant code snippet is: ```rust async fn submit_proposal(&self, proposal: Proposal) ->...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Eliminate Obsolete Constants ### Description ## Unutilized Constants in Codebase Several constants in the codebase are declared without being utilized. These unutilized constants may confuse developers and make the codebase harder to maintain. The constants in question are: 1. `u64::DIVIDE_BY_ZERO` 2. `pyth_...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
reentrancy
true
false
## Medium: Various vault accounting inconsistencies and potential unhandled reverts ### Description `BunniHub::hookHandleSwap` overestimates the reserves deposited to ERC-4626 vaults and assumes that within the call to `_updateVaultReserveViaClaimTokens()` it deposits enough to execute the swap: ```solidity 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
gas
other
true
false
## Gas: Unnecessary variables in `Getters.sol` ### Description **Function `isFacetFreezable`:** Variables `selectorsArrayLen` and `selector0` are used only once, which means they don't need to be declared at all. The code snippet below can be changed from: [File: ethereum/contracts/zksync/facets/Getters.sol](https:/...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
oracle
false
false
## Medium: Race condition in the `submitEpochReward()` start epoch ID ### Description The `submitEpochReward()` function is designed to report the reward amount over the interval of one or several epochs. The arguments of this function are the end epoch ID and the reward amount. The start epoch ID is calculated onchai...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Check array arguments have the same length ### Description In both `ArbitrumSwaps::arbitrumSwaps` and in `StargateArbitrum::stargateSwap` you have multiple array-type arguments. Validate in both places that the arguments have the same length so you do not get unexpected errors if they don't.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
access-control
true
false
## Medium: Gauge set can be front run if bribe and gauge constructors aren't run atomically ### Description _Submitted by hyh, also found by 0x1f8b_ If Bribe and Gauge constructors are run not in the same transaction, the griefing attack is possible. A malicious user can run setGauge after Bribe, but before Gauge 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: Overwriting Previous Allocations in allocateFunds May Lead to Loss of Cumulative Allocation Data ### Description ```markdown The `allocateFunds()` function in `Treasury.sol` overwrites any existing allocation from the caller to a recipient rather than accumulating new allocations. This behavior can inadvertent...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 parameters are not indexed ### Description The [`AddedUser`](https://github.com/jeualvarez/Token-Airdrop/blob/d96202acf6fb5d0305368bac36aa960d455cbffe/contracts/Airdrop.sol#L16) and [`PaidUser`](https://github.com/jeualvarez/Token-Airdrop/blob/d96202acf6fb5d0305368bac36aa960d455cbffe/contracts/Airdrop.so...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
token
false
false
## High: Duplicate of increment. ### Description **Description** Treasury Module function withdrawERC20Tokens 100: for (uint256 index $=0;$ index < tokenAddressesLength; index ++) { 105: 106: unchecked { index ++; 107: } In one cycle, the index is incremented twice. **Recommendation** Remove increment 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
initialization
true
false
## Low: `liquidityProviderWallet` is not set during initialization ### Description **Description:** In `AllowanceLiquidityProvider::initialize`, one of the key properties, `liquidityProviderWallet`, is not initialized. This property is declared as a public variable but never set during contract initialization. Since 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: (HAL-06) Use of memory instead of calldata for an unmodified function argument ### Description In the `HaloAirdop.sol` contract in the `isValid()` function, the memory keyword is used for a parameter which is not modified instead of the calldata keyword. ### Recommendation Consider using the calldata keyword ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Function `addNewTranche()` should use `protocolFee` from `Loan` struct ### Description The protocol fee value is recorded and stored in the Loan struct when a new loan is issued. However, when adding a new tranche, the function uses the current value of `protocolFee.fraction` instead of the value stored 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
high
initialization
false
false
## High: | No Bids Can Be Entered ### Description **Description** Initially, when no bids have been entered, the `existing` bid will have default values – `address(0)` as the collection and 0 for the `tokenId`. The zero address does not have function `ownerOf`, so the call to `getOwner` will revert. As a result, no 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
low
rounding
false
false
## Low: Protocol fees percentage can be set to more than 100% ### Description In the contract `ClaggBaseAdapter`, the function `setPoolConfig` allows the contract's admin to set new values for the `performanceFee` and `nonClaveFee` storage variables. Both of these fees are expressed in basis points with 2 fixed decima...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
token
false
false
## Low: Partial Usage of `ERC165` ### Description **Update** The client fixed the issue in: `4481141aa3016ed1d5c87dd936c8cf057e17b339` with the following explanation: > Corrected to check provided interfaceId against all implemented interfaces. Also added ERC165 implementation to FlowEVMBridgedERC20. **File(s) affec...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Similar Naming for Variables. ### Description **Severity**: Informational **Status**: Resolved **Description** PROPCStakingV2.sol: setPool()→_pid and pid. The setPool function utilizes parameters and local variables with similar names (pid and pid). These naming choices may lead to confusion and difficulty ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
cross-chain
true
false
## Medium: Incorrect source address decoding in RootBridgeAgent and BranchBridgeAgent's `_requiresEndpoint` breaks LayerZero communication ### Description ### Lines of code ### Vulnerability details When bridge agent contracts communicate through the LayerZero endpoint, the source contract encodes the `_destinat...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 integration tests ### Description The [`BaxToken`](https://github.com/FintechServer/baxtoken/blob/3ba88dd8fb3a97e6668cf2029b38610283e28c17/contracts/BaxToken.sol) makes use of the [`BurnableToken`](https://github.com/OpenZeppelin/zeppelin-solidity/blob/v1.5.0/contracts/token/BurnableToken.sol) and [`Ca...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Premature Event Emission in GaslessFactory's _execute Function ### Description The [`_execute` function](https://github.com/fireblocks/fireblocks-smart-contracts/blob/cf1bb85ea84cd9ce9b509e285e835b8eb459ddd8/contracts/gasless-contracts/GaslessFactory.sol#L220-L227) of the `GaslessFactory` contract is designed ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
cyfrin_structured
low
reentrancy
true
false
## Low: Unnecessary liquidity read and subtraction operation can be removed ### Description `FullRangeHook::addLiquidity` works as follows: ```solidity function addLiquidity(AddLiquidityParams calldata params) external payable nonReentrant ensure(params.deadline) returns (uint128 liquidity) { ....
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Unnecessary token allowance ### Description The ConvexEthMetaStrategy contract [grants an allowance](https://github.com/OriginProtocol/origin-dollar/blob/757ad13fa07ecdff058e55d9beff3c98d5d186a2/contracts/contracts/strategies/ConvexEthMetaStrategy.sol#L352) for the Curve pool to spend all WETH tokens. This 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
medium
other
true
false
## Medium: Lack of maximum gas price protection in OtimFee contract ### Description The OtimFee contract does not allow users to specify a maximum gas price, exposing them to potentially unlimited fee costs during network congestion. When calculating fees, the contract directly uses the current base gas price (`block....
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: HEAD STATE NOT ENFORCED TO BE ZERO ### Description The `MESSAGES EVENTS FILTER` circuit (`log_sorter`) is not enforcing the head state of the initial queue received as input to be zero. Even though the `LOG DEMULTIPLEXER` circuit gives as output all queues that were initially empty, already enforcing the head ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Front-Running in NativeTokenPaymentEnforcer ✓ Fixed ### Description In `NativeTokenPaymentEnforcer`, the redeemer must include a payment delegation to pay the delegator to execute an execution. The payment delegation can be created by the redeemer or some other contract or account in behave of the redeemer(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
token
true
false
## Low: The vault limit condition should not be checked for `address(0)` ### Description **Description:** The virtual function `ERC721Upgradeable::_update` has been overridden within `SmartVaultManagerV6` as follows: However, the `userVaultLimit` validation should not be performed for `address(0)` otherwise it 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
low
liquidation
true
false
## Low: `swap` operation can lead to an undercollateralized state ### Description _Resolved_ When `swap` operation is performed, the undercollateralization check is done before the swap is executed. However, after execution, it is possible for `dexAmounts[0]` to exceed the `maxDebtValue`, causing the market to become...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Use a more recent version of solidity ### Description Use a solidity version of at least 0.8.12 to get `string.concat()` to be used instead of `abi.encodePacked(,)` *There are 2 instances of this issue:* https://github.com/code-423n4/2022-07-golom/blob/e5efa8f9d6dda92a90b8b2c4902320acf0c26816/contracts/core/...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
access-control
false
false
## High: A malicious user can set any contract as a local `hToken` for an underlying token since there is no access control for `_addLocalToken` ### Description A malicious user can deliberately set an irrelevant (or even poisonous) local `hToken` for an underlying token, as anyone can directly access `_addLocalToken`...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: A function can be optimized ### Description The function can be optimized in two places: https://github.com/FantiumAG/smart-contracts/blob/a2d126453c1105028f12277b8f342d2cdbf01a77/contracts/claiming/FantiumClaimingV1.sol#L548-L560 https://github.com/FantiumAG/smart-contracts/blob/a2d126453c1105028f12277b8f342d...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: An added transfer manager cannot get deactivated from the protocol ### Description ## Severity: Low Risk ## Context: - **File:** TransferSelectorNFT.sol ## Description: Once a transfer manager for an asset type gets added to the protocol either through the constructor or through `addTransferManagerForAssetTy...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
true
false
## Medium: `call()` should be used instead of `transfer()` on an `address payable` ### Description _Submitted by BowTiedWardens, also found by leastwood and sorrynotsorry_ This is a classic Code4rena issue: * * * ### Impact The use of the deprecated `transfer()` function for an address will inevitably make 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
access-control
false
false
## High: Incorrect use of a library function ### Description At the lines - https://github.com/yearn/yearn-vaults/tree/e390c2a6b2ba6e2ecc8f3a72a1ea4adfabd17544/contracts/BaseWrapper.sol#L117 - https://github.com/yearn/yearn-vaults/tree/e390c2a6b2ba6e2ecc8f3a72a1ea4adfabd17544/contracts/BaseWrapper.sol#L198 use the `s...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
false
false
## Medium: APPCHAIN CAN BE REGISTERED WITHOUT CORE DETAILS ### Description It was observed that it is possible to register an appchain without providing any core details such as `appchain_id`, `website_url`, and so on. Those details are needed for intended functionality of the application. Code Location -------------...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Broken Logic for Modular Multiplicative Inverse  Acknowledged ### Description The multiplicate inverse of an element α in a finite field Fpn can be calculated as αpn - 2. α can be any field element except 0 or the point at infinity. This totally makes sense as there exists no field element `x` such that **0...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
true
false
## Medium: The Redeem Function In BaseControlledAsyncRedeem Does Not Check That msg.sender Can Spend Owner Funds Using Allowance ### Description **Severity**: Medium **Status**: Acknowledged **Description** The redeem function in the BaseControlledAsyncRedeem function allows users to claim their tokens by redeeming...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
overflow
false
false
## Low: Potential Irreversibility in venusVAIVaultRate Adjustments ### Description If the `venusVAIVaultRate` is mistakenly changed to a very high number in [`_setVenusVAIVaultRate()`](https://github.com/VenusProtocol/venus-protocol/blob/94bc2e414e33ebf6c05d35c1605dcbd48fa932f5/contracts/Comptroller/Diamond/facets/Set...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
liquidation
false
false
## Low: Locked CryptoPunks May Be Sold ### Description **Update** Marked as "Mitigated" by the client. Addressed in: `f120015ff64d4521bc9290454c625b8dccb16070`. The client provided the following explanation: "We will not be whitelisting offerPunkForSale function from Cyan wallets." Additionally, the functions `offer...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
storage
false
false
## Gas: Combine Multiple Mapping Address ### Description Combine multiple address mappings ### Impact Gas: Instead of having 2 mappings we can combine into a single mapping of struct for the user addresses data We will make use on a single mapping instead of 2 saving the computation, hashing of mapping storage slots...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Improve handling of CheckToken case in check\_whitelist\_token\_and\_account function ### Description **Description:** In the check\_whitelist\_token\_and\_account function, the CheckToken variant of the WhitelistMode enum has an empty block, which might be unclear to readers of the code. This variant is inte...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
Wrong Math
true
true
## Lines of code https://github.com/code-423n4/2022-10-blur/blob/main/contracts/matchingPolicies/StandardPolicyERC1155.sol#L12-L36 https://github.com/code-423n4/2022-10-blur/blob/main/contracts/BlurExchange.sol#L154-L161 ## Vulnerability details ## Impact The ```canMatchMakerAsk``` and ```canMatchMakerBid``` funct...
Code4rena
5
Blur Exchange
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Optimize names to save gas ### Description `public`/`external` function names and `public` member variable names can be optimized to save gas. See [this](https://gist.github.com/IllIllI000/a5d8b486a8259f9f77891a919febd1a9) link for an example of how it works. Below are the interfaces/abstract contracts that ca...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
initialization
false
false
## Low: Inconsistent Zero-Address Checks ### Description In the `RiskFundConverter` contract, there are some inconsistencies in how zero addresses are checked. For example: * Three addresses are passed to the [constructor](https://github.com/VenusProtocol/protocol-reserve/blob/ca8f8ba3dfcf6f13d2db4ac230ac9337950525f...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Constructor could overflow in initialization of total supply ### Description The `ElementToken` [constructor](https://github.com/element-group/element-erc20-smart-contract/blob/6a7b48cec1aa8a823b7ec4a03adadc5ca9d22e29/contracts/ElementToken.sol#L34) does not perform any precondition checks on the [tokens](http...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
token
false
false
## Medium: `VirtualAccount` cannot directly send native tokens ### Description Certain functions require native tokens to be sent. These functions will revert. ### Proof of Concept According to the Sponsor, `VirtualAccounts` can "call any of the `dApps` present in the Root Chain (Arbitrum) e.g. Maia, Hermes, Ulysses...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing Update of `migration_token_allocation` on `Global` Struct ### Description During the audit, it was identified that the `migration_token_allocation` variable on the `Global` struct is not updated in the `Global::update_settings` function. This creates a critical issue as the `migration_token_allocation...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Protocol will not be compatible with commonly used ERC20 tokens ### Description **Severity** **Impact:** Medium, as it most probably won't result in value loss but it limits the protocol usability **Likelihood:** Medium, as it will not work with some commonly used tokens, but will work with others **Desc...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Return value of low level `call` not checked ### Description ### Impact If the `msg.sender` is a contract and its `receive()` function has the potential to revert, the code `payable(msg.sender).call{value:wad}("")` could potentially return a false result, which is not being verified. As a result, the calli...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Typo mistake ### Description It should be `stored` https://github.com/lidofinance/lido-dao/blob/801d3e854efb33ff33a59fe51187e187047a6be2/contracts/0.4.24/oracle/LidoOracle.sol#L78 ### Recommendation It is recommended to fix the code.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Misleading comment for TIMEOUT ### Description The `TIMEOUT` constant is used for both Chainlink and Tellor, but the attached comment does not reflect that since it only names Chainlink. ### Recommendation Consider changing the comment so that it is clear that the variable is used for Tellor too.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Reservoir does not accept ETH ### Description The [`Reservoir` contract](https://github.com/notional-finance/contracts-v2/blob/c37c89c9729b830637558a09b6f22fc6a735da64/contracts/external/governance/Reservoir.sol#L14) has no way to accept `ETH`, even though governance can [execute proposals](https://github.c...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Enforce checks on setStakingConfig logic ### Description The `setStakingConfig` function could benefit from checking the pool values to ensure `isToken0` and `otherToken` are not set as arbitrary values by the owner. ### Recommendation Add a check against the pool for both `token0` and `otherToken` to ensure ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
other
true
false
## High: Users Can Not Withdraw Their Deposits Using `forceUnstakeAll()` Function ### Description The function `forceUnstakeAll()` is meant to send the whole stake balance to the user but instead, it attempts to transfer the funds from the user's account to the Portal contract. In the best case, this means that the us...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
oracle
true
false
## High: `Minter` doesn't account for depegs, exchange rates and decimal precision mismatch between `baseAsset` and `hilBTCToken`, which can result in total loss scenarios for both users and protocol ### Description **Description:** `Minter` supports conversion between two key assets, `baseAsset` and `hilBTCToken`: ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [11] Some assets can't be used as underlying ### Description ### Proof of Concept Take a look at https://github.com/code-423n4/2024-08-wildcat/blob/fe746cc0fbedc4447a981a50e6ba4c95f98b9fe1/src/market/WildcatMarketBase.sol#L295-L300 This function is used to get the total balance in underlying asset and it do...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `SettleLongPremium` is incorrectly implemented: premium should be deducted instead of added ### Description `SettleLongPremium` is the function intended to settle premiums for long option holders. When called, it should deduct the premium from the option owner's account, but the current implementation adds th...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
true
false
## Medium: Users can take advantage of low liquidity markets to inflate the interest rate ### Description Morpho Blue is intended to function with stateful Interest Rate Models (IRM). Whenever the function `_accrueInterest()` is invoked, it calls the `borrowRate()` of the IRM contract: ```solidity function _accrueInte...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Interface Documentation References Wrong Token Standard ### Description ### Finding description and impact The `IERC677Receiver` interface documentation incorrectly references `ERC1363` instead of `ERC677`. This mismatch between the interface name and its documentation could lead to integration issues and dev...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Using `private` rather than `public` for constants, saves gas ### Description If needed, the values can be read from the verified contract source code, or if there are multiple values there can be a single getter function that [returns a tuple](https://github.com/code-423n4/2022-08-frax/blob/90f55a9ce4e25bceed...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
other
false
false
## High: Invalidated Block Hash in Cross Layer Communication ### Description **Update** Marked as "Fixed" by the client. Addressed in: `b88f59fae84ff99aa34302deef7514668cd3fcc2`. **File(s) affected:**`OptimismRootCheckpointManager`, `PolygonChildCheckPointManager` **Description:** the `_processMessageFromRoot()` 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
medium
other
true
false
## Medium: Incorrect chainId comparison in xProvider ### Description `xProvider.pushTotalUnderlying` and `xProvider.pushRewardsToGame` incorrectly implement chainId comparison. ### Impact Calling these two functions will fail in two scenarios: 1) When `chainId != xControllerChain (or gameChain)` and `xProvider.homeCh...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Self-explainable naming ### Description It's good if the name of the variable is absolutely self-explainable. For primitive types (integers) it's good to know what exactly the variable is. For mappings it's better to add key to the name (e.g. userDeposits not just deposits) - key and value of struct is unclea...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Can’t retrieve all data with getMarketInfo ### Description ## Handle gpersoon ## Vulnerability details ## Impact The function getMarketInfo of RCFactory only can give results back in the range 0...marketInfoResults Supplying _skipResults doesn't help, it then just skips the first _skipResults records. 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
high
other
false
false
## High: Incorrect LISTING_FEE value ### Description **Description** At src/processor.rs:22 It says 1000000 is 0.01 SOL But from the docs at https://docs.solana.com/terminology#lamport 1 SOL is 1000000000 lamport, so 0.01 SOL = 10000000, one zero is missing **Recommendation**: Use the way how it works in Solidity. ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
dos
false
false
## Medium: Centralization risks in vlPenpie ### Description **Severity**: Medium **Status**: Resolved **Description** The vlPenpie can be paused anytime by an admin using pause(). This can be exploited by a malicious admin to deny service to users. Also, the token can be upgraded anytime to change its behavior. 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
flash-loan
true
false
## Low: DebtToken is no longer ERC-3156 complaint ### Description DebtToken intends to comply with ERC-3516. According to the EIP specification, the `maxFlashLoan` function must return the maximum loan possible for the token. If a token is currently unsupported, `maxFlashLoan` must return 0 instead of reverting. The `...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
cross-chain
false
false
## Medium: Cross-chain replay attacks are possible with `changeRecipientAddress()` ### Description Mistakes made on one chain can be re-applied to a new chain ### Impact If a user does a `changeRecipientAddress()` using the wrong network, an attacker can replay the action on the correct chain, and steal the funds a-l...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Getting Max Staking Rewards Possible While Bypassing the Lockup Periods ### Description **Update** Marked as "Fixed" by the client. Addressed in: `b175349`. **Update** Marked as "Fixed" by the client. Addressed in: `228ae219c5478f375bed56376ffba8538ea2f09e`. The client provided the following 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
overflow
true
false
## Medium: Treasury Contract Deposit Function Can Be Frontrun To Deny Protocol Operations ### Description In the `Treasury` contract an attacker can frontrun legitimate deposits by artificially inflating the `_totalValue` state variable using a malicious token that can't be transfered out of the `Treasury` anymore. 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
other
true
false
## High: Swaps are not split when trade crosses target price ### Description _Submitted by cmichel, also found by gzeon_ The protocol uses two amplifier values A1 and A2 for the swap, depending on the target price, see `SwapUtils.determineA`. The swap curve is therefore a join of two different curves at the target pr...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
initialization
true
false
## Medium: `SessionKeyValidator` module cannot be removed properly ### Description When the module is removed, `disable` will be called after the module has been removed from the registered list. ```solidity function _removeModule(address module) internal { _modulesLinkedList().remove(module); >>> (bool success...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Withdrawal may sometimes fail if fee taken is high enough ### Description When users withdraw, a fee is first taken: As can be seen, `_takeFee` withdraws the interest from the user's pocket. The withdrawn interest then reduces the total number of shares that the user has. After this process, the `amount`...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
access-control
false
false
## High: Wrong transfer behavior of Bonded and Unbonded contracts ### Description **Description** According to the provided document, there should be an ability to transfer only to the Unbonded contract address and there should also be an ability to transfer tokens from Unbonded contracts to the Bonded contract but i...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
token
true
false
## Medium: Tokens with fee on transfer are not supported in `PublicVault.sol` ### Description Some tokens take a transfer fee (e.g. `STA`, `PAXG`), some do not currently charge a fee but may do so in the future (e.g. `USDT`, `USDC`). Should a fee-on-transfer token be added to the `PublicVault`, the tokens will be loc...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: No Way to Disable Approvals Checking, and Transaction Analytics ### Description Currently, there is no easy way to disable wallet approval monitoring and/or transaction simulation apart from uninstalling the snap. Users might want to opt out of wallet monitoring or disable transaction simulation selectively 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
access-control
true
false
## Low: Admin Can Drain Treasury Reserves via `withdrawUSDC()` ### Description The `Treasury` contract is the central pool of USDC that the system uses to fund `PawnShop.pawn(...)` loans and `RWA.burnForSellback(...)` buybacks (context). However, `Treasury.withdrawUSDC(...)` allows `DEFAULT_ADMIN_ROLE` to transfer ar...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
token
true
false
## Low: Infrared is missing the ability to recover ERC20 tokens sent to vaults ### Description The `InfraredVault` contains functionality to recover ERC20 tokens that were accidentally sent to it. The modifier `onlyInfrared` only allows this method to be called by the Infrared contract. However, Infrared does not expo...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 assembly to hash values more efficiently ### Description In the instances below, we can hash values more efficiently by using the least amount of opcodes possible via assembly. Total Instances: `2` https://github.com/code-423n4/2023-04-ens/blob/main/contracts/dnsregistrar/DNSRegistrar.sol#L151 *Gas Savi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
oracle
false
false
## Medium: An incorrect oracle update ### Description EMA oracle for `D` is updated with the `D2` value here https://github.com/curvefi/stableswap-ng/blob/8c78731ed43c22e6bcdcb5d39b0a7d02f8cb0386/contracts/main/CurveStableSwapNG.vy#L598 but it should be updated with a slightly different value since `D2` accounts for 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
liquidation
false
false
## Medium: Vault does not conform to ERC4626 ### Description ### Lines of code ### Impact `Vault` does not conform to ERC4626 which may break external integrations. ### Proof of Concept The [ERC4626 specification](https://eips.ethereum.org/EIPS/eip-4626) states that `maxDeposit` *MUST return the maximum amount 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
high
other
true
false
## High: `Approval` is not reset if the call to `IFulfillHelper` fails ### Description _Submitted by pauliax, also found by 0xsanson, cmichel and shw_ The function `fulfill` first approves the `callTo` to transfer an amount of `toSend` tokens and tries to call `IFulfillHelper`, but if the call fails, it transfers 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
signature
false
false
## Low: Use `SignatureChecker` library and optionally support `EIP7702` accounts which use their private key to sign ### Description **Description:** In `DocumentManager::verifySignature` use the [SignatureChecker](https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/cryptography/Signatur...
0