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
initialization
false
false
## Low: viewCreatorFeeInfo 's reversion depends on order of successful calls to collection.royaltyInfo ### Description The outcome of the call to `viewCreatorFeeInfo` for both `CreatorFeeManagerWithRebates` and `CreatorFeeManagerWithRoyalties` is dependent on the order of `itemIds`. Assume we have 2 `itemIds` with t...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
other
true
false
## High: Wrong calculation of boost amount in Voter.poke ### Description Report type: Smart Contract Target: https://github.com/alchemix-finance/alchemix-v2-dao/blob/main/src/Voter.sol Impacts: - Contract fails to deliver promised returns, but doesn't lose value ## Description ## Brief/Intro The Voter.poke functio...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing `minAmountCollateral` in `liquidate()` ### Description In the `LiquidationManager` contract, the `liquidate()` function lacks a `minAmountCollateral` parameter, which exposes the liquidator to potential losses if the price of the collateral is manipulated or spikes drastically, where the liquidator may...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect Fee Calculation Due to Delayed Initialization in Vault Contract ### Description The Vault contract calculates fees during the `init()` function call instead of at contract creation. This delay allows for a discrepancy between the price at contract creation and the price at initialization. Releva...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: `AccountableOpenTerm` loan interest cannot be repaid once principal hits zero ### Description In `AccountableOpenTerm`, interest accrues virtually via `_scaleFactor`, but there is no mechanism to pay/realize that interest. The only funding paths are `borrow()`, `supply()`, and `repay()`. Both `supply()` and `...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Commented code ### Description **Description** PutPhyVaultV1.sol, line 302 SynMiningVaultV1.sol, line 28 Pre-production contracts should not contain unfinished logic or commented code. **Recommendation**: Remove commented 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
medium
cross-chain
true
false
## Medium: Executor Can Deliver Cross-Chain Messages with Unvalidated Native Value ### Description The `AbstractBridge` contract contains a vulnerability in its `_lzReceive()` function, where it fails to validate the `msg.value` parameter against the intended native value that should accompany cross-chain message exec...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [04] There are no functions for adjusting `GameItemAttributes` ### Description In the event of misconfigured item, promotions/discounts, balance adjustments a new item with the same name needs to be created. Adding function to update parameter/s is going to make resolution of such situations straight-forward.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
reentrancy
false
false
## Medium: Usage of deprecated transfer to send ETH ### Description _Submitted by peritoflores, also found by JC and StyxRave_ ### Impact Usage of deprecated transfer Swap can revert. ### Proof of Concept The original `transfer` used to send eth uses a fixed stipend 2300 gas. This was used to prevent reentrancy....
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Avoid code duplication ### Description **Description:** The functions `mint`and `mintTo`have a similar name but use dierent permission logics. This might cause confusion and is not clearly documented in the code. The intent is not clear here. **Recommendations:** If you want to allow either owner of addre...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: XVS Vault Users Receive Fewer Rewards if Multiple Pools Have the Same Pool Token ### Description **Update** Marked as "Mitigated" by the client. Addressed in: `4404d27c57d40bea97320a86437ba662e26b85ec`. The client provided the following explanation: > We prohibited pools with the same staked tokens **File(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
true
false
## Medium: Wrong accounting of fee in perp engine ### Description **Description:** In the perp fee calculation logic within [perp_engine.rs](https://github.com/deriverse/protocol-v1/blob/30b06d2da69e956c000120cdc15907b5f33088d7/src/program/perp/perp_engine.rs#L1202), when a user has partial fee prepayment that doesn'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: `usdcfees` doesn't follow `camelCase` ### Description [`ousgInstantManager::_mint`](https://github.com/code-423n4/2024-03-ondo-finance/blob/main/contracts/ousg/ousgInstantManager.sol#L303): Here `usdcfees` isn't camel cased. In [`_redeem`](https://github.com/code-423n4/2024-03-ondo-finance/blob/main/contract...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 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...
skyward_49k
medium
dos
true
false
## Medium: DOS WITH BLOCK GAS LIMIT ### Description In the contract `TreasuryVester` the `distribute()` function is used to distribute the tokens to recipients based on their allocation: `TreasuryVester.sol` ### Recommendation **SOLVED**: `Pangolin team` solved the issue in the commit id [1e2f374c6728b998a22045a673b...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: In `_transfer()` the `swapSellFees` and `swapBuyFees` Are Swapped ### Description Whenever users buy or sell tokens via a pool recorded in `isAmmPair` they pay a fee. In cases where the `from` address is the pool, this means that the user is buying the token for the exchange of another token. Example: the use...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
true
## Medium: LibProposing:proposeBlock allows blocks with a zero parentMetaHash to be proposed after the genesis block and avoid parent block verification ### Description The proposeBlock at the LibProposing library has the following check to ensure the proposed block has the correct parentMetaHash set: However, there...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: Code Used for Testing Purposes Should Be Removed Before Deployment ✓ Fixed ### Description Variables and logic have been added to the code whose only purpose is to make it easier to test. This might cause unexpected behavior if deployed in production. For instance, `onlyTest` and `setTimeExtra` should be remov...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: SPDX license not specified ### Description **Severity**: Informational **Status**: Resolved **Description** The ommf.sol contract doesn't contain the SPDX license header **Recommendation**: add the SPDX license to ommf.sol
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
token
false
false
## Low: Centralization Risk ### Description **Severity**: Informational **Status**: Acknowledged **Description** In the contract(s) GenericERC20Token.sol, EsEmber.sol, EsEMBRRewardsDistributor.sol, and EmberVault.sol, the owners of the contracts have excessive authority over the functionality of the smart contracts...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
other
true
false
## Gas: node.redemptions.index could be replaced to save gas ### Description The value for `node.redemptions.index` is already stored in the `redemptionIndex` variable. We can directly use the `redemptionIndex` variable to save some gas. ### Recommendation Use `redemptionIndex` instead of `node.redemptions.index`.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: initialize – Committee members array can contain duplicates ✓ Fixed ### Description The initial committee members are given as array argument to the pool’s `initialize` function. When the array is processed, there is no check for duplicates, and duplicates may also end up in the storage array `committeeArra...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
rounding
false
false
## Medium: Funding fee will be zero because of precision loss ### Description funding fee in some cases will be zero because of precision loss ### Impact Funding fee always is lower than what it really should be ### Recommendation 1-scale up long_utilzation and short_utilzation 2-set min value for long_utilzation an...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
initialization
false
false
## Low: Events missing ### Description ## Security Issue Report **Severity:** Low Risk **Context:** (No context files were provided by the reviewer) ## Description/Recommendation - **MiscModule.sol#L31:** Emitting `NumTicksToTryAtOnceUpdated` is missing in the `MiscModule.initialize`. - **BaseAMM.sol#L84:** Emit...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Hooks Do Not Support Native Tokens ### Description Uniswap V4 pools support native tokens, such as ETH, without needing to wrap them. The [`CurrencySettler` library](https://github.com/OpenZeppelin/uniswap-hooks/blob/f051c147dbf296b2b854de92970905a880cd1d51/src/lib/CurrencySettler.sol#L19) also supports nativ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Premature Fund Claim ### Description ## Vulnerability in `keeper::calculateClaimableFunds` The vulnerability in `keeper::calculateClaimableFunds` arises from the incorrect update of the `NextClaimFrom` field, which tracks the time from which the next claim may be made. This miscalculation allows users to pre...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Curve points should be guaranteed to be monotonic increasing ### Description Lack of checks to ensure the points in the curve are monotonic increasing, which can result in a malfunction of `deposit()` / `extendLock()` due to underflow when the curve is not set properly. ### Impact `deposit()` / `extendLock...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
true
## Low: Incorrect sload in LibBytes ### Description The function `storeUint128` in `LibBytes` intends to pack uint128 `reserves` starting at the given slot but will actually overwrite the final slot if [storing an odd number of reserves](https://github.com/BeanstalkFarms/Wells/blob/7c498215f843620cb24ec5bbf978c6495f6e...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: All vesting grants are revocable ### Description It should be noted that all vesting grants are [revocable](https://github.com/kikinteractive/kin-token/blob/3ed3a383b9304274ec22f41769716cadb854727f/contracts/KinTokenSale.sol#L285-L286) (indicated by the last parameter, `true`), including the large grant given...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
solodit_api
medium
Wrong Math
false
false
## Lines of code https://github.com/code-423n4/2022-11-stakehouse/blob/4b6828e9c807f2f7c569e6d721ca1289f7cf7112/contracts/liquid-staking/GiantSavETHVaultPool.sol#L127 https://github.com/code-423n4/2022-11-stakehouse/blob/4b6828e9c807f2f7c569e6d721ca1289f7cf7112/contracts/liquid-staking/GiantMevAndFeesPool.sol#L116 htt...
Code4rena
4
Stakehouse Protocol
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
cross-chain
true
false
## Low: Ambiguous Offchain Counter Design ### Description ## Cross Chain Bridge Solidity Policy Review ## Code Snippet ## Safety Considerations The `counterEnabled` feature is only safe if: 1. OHM is only minted outside of `CrossChainBridge` on exactly one chain, presumably mainnet. 2. The counter is only enabled ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Refactor `borrow` function to avoid 1 sload ### Description Since `transformedTokenId == tokenId`, check that both should be equal. We can use `tokenId` instead of `transformedTokenId` and check `tokenId` for `0` and also, we don't have check the second condition we can remove `transformedTokenId == tokenId` 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
initialization
false
false
## Low: inefficiency due to `swapPathCreator` variable type in ApeMexMargin ### Description **Description** In contract ApeMexMargin, at line 98, variable swapPathCreator is stored in contract state and is of type ISwapPathCreator, this variable is used around in the contract logic code to make external calls to a co...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
signature
true
false
## Low: The `_computeDomainSeparator` function incorrectly encodes `bytes32` variable as `string` type ### Description The `EIP712_DOMAIN`'s `name` and `version` parameters are `string` type, and `EIP_712_NAME` and `EIP712_REVISION` are `bytes32` type. The [_computeDomainSeparator](https://github.com/code-423n4/2024...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
false
Source: https://github.com/sherlock-audit/2023-01-ajna-judging/issues/139 ## Found by hyh ## Summary `scaledQuoteTokenAmount` isn't `C * p`, but `C * p * (1 - BFP)` for quote token amount constraint case of _calculateTakeFlowsAndBondChange(). ## Vulnerability Detail First case of the _calculateTakeFlowsAndBondCh...
Sherlock
4
Ajna
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Weak post-deployment verifications in governance deployment script ### Description The `DeployGovernance.s.sol` script is intended to deploy and configure the TimeLock and BerachainGovernance contracts. Although the script does include some basic logging operations and one verification (see `DeployGovernance.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
access-control
true
false
## Medium: Vault creator can't change feeRecipient after deployment ### Description The vault's `feeRecipient` can be updated through the `setFeeRecipient()` function. Only the owner of the contract (VaultController) can call it. But, the VaultController contract doesn't implement a function to call `setFeeRecipient()...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unused _setRewardsDistributor method and redundant rewardsDistributor ### Description The `_setRewardsDistributor()` method is defined but never used within the MultiRewards contract. Additionally, `rewardsDistributor` is used to manage ACL controls for `setRewardsDuration` and `notifyRewardAmount` functions, ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: After a liquidator liquidates someone else’s position, it could cause a Denial of Service (DoS) when their own position also needs to be liquidated. ### Description After a liquidator liquidates someone else’s position, it could cause a Denial of Service (DoS) when their own position also needs to be 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
high
dos
false
false
## High: Donations to MarketMaker will completely freeze all buy/sell capability of market ### Description **Details** [MarketMaker.sol#L672-L679](https://github.com/SportsFI-UBet/ubet-contracts-v1/blob/64157824f67d6000588ae4235a49ccd24dede5c3/contracts/markets/MarketMaker.sol#L672-L679) function getTargetBalance(...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `vcon` address change not persistent across protocol components ### Description _Submitted by rayn_ [Core.sol#L27](https://github.com/code-423n4/2022-03-volt/blob/main/contracts/core/Core.sol#L27) [CoreRef.sol#L22](https://github.com/code-423n4/2022-03-volt/blob/main/contracts/refs/CoreRef.sol#L22) [CoreRe...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Optimize gas usage when checking max length of arrays ✓ Fixed ### Description There are a few cases where some arrays have to be limited to a number of items. And the max size is enforced by removing the last item if the array reached max size + 1. **code/contracts/LiquidityMining.sol:L386-L388** ``` if ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Withdrawn listing prevents seller from withdrawing submitted o�fers ### Description According to GitHub issue 930 and related to the earlier implementations of the `withdrawListing` function, when withdrawing a listing, the listing should be deleted from the array of listings, similar to how offers are deleted...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 transactions can be replayed when the chain undergoes a hard fork ### Description During a hard fork, if `InboundQueued` has pending transactions, these can be replayed on another chain. The root cause is that the `NttManager.completeInboundQueuedTransfer` function lacks `checkFork(evmChainId)` ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Duplicate storage variable in ParticleInfoReader ### Description The reference to the ParticlePositionManager is duplicated in the storage space of ParticleInfoReader. https://github.com/code-423n4/2023-12-particle/blob/a3af40839b24aa13f5764d4f84933dbfa8bc8134/contracts/protocol/ParticleInfoReader.sol#L24-L26...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
Don't update state
true
false
Source: https://github.com/sherlock-audit/2023-01-uxd-judging/issues/338 ## Found by berndartmueller ## Summary If some UXD tokens have been minted via Perp quote minting (i.e. `USDC` - due to negative PnL), rather than asset minting (i.e. `WETH`), redeeming all UXD tokens is not possible anymore due to not accoun...
Sherlock
4
UXD Protocol
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: `arrayIndex` value is not deleted when we remove cpd ### Description https://github.com/code-423n4/2023-10-badger/blob/main/packages/contracts/contracts/CdpManagerStorage.sol#L269-L274 https://github.com/code-423n4/2023-10-badger/blob/main/packages/contracts/contracts/CdpManagerStorage.sol#L471 When we remov...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Pool updated twice and extra operations performed in PerpetualTokensFarmSDK `migrateUserStakes`. ### Description **Description** Perpetual Tokens FarmSDK.sol, migrateUserStakes() The pool is updated directly in the function and through the call of _payoutRewardsAndUpdateState() (with the_amount $=0$ parameter...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of prioritization of oracle messages ### Description Oracle messages are not prioritized over other transactions for inclusion in a block. If the network is highly congested, the messages may not be included in a block. Although the Umee system could increase the fee charged for including an oracle mes...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Modifier exists, but not used when needed ### Description In the RToken contract, a lot of private calls are made to `requireNotPausedOrFrozen()` checking if it's paused or frozen. While there is already modifier used for this purpose in the contract. function without the modifier: function with the modifi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Updates to buckets ' share of the distribution are applied retroactively ### Description `setBucketsDistribution()` sets new values for the on-chain and off-chain buckets' percentage of USUAL token rewards. However, these values are applied retroactively to any pending distribution durations. This might not po...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
access-control
false
false
## Medium: When _lpToken is jpeg, reward calculation is incorrect ### Description _Submitted by cccz, also found by minhquanym_ In the LPFarming contract, a new staking pool can be added using the add() function. The staking token for the new pool is defined using the \_lpToken variable. However, there is no addition...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
logic-error
false
false
## Low: "Weight" and `poolWeight` serves different meanings throughout the code/documentation ### Description The concept weight/variable `poolWeight` is used in multiple places throughout the contract, serving three distinct purposes, which may lead to confusion: 1. In [`PredictionMarketV3_4::addLiquidity`](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
other
false
false
## Medium: `UNISWAP_FEE` is hardcoded which will lead to significant losses compared to optimal routing ### Description _Submitted by Picodes, also found by hickuphh3_ In [`YieldManager`](https://github.com/code-423n4/2022-05-sturdy/blob/78f51a7a74ebe8adfd055bdbaedfddc05632566f/smart-contracts/YieldManager.sol#L48), ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Vault Share Inflation Risk ### Description ## Vulnerability Overview The vulnerability concerns the vault’s mechanism, particularly the updating of balance and share minting. By sending tokens to the vault and invoking the `UpdateVaultBalance`, a user may manipulate the effective share value associated with ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Additional check is required for the constructor of QUAD.sol ### Description **Description** There is no verification for array length. **Recommendation**: Add check for arrays length: require( wallets.length == amounts.length, "QUAD: wallets and amounts mismatch" );
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Soft restriction bypass via token transfers ### Description _Acknowledged_ In the `sdeusd.move` function `add_to_blacklist()` function soft-restricted users are only blocked from direct staking but can receive sdeUSD tokens via transfers, bypassing the restriction entirely. lets check the **vulnerable 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
rounding
true
false
## Low: Divisions in getBuyInfo() and getSellInfo() may be rounded down to 0 ### Description In extreme cases (e.g., tokens with a few decimals, see this example), divisions in `getBuyInfo()` and `getSellInfo()` may be rounded down to 0. This means `inputValueWithoutFee` and/or `outputValueWithoutFee` may be 0. ```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
low
dos
true
false
## Low: Invalid network registration in Delegation.registerNetwork can cause DoS ### Description The Delegation contract allows adding networks to agents through the `registerNetwork` function, but lacks validation for network addresses and provides no mechanism to remove invalid networks once added. If an invalid add...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
solodit_api
high
Approve
true
false
Source: https://github.com/sherlock-audit/2022-10-illuminate-judging/issues/117 ## Found by IllIllI, neumo, Ruhum, 0x52 ## Summary Sense PTs can never be redeemed ## Vulnerability Detail Most of the protocols that require the user of the `Converter` contract have code that approves the `Converter` for that prot...
Sherlock
4
Illuminate
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `SolidlyV3Pool::_mint` and `_swap` don't verify tokens were actually received by the pool ### Description **Description:** Some versions of [`SolidlyV3Pool::_mint`](https://github.com/SolidlyV3/v3-core/blob/main/contracts/SolidlyV3Pool.sol#L288-L291) & [`_swap`](https://github.com/SolidlyV3/v3-core/blob/callba...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The execution opcode of an action can be changed from call todelegate_call after approval ### Description In Llama, an action only defines the target address and the function which should be called. An action doesn't implicitly define if the opcode should be a `call` or a `delegate_call`. This only depends ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Whitelisted Tokens Cannot Be Removed ### Description **Update** Acknowledged. The client's response: "We acknowledged the issue but we decided not to make any changes in the current version." **File(s) affected:**`LevelOracle.sol` **Description:** When `configToken()` is called, the token address is pushed 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
initialization
false
false
## Low: Inconsistency in Token Amount Calculations for Large Input Amounts Relative to Liquidity ### Description **Update** The `protocolFee` is re-calculated to ensure that the total amount of fees always equals the initial `_maxDownsideTokenIn`. **File(s) affected:**`EpochUpsidePoolV1.sol` **Description:** In 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
access-control
true
false
## Medium: `InitialETHCrowdfund` + `ReraiseETHCrowdfund`: Gatekeeper checks wrong address ### Description This vulnerability exists in both the [`InitialETHCrowdfund`](https://github.com/code-423n4/2023-04-party/blob/main/contracts/crowdfund/InitialETHCrowdfund.sol) and [`ReraiseETHCrowdfund`](https://github.com/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
medium
oracle
false
false
## Medium: Missing Checks for Sequencer Uptime when Fetching Chainlink Prices ### Description **Update** The Oracle system has been moved to a different repository, and the suggested fix has been added. Fixed in commit `a1a8ef1402716a230b12d9e0f3cacd75cb64b1d8` in `open-dollar/od-relayer`. **File(s) affected:**`contr...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Exact match check ### Description `isMethodCallAllowed()`: stop the loop in case the exact match was found. https://github.com/MetaLex-Tech/borg-core/blob/9074503d37cfa1d777ef16f6c88b84c98b4f54eb/src/borgCore.sol#L459 ### Recommendation We recommend making improvements from the description.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Suboptimal Initial LP Minting Logic ### Description This issue has been identified within the `addLiquidity` function of the `LPManager` contract. When the pool is initialized (i.e., `lpTotalSupply == 0`), the logic uses only `tokenUSDValue` of the newly added liquidity instead of accounting for any tokens 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
front-running
true
false
## High: Front-running a validator can trigger a denial of service ### Description A lack of proper validation of on-chain data allows, in certain instances, dishonest actors to trigger a denial of service of the validator. The validator code is responsible for advancing the challenge; this is done through a finite s...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Missing Input Validation ### Description In the `Admin` contract, the [`changeFeeParams`](https://github.com/matter-labs/era-contracts/blob/20828999c1076012848304372e7270281ee158bd/ethereum/contracts/zksync/facets/Admin.sol#L92) function, callable by the Governor, modifies the [parameters](https://github.com/m...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Use `external` instead of `public` modifier ### Description At line: https://github.com/ransonhobbes/stardust/blob/c446b1f12f53fa75ea6c347daee1e15df562a81d/contracts/Treasury.sol#L79 https://github.com/ransonhobbes/stardust/blob/c446b1f12f53fa75ea6c347daee1e15df562a81d/contracts/Treasury.sol#L120 ### Recommen...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Dust Left in the Contract After `_releaseFund()` ### Description **Update** The client has acknowledged the issue and commented: "The round error is not significant". **File(s) affected:**`contracts/ProtocolReserve/ProtocolShareReserve.sol` **Description:** During the `_releaseFund()` call, the correct distr...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
access-control
false
false
## Medium: Facade allows any unauthorized Executor ### Description SwapFacade allows to choose any SwapExecutor address, even not authored by the team. Fees are charged on SwapExecutor. So, it is rational to fork SwapExecutor with zero fees and choose it as an executor for swaps. - https://github.com/BarterLab/argon/...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
cyfrin_structured
low
other
true
false
## Low: Use constant variables in place of inline magic numbers
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: It is possible to use a Front-Running attack ### Description Since all transactions are visible in the mempool for a little while before being executed, the observers of the network can see and react to an action before it is included in a block. An example of how this can be exploited is with a decentraliz...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Centralized Veto Right for Proposals ### Description **Update** Marked as "Acknowledged" by the client. The client provided the following explanation: > Acknowledged. This can avoid governance attacks. And we use MPC or Multisig to operate **File(s) affected:**`Proposal.sol` **Description:** The `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
initialization
false
false
## Low: Use Solidity literal. ### Description **Description** EXPO.sol and EXPOVO.sol: function initialize(), line 31. Currently, "maxSupply" is assigned to a value 2700000000000000000000000000000. Such notation is difficult to be read and may lead to accuracy mistakes, when some zeros might be missed. **Recommendat...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
front-running
true
false
## Medium: Division before multiplication truncate `minOut` and incurs heavy precision loss and result in insufficient slippage protection ### Description When Calcuting the minOut before doing trade, division before multiplication truncate minOut and incurs heavy precision loss, then very sub-optimal amount of the tr...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
true
## Low: Initial redeem can unexpectedly revert if no redeemable troves Difficulty: High ### Description The initial redemption in the system can cause an assertion to unexpectedly fail if there are no troves with ICR >= MCR. The `baseRate` is initially set to zero. When a redemption has succeeded, the `baseRate` will be...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
solodit_api
medium
ERC1155
true
true
Many ERC721/ERC1155 tokens, including well-known games such as Axie Infinity, have a pause functionality inside the contract. This pause functionality will cause the `stopRent` call to always revert and could cause issues, especially for the `PAY` order type. ### Proof of Concept When `stopRent` /`stopRentBatch` is ...
Code4rena
4
reNFT
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `getProtocolTokenPriceInUnderlyingAsset`’s can be simplified to reduce unnecessary computation ### Description * src/yield/susds/YieldSavingsUSDS.sol * Instances(1) `getProtocolTokenPriceInUnderlyingAsset` uses market price to evaluate the price of sUSDS in USDS token. Since both sUSDS oracle price and USDS o...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
cross-chain
true
false
## Medium: Remaining tokens can be sweeped from the LiFi Diamond or the Executor ### Description The initial balance of (native) tokens in both the Lifi Diamond and the Executor contract can be swept by all the swap functions in all the bridges, which use the following functions: - `swapAndCompleteBridgeTokensViaStar...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Solidity version should be updated ### Description **Description** Best practices for Solidity development and auditors standard checklist requires strict and explicit usage of the latest stable version of Solidity, which is 0.8.11 at the moment. **Recommendation**: Consider updating to “pragma solidity 0.8...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
other
false
false
## Gas: Use named returns where appropriate (3 instances) ### Description Deployment Gas Saved: **2 000** Method Call Gas Saved: **174** `forge snapshot --diff`: **621** Gas Saved * [src/governance/governor/Governor.sol](https://github.com/code-423n4/2022-09-nouns-builder/blob/main/src/governance/governor/Governor.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...
solodit_api
medium
Initialization
false
false
Source: https://github.com/sherlock-audit/2022-10-rage-trade-judging/issues/39 ## Found by 0x52 ## Summary WithdrawPeriphery accidentally uses an incorrect value for MAX_BPS which will allow for much higher slippage than intended. ## Vulnerability Detail uint256 internal constant MAX_BPS = 1000; BPS is typ...
Sherlock
4
Rage Trade
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Risky slippage values can lead to financial loss ### Description During the analysis of the `Remove Liquidity`, `Add Pool`, and `Swap` instructions, it was observed that the `slippage` value is hard-coded in different instances, as demonstrated: ### Recommendation For the `Add Pool` and `Remove Liquidity` ins...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Function state mutability can be restricted to view ### Description The `scalarPriceUint` method does not mutate state but is not marked as `view` - add the `view` keyword to the function's signature.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Redundant not null check ### Description **Severity**: Informational **Status**: Resolved **Description** In contract ChainlinkWrapper.sol in function setFlagContract at line 52 there's a check for the input address to not be null. This check is redundant as the function already uses the modifier 'notNull' ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Centralization issue ### Description **Severity**: Medium **Status**: Acknowledged **Description** In contract CORGI, the `txFee` & `burnFee` can be set to a value that is arbitrarily very high. This can be done anytime by a malicious owner or compromised admin of the contract. This can lead to changin...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
true
## High: Delegating to `address(0)` empties contract via `alterGovernanceDelegatee()` ### Description `alterGovernanceDelegatee()` is used to delegate a user’s tokens to a delegatee. ```solidity function alterGovernanceDelegatee(address newDelegatee) external nonReentrant { Staker storage staker = stakers[_stakeMsgS...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Reentrancy Concerns ✓ Fixed ### Description #### Resolution Fixed in [3bbafab926df0ea39f444ef0fd5d2a6197f99a5d](https://github.com/TidalFinance/tidal-contracts-v2/tree/3bbafab926df0ea39f444ef0fd5d2a6197f99a5d) by implementing the auditor’s recommendations. #### Description and Recommendation A. All exter...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Remove redundant burnFrom implementation ### Description The `burnFrom` function in the Tea.sol contract is an exact duplicate of the implementation from ERC20Burnable.sol and can be safely removed. ### Recommendation Consider removing the `burnFrom` function from the Tea contract entirely, as it's already in...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
access-control
true
false
## Low: Newly Managed Contracts Do Not Restrict Privileged Accounts with Function-Level Access ### Description **Update** Marked as "Acknowledged" by the Venus team. The Venus team provided the following explanation: > We avoid as much as possible the use of the `ZERO_ADDRESS` in the `AccessControlManager`. It's only...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [L‑01] `require()` should be used instead of `assert()` ### Description Prior to solidity version 0.8.0, hitting an assert consumes the **remainder of the transaction's available gas** rather than returning it, as `require()`/`revert()` do. `assert()` should be avoided even past solidity version 0.8.0 as its [...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Malicious Owner can set the fee to 100 percent and then withdraw the shares ### Description **Severity**: Medium **Status**: Resolved **Description** The `setplatformFee` function in Treasury.sol allows setting a platform fee for a project without imposing any maximum limit. This poses a significant risk...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
rounding
false
false
## High: 4 Synths can be minted with fake base token ### Description The `Pools.mintSynth` function does not check if `base` is one of the base tokens. One can transfer `token`s to the pool and set `base=token` and call `mintSynth(token, token, member)`. The `_actualInput = getAddedAmount(base, token);` will return 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
rounding
true
false
## Medium: Underlying delta is calculated on internal token balance ### Description The underlying delta is calculated on the internal token balance, which might cause inconsistency with tokens of varying decimals. ### Impact Using the internal token precision (1e8) might result in an over-sensitive trigger for 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
medium
cross-chain
true
false
## Medium: Inconsistent pause enforcement in WrappedBitcornNativeOFTAdapter ### Description The `_credit` function in the `WrappedBitcornNativeOFTAdapter.sol` contract lacks the `whenNotPaused` modifier, allowing token credits even when the contract is paused. This enables users to receive tokens through cross-chain 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
front-running
true
false
## Low: [07] Misconception in using `block.timestamp + X` for swap deadlines ### Description A common misconception in DeFi contracts is that setting a swap deadline as `block.timestamp + X` (e.g., `block.timestamp + 5 minutes`) ensures the transaction is only valid for a real-world time window after the user initiate...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: StrategyFloorFromChainlink will often revert due to stale prices ### Description The `FloorFromChainlink` strategy inherits from `BaseStrategyChainlinkPriceLatency`, so it can have a `maxLatency` of at most 3600 seconds. However, all of the Chainlink mainnet floor price feeds have a heartbeat of 86400 secon...
0