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
access-control
true
false
## Low: Asymmetric gauge unregistration can result in misallocation of tokens ### Description **Description:** The reward speed preservation logic in the `BenqiCoreModule` contract enables indefinite QI token distributions for markets associated with asymmetrically unregistered or otherwise expired supply/borrow gauge...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Redundant call of validate\_pool\_id in burn ### Description The `burn` function contains a redundant call to `validate_pool_id`: ``` fn burn(pool_id: PoolId, to: Identity) -> (u64, u64) { reentrancy_guard(); validate_pool_id(pool_id); ... } ``` as it is already done when calling `get_pool`: ``` ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Single-step ownership change introduces risks in feecontroller ### Description The FeeController contract is currently using Ownable from OpenZeppelin, inheriting the default `transferOwnership()` function. This introduces a potential risk of unauthorized or accidental ownership transfers, which could compromi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Wrong returns of `SavingsAccountUtil.depositFromSavingsAccount()` can cause fund loss ### Description _Submitted by WatchPug_ The function `SavingsAccountUtil.depositFromSavingsAccount()` is expected to return the number of equivalent shares for given `_asset`. However, since `savingsAccountTransfer()` doe...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Protocol uses manipulatable randomness ### Description The protocol generates a random number to choose which distributor will be able to commit rewards for a span of blocks. The issue is in the way the protocol generates this randomness. ```solidity function distributorIndex() public view returns (uint256...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Usage of IERC20 methods would fail on some tokens due to lack of return of boolean value ### Description In some contracts, IERC20 methods (`transfer`/`approve`) are used, and will fail when used with some tokens. Most notable and popular example of this is USDT on Ethereum mainnet, which lacks a boolean re...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
other
false
false
## High: Error-prone code duplication ### Description There is an extremely high level of code duplication in the contracts. Although it is not causing a problem in the current version of the code, it is highly likely that small revisions will create bugs. For example, there are six different implementations of tran...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: DoS attack exhausting account space and halting spot trading ### Description **Description:** The temporary spot client ID allocation system reserves space in both `client_infos_acc` and `client_infos2_acc` accounts when orders are created, but deallocation only occurs when specific cleanup functions are invo...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Collateral double-spend post liquidation is possible ### Description **Severity** **Impact:** High, as a borrower can double-spend his collateral **Likelihood:** High, as liquidations never subtract the collateral amount **Description** In `AssetManager::assetTransferOnLoanAction` in the `if (action == As...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
signature
true
false
## Low: Unused using Lib for statement ### Description There is a `using ECDSA for bytes32;` statement declared in the contract; however, it is not utilized by the contract for `bytes32`, as the library is explicitly called within the contract. ### Recommendation - Either remove this unnecessary statement for minimal...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Refinancing in the same pool requires it to have a higher balance than needed because of a flawed check ### Description Refinancing a loan into the same pool it is in requires the pool to have `the original loan amount +- the difference` because it doesn't check whether the pool already has the original 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
medium
rounding
true
false
## Medium: Early user can call issue() and then melt() to increase basketsNeeded to supply ratio to its maximum value and then melt() won’t work and contract features like issue() won’t work ### Description ## Lines of code https://github.com/reserve-protocol/protocol/blob/df7ecadc2bae74244ace5e8b39e94bc992903158/con...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
false
false
## Medium: # [M-04] voucherIndexes is not updated when member cancel the voucher ### Description When staker or borrower cancel the voucher, the `voucherIndexes` for the lastVoucher is not updated. ### Impact It leads to incorrect index for the last voucher, which points to another voucher with different staker. It 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
true
false
## Low: `Voter` rewards for dead gauges become stuck due to missing transfer ### Description In the `Voter` contract, the `_updateFor()` function is responsible for updating the rewards of a gauge based on its vote weight, which is recorded in the `claimable` mapping. The function checks if the gauge is **alive** befo...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: Missing revert message in `transfer` function (line 46) of UniMexToken.sol ### Description **Description** In contract UniMexToken.sol in function transfer at line 46 there's no revert message. **Recommendation** Add a revert message. **Re-audit comment** Unresolved
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing `Liquidation` event emission when `bufferSurplus > 0` ### Description In the `LiquidationManager` contract, the `liquidate()` function does not emit the `Liquidation` event when a `bufferSurplus` is > 0 as the function returns before the event is emitted if there is any surplus collateral. Recommenda...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Improved checks in the setPotData ### Description Within the `setPotData` function, various checks are performed when updating the data: - `nextData.dsr` to not be greater than `maxDSR`. - `nextData.rho` to not be greater than `block.timestamp`. - `nextData.dsr` to not be lower than `RAY`. These checks are *...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
cyfrin_structured
low
token
true
false
## Low: `isNewYToken` can be omitted in YToken contracts ### Description To support the accounting of underlying assets, a new parameter `isNewYToken` was introduced in `mintYToken`. This parameter is used in the [`dYTokenL1::mintYToken`](https://github.com/YieldFiLabs/contracts/blob/702a931df3adb2f6e48807203cdc7a9260...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect deployment parameters ### Description _Submitted by Picodes_ ### Impact The address of G-Uni tokens in the deployment scripts are not up to date. ### Proof of Concept For example for agEUR/USDC it is 0xedecb43233549c51cc3268b5de840239787ad56c and not 0x2bD9F7974Bc0E4Cb19B8813F8Be6034F3E772add...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `PrizePool.awardExternalERC721()` Erroneously Emits Events ### Description _Submitted by leastwood_. #### Impact The `awardExternalERC721()` function uses solidity's try and catch statement to ensure a single tokenId cannot deny function execution. If the try statement fails, an `ErrorAwardingExternalERC7...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 != 0 instead of > 0 for unsigned integer comparison ### Description **Client:** Fixed. **Cyfrin:** Verified in commit [b21d23e](https://github.com/HyperGood/woosh-contracts/commit/b21d23e661b0f25f0e757dc00ee90e4464730b1b).
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Function destruct in HappyTokenPool contract does not reset pool's Packed3 struct fields and also does not set pool's claimed variable to true. ### Description **Severity**: Medium **Status**: Acknowledged **Description**: This allows a user to be able to call the claim function even when the pool is d...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
access-control
false
false
## Low: Incorrect documentation of `registerControllerFactory()` ### Description [WildcatArchController Line 106](https://github.com/code-423n4/2023-10-wildcat/blob/main/src/WildcatArchController.sol#L106) ### Issue Description The documentation in the [GitBook](https://wildcat-protocol.gitbook.io/wildcat/technical-...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unbounded Error Message Length in Paymaster External Calls Creates Gas Unpredictability ### Description The `EntryPoint` contract handles error messages from paymaster calls without imposing size limits. This occurs in two critical locations where external calls to paymaster contracts are made: `_validatePayma...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: totalSupply may exceed LibBasketStorage.basketStorage().maxCap ### Description ## Handle Czar102 ## Vulnerability details ## Impact Total supply of the token may exceed the `maxCap` introduced. This can happen when a user wants to join the pool. The [check in `BasketFacet::joinPool(...)`](https://githu...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: IBC channel version negotiation bypass in IBC hooks middleware ### Description ### Finding description and impact The `OnChanOpenInit` function in `ibc_middleware.go` incorrectly returns the original version parameter instead of the negotiated `finalVersion` returned by the underlying app. The middleware...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 execution mode support in `DelegationMetaSwapAdapter` ### Description **Description:** The `executeFromExecutor` function in the `DelegationMetaSwapAdapter` supports multiple execution modes (batch/single) and execution types (default/try). However, in practice, the adapter's main function swapByDe...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Calculation for `owedAmount` will round down to zero ### Description **Impact:** High, as this will result in 0 claimable rewards for users when they should have been able to claim some **Likelihood:** High, as this will happen any time the user's share is smaller than the pool's cached global share, which 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
low
reentrancy
false
false
## Low: sendMessage Reentrancy on L2 Could Result in Unordered MessageSent Events ### Description The `sendMessage` function can be called on L2 to send a cross-chain message to L1. When doing so, `coinbaseFee` is collected from the value sent and transferred to the `block.coinbase` through a low-level [call](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
low
storage
true
false
## Low: `GelatoVRFConsumerBase` is not upgrade-safe ### Description **Description:** The `SpinGame` contract has been changed to be upgradeable. But, the contract inherits from `GelatoVRFConsumerBase`, which is not upgrade-safe as it lacks a reserved storage gap (`uint256[x] private __gap`) to prevent future storage 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
liquidation
false
false
## Low: RLP can be added as collateral token in `LPExternalRequestsManager` ### Description Neither the `LPExternalRequestsManager` contract's `constructor` nor its `addAllowedToken` method rejects the attempt to add `ISSUE_TOKEN_ADDRESS` (RLP) as collateral token for minting/burning the same RLP. Even though it requ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Incorrect Off-Chain Accounting of Tokens Swapped in `swapETH()` ### Description **Update** The client doesn't want to read the balance before and after the swap inside the method to optimize gas fees. They will do a backend check to track the amount of tokens swapped. **File(s) affected:**`ReachMainDistributi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
true
## High: Using spot price can cause a price manipulation attack ### Description In the V3TwapKimUtilities.sol contract, the method \_sqrtPriceX96FromPoolAndInterval retrieves the spot price from the pool's global state. This approach is vulnerable to price manipulation, as the spot price can be influenced by malicious...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
storage
true
false
## High: MISSING COMPARISON BETWEEN MSG VALUE AND AMOUNT LEADS TO DRAINING OF THE FUNDS ### Description A smart contract that is missing a **msg.value == amount** check may be vulnerable to various types of attacks or errors. This check is typically used to verify that the amount of Ether (or other value token) being ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Improper Upper Bound Definition on the Fee ### Description _Submitted by defsec, also found by gzeon, nathaniel, WatchPug, cmichel, and pauliax_ #### Impact In the `adjustGlobalParams` function on line 1603 of "", `adjustGlobalParams` function does not have any upper or lower bounds. Values that are 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
low
cross-chain
false
false
## Low: `USDCBridgeV2` can't bridge to non-EVM chains even though Wormhole and Circle CCTP support this ### Description **Description:** Both Wormhole and Circle CCTP support bridging between EVM and non-EVM chains, however `USCBridgeV2` prevents bridging to non-EVM chains since: 1) `_sendUSDCWithPayloadToEvm` always...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing Chain Deactivation Functionality in the `OracleTrigger` contract ### Description This issue has been identified within the `OracleTrigger` contract. While the contract provides functions to add and update chains (`addChain` and `updateChain`), there is no function to deactivate or remove a chain config...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing input validation in FeeAuction.buy allows payment without asset transfer ### Description The `FeeAuction.buy` function lacks validation for the `_assets` parameter, allowing buyers to pay the auction price without receiving any assets when an empty array or zero balance token addresses are provided....
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
false
## High: Call selector mismatch will cause unstaking to revert ### Description In the Chainlink staking the `StakingPoolBase::unstake` call looks like this: ```solidity function unstake(uint256 amount) external { ``` However in `Vault::withdraw` it is called like this: ```solidity stakeController.unstake(_am...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect Calculation For Exponential Curves ### Description ## Infinity Swap Audit 04 | Vulnerabilities The inverse operation of \( V \times (1 + \delta) \) is \( V / (1 + \delta) \). The Exponential curves incorrectly implement the price decrement step as \( V \times (1 - \delta) \). Since \( V \times (1 +...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: REGISTRY CANNOT BE RE-ENABLED ### Description The `ContractRegistry` contract is responsible for storing the addresses of the token contracts that are `Saferoot` verified. If this contract is disabled in the `Saferoot` contract, it can no longer be re-enabled. As a result, users could no longer use it to verif...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
cyfrin_structured
low
token
true
false
## Low: `PledgeManager::pricePerToken` can only support a maximum price of `$4294` ### Description `PledgeManager::pricePerToken` uses `uint32` and indicates in the comment it represents USD price using 6 decimals of precision: ```solidity uint32 public pricePerToken; //in usd (6 decimals) ``` ### Impact Since 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...
solodit_api
medium
reentrancy
true
false
<https://github.com/code-423n4/2022-07-golom/blob/e5efa8f9d6dda92a90b8b2c4902320acf0c26816/contracts/vote-escrow/VoteEscrowCore.sol#L893-L908><br> <https://github.com/code-423n4/2022-07-golom/blob/e5efa8f9d6dda92a90b8b2c4902320acf0c26816/contracts/vote-escrow/VoteEscrowCore.sol#L1004-L1030><br> <https://github.com/c...
Code4rena
5
Golom
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
signature
false
false
## Medium: Blind auction bid amount can 't resist brute-force attack ### Description When bidders enter the blind auction, they make a blind bid and then reveal the bid amount. When making a blind bid, the protocol saves a hash for the bidder. When revealing the bid amount, it requires that the `bidAmount` provided by...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
dos
true
false
## Medium: Incorrect Gas Computation in Modexp ### Description The `Modexp` precompiled contract (PrecompiledContracts.java#L233-L257) is supposed to cost a minimum of 400 gas. In reality, it only costs four times the number of bytes of its arguments. ```java @Override public long getGasForData(byte[] data) { retur...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Initial Ownership Claimable by Anyone Both Directly and via a Proxy ### Description **Update** Marked as "Acknowledged" by the client. The client provided the following explanation: Since the contracts are already deployed and initialized we didn’t create a new contract **File(s) affected:**`ERC721/L1NFTBridg...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Depositing to the GMX POOl will return sub-optimal return if the Pool is imbalanced ### Description Whenever A user deposits tokens to vault, vault create a leverage position depending[delta or delta neutral] in the GMX POOl. performing a proportional deposit is not optimal in every case and depositng token...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inaccurate Index Searching ### Description ## ERC1155TokensByAccountUpgradeable Overview In `ERC1155TokensByAccountUpgradeable`, the `_tokensByAccount` mapping stores the token IDs and quantities associated with each address. The storage mechanism uses a dynamic array to store token IDs and quantities by push...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Hard-coded order version ### Description In the [`Exchange` contract](https://github.com/mcdexio/mai-protocol-v2/blob/4b198083ec4ae2d6851e101fc44ea333eaa3cd92/contracts/exchange/Exchange.sol), the constant [SUPPORTED\_ORDER\_VERSION](https://github.com/mcdexio/mai-protocol-v2/blob/4b198083ec4ae2d6851e101fc44ea...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Deprecated ETH Transfer Method May Prevent Validators From Being Registered ### Description **Severity**: Medium **Status**: Resolved **Description** The `ynETH.withdrawETH()` method is used by the `StakingNodesManager` contract in order to withdraw Ether and register a new validator which uses `payable(...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
false
false
Source: https://github.com/sherlock-audit/2022-11-isomorph-judging/issues/161 ## Found by 0x52 ## Summary The only way for a user to reduce their debt is to call closeLoan. If the amount repaid does not bring the user back above minOpeningMargin then the transaction will revert. This is problematic for users that ...
Sherlock
4
Isomorph
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Execution flow in _onlyWhiteListed modifier leaves modified function unexecuted ### Description **Severity**: High **Status**: Resolved **Description** The MasterPenPIe._onlyWhiteListed() modifier checks whether the sender is part of the AllocationManagers, PoolManagers, or is the contract owner. If any of...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: [04] CALLING `ExtraordinaryFunding.proposeExtraordinary` AND `StandardFunding.proposeStandard` FUNCTIONS CAN REVERT AND WASTE GAS ### Description Calling the following `ExtraordinaryFunding.proposeExtraordinary` and `StandardFunding.proposeStandard` functions will call the `Funding._validateCallDatas` function...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Updating set of active adapters does not always clear votes ### Description Centrifuge governance has the ability to configure new sets of adapters, where quorum is always the length of this new set. When new adapters are enabled, the old ones are replaced but as long as the number of adapters does not decreas...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 initial account data distribution ### Description Report type: Blockchain/DLT Target: https://github.com/shardeum/shardus-core/tree/dev Impacts: * Direct loss of funds ## Description ## Brief/Intro Sending wrong initial account data information at the beginning of transaction processing 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
access-control
true
false
## Low: supplyController address changes result in orphaned balances ### Description The `setSupplyController` function assigns a new supply controller without transferring the balance of the previous supply controller. There are currently no functions implemented to transfer PAX to the new supply controller without 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
dos
true
false
## Low: [11] VULNERABILITIES IN VERSION 4.7.3 OF `@openzeppelin/contracts` AND `@openzeppelin/contracts-upgradeable` ### Description As shown in the following code in `package.json`, version 4.7.3 of `@openzeppelin/contracts` and `@openzeppelin/contracts-upgradeable` are used. As described in https://security.snyk.io/...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Signed Message May Be Replayed Across Chains ### Description **Update** Marked as "Fixed" by the client. Addressed in: `afb7e065f8d1d119c1415810ccddf31ba4fa5bcf`. `block.chainid` is now included in the signatures. **File(s) affected:**`CyanApeCoinPlan.sol`, `CyanPeerPlan.sol`, `CyanPrivateSales.sol`, `Paymen...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `_releaseIntervalSecs` is not validated ### Description _Submitted by sorrynotsorry_ VTVLVesting.sol has `_createClaimUnchecked` function to create the claims internally while validating parameters with the users' allocations. However, `_releaseIntervalSecs` is not validated comparing to user's `_linearVe...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Blast.claimYield() should revert when claiming more than the available amount ### Description In `Blast.sol`, `claimYield()` doesn't check if the amount exceeds the contract's maximum claimable amount. The precompile at `YIELD_CONTRACT` handles this by transferring the claimable amount when the amount is large...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
NFT
true
false
## Severity: High Risk ## Context - SeaDrop.sol#L259-L266 - SeaDrop.sol#L318-L319 ## Description An allowed signer (SeaDrop.sol#L318-L319) can sign mints that have either: - `mintParams.feeBps` equal to 0. - A custom `feeRecipient` with `mintParams.restrictFeeRecipients` equal to false to circumvent the check at ...
Spearbit
5
SeaDrop
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: DoS by front-runnable externall call ### Description Report type: Smart Contract Target: https://explorer.zksync.io/address/0x4d9429246EA989C9CeE203B43F6d1C7D83e3B8F8 Impacts: - Griefing (e.g. no profit motive for an attacker, but damage to the users or the protocol) ## Description ## Brief/Intro EIP-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: Remove not needed custom error ### Description The `MoreThanZero` custom error in `ArbitrumSwaps` is badly named and also duplicates the inherited from `StargateArbitrum` custom error `MustBeGt0` - prefer using the latter and remove the former.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: | Weak Tokenomics Protection ### Description **Description** The `MAX_ASSIGNER_CREDITS` and `MAX_CREDITS_ASSIGNED` offer little to no protection for the protocol tokenomics. The `MAX_ASSIGNER_CREDITS` can be easily circumvented by simply calling the `addAssignerCredits` multiple times. The `MAX_CREDITS_ASS...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Typos in code comments/names. ### Description **Description** Typos may confuse the user. The 'royalities' field has bad naming. $programs/nft\_factory/src/lib.rs$ Line. 28. **Recommendation** 'royalities' should be replaced with 'royalties'. **Re-audit comment** Resolved
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Lack of Test Coverage ### Description Full test coverage is an essential process in ensuring the codebase works as intended (outlined in NEAR’s design documentation). Insufficient code coverage may lead to the arisal of unexpected issues due to changes in the underlying smart contract implementation, leading 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
overflow
true
false
## Low: fulfillAdvancedOrder may revert and prevent order fulfillment ### Description The functions `_getFraction` and `_locateCurrentAmount` are used in the execution of advanced orders to facilitate partial orders and the use of floating prices. The use of fractions or floating prices may cause arithmetic overflows 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
access-control
true
false
## High: CollateralizationOracle - Fei in excluded deposits contributes to userCirculatingFei ### Description `CollateralizationOracle.pcvStats` iterates over all deposits, queries the resistant balance and FEI for each deposit, and accumulates the total value of the resistant balances and the total resistant FEI. Any...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
overflow
true
false
## Low: INCREMENT/DECREMENT FOR LOOP VARIABLE IN AN UNCHECKED BLOCK ### Description i++ involves checked arithmetic, which is not required. This is because the value of i is always strictly less than `length for (uint256 index = 0; index for (uint256 index = 0; index for (uint256 i = 0; i for (uint256 i = 0; i fo...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
signature
false
false
## Low: `borrow` lacks `has_one = user` constraint on `user_borrow_state` ### Description _Resolved_ The `Borrow` accounts struct (`programs/solver-fund-pool-anchor/src/instructions/borrow.rs:109-128`) derives the user-specific state PDA with seeds `[USER_BORROW_SEED, user.key().as_ref()]`, but it never enforces 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
token
true
false
## Medium: Dysfunctional `CToken._acceptAdmin` due to lack of function to assign `pendingAdmin` ### Description _Submitted by rayn, also found by 0x1f8b, cmichel, and Sleepy_ [CToken.sol#L1379](https://github.com/code-423n4/2022-04-dualityfocus/blob/main/contracts/compound_rari_fork/CToken.sol#L1379) The implementat...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: String alternative ### Description **Description** Consider using an enum instead of an array of strings for elements and avatar. Using string is always more vulnerable to management errors and takes up more memory. Potential replacement variables: File: AccessToken Contract.so 64: string private_oddAvatar...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
access-control
false
false
## High: Missing Incident Response Plan ### Description Thala lacks documented incident response procedures and playbooks. The lack of formal procedures increases the risk of delayed or ineffective response during time-critical situations, especially for incidents requiring different handling than past experiences. W...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
overflow
true
false
## Low: Possible Abortion Due to Integer Underflow ### Description ## Vulnerability in calculate_fungible_staked_sui_withdraw_amount The vulnerability in `calculate_fungible_staked_sui_withdraw_amount` within `staking_pool` arises from the subtraction operation used to compute `total_rewards`. This calculation determ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
oracle
true
false
## Low: Lack of Fallback Oracle ### Description In `TransferPoolFeeCalculatorV2.sol`, the contract relies on the predefined oracle to detect a depeg event. However, on oracle failure, the contract may wrongly assume it happened. There is no secondary source of truth to verify the result. This may cause unavailability ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Redundant state management and inconsistency risk in `MarketplaceAdmin` ### Description _Resolved_ The `MarketplaceAdmin` contract manages the `marketplaceAddress` and maintains a separate set of parameters, including variables like `acceptedCurrency`, etc. This duplication of state management is not a bes...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incentives May Become Locked in the System After Switching Incentive Tokens ### Description The `setIncentive` function allows the owner to configure and update protocol incentives for a specific pool. It offers two scenarios: - If the previous incentive round has ended, the entire configuration can be upda...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The same signature can be used in different `distribution` implementation causing that the caller who owns the signature, can distribute on unauthorized implementations ### Description The same signature can be used in different `distribute` implementations causing that the caller who owns the signature, to d...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
cross-chain
true
false
## Medium: Stateful precompiles panic on empty calldata, which can be exploited to prevent finalizing outbound CCTXs ### Description The precompile caller can pass invalid (empty) calldata, which results in a panic in the precompile. This immediately exits the EVM and propagates up to the Cosmos SDK baseapp. The Cosmo...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: If AMO becomes primary depositor of Silo, user can force withdrawals to get inflated interest rates ### Description This issue is the inverse of [H-01], where the SiloAMO can be forced to deposit additional funds, decreasing rates for borrowers until 1 day later when `update()` can be called again. In this 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
initialization
true
false
## Low: Validate Rules Missing Check ### Description ## Validate Rules Utility In the `validate_rules` utility, the program allows `rules[i].num_assets` to be greater than 1 even if `rules[i].filter_by` is set as `FIXED_ASSET`. It can be seen in the code snippet below, that the `generate_weights` function adds uninit...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Comprehensive Error Handling Review in Regulation Module Keeper ### Description A thorough review of the regulation module's Keeper implementation reveals several instances of inadequate or missing error handling. These issues can lead to silent failures, unexpected behavior, or potential security vulnerabili...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Reward Has Two Meanings ### Description ## Severity: Low Risk ## Context - `Divider.sol#L157-180` - `Divider.sol#L334-414` ## Situation Reward has 2 meanings: 1. Sum of all the fees in `Divider.sol` 2. COMP tokens in adapter This might be confusing. Consider the following code snippet: ## Recommendation 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: Members of withdrawal queue do not receive HIP3 fee ### Description When fees are distributed using the `stakeFees()` function, the `_exGhostLST` supply is increased based on the stake amount, while new `exLST` tokens are not minted. As a result, the `exLST : _exGhostLST` rate decreases, and the Hype share 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...
cyfrin_structured
low
upgrade
true
false
## Low: Cache storage to prevent identical storage reads ### Description Reading from storage is expensive; cache storage to prevent identical storage reads: * `contracts/wormhole/WormholeCCTPUpgradeable.sol` ```solidity // cache `USDC` in `redeemUSDC` 65: uint256 beforeBalance = IERC20(USDC).balanceOf(address(...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `<array>.length` should not be looked up in every loop of a `for`-loop ### Description The overheads outlined below are *PER LOOP*, excluding the first loop * storage arrays incur a Gwarmaccess (**100 gas**) * memory arrays use `MLOAD` (**3 gas**) * calldata arrays use `CALLDATALOAD` (**3 gas**) Caching 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
dos
true
false
## Medium: Potential denial of service due to excessive gRPC message-length limit ### Description The `mobilecoind-json` server sets a ~2 GB message-length limit for receiving and sending gRPC messages (figure 11.1). Setting such a big limit may allow an attacker to exhaust the server's memory by sending big requests ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
initialization
false
false
## Low: Setting the root and child tunnel addresses can be front-run ### Description The external [`setFxRootTunnel`](https://github.com/0xPolygon/fx-portal/blob/main/contracts/tunnel/FxBaseChildTunnel.sol#L37) and [`setFxChildTunnel`](https://github.com/0xPolygon/fx-portal/blob/main/contracts/tunnel/FxBaseRootTunnel....
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
cross-chain
true
false
## Gas: Use `assembly` to write address storage values ### Description ### Proof Of Concept https://github.com/code-423n4/2023-08-pooltogether/tree/main/pt-v5-cgda-liquidator/src/LiquidationPair.sol#L130 https://github.com/code-423n4/2023-08-pooltogether/tree/main/pt-v5-cgda-liquidator/src/LiquidationPair.sol#L131...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: MISSING PARAMETERS VALIDATION ### Description None Code Location ------------- ### Recommendation **SOLVED**: The code is now checking if the parameters are not zero.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Fixed gas low-level operations pose the risk of transaction failure ### Description The use of `.call()` with a manually specified gas limit in functions: `DepositETH.executeWithdrawal()`, `DepositUSD.executeWithdrawal()`, and `StrategyManager.addStrategy()` may cause failures during execution. This design pos...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Malicious borrower can evade full liquidation in `CDPVault::liquidatePosition` by repaying small amounts of debt ### Description ### Impact In the `CDPVault::liquidatePosition` function, a liquidator can repay the total debt of a position to liquidate it, this can be achieved by calling the `CDPVault::virtua...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Risks associated with oracle outages ### Description Under extreme market conditions, the Chainlink oracle may cease to work as expected, causing unexpected behavior in the Increment Protocol. Such oracle issues have occurred in the past. For example, during the LUNA market crash, the Venus protocol was exploi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
oracle
true
false
## Low: Contracts should be refactored to extend a base contract with the common functionality ### Description $ fgrep -xf NFTPair.sol NFTPairWithOracle.sol | wc -l 686 $ wc -l NFTPair.sol NFTPairWithOracle.sol 732 NFTPair.sol 754 NFTPairWithOracle.sol 686 / 732 = 93.7% 686 / 754 = 91.0% About 92% of th...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: IsDeposit() restriction can be bypassed ### Description The `isDeposit()` view function has a restriction that causes it to revert when called by any contract other than `CrossL2Inbox`. However, this restriction can be circumvented using the following approach: 1. Create a wrapper contract that calls `validat...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 redundant check for basisPoints ### Description ## Handle 0xRajeev ## Vulnerability details ## Impact The threshold check for basisPoints while a required part of input validation is an unnecessary redundant check because calcPart() does a similar upper bound check and the lower bound check on...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Position can be opened even when the particle position manger does not hold the Uniswap V3 Position NFT ### Description As long as user approve the PositionManager for as a operator of their NFT position. Even the particle position manager does not hold the Uniswap V3 NFT. Anyone can open the position on ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: enforceExodusMode() naming ### Description `AppStorage.sol` functions have the rule for naming of `enforce`+`{Rule}`. Correct examples: - enforceIsOwner() - enforceIsGovernor() Wrong example: - enforceExodusMode() It is wrong because in fact the code checks that the contract is not in the exodusMode: 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
gas
token
true
false
## Gas: Optimize external calls with Assembly for memory efficiency ### Description Using interfaces to make external contract calls in Solidity is convenient but can be inefficient in terms of memory utilization. Each such call involves creating a new memory location to store the data being passed, thus incurring 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...
skyward_49k
low
other
false
false
## Low: Outdated Cargo dependency ### Description ## Audit Report We performed our audit against commit `176b410` of Aob and commit `748aaf9` of Dex. However, this Dex commit uses an old version of Aob in `Cargo.lock`, namely commit `422b943`. A number of bugs, fixed in later Aob commits, remained in Dex nonetheles...
0