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
oracle
false
false
## Low: Missing Docstrings ### Description Throughout the [codebase](https://github.com/euler-xyz/euler-vault-kit/tree/83ea1ad97b7c561d6601b220d23ec85d67ceb297/src), there are multiple code instances that do not have docstrings: * The entire [`BeaconProxy` contract](https://github.com/euler-xyz/euler-vault-kit/blob/...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
solodit_api
high
Validation
true
false
## Security Report ## Severity **Critical Risk** ## Context `VaultImplementation.sol#L249` ## Description In `in_validateCommitment()`, we check that the merkle root of the strategy has been signed by the strategist or delegate. After the signer is recovered, the following check is performed to validate the signatur...
Spearbit
5
Astaria
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
true
false
## Medium: attacker can perform malicious transactions in the safe because reentrancy is not implemented correctly in the checkTransaction() and checkAfterExecution() function in HSG ### Description to prevent reentrancy during the safe's `execTransaction()` function call code use `_guardEntries` and increase it in 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
rounding
true
false
## Low: Incorrect Removal Of Pending Deposit Stake ### Description ## Stake Operations Overview In `stake_operations`, `convert_stake_to_amount` converts a stake (represented as a decimal) into an equivalent amount of tokens (represented as a `u64`) based on the total stake and total amount in a farm. It ensures that...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
token
false
false
## Low: Missing Input Validation ### Description **Update** Mitigated in: `f6d4dd7879068205bb1957cdd1d819beddca6f54`, `9cf014863c7391ee53ee2d2b1e9b602baa981c8b`, and `2a9894eddbd69bcbbfb72b683b62b919327bbb50`. The Sequence team provided the following explanation: > 1. _Zero cost could be intentional. No change_ > 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
cross-chain
false
false
## Low: Funds transferred via Connext may be lost on destination due to incorrect receiver or calldata ### Description The `_startBridge()` function in `AmarokFacet.sol` and `NXTPFacet.sol` sets user-provided receiver and call data for the destination chain. - The receiver is intended to be the `LifiDiamond` 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
medium
token
false
false
## Medium: Frozen and non-member accounts can always redeem tranche tokens ### Description The `RestrictionManager` contract implements a simple restricted token standard (ERC-1404) where accounts can be frozen and added/removed from a member list. This member list restricts who can be the recipient of token transfers...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Vesting Schedule Start and End Time can be Set in the Past ### Description ## Lines of code https://github.com/code-423n4/2022-09-vtvl/blob/f68b7f3e61dad0d873b5b5a1e8126b839afeab5f/contracts/VTVLVesting.sol#L245-L304 ## Vulnerability details ## Impact There is no check whether `_startTimestamp` and `_en...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
Truncation
true
false
Source: https://github.com/sherlock-audit/2022-11-opyn-judging/issues/201 ## Found by CRYP70, yixxas, hyh ## Summary Formulas for `usdcAmount`, `portion.crab`, `portion.eth` used in depositAuction() and withdrawAuction() for queued distributions perform division first, which lead to truncation and fund loss in the...
Sherlock
3
Opyn Crab Netting
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect assumption of USDC and USDT value ### Description The SuperSaleDeposit contract directly accepts USDC and USDT deposits with the implicit assumption that both stablecoins maintain a 1:1 peg with USD. This assumption is used in critical price calculations for token purchases across all tiers. For exam...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Decoding of bytes[] params Calldata Length ### Description When [decoding the calldata](https://github.com/Uniswap/v4-periphery/blob/df47aa9ba521fc15ffd339dc773d32f5fc4c91fc/src/base/BaseActionsRouter.sol#L34) for `bytes actions` and their respective parameters `bytes[] params`, the [`decodeActionsRo...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Reduce the size of error messages (Long revert Strings) ### Description Shortening revert strings to fit in 32 bytes will decrease deployment time gas and will decrease runtime gas when the revert condition is met. Revert strings that are longer than 32 bytes require at least one additional mstore, along 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
other
false
false
## Low: Missing Natspec ### Description ## Code Review Finding **Context:** - `INodeFactory.sol#L33` - `IQuoter.sol#L8` - `IQuoter.sol#L13` **Description/Recommendation:** Some functions linked to this finding lack documentation. Adding clear and detailed documentation would improve code maintainability 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
medium
access-control
true
false
## Medium: `MovingAverage.setSampleMemory()` may broke MovingAverage, making the value of `exchangeRate` in `StabilizerNode.stabilize()` being extremely wrong ### Description _Submitted by WatchPug_ In the current implementation, when `sampleMemory` is updated, the samples index will be malposition, making `getValue...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
token
true
true
_Submitted by kenzo, also found by IllIllI_ Across the codebase, the protocol is usually checking that ERC20 transfers have succeeded by checking their return value. This check is missing in MerkleVesting's `withdraw` function. ### Impact If for some reason the ERC20 transfer is temporarily failing, the user would t...
Code4rena
4
FactoryDAO
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Bio NFT incorrectly breaks SVG lines and doesn't support more than 120 characters effectively ### Description According to the docs > "Any user can mint a Bio NFT by calling Bio.mint and passing his biography. It needs to be shorter than 200 characters." Let's take two strings and pass them to create an N...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
oracle
false
false
## Low: Misleading Comments ### Description Throughout the [codebase](https://github.com/UMAprotocol/oev-contracts/tree/0f2c18660fc342ced7c7177577432f7d06481684/src/) the following instances of incorrect documentation have been identified: * The comment on lines [35 and 36](https://github.com/UMAprotocol/oev-contrac...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
access-control
false
false
## Low: EA AND POOL OWNER TREASURY WILL ALSO NEED TO APPROVE DELEGATE IF THEY WANT TO CALL DEPOSIT ### Description To enable a pool, liquidity requirements must be met by both the Evaluation Agent (EA) and the pool owner treasury. To fulfill these requirements, both roles need to perform an initial deposit via the `ma...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Overlap in the Naming of Events ### Description Both interfaces `IBaseGrant` and `IFunding` have an event with the name `LogFunding`. The event `LogFunding(address indexed donor, uint256 value)` appears in both files with the same name and inputs. ### Recommendation The duplicate events have been removed 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
medium
token
false
false
## Medium: Inconsistent support for a native `ETH` token ### Description The current strategy for integrating the `ETH` support within the contract relies on usage of the native `ETH`, as opposed to the use of the ERC20 interface for balance checks and transactions. Consequently, native `ETH` is treated as an exceptio...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: zeroLendToken is bricked to use for whitelisted users ### Description Report type: Smart Contract Target: https://github.com/zerolend/governance Impacts: - Griefing (e.g. no profit motive for an attacker, but damage to the users or the protocol) ## Description ## Brief/Intro The protocol intends to only a...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
initialization
true
false
## Medium: Reentrancy Check in `lock_staking::reentry_check` Causes Concurrent INIT Deposit Failures (DOS) ### Description ### Finding description and impact The liquid staking protocol’s `deposit_init_for_xinit` function, which allows users to deposit INIT tokens to receive xINIT, is vulnerable to transaction failur...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Runtime-configured contract ownership ### Description This comment is about very implicit runtime-configured contract ownership instead of explicit `Ownable`-alike constructions. Such an architecture makes the ownership deploy configuration-dependent, which is being hard to check after the deployment in compar...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Sequencer Address Updates Can Immobilise Contract ### Description The sequencer may update itself with an incorrect address, resulting in the loss of its ability to execute sequencer-only functions. The BVM_EigenDataLayrChain contract contains a sequencer role which is responsible for updating various addresse...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
oracle
false
false
## High: getCollateralBalances() returns tokens at the zero address if a user does not have a balance in a collateral token ### Description The function `TermRepoCollateralManager.getCollateralBalances()` returns the zero address as the token address if a user does not have a balance in a given token. This causes roll...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: User may unexpectedly perform refund transaction without getting refund ### Description _[Note: This is an issue with the fix to [H-01], not with the original code in the provided commit.]_ In `NounsDAOLogicV2.sol`, refunds are only provided if the voter actually has votes. Otherwise, the refund is silently s...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
liquidation
false
false
## High: MarketMaker.sol is vulnerable to inflation attacks ### Description **Details** [FundingMath.sol#L21-L37](https://github.com/SportsFI-UBet/ubet-contracts-v1/blob/2766b47bed2cf027e29053af2afc4d35256747a5/contracts/funding/FundingMath.sol#L21-L37) function calcFunding(uint256 collateralAdded, uint256 totalSh...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of NFT callbacks ### Description In the current implementation, when an EOA upgrades to a smart wallet, it will no longer be able to receive NFTs due to a lack of token callbacks in the current implementation. Per the ERC-721 and ERC-1155 standards, when an NFT is transferred using `safeTransfer`, 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
high
token
false
false
## High: stETH liquidity problem ### Description L2ERC20Bridge mints stETH without minting a corresponding amount of wstETH on L2 https://github.com/lidofinance/lido-l2-with-steth/blob/792071cdeaf61de927cc144e8c1c02d5f5996a01/contracts/optimism/L2ERC20ExtendedTokensBridge.sol#L172. This can lead to insolvency issues, ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: maxWithdraw() of ERC4626 Vaults must not revert ### Description **Severity**: Low **Status**: Resolved **Description**: According to EIP-4626, maxWithdraw() must not revert. But the function maxWithdraw() reverts when called in the Pool contract which uses the ERC-4626 standard. According to the EIP, i...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
false
false
## Medium: Error Messages forward information about underlying libraries ### Description **Description:** The application returns error messages that disclose internal implementation details, including library names and versions (e.g., `Position 1 is out of bounds. Version: viem@2.37.12`). Even for open-source project...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing _vestingCount Increment ### Description **Severity**: Critical **Status**: Resolved **Description** The _vestingCount variable is not incremented after being used to assign an index in the addUserVesting function of ERC20Vesting. This results in vestings being assigned the same index, leading to in...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: The total amount to be distributed can be manipulated ### Description The amount of tokens to be distributed at a new batch through function `PriorityPool#updateDistribution()` can be manipulated, which is the result of manipulating state variable `depositsSinceLastUpdate` ### Impact * The tracked amounts `de...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Insufficient tests ### Description Excluding bridge-related code, there are 23 error types. However, only 12 are checked for in tests (Table 3.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
medium
reentrancy
false
false
## Medium: Lack of re-entrancy guard for \_mint[Hero](https://github.com/Crelde/IOTA-Heroes-Contracts/blob/3e345747f723637c0a1ce884d1ae0e1584015e98/contracts/HeroNFT.sol#L68) ### Description **Description:** \_[mintHero fu](https://github.com/Crelde/IOTA-Heroes-Contracts/blob/3e345747f723637c0a1ce884d1ae0e1584015e98...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unprotected `executeModule` function allows to steal the tokens ### Description The `executeModule` function allows anyone to execute any module with any params. That allows attacker to execute operations on behalf of other users. ### Impact HIGH - Anyone can steal others' tokens from their markets. ### Rec...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: `get_by_tag` tries to access out of bound index ### Description The [get_by_tag](https://github.com/deriverse/protocol-v1/blob/30b06d2da69e956c000120cdc15907b5f33088d7/src/program/constants.rs#L4) contains an off-by-one error in its loop condition. The function iterates using [while i <= continer.candles.len()...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: EthCompoundPCVDeposit - should provide means to recover ETH ### Description `EthCompoundPCVDeposit` accepts `ETH` via `receive()`. Anyone can call `EthCompoundPCVDeposit.deposit()` to mint `CToken` for the contracts `ETH` balance. The `CToken` to be used is configured on `EthCompoundPCVDeposit` deployment...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
liquidation
false
false
## Gas: MaxLoanRatio is not configured properly. ### Description ``MaxLoanRatio`` is the ratio of debt to collateral and should always be multiplied by 10**18. But while setting or updating ``maxLoanRatio`` there are no checks. ### Impact 1. It causes borrowers to borrow more debt with less collateral. 2. It may be 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
high
oracle
true
false
## High: Vault global shares and assets change will mismatch local shares and assets change during settlement due to incorrect `_withoutSettlementFeeGlobal` formula ### Description Every vault update, which involves change of position in the underlying markets, `settlementFee` is charged by the Market. Since many user...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: `owner` Can Change Claimable `ratioBps` During Claiming Period ### Description **Update** Marked as "Fixed" by the client. Addressed in: `2390ec05d16b77130bb10826754942c0dcc475ad`. **File(s) affected:**`ZRCClaim.sol`, `ZRCClaim2.sol` **Description:** Users may receive different ratios of claimable tokens to ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
access-control
true
false
## Medium: Owner in `VaultProxy.sol ` is `address(0)` ### Description The owner variable in the `VaultProxy.sol` is going to be zero because of a bug in `staderConfig`. The `intialize` function in `staderConfig` grants the admin role to an admin passed in the native `_grantRole()`, but does not update the mapping 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
high
other
true
false
## High: Validators can be crashed via p2p ### Description Report type: Blockchain/DLT Target: https://github.com/shardeum/shardus-core/tree/dev Impacts: - Network not being able to confirm new transactions (total network shutdown) ## Description ## Brief/Intro An attacker can cause a rust panic via p2p, crashing ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incomplete Validation ### Description In the `NftFactory.sol` contract the following validation checks are missing: - `constructor()` missing zero-address check for `_nftImplementation` parameter. The `InitializationParams` struct input, is the parameter of the `deploy()` function. The following validation 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...
cyfrin_structured
low
front-running
true
false
## Low: Spender can front-run calls to modify token allowances, resulting in DoS and/or spending more than was intended ### Description When updating the allowance for a spender that is less than the value currently set, a well-known race condition allows the spender to spend more than the caller intended by front-run...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Change the access role name for the `secondOpinionOracle` function ### Description There is a `setOracleReportLimits` function at the [following line](https://github.com/lidofinance/core/blob/efeff81c18f85451ebf98e8fd8bb78b8eb0095f6/contracts/0.8.9/sanity_checks/OracleReportSanityChecker.sol#L269). It has a 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
low
signature
true
false
## Low: Pawn Duration Not Bound to Signed Quote Allows 7↔30-day Term Tampering ### Description `PawnShop` verifies an EIP-712 signature over `(tokenId, offerAmount, validUntil, nonce)` but `pawn()` accepts a user-supplied `durationDays` that is **not signed**. This lets a borrower reuse the _same_ backend+treasury sig...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
integer-overflow
true
true
## Low: `InvestorBasedRateLimiter::setInvestorMintLimit` and `setInvestorRedemptionLimit` can make subsequent calls to `checkAndUpdateMintLimit` and `checkAndUpdateRedemptionLimit` revert due to underflow ### Description `InvestorBasedRateLimiter::_checkAndUpdateRateLimitState` [L211-213](https://github.com/ondoprotoc...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [22] `UniswapSettlement#swapExactIn()` should be made safer ### Description https://github.com/code-423n4/2024-05-predy/blob/a9246db5f874a91fb71c296aac6a66902289306a/src/settlements/UniswapSettlement.sol#L22-L37 Multiple issues with how the approval is being done here: 1. It doesn't check the return value 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
token
false
false
## High: Slashing isn't supported in the rebasing mechanism ### Description The function `rebase()` has been used to increase the share price and apply staking rewards. The issue is that staking has its own risks and stake amounts can be slashed (In Commume or Bittensor network) and current logic doesn't support decre...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inexplicit Revert ### Description In the [`getDynamicFieldSlice` function](https://github.com/latticexyz/mud/blob/12a9eb1afb18a7f7cb43d774cabb2d5af7c74e6b/packages/store/src/StoreCore.sol#L901) of the `StoreCore` library, a bytes range specified by `start` and `end` can be read from a dynamic field. While th...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
liquidation
true
false
## Medium: Users may not be able to fully redeem USD1 into USDT even when reserve ratio is above 100% ### Description Users may not be able to fully redeem USDT even when reserve ratio is above 100%, because of portfolio being taken into the account for calculation. ### Impact Users may not be able to fully redeem US...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
cyfrin_structured
low
upgrade
true
false
## Low: `MetaVault::redeem` erroneously calls `ERC4626Upgradeable::withdraw` when attempting to redeem `USDe` from `pUSDeVault` ### Description Unlike `MetaVault::deposit`, `MetaVault::mint`, and `MetaVault::withdraw` which all invoke the corresponding `IERC4626` function, `MetaVault::redeem` erroneously calls `ERC462...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Splitting `require()` statements that use `&&` saves gas ### Description Instead of using the `&&` operator in a single require statement to check multiple conditions, I suggest using multiple require statements with 1 condition per require statement (saving 3 gas per `&`):
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Witness Data Reader Skips the Last Line if There Is No New Line ### Description The [`ReadWitnessData`](https://github.com/mantlenetworkio/mantle-v2/blob/e29d360904db5e5ec81888885f7b7250f8255895/op-chain-ops/crossdomain/witness.go#L81-L142) function of OP-Chain-Ops utilizes `bufio`'s [`NewReader`](https://gith...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Asymmetric decay of Asset saved priced distorts average price ### Description The Asset contract implements a graceful fallback for being able to provide underlying asset prices when the upstream oracle is unreachable. This fallback uses the last known price, but artificially widens its range (`low-high`) to ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
initialization
false
false
## High: Tier winner can steal excess funds from tiered percentage bounty if any deposits are expired ### Description Total funds used to calculate the percentage payment is set when the bounty is closed. If the main deposit is refundable by the time when the bounty is closed, a tier winner could exploit the bounty to...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
other
true
false
## High: Incorrect Streaming Fee Share Calculation ### Description **Severity:** High **Path:** src/vault/libs/AutoPoolFees.sol#L238-L240 **Description:** The streaming fee is intended to be applied to the profit generated during the rebalancing and debt reporting process. However, in the current implementation 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
reentrancy
true
false
## Low: Users unable to claim rewards after full withdrawal ### Description The UsualSP contract prevents users from claiming staking rewards if they have a zero balance, even if they have accrued rewards from previous staking periods. This creates a suboptimal user experience where users who have fully withdrawn thei...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
false
false
## Gas: Use prefix not postfix in loops ### Description [G-02] Use prefix not postfix in loops Using a prefix increment (++i) instead of a postfix increment (i++) saves gas for each loop cycle and so can have a big gas impact when the loop executes on a large number of elements. There are several examples of this::br ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
initialization
true
false
## High: Each Well is responsible for ensuring that an `update` call cannot be made with a reserve of 0 ### Description **Description:** The current implementation of `GeoEmaAndCumSmaPump` assumes each well will call `update()` with non-zero reserves, as commented at the beginning of the file: However, there is no 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
low
cross-chain
false
false
## Low: Validate number of approvers in `setThresholds()` ### Description https://github.com/code-423n4/2023-09-ondo/blob/main/contracts/bridge/DestinationBridge.sol#L255 The `setThresholds()` function should validate that elements in the `numOfApprovers` array are greater than 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
other
false
false
## Low: Inconsistent use of msg.sender ### Description The MetaMorpho contract uses the inherited `_msgSender()` function whenever it needs to read the `msg.sender` value. The only place this doesn’t happen is in the `_setCap` function, when emitting the `SetWithdrawQueue` event. ### Recommendation For consistency ac...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Centralization Risk ### Description **Severity**: Low **Status**: Acknowledged **Location**: All **Description** The vulnerability in the contracts arises from the excessive authority granted to the admin, presenting a centralization issue. The core concern lies in the admin's unrestricted access to critic...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
signature
true
false
## High: In `ResourceLockValidator`, the `validateUserOp()` Function Lacks Sufficient Checks, Allowing Draining of `ModularEtherspotWallet` Balances ### Description This is a collection of issues with different root causes, we grouped them in a single instance for better explanation. ### Impact Draining of the Modula...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Address Changes Should Use Two-step Procedure ### Description The critical procedures should be two step process. See similar findings in previous Code4rena contests for reference: https://code4rena.com/reports/2022-06-illuminate/#2-critical-changes-should-use-two-step-procedure ### Recommended Mitigation St...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
logic
true
false
## Low: `TierConfig::price` is not validated to follow `TierConfig::power` which itself is not used or validated ### Description **Description:** When creating a new DAO membership, the creator can specify a [`TierConfig::power`](https://github.com/OneWpOrg/audit-2024-10-oneworld/blob/416630e46ea6f0e9bd9bdd0aea6a48119...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
true
false
## Medium: Users can continue voting for inactive pools through registerVoteWeight() ### Description Users can vote for receivers that have been marked as inactive if they have previously voted for this receiver. Users have a few ways to vote in `IncentiveVoting.sol`. They can call: - **`registerAccountWeightAndVote(...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The Beacon proxy pattern is better suited to upgrading multiple instances of `MembershipERC1155` ### Description **Description:** Currently, new membership DAOs are deployed as [Transparent upgradeable proxies](https://github.com/OneWpOrg/audit-2024-10-oneworld/blob/416630e46ea6f0e9bd9bdd0aea6a48119d0b515a/con...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
dos
false
false
## Low: Pending ToDo Comments in `ChefIncentivesController` ### Description **Severity**: Informational **Status**: Resolved **Description**: There are TODOs on line: 308 and line: 363 in the `ChefIncentivesController.sol` contract. Pending todo comments are not advised during the deployment of code in production....
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
initialization
false
false
## Low: Missing Checks if Address Is Non-Zero ### Description **Update** 2021-08-03: the admin team considered adding these checks to the contracts are dangerous. **Description:** There are many functions that do not validate input addresses. A list of them is provided below, but they might not be comprehensive since...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Adding a new schain may potentially hit the gas limit  Pending ### Description When adding a new schain, a group of random 16 nodes is randomly selected to run that schain. In order to do so, the `_generateGroup` function iterates over all the nodes that can be used for that purpose: **code/contracts/Scha...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Public `ContributionNft::mint` leads to cascading issues / loss of funds ### Description The contributors are supposed to submit their proposals via frontend and it is assumed from the [docs](https://whitepaper.virtuals.io/about-virtuals-1/the-protocol/co-contribution-and-provenance/modular-consensus-framewor...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
storage
true
false
## Gas: State variables can be packed to use fewer storage slots ### Description The EVM works with 32 byte words. Variables less than 32 bytes can be declared next to eachother in storage and this will pack the values together into a single 32 byte storage slot (if the values combined are <= 32 bytes). If the variabl...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [59] Contracts should have all `public`/`external` functions exposed by `interface`s ### Description All `external`/`public` functions should extend an `interface`. This is useful to ensure that the whole API is extracted and can be more easily integrated by other projects. BidOrdersFacet.sol ([20](https://gi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `drawTimeoutAt()` causes the prize pool to shutdown one draw earlier ### Description The shutdown timestamp returned by `drawTimeoutAt()` is one draw period early, causing the protocol to shut down one draw earlier than expected. ### Impact When `drawTimeout = 1`, the prize pool will never award prizes to ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
cross-chain
false
false
## Low: `bridge` does not check if the provided `msg.value` is enough for the fee ### Description `CrossChainLayerZeroTellerWithMultiAssetSupport` has `_quote`, which can be used to calculate the fee required for the operation using best practices from LayerZero. However, when `_bridge` is called, it doesn't check 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
other
false
false
## Low: Missing events for important state updates ### Description **Severity**: Low **Status**: Resolved **Description** Method `emergecyWithdrawForEscrow(...)` and method `emergecyWithdrawForProject(...)` allows admin to withdraw user funds in case contract is under attack or malicious activity is possible. Thes...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inefficient use of abi.encode() ### Description The `abi.encode()` function is less gas efficient than `abi.encodePacked()`, especially when encoding only static types. This detector identifies instances where `abi.encode()` is used and all arguments are static, suggesting that `abi.encodePacked()` could poten...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: CreateOffer allows eachTradeTax to be 100% ( 10000 bp ) violating code assumptions ### Description The code comments in definition of Premarket.sol#CreateOffer states that&#x20; ```solidity eachTradeTax must be less than 100%, decimal scaler is 10000 ``` &#x20;, however , the code only reverts if `eachTradeT...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
signature
true
false
## High: Typed structured data hash used for signing commitments is calculated incorrectly ### Description Since `STRATEGY_TYPEHASH == keccak256("StrategyDetails(uint256 nonce,uint256 deadline,bytes32 root)")` The hash calculated in `_encodeStrategyData` is incorrect according to EIP-712. `s.strategistNonce` is of...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: **Rate Limiting Threshold Bypass** ### Description **Update** Marked as "Acknowledged" by the client. The client provided the following explanation: > We intend to keep the Bypass functionality for operational flexibility. As for the concerns raised, we consider setting THRESHOLD to 0 as a viable option. **F...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: GroupBuys that are completely filled still don't raise stated target amount ### Description `createPool()` in GroupBuy.sol creates a new contribution pool around an NFT. It specifies a target `\_initialPrice` as minimum amount of ETH the NFT will cost, and `\_totalSupply` which is the number of Raes to be 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: Setting minimum slippage ### Description In glpStrategy, setting slippage allowance to a low value is dangerous. An extreme scenario is setting to zero, which increases the risk of reverts. It must be some slippage always allowed. Consider introducing some `_MIN_SLIPPAGE` and do not allow `_slippage` to be be...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
dos
true
false
## High: Unbounded loop can cause denial of service ### Description Under certain conditions, the withdrawal code will loop, permanently blocking users from getting their funds. The `beforeWithdraw` function runs before any withdrawal to ensure that the vault has sufficient assets. If the vault reserves are insuffici...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Reentrancy bug in Basket’s withdraw multiple tokens function which gives attacker ability to transfer basket ownership and spend it but withdraw all the tokens out of basket ### Description ## Lines of code https://github.com/code-423n4/2022-06-nibbl/blob/8c3dbd6adf350f35c58b31723d42117765644110/contracts/...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: availableToWithdraw does not check paused state ### Description Due to how the `OndoTokenRouter` contract is set up, it expects the result of the `availableToWithdraw` call to be available for withdrawal from all the token sources. If the `availableToWithdraw` function returns a non-zero value but this 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
low
oracle
true
false
## Low: Testing code used in production ### Description In some locations in the Drift Protocol codebase, testing code is mixed with production code with no way to discern between them. Testing code should be clearly indicated as such and guarded by `#[cfg(test)]` to avoid being called in production. Examples appear ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack Of Sysvar Account Validation ### Description ## Vulnerability Report The program passes the instructions sys_var account to both deposit and set_service instructions, but does not perform validation in the `validate_remaining_accounts` and even in the `solana_ibc::cpi::set_stake` function. Thus, replaci...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Withdrawal queue can be forcibly activated to hinder bridge operation ### Description The withdrawal queue can be forcibly activated to impede the proper operation of the bridge. The `RootERC20PredicateFlowRate` contract implements a withdrawal queue to more easily detect and stop large withdrawals from pa...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: IRMSynth 's targetQuote assumes reference asset has 18 decimals ### Description The `IRMSynth.targetQuote` parameter is set to `1e18`. It is compared against the output of `oracle.getQuote(1e18, synth, referenceAsset)` that returns a reference asset amount which will be in reference asset decimals. ### Rec...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: DoS vulnerability in `EmissionManagerV1.updateEpoch()` ### Description The `updateEpoch()` function in the `EmissionManagerV1` contract contains a version check that could cause issues in future upgrades. The check `_getInitializedVersion() == 1` means the function will stop working if the contract ever uses `...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `AllowList::hasTradeRestriction` mutability should be set to `view` ### Description **Description:** `AllowList::hasTradeRestriction` does not make any changes to storage, it simply reads some variables and makes some checks, but the function's mutability is not marked as view. **Recommended Mitigation:** Cha...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
flash-loan
false
false
## Low: `UniswapV2Router::getAmountsOut()` based upon pool reserves allowing returned price to be manipulated via flash loan ### Description [`PriceFeed`](https://github.com/dexe-network/DeXe-Protocol/tree/f2fe12eeac0c4c63ac39670912640dc91d94bda5/contracts/core/PriceFeed.sol) uses [`UniswapV2PathFinder`](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...
cyfrin_structured
low
dos
true
false
## Low: State update performed after external call in `MembershipERC1155::mint` ### Description When `MembershipERC1155::mint` is invoked during a call to `MembershipFactory::joinDAO`, the `totalSupply` increment is performed after the call to `ERC1155::_mint`: ```solidity function mint(address to, uint256 tokenId, u...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
front-running
true
false
## High: `approvedCreditor` not reset after account transfer ### Description **Severity** **Impact**: High, user can steal funds from liquidated account **Likelihood**: Medium, requires either a bad debt account, or L2 to be offline for some time **Description** The Arcadia accounts support a secondary backup cred...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Two-Step Ownership Transfer ### Description **Severity**: Low **Status**: Resolved **Description** The contracts does not implement a two-step process for transferring ownership. In its current state, ownership can be transferred in a single step, which can be risky as it could lead to accidental or...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Old Solidity Version (< 0.8) ### Description **Update** From dev team: > The versions are the ones that Compound is currently using in Production. The team made the decision to not modify any of the code originally written by Compound. Updating solidity versions require non-trivial changes and add risks on co...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Testing smart contract code in Brownie can be unreliable ### Description The Brownie testing system should be improved to make it more robust when dealing with time-dependent and high-consumption gas tests. When Brownie tests code that depends on the block number and timestamp in smart contracts, it provides 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: Unclear purpose of the MATIC withdrawal function. ### Description **Severity**: Informational **Status**: Resolved **Description** TestStake::emergency WithdrawMatic(). The 'TestStake contract does not have a fallback or receive function, but the function for withdrawing MATIC is implemented, and its use ca...
0