prompt listlengths 2 2 | source stringclasses 3
values | severity stringclasses 5
values | category stringclasses 186
values | has_code bool 2
classes | has_poc bool 2
classes | reference_response stringlengths 23 5k | firm stringclasses 26
values | quality_score float64 0 5 | protocol stringclasses 398
values |
|---|---|---|---|---|---|---|---|---|---|
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Additional protection checks.
### Description
**Description**
v1/Pausable.sol.
Additional checks to not allow pause already paused or unpause already unpaused (for pause() and unpause()).
v1/Blacklistable.sol
Additional checks to not block already blocked or unblock already unblocked account (for blacklist... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unnecessary decimal normalization for Chainlink price feeds
### Description
**Severity**: Informational
**Status**: Resolved
**Description**
The checkIfUSDC function from AFiStorage contract is designed to determine the price of a given token (tok) in terms of USDC. The function utilizes Chainlink oracles... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: Reverse order of checks in `TokenBridge::isNewToken` to save 2 storage reads
### Description
`TokenBridge::isNewToken` can often save 2 storage reads by reversing the order of checks, eg:
```solidity
modifier isNewToken(address _token) {
// @audit swapped order of checks to save 2 storage reads by often... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: SafeMath can be removed
### Description
**Description**
Since the contract has 0.8 version of Solidity, SafeMath library can be removed, as overflow
and underflow errors are built-in. Removing the library will give gas savings by omitting extra
function calls.
**Recommendation**:
Omit SafeMath 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 | medium | signature | true | false | ## Medium: hashProposal uses wrong typeshash when hashing the encoded Proposal struct data
### Description
`acceptLoanOfferAndFillOrder`, `_refinance`, `matchProposals` use `_assertValidSignature` which hashes proposal data and verifies the signature. But the hashed proposal type hash computation is wrong due to usage... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Comment slash off by one
### Description
https://github.com/code-423n4/2023-07-moonwell/blob/main/src/core/Comptroller.sol#L984-L988
The slash is only 3 not 4 whitespaces in.
**[ElliotFriedman (Moonwell) confirmed and commented](https://github.com/code-423n4/2023-07-moonwell-findings/issues/328#issuecomment... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Reduce reads in `purchaseMembership` method
### Description
The method `purchaseMembership` in the `FSDNetwork` contract contains the code below.
Inside this method, we are constantly reading from the mapping `membership`, so why not use just one read `Membership userMembership = membership[msg.sender]` and 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 | access-control | false | false | ## Low: CEI pattern violation in `STBL_PT1_Vault::withdrawFees`
### Description
The `STBL_PT1_Vault::withdrawFees` function violates the Checks-Effects-Interactions (CEI) pattern by performing external token transfers before resetting the fees to 0.
The function resets fee counters (`VaultData.depositFees`, `VaultDat... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 value
### Description
[Line 940](https://etherscan.io/address/0xbafe01ff935c7305907c33bf824352ee5979b526#code#F4#L940) of the `Comptroller` contract calls the `isCToken` getter in the `cToken` contract when listing a new market, but it does check the return value, making this check completely use... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: REWARDS SPEND LIMIT CAN BE IGNORED
### Description
The rewards contract has a `spend_limit` attribute that caps the maximum amount a distributor can spend in a transaction. However, the amount of each distribution message is verified separately instead of checking that the global amount spent is less than the ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | oracle | true | false | ## Medium: The `recoverEther` function shouldn't be called with gas restrictions
### Description
There is an issue at line https://github.com/p2p-org/eth-staking-fee-distributor-contracts/blob/30a7ff78e8285f2eae4ae552efb390aa4453a083/contracts/feeDistributor/ContractWcFeeDistributor.sol#L188, https://github.com/p2p-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... | cyfrin_structured | low | other | true | false | ## Low: Require condition `_minLineaOut > 0` offers no protection against malicious BURNER_ROLE behaviour
### Description
Function burnAndBridge in RollupRevenueVault is only callable by the BURNER_ROLE. During this call, the BURNER_ROLE can pass in arbitrary `_swapData` to call on the V3DexSwap contract. The swap() 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 | high | cross-chain | true | false | ## High: Discrepancy In Handling Relayer Fee
### Description
## Vulnerability in Hub and Spoke ForwardCost Handling
The vulnerability resides in how Hub and Spoke handle `forwardCost`. The balance in `forwardCost` is utilized in instances such as refunds arising from failed transactions on the Hub (due to unregistere... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Use latest version of Solidity
### Description
[Current code](https://github.com/ether-camp/virtual-accelerator/blob/6d4097a08669c2520e0d5bab317b60f1d13df44e/contracts/DSTContract.sol#L5) is written for old versions of solc (0.4.2). With [the latest storage overwriting vulnerability](https://blog.ethereum.o... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | reentrancy | true | false | ## High: Reward notification can unnecessarily reduce tnsl , causing locking of rewards
### Description
The `CLPool.timeNoStakedLiquidity` variable tracks the duration when there was a reward in a pool but no staked liquidity. The variable can be updated in epochs following the one it's supposed to track, thus `CLGaug... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | high | oracle-manipulation | false | false | ## High: Price manipulation during initial ps minting can cause user losses
### Description
When a new instrument is created and the pool is empty (`ps == 0`), the first liquidity provider's deposit amount is calculated using a price derived from `last_px`, `best_bid`, and `best_ask`. A malicious user can manipulate `... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: enableProgram is overloaded
### Description
In the [`AutoCompoundingRewards`](https://github.com/bancorprotocol/contracts-v3/blob/b2224595afab14827ee065cb65a1444d61689fb3/contracts/rewards/AutoCompoundingRewards.sol) contract, the [`enableProgram`](https://github.com/bancorprotocol/contracts-v3/blob/b2224595af... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `createPoolD650E2D0` will not work due to mismatch in solidity and stylus function definitions
### Description
### Proof of Concept
SeaWaterAMM.sol holds the `createPoolD650E2D0` which allows the admin to initialize a new pool. It calls the `create_pool_D650_E2_D0` function in the stylus.
As can be seen fro... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Malicious user can delete all Users Deposited Liquidity.
### Description
The [`onAfterRemoveLiquidity`](https://github.com/Cyfrin/2024-12-quantamm/blob/main/pkg/pool-hooks/contracts/hooks-quantamm/UpliftOnlyExample.sol#L431-L570) function in the `UpliftOnlyExample.sol` implementation does not include the `onl... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Only read and write storage location `unclaimedTierAmount` once per changed tier in `DropBox::_assignTierAndMint`
### Description
**Description:** `DropBox::_assignTierAndMint` can be re-written to drastically reduce the amount of storage read/writes to `unclaimedTierAmount` storage location like this:
When ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Swaps can happen without changing the price for the next trade due to gamma = 0
### Description
When a swap happens in WoofiPool the price is updated accordingly respect to such value "gamma". However, there are some cases where the swap results to a "gamma" value of "0" which will not change the new price ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inability to remove swap pools from the backstop pool
### Description
**Severity**
**Impact:** High
**Likelihood:** Low
**Description**
In the backstop pool, once a swap pool is added to the list of covered pools, it cannot be removed.
If the Pyth network deprecated the price feed for the asset of one ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 migrating via `L2ContractMigrationFacet`, user is not minted roots for the newly accrued stalk
### Description
Users lose roots upon migration
### Impact
Loss of roots, unfair minting of Beans | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Underflow In Refund Value Calculation
### Description
## Vulnerability in Mythos.sol: Refund Exploitation
The `_sendTokensAndRefund` value in `Mythos.sol` is to be refunded and calculated by multiplying the number of tokens minted with the price while subtracting from the user’s contribution. This is execute... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | access-control | true | false | ## Low: Missing System Program Check in Instructions like `new_operator`(Inconsistency)
### Description
Unlike many other handlers, `new_operator` does not verify that the `system_program` account equals `solana_program::system_program::ID` before using it in `realloc_account_data`. The call would eventually fail if 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 | token | true | false | ## Low: Missing check that tokenIn andtokenOut are different
### Description
## Severity: Low Risk
**Context:** Swapper.sol#L133
**Description:** The `doZeroExSwap()` function takes in two ERC20 addresses which are `tokenIn` and `tokenOut`. The problem is that the `doZeroExSwap()` function does not check if the two ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [26] zkEVM's `CodeOracle` Precompile somewhat deviates from EVM's `extcodecopy` behavior
### Description
### Proof of Concept
Take a look at https://github.com/code-423n4/2024-03-zksync/blob/4f0ba34f34a864c354c7e8c47643ed8f4a250e13/code/system-contracts/contracts/precompiles/CodeOracle.yul#L4
We can see tha... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Open TODOs
### Description
Code architecture, incentives, and error handling/reporting questions/issues should be resolved before 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 | medium | token | true | false | ## Medium: 19] FuelERC20GatewayV4.sendMetadata() produces a corrupted message to the Portal because of the missed type conversion
### Description
**Severity:** Medium
**Path:** FuelERC20GatewayV4.sol#L190-L199, src/data_structures/message_data.sw#L21-L30
**Description:**
The `FuelERC20GatewayV4.sendMetadata()` 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 | low | overflow | false | false | ## Low: Unsafe downcast from uint256 to uint56 can silently overflow resulting in incorrect voting power for validators
### Description
**Description:** `GovValidatorsCreate::createInternalProposal()` [L38](https://github.com/dexe-network/DeXe-Protocol/tree/f2fe12eeac0c4c63ac39670912640dc91d94bda5/contracts/libs/gov/g... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | storage | false | false | ## Low: Mitigation review of findings from Cantina competition
### Description
## Findings Review and Mitigation Measures
**Context:**
(No context files were provided by the reviewer)
## Description:
The mitigation measures of the following findings from the Term Structure / TermMax competition have been reviewed:... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | reentrancy | true | false | ## Low: Only read and write storage location `unclaimedTierAmount` once per changed tier in `DropBox::claimDropBoxes`
### Description
`DropBox::claimDropBoxes` can be re-written to drastically reduce the amount of storage read/writes to `unclaimedTierAmount` storage location like this:
```solidity
function claimDrop... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | storage | false | false | ## Low: Shared gasometer in FA bridge proxy contract invocation
### Description
Severity: Low Risk
Context: fa_bridge/mod.rs/inner_execute_proxy
Description: When the FA bridge executes the proxy contract, it calls handler.execute_call directly. This call
does not create a new "transaction data layer". The gasometer 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 | front-running | true | false | ## Medium: createProject can be frontrun
### Description
_Submitted by wuwe1, also found by defsec, and kirk-baird_
This is dangerous in scam senario because the malicious user can frontrun and become the owner of the collection. As owner, one can withdraw `paymentToken`. (note that \_collections.isForSale can be 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... | skyward_49k | medium | other | false | false | ## Medium: Potential to Undercharge for Domain Label with Lengths of `maxLength`
### Description
**Update**
The client fixed the issue in `14749feacdd9304028c965182adf59ed7d570c8d` by adjusting `_validateConfig()` to verify prices at `config.maxLength` instead of `config.maxLength - 1`.
**File(s) affected:**`ZNSCurve... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | true | false | ## Gas: Unnecessary computation
### Description
When emitting an event that includes a new and an old value, it is cheaper in gas to avoid caching the old value in `memory`. Instead, emit the event, then save the new value in storage.
Proof of Concept - Instances include:
Replace:
with:
https://github.com/ERC725... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The collateral remainder cap is incorrectly calculated during liquidation
### Description
When a position is overdue, it can be liquidated even if the owner has a sufficient collateral ratio. Some rewards are sent to the liquidator as an incentive and some fees are assigned to the protocol. However, the calcu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Vault is vulnerable to first depositor inflation attack
### Description
First depositor can manipulate the price of the shares at will, forcing new depositors to deposit more ETH for the same amount of shares that the first depositor paid.
### Proof of Concept
Before diving into the details of how this atta... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 compiler optimizations can be problematic
### Description
The Hyper contracts have enabled optional compiler optimizations in Solidity. There have been several optimization bugs with security implications. Moreover, optimizations are actively being developed. Solidity compiler optimizations are disabl... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: | Improper Visibility
### Description
**Description**
`toLower` has visibility public but it under the internal functions section.
**Recommendation**
Consider marking the function with visibility internal or move it to a different section. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Composability of GClaimManager
### Description
## Severity: Medium Risk
## Context
- GClaimManager.sol
- Claim.sol
- Divider.sol
## Situation
When calling the function `join()` and `exit()` from contract `GClaimManager`, the function `_collect()` of `Divider` is called via `transfer()` or `transferFrom()`... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | oracle-manipulation | true | false | ## Low: `_onlyCalmPeriods` does not consider MIN/MAX ticks, which can DOS deposit, withdraw and harvest in edge cases
### Description
In Uniswap V3 liquidity providers can only provide liquidity between price ranges `[1.0001^{MIN_ TICK};1.0001^{MAX_TICK})`. Therefore these are the min and max prices.
```solidity
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: [13] `InitialContributor` and `InitialDelegate` can be removed from `ETHCrowdfundOptions`
### Description
https://github.com/code-423n4/2023-10-party/blob/b23c65d62a20921c709582b0b76b387f2bb9ebb5/contracts/crowdfund/ETHCrowdfundBase.sol#L35
The two initialization parameters `initialContributor` and `initialDe... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Two variables can be merged
### Description
`started` can be merged with `cliffDuration`:
https://github.com/Gearbox-protocol/gearbox-contracts/blob/0ac33ba87212ce056ac6b6357ad74161d417158a/contracts/tokens/Vesting.sol#L46
### Recommendation
We recommend merging `started` with `cliffDuration` into one 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 | medium | dos | true | false | ## Medium: Rewards system DOS due to unchecked asset class share and fee allocations
### Description
**Description:** The REWARDS_MANAGER_ROLE can set asset class reward shares without validating that the total allocation does not exceed 100%. This enables over-allocation of rewards, leading to potential insolvency 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 | high | dos | false | false | ## High: A malicious entity can grieve Restoration Servers for their funds
### Description
Due to the location of the `CanTransfer()` check in `(evm *EVM) Restore()`, it is possible for a malicious entity to grief honest restoration servers for a significant amount of gas. This can become a more serious issue if a lar... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Stale Value of totalStableToken Used in Stability Pool
### Description
The [sync modifier](https://github.com/AladdinDAO/fx-protocol-contracts/blob/56a47eab8d10334e479df83a2b13a8b68ce390e9/contracts/core/FxUSDBasePool.sol#L165-L174) updates the `totalStableToken` variable to the latest value in case the sta... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Challenger can override the 7 day finalization period
### Description
All withdrawals are finalized after a 7 days window (finalization period). After this duration transaction are confirmed and user can surely withdraw their balance.
But due to lack of check, challenger can delete a l2Output which is older... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Blacklisted Users Cannot Recover Withdrawal Shares
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation:
> We acknowledge this as a known limitation in our current design. For users who become blacklisted after initiating a withdrawal request, we pla... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | false | false | Source: https://github.com/sherlock-audit/2023-02-hats-judging/issues/47
## Found by
obront, 0xMojito
## Summary
Each hat has the ability to mint `2^16 = 65,536` direct children. The id of the next child to be minted is saved in `_hats[_admin].lastHatId` and is incremented with each new child created. Once it hits... | Sherlock | 5 | Hats |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 can transfer all ERC20 reward token out using function recoverERC20
### Description
The function recoverERC20 is very privileged. It means to recover any token that is accidently sent to the contract.
However, admin / owner can use this function to transfer all the reserved reward tokens, which resu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: Lack of build instructions
### Description
The Drift Protocol repository does not contain instructions to build, compile, test, or run the project. The project’s README should include at least the following information:
- Instructions for building the project
- Instructions for running the built artifacts
- 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: Use `==` instead for `<=` for `uints` when comparing for `zero` values
### Description
Using `== 0` is cheaper than `<= 0` for uints :br
There are `2` instances of this issue:
```solidity
File: src/DecentralizedStableCoin.sol
48: if (_amount <= 0) {
61: if (_amount <= 0) {
``` | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | oracle | true | false | ## Low: Validate Price Feed Account
### Description
## Price Feed Account Validation Issue
While creating the pool, the creator passes the price feed account. While validating the price feed account, it was not verified that the price feed account was owned by Pyth.
## Code Snippet
## Remediation
Check if the Pyt... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Event parameter changed the meaning
### Description
**Severity**: Informational
**Status**: Acknowledged
**Description**
HordETHStakingWithdrawalManager.sol, requestWithdraw()
NewUserWithdrawalRequest event emission
Before the change, the event represented the current value of reserves (totalETHReservesFo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Namewrapper Doesn’t Support Other .Eth 2 Level Domains Won't Fix
### Description
While this is out of scope, we wanted to point this out: for a non\-`baseDomain`(`linea.eth`) name, it is wrapped with `wrap` function without `fuses` and `expiry` parameters:
`_wrap(node, name, wrappedOwner, 0, 0);`
If Linea ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | ## High: RewardDistributor caching totalSupply leading to incorrect reward calculation
### Description
The `RewardDistributor` distributes newly minted VELO tokens to users who lock the tokens in `VotingEscrow`. Since the calculation of past supply is costly, the `RewardDistributor` caches the supply value in `uint256... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Use constants.
### Description
**Description**
StakingB.sol Lines 17, 18, 19
StakingB_1.sol Lines 518
If the value of the storage variable can’t be changed it can be set as constant in order to save
gas.
**Recommendation**:
Set offered storage as constant | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: State variables should be cached in stack variables rather than re-reading them from storage (5 instances)
### Description
Deployment Gas Saved: **70 505**
Method Call Gas Saved: **2 634**
`forge snapshot --diff`: **12 481** Gas Saved
Caching of a state variable replaces each Gwarmaccess (100 gas) with a much... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Document that strategy shouldn 't withdraw less than requested amount
### Description
There is an assumption that the strategy will always allow you to withdraw the entire amount stored in `withdrawn` (either immediate or delayed). The variable `balanceAfterUpdate` is not considered in accounting for `position... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Private Key Is Exposed in the Deployment and Upgrade Script ✓ Fixed
### Description
In the contract deploying and upgrading script, private key is used to broadcast the transaction, this would expose private key of the deployer and upgrader account on the machine running the script, therefore compromising the... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | false | false | ## Medium: Inconsistent Bond Curve Update Handling
### Description
The issue is identified within the function [updateBondCurve](https://github.com/lidofinance/community-staking-module/blob/a898d045b63303294752d1a60ad9dfe8d8ba69ca/src/CSAccounting.sol#L168-L173) of contract `CSAccounting`. When updating a bond curve, ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Attackers can use `reclaimContract()` to transfer assets in protocol to address(0)
### Description
`reclaimContract()` would transfer payment tokens to `bulls[contractId]`. An attacker can make `reclaimContract()` transfer assets to address(0).
### Impact
An attacker can use this vulnerability to transfer as... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | rounding | true | false | ## High: Permissionless reward distribution can be abused to cause full denial of service and loss of funds for pools
### Description
**Description:** The distribution of reward token incentives is a permissionless action, meaning that anyone can create a worthless token and mint a large amount to be distributed. When... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Error codes of Compound’s Comptroller.enterMarket, Comptroller.exitMarket are not checked ✓ Fixed
### Description
Compound’s `enterMarket/exitMarket` functions return an error code instead of reverting in case of failure.
DeFi Saver smart contracts never check for the error codes returned from Compound smart ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: M08] Implementation of EIP 777 does not fully match the specification
### Description
###### Medium
The following mismatches between the [EIP 777 specification](https://eips.ethereum.org/EIPS/eip-777) and the related implementation contracts (i.e., [`ERC777Token`](https://github.com/BeamNetwork/currency/b... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Rewards can be unintentionally overridden
### Description
- https://github.com/code-423n4/2023-10-canto/blob/main/canto_ambient/contracts/callpaths/LiquidityMiningPath.sol#L65
- https://github.com/code-423n4/2023-10-canto/blob/main/canto_ambient/contracts/callpaths/LiquidityMiningPath.sol#L74
Lidiquity mining... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: During the yield phase, when using supported vaults, users can't withdraw vault assets they are entitled to
### Description
**Description:** During the yield phase, when using supported vaults, users can't withdraw vault assets they are entitled to.
**Proof of Concept:**
**Recommended Mitigation:** In `pUS... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 require in setter
### Description
There are 3 setters in `OwnerFacet.sol` which require statement doesn't match with the error message.
### Impact
The incorrect value for the require statement could lead to a restriction of precion for this parameters, it wouldn't be possible to input a net value 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... | solodit_api | high | Reentrancy | false | true | ## Lines of code
https://github.com/code-423n4/2022-04-jpegd/blob/e72861a9ccb707ced9015166fbded5c97c6991b6/contracts/vaults/yVault/yVault.sol#L144-L145
## Vulnerability details
## Impact
In `deposit`, the balance is cached and then a `token.transferFrom` is triggered which can lead to exploits if the `token` is a t... | Code4rena | 4 | JPEG'd |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Missing check in IOffchainWrapper.takeOrder implementation
### Description
`IOffchainWrapper.takeOrder` wraps an external call that is supposed to perform a token swap. As for the two different implementations `ZeroxWrapper` and `ScpWrapper` this function validates that the destination token balance after 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 | front-running | false | false | ## High: Missing slippage protection on SyncSwap swaps
### Description
The SyncSwapper abstract contract implements the logic to process swaps via SyncSwap's SyncRouter. Typically, when integrating DEX protocols, a maximum slippage limit is enforced to protect trades from excessive exposure to MEV (Miner Extractable V... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | ## Low: Fork re-proposition may prevent owners from accepting or rejecting a fork
### Description
A re-proposed fork cannot be confirmed or rejected by certain owners. A fork can be proposed, accepted, or rejected. Each fork is identified by its number. The fork structure contains the `status` mapping, which is used t... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | initialization | true | false | ## Medium: Missing message authentication in content script
### Description
The Ethereum API creates two event listeners: one in the `initExtensionToDappOneWayListener` function and one in the `sendRequestAsync` function. Neither listener validates the event’s source. A malicious dapp can post a message to a website w... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | oracle | false | false | ## Medium: `getPrice` in `WeightedBPTOracle.sol` uses `totalSupply` for price calculations which can lead to wrong results
### Description
Source: https://github.com/sherlock-audit/2023-07-blueberry-judging/issues/18
## Found by
Vagner
`getPrice` is used to calculate the price in USD of a given balancer LP, and it... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `x * y = k` invariant not maintained
### Description
In constant product AMM with the formula `x * y = k`, a key invariant is that the k value should never decrease after each swap. However, when calculating the ETH amount to buy a specified token amount in `getEthAmountWhenBuyWithExactTokenOutput`, the k valu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of lower bound check in setFeeShareholders() may allow unfair EL yield capture by gover-
### Description
Lack of lower bound check in `setFeeShareholders()` may allow governance to accidentally/maliciously set a very low value for `feeShareholders`, leading to unfair EL yield capture.
### Recommendation
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | signature | false | false | ## Low: Missing Ownership Validation
### Description
## Current Issue
Currently, `process_verify_hash` does not check whether `guardian_signatures` account is owned by the expected program (`VERIFY_VAA_SHIM_PROGRAM_ID`). This implies that any account that can be deserialized into `GuardianSignatures` may be utilized ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Interest is not accrued before calling BorrowImpl.internalBorrow in Dahlia.supplyAndBorrow
### Description
Interest is not accrued before calling `BorrowImpl.internalBorrow` in `Dahlia.supplyAndBorrow`. Accruing interest before calling `BorrowImpl.internalBorrow` is important; otherwise:
1. `borrowedShares` ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Anyone can mint all NFTs through the public mint before it has even started
### Description
**Impact:**
High, as it breaks an important protocol invariant and the way the protocol should work overall
**Likelihood:**
High, as it does not need any preconditions, can be executed easily at the deployment of `Hon... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | rounding | false | false | ## Low: [02] `rebalance()` calculates `sharesToMint` by rounding-down against the protocol's favour
### Description
The [Vault::rebalance()](https://github.com/code-423n4/2024-05-bakerfi/blob/main/contracts/core/Vault.sol#L260-L264) function rounds-down the `sharesToMint` against the protocol's favour. It ought to 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 | medium | other | false | false | ## Medium: Desync lets bribes be received without emissions
### Description
Because of the fact that BribeVotingRewardwill award bribes based on the voting power at EPOCH\_-
END - 1, but Minter.update_period() and Voter.distribute() can be called at a time after, some voters may
switch their vote before their weight i... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Missing Vault Address Checks
### Description
## Vulnerability Report: sfnSubmitDispute Function
The `sfnSubmitDispute` function does not utilize the `onlyValidVaultStrategy` modifier, which asserts that the given vault is associated with an SFN product. This oversight may be exploited to corrupt vault status ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [19] WORD TYPING TYPO
### Description
The following code comment uses two "to's" in "having to to use". Please consider changing this phrase to "having to use".
https://github.com/ethereum-optimism/optimism/blob/536178b0e28f7015e036ad050945ea5633dacf02/packages/contracts-bedrock/contracts/deployment/SystemDic... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Pools are not compatible with Uniswap V2 routers
### Description
While the interface of the `swap()` function matches the Uniswap V2 router, this router cannot be used with the protocol's pools. There are several reasons for this:
- Uniswap's router uses its own factory contract to find the pair.
- The pair 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 | token | false | false | ## Medium: Transfer to treasury can register as succeeded when failing in `_calcRewardIntegral`
### Description
_Submitted by 0xw4rd3n_
[StakingRewards.sol#L126](https://github.com/code-423n4/2022-02-concur/blob/72b5216bfeaa7c52983060ebfc56e72e0aa8e3b0/contracts/StakingRewards.sol#L126)
If the transfer of the reward... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Config parameters are not validated.
### Description
**Description**
DutchBid.sol: function updateConfig().
Values from the 'config' parameter are not validated in a way they are validated in the constructor (Line 25). In this case, the owner can set values in a way that the price will go below zero.
**Recom... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `2**<n> - 1` should be re-written as `type(uint<n>).max`
### Description
Earlier versions of solidity can use `uint(-1)` instead. Expressions not including the `- 1` can often be re-written to accomodate the change (e.g. by using a `>` rather than a `>=`, which will also save some gas).
*There are 44 instance... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 method for paused status
### Description
**Description**
Vault.sol, 437 _ifNotPaused() is never used.
So it makes function isPaused() from iTrustVaultFactory.sol unused as well.
Also these method are actual duplicates for isActiveVault() method, so isPaused() can be safely
removed.
**Recommendation**:... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | false | false | ## Low: Prevent setting the new epoch to an arbitrary large value
### Description
In the function `Bridge::updateValidatorSet`, the new epoch is [checked](https://github.com/ChainAccelOrg/hyperliquid-audit/blob/e0aff464865aa98c09450702d7fb36b1fcd4508c/Bridge.sol#L213) to be greater than the current epoch. However, the... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | token | true | false | ## Medium: Potential economic attack on UDT grants to the referrer
### Description
_Submitted by WatchPug_
In the current implementation, `Unlock.sol#recordKeyPurchase()` will send `estimatedGasForPurchase * tx.gasprice` worth of UDT to the referrer.
We believe there are multiple potential economic attack vectors t... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | false | false | ## Medium: Use safe math
### Description
There are many unchecked math operations in the code. It’s always better to be safe and perform checked operations. Consider [using a safe math library](https://github.com/OpenZeppelin/zeppelin-solidity/blob/master/contracts/SafeMath.sol#L6), or performing pre-condition 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 | high | front-running | false | false | ## High: Anyone Can Arbitrarily Mint Synthetic Assets In `VaderPoolV2.mintSynth()`
### Description
_Submitted by leastwood_
#### Impact
The `mintSynth()` function is callable by any user and creates a synthetic asset against `foreignAsset` if it does not already exist. The protocol expects a user to first approve 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 | reentrancy | true | false | ## Low: No Way to Recover Locked Tokens in the Vault
### Description
The vault lacks a mechanism to recover arbitrary ERC-20 tokens accidentally sent to it. Over time, stray tokens may become irrecoverable. For example the vault expects ETH and later swaps `ETH`->`HEROSTR`. If a sale is settled in WETH (very common) 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 | gas | other | true | false | ## Gas: Using `calldata` instead of `memory` for read-only arguments in external functions saves gas
### Description
When a function with a `memory` array is called externally, the `abi.decode()` step has to use a `for-loop` to copy each index of the `calldata` to the `memory` index. Each iteration of this `for-loop` ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `DiscretionaryExitFee` Can Be Drained
### Description
**Update**
The team added a new validation `require(msg.value != 0 || _l2Token != Lib_PredeployAddresses.OVM_ETH, ...)` in the commit `b5a7c572` that fixed the issue. Note that this commit is in a different PR: https://github.com/bobanetwork/boba/pull/716 ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Improper Order of Modifiers in `fillOrders()`
### Description
**Severity**: Low
**Status**: Resolved
**Description**
The `fillOrders()` function of `AdvancedOrderEngine` contract currently places the nonReentrant modifier after the onlyOperator modifier. The order of modifiers can influence the behavior 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 | access-control | true | false | ## Low: Unnecessary modifier for `getInventoryPackets`
### Description
_Resolved_
`getInventoryPackets` is a external view function, but it unnecessary restricted to only callable by `INVENTORY_MANAGER_ROLE`.
Consider removing the modifier. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Change the model of how events are emitted
### Description
Currently if we look at the event declaration we see something like this `event ParameterUpdate(string param);` and the actual emit as `emit ParameterUpdate("unbondingPeriod");`.
This method seems quite interesting especially for readability as we can ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | front-running | false | false | ## High: Morpho can end up in isolation mode
### Description
Aave-v3 introduced isolation assets and isolation mode for users:
> "Borrowers supplying an isolated asset as collateral cannot supply other assets as collateral (though they can still supply to capture yield). Only stablecoins that have been permitted by A... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.