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: Code Refactoring ### Description ## Technical Document ## Issues Identified 1. The use of `RoundInt` (bankers rounding) may produce non-intuitive results in some cases. In applications where deterministic rounding is preferred (numbers are always rounded up or always rounded down), this method may not align ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Event Emission for `updateHashflowRouter()` ### Description **Update** Marked as "Fixed" by the client. The order has been corrected. Addressed in: `597a3bcd7b53c0037a7aaf4d12965e5763d7a886`. **File(s) affected:**`RenovaCommandDeckBase.sol` **Description:** The ordering of the parameters to the eve...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
flash-loan
false
false
## High: AaveVault does not update TVL on deposit/withdraw ### Description _Submitted by cmichel, also found by WatchPug_ Aave uses **rebasing** tokens which means the token balance `aToken.balanceOf(this)` increases over time with the accrued interest. The `AaveVault.tvl` uses a cached value that needs to be update...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: OpenZeppelin MIT license violation ### Description The contract [`TokenVesting`](https://github.com/propsproject/props-token-distribution/blob/eaf0c6fddd320a258a9d7531d72d07a830fae58a/contracts/TokenVesting.sol) in the `TokenVesting.sol` file was copied from the [openzeppelin-eth public repository](https://git...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Mechanism to prevent donation attack can be gamed to cause withdrawals to revert causing assets to get stuck on the Strategy ### Description **Description:** Each time a withdrawal occurs, a check is performed to ensure that TrancheShares `totalSupply()` doesn't fall below a pre-defined boundary (`MIN_SHARES`...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 return values can be removed ### Description **Description:** `AmAmm::_updateAmAmmWrite` currently returns the manager of the top bid and its associated payload; however, in all invocations of this function the return values are never used. If they are not required, these unused return values should 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
low
other
true
false
## Low: Sponsor payout uses two transfers when only one is required Difficulty: Low ### Description `Sponsorable._paySponsor` transfers tokens from the sender of the meta-transaction to the contract itself and then to the sponsor (Figure 16.1). Using two transfers is unnecessary and wastes gas, as a transfer from the se...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
oracle
false
false
## High: Settlements' Coordinates and Type Can Be Determined Ahead of Time Due to Weak PRNG ### Description **Update** Marked as "Fixed" by the client. Addressed in: `7736eb06074e1de55cccebfc2cbf572e892c08bc`. The client provided the following explanation: Fixed the type predictability by making it based on the initia...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
flash-loan
false
false
## Medium: User can force the Controller contract to perform an undesired external call ### Description The [`Controller` contract](https://github.com/opynfinance/GammaProtocol/blob/d151621b33134789b29dc78eb89dad2b557b25b9/contracts/Controller.sol#L27) is the users’ front gate. With it, they can interact with the prot...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `_payoutEth()` calculates `balance` with an offset, always leaving dust `ETH` in the contract ### Description [PA1D.sol#L391](https://github.com/code-423n4/2022-10-holograph/blob/f8c2eae866280a1acfdc8a8352401ed031be1373/contracts/enforcer/PA1D.sol#L391) [PA1D.sol#L395](https://github.com/code-423n4/2022-10-...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Operator bond can not be recovered and will be locked in ExManager ### Description ExManager requires operators to deposit HYPE tokens equal to `opBond` as a "skin-in-the-game" mechanism. When an operator calls `ExManager.bond()`, the contract deposits the HYPE bond and mints the corresponding amount of `exLS...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 safe pragma best practices are not used ### Description Always use a stable pragma to be certain that you deterministically compile the Solidity code to the same bytecode every time. The project is currently using a floatable version.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: State variable `saleOpen` is misleading as it used to indicate the start of auction. ### Description **Description** CryptoBearWatchClub.sol, saleOpen **Recommendation**: Rename to reflect use of state variable.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `createBounty()` doesn't confirm that a `rewardToken` exists, which can be used to steal deterministic tokens ### Description When a new bounty is created with the `createBounty()` method, we use the solady `SafeTransferLib` to transfer the token into the contract: Digging into this function, we can see 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
false
false
## High: The owner will be able to remove the token in the case when the liquidity is not zero and when the owner will try to call the adminWithdraw() for the deleted token it would be impossible to withdraw that token from the contract balance. ### Description **Re-audit**: The issue related to removing the supported...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Comments For ERC20Distribution and ERC20DistributionNative are the same ### Description **Severity**: Informational **Status**: Resolved **Description** There are instances in the `ERC20Distribution` contract where the comments correspond to the `ERC20DistributionNative`, such as comments L272 and L273, 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
gas
storage
false
false
## Gas: Wrong use of the `memory` keyword for a Struct ### Description When copying a state struct in memory, there are as many SLOADs and MSTOREs as there are slots. When reading the whole struct multiple times is not needed, it's better to actually only read the relevant field(s). When only some of the fields are re...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
other
true
false
## High: Packets Error Handling: EVM revert in ABI Decoding ### Description An EVM error is encountered at the following line in the Solidity code: `(address target, bytes memory data) = abi.decode(modifiedPacket, (address, bytes));` This error occurs because `modifiedPacket` does not match the expected encoding for ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unintended Logging in Production Code (`console.log`) ### Description Within the [\_calculateFeesOwed](https://github.com/Se7en-Seas/cMETH-boring-vault/blob/d6e2d18f45a3e05d749d34966139fc85fc47f7e6/src/base/Roles/AccountantWithRateProviders.sol#461) function of the `AccountantWithRateProviders` contract, 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
access-control
false
false
## Low: Privileged Roles ### Description **Update** Marked as "Acknowledged" by the client. The client provided the following explanation: > Will clarify the impact and describe the roles **File(s) affected:**`BridgeWrapper.sol`, `ERC20BurnMint.sol` **Description:** All privileged permissions should be documented 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
reentrancy
true
false
## Medium: Reentrancy guard in `rageQuit()` can be bypassed ### Description The reentrancy guard present in the `rageQuit()` function can be bypassed by host accounts, leading to reentrancy attack vectors and loss of funds. The new `rageQuit()` function can be used by party members to exit their position and obtain 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
false
false
## Low: No slippage protection ### Description Users would interact with IonPool by calling `supply()`, `withdraw()`, `borrow()` and `repay()` functions. The issue is that the amount users would receive or pay would depend on blockchain status and may differ between when the user signed their tx and tx is mined and th...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
solodit_api
medium
Weird ERC20
true
true
<https://github.com/debtdao/Line-of-Credit/blob/e8aa08b44f6132a5ed901f8daa231700c5afeb3a/contracts/utils/EscrowLib.sol#L94-L96> <https://github.com/debtdao/Line-of-Credit/blob/e8aa08b44f6132a5ed901f8daa231700c5afeb3a/contracts/utils/EscrowLib.sol#L75-L79> <https://github.com/debtdao/Line-of-Credit/blob/e8aa08b44f613...
Code4rena
3
Debt DAO
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
liquidation
true
false
## High: Incorrect Margin Calculation Due to Inconsistent Realized and Unrealized Balances ### Description The protocol supports multi-collateral and uses collateral factors to calculate the minimum margin required for liquidation. Due to inconsistent treatment of realized and unrealized settlement token balances in 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
false
false
## Low: Missing zero address and zero total checks in `claimEarnings` ### Description There is a `claimEarnings` function here - https://github.com/vibexyz/vibe-contract/blob/d08057edbaf83b00d94dcaca2a05e3c44a45e4d9/contracts/mint/MintSaleBase.sol#LL88C14-L88C27. It accepts the `proceedRecipient` address as a paramete...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 `lastDistributionTimestamp` variable should be always updated in the `_distribute` function ### Description In the `VoterUpgradeableV2._distribute()` function, the `lastDistributionTimestamp` variable is only updated when `claimable` is greater than 0 and gauge is alive. ### Recommended Mitigation Steps ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `adminAccountMigration()` Does Not Update `buyPrice.seller` ### Description _Submitted by leastwood, also found by cccz_ [NFTMarketReserveAuction.sol#L263-L292](https://github.com/code-423n4/2022-02-foundation/blob/main/contracts/mixins/NFTMarketReserveAuction.sol#L263-L292) [NFTMarketBuyPrice.sol#L125-L14...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `TSender.huff` and `TSender_NoCheck.huff` contracts will transfer funds to wrong addresses when called with specific calldata. ### Description Due to a mismatch of hardcoded and dynamic calldata offsets in the `TSender.huff` and `TSender_NoCheck.huff` contracts, both contracts transfer funds to incorrect ad...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: frontEnd mechanism may confuse users ### Description An undocumented cache of the `_frontEndTag` in `provideToSP` may lead users to misuse the function. `provideToSP` has a `_frontEndTag` parameter representing the frontEnd to which LQTY gains should be paid out. When `provideToSP` is called, `_frontEndTag` ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: No check for Arbitrum sequencer when handling prices ### Description Since contracts will be deployed on Arbitrum, it’s essential to ensure price reliability when the Arbitrum Sequencer is down. However, `PriceProvider.sol` currently lacks a check for the sequencer’s operational status, which may lead to inacc...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Optimizations ### Description ## Gas Profiling Report 1. **Gas Profiling Analysis** Utilizing `forge snapshot --diff`, it was revealed that the optimizations in this commit (cad9547), particularly the `decimalConversionRate != 1` checks, increased gas consumption instead of reducing it. It is recommended ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Insufficient Status Validation ### Description ## Vault State Validation To avoid an inconsistent vault state, it’s important to validate the current state when invoking functions that modify the vault status, in order to maintain a strict ordering between the calls. For instance, the `openVaultDeposits` fu...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
initialization
true
false
## Low: Pausable is initialized twice in WrappedBitcornNativeOFTAdapter ### Description The `initialize` function in `WrappedBitcornNativeOFTAdapter.sol` calls `__ERC20Pausable_init()` twice, which is unnecessary and indicates a code quality issue. ### Recommendation Remove one of the duplicate calls: ```solidity fun...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
true
false
## Medium: User supplying a fake vault can steal protocol assets as a grief attack ### Description **Severity** **Impact:** High, as a malicious actor can drain protocol assets **Likelihood:** Low, as it is a common attack vector and it requires no preconditions **Description** The `_vault` argument in the `repay`...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: UNUSED MESSAGES ### Description Along the codebase, there are some `messages` that are unused. This situation is not security-related, but mentioned in the report as part of the best practices in software development to improve the readability of code during all phases of its lifecycle. The affected messages 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
other
true
false
## Low: Token receiver can mint gas tokens with sender’s gas  Acknowledged ### Description When a transfer is executed, there are hooks activated on the sender’s and on the receiver’s side. This is possible because the contract implements `ERC1820Client` which allows any address to define an implementation: **cont...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Code Redundancy ### Description I n `unstakeToken`, w h e n `isLiquidation` i s f a l s e, i m p l y i n g t h a t t h e u n s t a k i n g i s n o t d u e t o l i q u i d a t i o n, `liquidatorReward` i s g u a r a n t e e d t o b e z e r o. T h u s, t h e r e i s n o n e e d t o a d d `liquidatorReward` t 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...
cyfrin_structured
low
token
true
false
## Low: Emission of wrong value for some events ### Description In the `SecuritizeSwap::swap()` function, an event is emitted after a successful swap. But the event is emitting `msg.sender` in the place of `from` value while the `msg.sender` for the function `swap()` is only issuer or master. ```solidity SecuritizeSwa...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Whitelist Version Compatibility Conflict ### Description ## Whitelist Version Management Inconsistency There is an inconsistency between the logic of the `realloc_whitelist` and `init_update_whitelist` modules, specifically concerning how the whitelist version is managed and validated. ## Overview of `reallo...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
token
true
false
## High: Users can get unlimited amounts of Flux tokens ### Description Report type: Smart Contract Target: https://github.com/alchemix-finance/alchemix-v2-dao/blob/main/src/FluxToken.sol Impacts: - Manipulation of governance voting result deviating from voted outcome and resulting in a direct change from intended ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
initialization
true
false
## Low: `BetFactory::setPool` should validate input pool is legitimate AaveV3 pool and supports input token ### Description `BetFactory::setPool` should validate input pool is legitimate AaveV3 pool and supports input token. This can be done by: 1) `BetFactory::constructor` should take as input the address of AaveV3 ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [Oval] Updating Parameters Inside the BaseController Contract May Lead to Undesired Outcomes ### Description The [`maxAge()`](https://github.com/UMAprotocol/oval-contracts/blob/297ab25a914171aedaeb01dabf4a829a304cce08/src/DiamondRootOval.sol#L89) parameter has been introduced to controllers in order to limi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Failed job can't be recovered. NFT may be lost. ### Description [HolographOperator.sol#L329](https://github.com/code-423n4/2022-10-holograph/blob/f8c2eae866280a1acfdc8a8352401ed031be1373/contracts/HolographOperator.sol#L329) [HolographOperator.sol#L419-L429](https://github.com/code-423n4/2022-10-holograph/blo...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Avoid ternary ### Description If-else statement is more clear way for complex conditions - https://github.com/nucypher/nucypher/blob/main/nucypher/blockchain/eth/sol/source/contracts/staking_contracts/PoolingStakingContractV2.sol#L168 ### Recommendation Use if-else statement.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Invariant for Consistent Token Balances (ChestRewards.addRewards()) ### Description **Severity**: Low **Status**: Acknowledged **Description**: In the ChestRewards contract, the addRewards() function does not maintain an invariant to ensure that the total assigned rewards do not exceed the 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
high
other
false
false
## High: RubiconRouter: Offers created through offerWithETH() can be cancelled by anyone ### Description _Submitted by cccz, also found by kenzo, 0x1f8b, IllIllI, and pedroais_ When a user creates an offer through the offerWithETH function of the RubiconRouter contract, the offer function of the RubiconMarket 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
medium
dos
false
false
## Medium: frxETHMinter.depositEther may run out of gas, leading to lost ETH ### Description `frxETHMinter.depositEther` always iterates over all deposits that are possible with the current balance (`(address(this).balance - currentWithheldETH) / DEPOSIT_SIZE`). However, when a lot of ETH was deposited into the contra...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 error messages in require statements ### Description There are several require statements (such as [`Escrow`](https://github.com/jeualvarez/Token-Audit/blob/e946177747e57312690775204834b8fca1bbb0d5/contracts/Escrow.sol#L70) [:L70](https://github.com/jeualvarez/Token-Audit/blob/e946177747e57312690775204...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Synth `realise` is vulnerable to flash loan attacks ### Description _Submitted by jonah1005, also found by a_delamo_ Synth `realise` function calculates `baseValueLP` and `baseValueSynth` base on AMM spot price which is vulnerable to flash loan attack. `Synth`'s lp is subject to `realise` whenever the AMM ra...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: Consider adding a getter for `QuantAMMWeightedPool.poolDetails` ### Description **Description:** [`QuantAMMWeightedPool.poolDetails`](https://github.com/QuantAMMProtocol/QuantAMM-V1/blob/7213401491f6a8fd1fcc1cf4763b15b5da355f1c/pkg/pool-quantamm/contracts/QuantAMMWeightedPool.sol#L170) is a nested array: Nest...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
Overflow/Underflow
false
true
## Lines of code https://github.com/code-423n4/2022-06-nibbl/blob/8c3dbd6adf350f35c58b31723d42117765644110/contracts/Twav/Twav.sol#L28 https://github.com/code-423n4/2022-06-nibbl/blob/8c3dbd6adf350f35c58b31723d42117765644110/contracts/Twav/Twav.sol#L40 ## Vulnerability details ## Impact Contract will break when `cu...
Code4rena
3
Nibbl
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Stablecoin separate ownership ### Description Generally, each system contract follows the pattern indicating the Core contract on deployment. E.g. `MainController`: - https://github.com/defidotmoney/dfm-core/blob/e22732083f79a5fb13bdb69132622017ebe79a59/contracts/MainController.vy#L280 As a result, a single 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: Unsalted HKDF in utils.py ### Description `utils.py` in the Umbral codebase provides a function, `kdf`, which wraps an HKDF from cryptography.io but sets `salt` to `None`. RFC 5869, which specifies HKDF usage, recommends salt be used when possible (§ 3.1), as it greatly increases robustness. ![Fig. 1: the kdf...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: User’s Borrowing Status is not Updated When Their Entire Debt is Liquidated ### Description When a user has a position that no longer satisfies the required ratio of collateral-to-debt, that user may be liquidated via the function `liquidationCall()`. If the user’s position breaches a certain threshold, the 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...
skyward_49k
low
logic
false
false
## Low: Disqualification mechanism should be verified. ### Description **Description** Disqualifier.sol: _processUserWithBounty(). ChefIncentivesController.sol: disqualify User(), _isEligible(). In Disqualifier.sol (lines 167-168), the user will be disqualified from ChefIncentivesController.sol if the user's unlock...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `Web3MusicNativeTokenDAO.whitelistEnabled` Is Not Updatable ### Description **Update** The client acknowledged the issue and provided the following explanation: > This is a design behavior. The whitelist status will not be changed after deployment. **File(s) affected:**`Web3MusicNativeTokenDAO.sol` **Descri...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
false
false
## Medium: Incorrect Fee Verification in Loan Payback Severity: Medium ### Description **Description:** The hasBorrowerEnoughFundsForPayback function checks if the borrower has enough funds to pay back the loan, the interest, and the fee. However, the fee is a portion of the interest amount, not an additional cost. ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Adding a `return` statement when the function defines a named return variable, is redundant ### Description *There are 5 instances of this issue:* https://github.com/debtdao/Line-of-Credit/blob/e8aa08b44f6132a5ed901f8daa231700c5afeb3a/contracts/modules/credit/LineOfCredit.sol#L453 https://github.com/debtdao...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Remove unnecessary code ### Description The `uint public presaleEtherRaised` variable seems to be unnecessary. Consider using [**multisig.balance**](http://solidity.readthedocs.io/en/develop/units-and-global-variables.html#address-related) in its place unless funds in the multisig address will be moved (and th...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
liquidation
false
false
## High: Liquidating Morpho’s Aave position leads to state desynchronization ### Description Morpho has a single position on Aave that encompasses all of Morpho’s individual user positions that are on the pool. When this Aave Morpho position is liquidated, the user position state tracked in Morpho desynchronizes from ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Additional check is required at TokenVesting.sol ### Description **Description** In function releaseVestedTokens() there is no verification for the zero address of the recipient. **Recommendation**: Add an additional check.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Best Practices ### Description **Update** The client fixed the issue in commit `c8b38e5ee94de11801ac96977482bc863a02cf7e` and provided the following explanation: > All recommendations have been implemented. All points have been addressed except for #8 and #9. **Description:** Even when the protocol operates...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing initialization function for AccessControl ### Description The `Sign` contract employs a transparent upgradeable pattern and initiates the `Pausable_init_unchained()` and `Sign_init_unchained()` within the `_Sign_init()` function during the contract's initialization. However, it fails to call the `_Acce...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Becasue of devision before multiplication in `LibFertilizer:remainingRecapitalization()` less fertilizers is mintable than is needed to fully recapitalize the lost LP token value ### Description There is a division before multiplication at `LibFertilizer:remainingRecapitalisation()`, which will cause the proto...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
liquidation
false
false
## Medium: Incorrect accounting of used gas ### Description The [`asborbInternal`](https://github.com/compound-finance/comet/blob/0f1221967149115f50a09681eea9580879ee7720/contracts/Comet.sol#L1173) function of the `Comet` contract contains important logic of the protocol where users that are [liquidatable](https://git...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `StakedCitadel._depositFor()`: L776 should be unchecked due to L773-L775 ### Description See `@audit` tags:
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing event emission for key state changes ### Description The functions `setTreasury` and `setProtocolFeeBIPS` do update key state variables but do not emit events: ```solidity function setTreasury(address newTreasury) external onlyRole(DEFAULT_ADMIN_ROLE) { require(newTreasury != address(0), TreasuryAdd...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: When a purchase occurs, other markets do not maintain the same utilization ### Description The following invariant for when a purchase occurs was not holding: "Markets that did not have a purchase occur must have the same utilization." 1. Calling -> `MockTrigger(triggers[1]).mockState(MarketState.TRIGGERED...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 methods ### Description The following methods are public and could be external. External is more gas optimize that public, so it should be used as much as possible. * swapTokensForReward() should be declared external: + Swapper.swapTokensForReward() (swapper/Swapper.sol#75-94...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
overflow
true
false
## Low: Function `buyNftFromMarket()` should not be payable ### Description The `buyNftFromMarket()` function is marked as payable but fails to consider callvalue. The `buyNftFromMarket()` function present in the ParticleExchange contract implements the flow in which the borrower buys an NFT in the marketplace in ord...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
true
## High: Faulty Access Control allows anyone to claim Fees ### Description A Set's accumulated fees may be collected by calling the `claimSetFees()` function of the Manager singleton contract, which allows an owner to batch-collect all fees from multiple of their Sets at once. To ensure that only the correct Set owner...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Steal tokens from TempusController ### Description _Submitted by gpersoon_. #### Impact The function `\_depositAndProvideLiquidity` can be used go retrieve arbitrary ERC20 tokens from the TempusController.sol contract. As the test contract of TempusController.sol shows, it has indeed ERC20 tokens. The pr...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
other
true
false
## Gas: Wrong comment in `setPool` function ### Description ### Relevant GitHub Links https://github.com/Cyfrin/2023-07-beedle/blob/658e046bda8b010a5b82d2d85e824f3823602d27/src/Lender.sol#L141-L142 https://github.com/Cyfrin/2023-07-beedle/blob/658e046bda8b010a5b82d2d85e824f3823602d27/src/Lender.sol#L148 ## Vulnerab...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: SablierV2Lockup is not EIP4906 compliant. ### Description According to [EIP4906-specification](https://eips.ethereum.org/EIPS/eip-4906#specification), the smart contracts that are implementing it must have a ``supportsInferface(bytes4)`` function that returns true when called with ``0x49064906``. But, there 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
gas
other
true
false
## Gas: Avoid emitting storage values ### Description Caching of a state variable replaces each `Gwarmaccess (100 gas)` with a much cheaper stack read. We can avoid unecessary SLOADs by caching storage values that were previously accessed and emitting those cached values. https://github.com/code-423n4/2023-05-ajna/bl...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
overflow
true
false
## High: Revert due to underflow error, leading to lock of the liquidated NFT ### Description The `IsolateLogic.sol#executeIsolateAuction()` is triggered by liquidators to launch a new auction or just participate in an existing one for isolated lending. Each NFT token has a predefined auction duration `nftAssetData.au...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inconsistency Declaring uint256/uint ### Description During the security review, it was observed that the contract uses both `uint` and `uint256` types inconsistently across functions, events, and variable declarations. Although `uint` is an alias for `uint256` in Solidity, inconsistency in type usage can redu...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inconsistent FT Reserve Check Leading to Fee Payment Failures ### Description The TermMaxOrder contract contains inconsistent logic for checking FT token reserves before issuing new tokens. While one check correctly verifies reserves for both output and fees, another check only verifies the output amount, c...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
rounding
true
false
## Low: [05] NATSPEC on `OceanAdapter._convertDecimals` should be revised ### Description The function `_convertDecimals()` from OceanAdapter.sol is an exact copy on Ocean.sol. However, the OceanAdapter version does not return the `truncatedAmount`. The comments on OceanAdapter.sol should be revised accordingly to 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
high
liquidation
true
false
## High: swap fees going to the liquidation pool manager contract will be accounted for as part of the liquidation amount ### Description ### Relevant GitHub Links https://github.com/Cyfrin/2023-12-the-standard/blob/91132936cb09ef9bf82f38ab1106346e2ad60f91/contracts/SmartVaultV3.sol#L214 https://github.com/Cyfrin/202...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
false
false
## Medium: Incomplete validation of the Babylon deposit can lead to Babylon dismissing the BTC trans- action or indefinite lockup of funds ### Description ## Babylon Deposit MFA Request Validation **Context:** `babylon_deposit.go#L36-L76` **Description:** As part of the Babylon deposit MFA request, `validateBabylonDe...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
oracle
true
false
## Gas: Remove unused variables in `OracleLib` ### Description Currently `OracleLib.staleCheckLatestRoundData()` returns 4 variables `(uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound)` which are returned from `latestRoundData()` In the current implementation, only `answer`...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Non-library files should use the same compiler version ### Description Contracts within the scope should be compiled using the same compiler version. ### Proof of Concept All the files in scope have the compiler version set to `0.8.13`, while `ZcToken.sol` has it set to `^0.8.4` . ### Recommended Mitigation...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Require statements missing strings ### Description Require statements should have descriptive strings to describe why the revert occurs. Instances:
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Removing an owner does not work in PersonalAccountRegistry ✓ Fixed ### Description An owner of a personal account can be added/removed by other owners. When removing the owner, only `removedAtBlockNumber` value is updated. `accounts[account].owners[owner].added` remains `true`: **code/src/personal/PersonalA...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: CollateralizedDebt.tokenURI fails when pair's asset or collateral token have low decimals ### Description [NFTTokenURIScaffold.sol#L166](https://github.com/code-423n4/2022-03-timeswap/blob/main/Timeswap/Convenience/contracts/libraries/NFTTokenURIScaffold.sol#L166) Standard ERC721 tokenURI call will fail for C...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
initialization
true
false
## Low: beaconChainSlashingFactor Is Negated After Delegation ### Description The _increaseDelegation() function incorrectly assumes that the addedShares parameter corresponds to the number of added withdrawable shares. This leads to an incorrect deposit scaling factor (dsf) and operator shares update when the staker ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Computing the quote should be done for a positive amount of tokens ✓ Fixed ### Description When a policy is bought, a quote is requested from the `PolicyQuote` contract. **code/contracts/PolicyBook.sol:L191-L195** ``` function \_buyPolicyFor( address \_policyHolderAddr, uint256 \_epochsNumber, uint25...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
reentrancy
true
false
## High: The `withdrawClosedSize()` Function Misses the Situation Where the Funds Are Transferred as `ETH` From the `GMX` ### Description Users can opt to close their positions with ETH being received, accordingly, they can pass the flag: File: [src/interfaces/IPearGmxFactory.sol#L48-L49](https://github.com/pear-prot...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Keychain operations are not checked for errors ### Description Keychain operations can fail for a number of reasons. All keychain operations return error codes which have to be checked to ensure an operation was performed correctly. In the wallet’s code, the operations are executed through a wrapper library, *...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `maxLeverage` can be set lower than `minLeverage` overnight ### Description Inside `_setPairOvernightMaxLeverage`, there is no validation to ensure `overnightMaxLeverage` is not lower than `groups[_pair.groupIndex].minLeverage`. Consider adding this validation to ensure proper configuration of `overnightMaxLev...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: SGX Verifier Allows Instances To Be Replaced With Themselves ### Description Within the `SgxVerifier` contract, whenever an instance creates a signature, they are required to replace the current address with a new address. This logic is implemented in the function `_replaceInstance()`. There is a lack of checks...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Attacker can DOS user from selling shares of a `credId` ### Description The Cred.sol contract provides a `buyShareCredFor()` function which anyone can use to buy shares for another curator. We also know that once a share is bought, the curator needs to serve a 10 minute share lock period before being able 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: 09] The revoke function may not inform the user of a failed operation ### Description ###### Low The [`revoke`](https://github.com/BeamNetwork/currency/blob/c0d8477866a8667a37f45c85378c5938c84569cd/contracts/currency/BeamBalanceStore.sol#L149) [function](https://github.com/BeamNetwork/currency/blob/c0d847786...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Double counting of existing open interest ### Description **Severity** **Impact:** Medium **Likelihood:** Medium **Description** When validating a request to increase position size, the function `validateRequest` checks if the trade stays within exposure limits. However, the amounts and leverage used ar...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
storage
true
false
## Low: Typos ### Description *There are 8 instances of this issue:* https://github.com/code-423n4/2023-01-popcorn/blob/d95fc31449c260901811196d617366d6352258cd/src/vault/adapter/abstracts/AdapterBase.sol#L24 https://github.com/code-423n4/2023-01-popcorn/blob/d95fc31449c260901811196d617366d6352258cd/src/vault/adap...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 `userStatsFor()` Function Returns `cap = 0` After `minute > 50` ### Description If `minutesSince() > 50`, `cumulativeCapFor` returns `type(uint256).max`, but `userStatsFor` maps that to `cap = 0` and `available = 0`. That is misleading: on-chain caps are lifted but this view reports zero available capacity...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: Cache computation results instead of repeatedly performing the same computation ### Description Cache computation results instead of repeatedly performing the same computation. * `contracts/utils/TransactionRelayer.sol` ```solidity // cache `toBytes32(investorId)` in `setInvestorNonce` 142: uint256 inv...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 custom errors instead of revert strings ### Description Solidity 0.8.4 added the custom errors functionality, which can be use instead of revert strings, resulting in big gas savings on errors. Replace all revert statements with custom error ones
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: ZETA token supply keeps growing on failed `onReceive()` contract calls ### Description ZETA tokens minted to the fungible module account are not burned/reverted if the `onReceive()` ZEVM call reverts, which keeps increasing the total supply of ZETA tokens. This can lead to a denial of service (DoS) for ZETA...
0