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 | high | token | true | false | ## High: Infinite mint of FLUX using poke
### 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 effect of orig... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Race condition in the ERC20 approve function may lead to token the�t
### Description
A known race condition in the ERC20 standard, on the `approve` function, could lead to the theft of tokens. The ERC20 standard describes how to create generic token contracts. Among others, an ERC20 contract defines these 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 | true | false | ## Medium: Failure to update `lastClaimTime` mapping when users claim rewards in FeeCollector Causes Time-Based Reward Calculation Issues
### Description
The FeeCollector contract maintains a `lastClaimTime` mapping that tracks when users last claimed rewards, but this mapping is never updated when claims occur. The m... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: Failure to Withdraw Liquidity to RToken.sol Before Changing Curve Vault Address
### Description
A vulnerability exists in the `setCurveVault()` function of the LendingPool contract. When switching the `Curve crvUSD vault` to a new address, the function fails to withdraw the remaining reserve tokens from 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 | initialization | true | false | ## High: `VotingEscrow::updateUnlockTime()` - It's possible for voters to update their vote tokens unlock time as many times as they wish beyond the 365 day MAX limit, violating protocol invariant.
### Description
Report type: Smart Contract
Target: https://github.com/alchemix-finance/alchemix-v2-dao/blob/main/src/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 | high | access-control | true | false | ## High: Reallocation depends on the `slot0` price, which can be manipulated
### Description
Anyone can invoke the `reallocate` function to reallocate the LP position to be within the desired range. Whether reallocation is necessary depends on the `slot0` price. However, the `slot0` price can be manipulated, potential... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Irrelevant proof contributions are accepted
### Description
The [`contributesToFraudProof` modifier](https://github.com/ben-chain/contracts-v2/blob/a935e276f5620b40802b52721e3474232e458f72/contracts/optimistic-ethereum/OVM/verification/Abs_FraudContributor.sol#L12) declared in the `Abs_FraudContributor` contr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | oracle | true | false | ## Low: [29] Functions should be named in `mixedCase` style
### Description
As the [Solidity Style Guide](https://docs.soliditylang.org/en/v0.8.21/style-guide.html#function-names) suggests: functions should be named in `mixedCase` style.
RedemptionFacet.sol ([31](https://github.com/code-423n4/2024-03-dittoeth/blob/91... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect rent exemption checks
### Description
## Program Requirements
The program requires that all writable accounts be rent-exempt; this is enforced within the `valid_signable_account` and `valid_writable` functions.
## Code Snippet
However, the `is_rent_exempt` calculation is performed with the minimu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | storage | true | false | ## Gas: Use direct `_admin` immutable var. instead of calling `_proxyAdmin()` saves function call
### Description
We can access direct immutable `_admin` variable instead of accessing it through function `_proxyAdmin()`. It can save extra function call and saves some gas 100% safely.
(https://github.com/code-423n4/2... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | liquidation | true | false | ## Low: `liquidation()`: Liquidation allowance check insufficient in `liquidatio()`
### Description
### Impact
Liquidation allowance check in `liquidation()` is insufficient since it only checks that allowance provided to vault contract is more than 0.
Provider should authorize to provide at least `eusdAmount` to 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 | overflow | false | false | ## High: Unsafe type-casting
### Description
Throughout the contract we’ve encountered various unsafe type-castings.
- **invariant**: Within the `_swap` function, the next invariant is an `int256` variable and is calculated within the `checkInvariant` function implemented in the `RMM01Portfolio`. This variable then 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 | overflow | true | false | ## Low: Recommendation: remove MixinFinalizer._getUnfinalizedPoolRewardsFromState Won't Fix
### Description
`MixinFinalizer._getUnfinalizedPoolRewardsFromState` is a simple wrapper around the library function `LibCobbDouglas.cobbDouglas`:
**code/contracts/staking/contracts/src/sys/MixinFinalizer.sol:L250-L286**
`... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Strategy Vault stuck at `withdraw_failed` status if the deposit to `GMX` get Cancelled
### Description
- If adding liquidity to `GMX` get canceled after a failed withdrawal, the contract stuck in the `withdraw_failed` status.
### Impact
- Renders users unable to withdraw or deposit funds, halting essential... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | cross-chain | true | false | ## Low: `triggerMassExit()` Does Not Scale with `withdrawOffset`
### Description
**Update**
The client provided the following explanation:
> We don't consider this fix a priority because currently it is possible to configure withdrawOffset to be ~3 days. Also we trust the owner to select mass exit block in a meaningf... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: 3S-LENFT-H01 protocol/WETHGateway.sol: contract can be griefed not allowing borrowing
### Description
The borrow operation of the WETHGateway contract can be rendered useless if someone sends 1 wei to the contract (causing it to always revert on [line 117](https://github.com/leNFT/contracts/blob/master/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 | medium | other | true | false | ## Medium: Users can lock funds for less time than the minimum staking duration
### Description
Despite enforcing an explicit minimum staking duration, it is possible for users to lock funds for less time than intended.
If a user locks funds in an existing position without adding to its duration, the `Controller` ch... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `<x> += <y>` costs more gas than `<x> = <x> + <y>` for state variables
### Description
Using the addition operator instead of plus-equals saves **[113 gas](https://gist.github.com/IllIllI000/cbbfb267425b898e5be734d4008d4fe8)**.
*There are 16 instances of this issue.* | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Code Clarity
### Description
## Code Review Summary
## Issues Identified
1. **Redundant Assertions in `protocol_rewards::initialize_module`**
The function contains redundant assertions for checking the admin’s authorization.
2. **Metadata Storage in `claimable_fa_store`**
The `ClaimableFaStore` st... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | false | false | ## High: ArrakisV2Router#addLiquidityPermit2 will strand ETH
### Description
Inside ArrakisV2Router#addLiquidityPermit2, `isToken0Weth` is set incorrectly leading to the wrong amount of ETH being refunded to the user
### Impact
ETH will be stranded in contract and stolen
### Recommendation
Move `isToken0Weth` and 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 | other | true | false | ## High: Function `getTotalStake()` fails to account for pending validators, leading to inaccurate accounting
### Description
**Description:** The `getTotalStake()` function is the core accounting function to calculate the total stake of the `CasimirManager`. It's used to compute the change for `rewardStakeRatioSum` 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 | high | initialization | true | false | ## High: Loan Address Validation
### Description
## Vulnerability in initiateRollover Method
The `initiateRollover` method within the pool is responsible for initiating the rollover process for a loan within the liquidity pool. As showcased in the code below, this method internally calls `PoolLib::calculateRollover`,... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Dividend distribution has an incorrect rounding direction for negative rates
### Description
The rounding direction of the dividend calculation in the `_processDividends` function benefits the user when the dividend rate is negative, causing the fund to lose value it should retain.
The division operation that... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Avalanche RPC Endpoints avax_* Are Enabled in the Snap but Disabled in the Sandbox App
### Description
The AVAX functionality is enabled in the snap but disabled in the sandbox dapp. This is problematic as the functionality is present in the snap but not documented or surfaced anywhere.
**packages/sandbox/sr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Application Monitoring Could Be Improved
### Description
**Update**
The issue was resolved by the client in commit `840f7ba94dcf447e993e853aba864e35b61d4bdf`.
All recommendations were implemented; however, `Sleeves.adminSetMaxDepositsPerCard()` should emit an event for all updates to the `maxDepositsPerCard` ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Contracts are unverified on the block explorer
### Description
At the time of publication, most of the contracts are listed as unverifed on the block explorer at [https://explorer.evm.hydration.cloud/](https://explorer.evm.hydration.cloud/). Several of the main contracts are code verified on the block explorer;... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Prohibit users from making small deposits and wraps to avoid losses
### Description
In the `deposit` and `wrap` function, there should be a check to ensure that `wstUSFAmount` is not zero to avoid rounding issues that could result in users depositing some `stUSF` but minting zero shares, causing losses. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Users can force receive schnibbles by making 0 value lock() or lockOnBehalfOf() calls
### Description
[Link to instance](https://github.com/code-423n4/2024-05-munchables/blob/57dff486c3cd905f21b330c2157fe23da2a4807d/src/managers/LockManager.sol#L311)
As discussed in my only High-severity issue, it is possible... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: WAuraPools doesn't correctly account for AuraStash causing all deposits to be permanently lost
### Description
Source: https://github.com/sherlock-audit/2023-07-blueberry-judging/issues/108
## Found by
0x52
Some Aura pools have two sources of AURA. First from the booster but also as a secondary 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 | medium | oracle | true | false | ## Medium: Addresses can be pre-populated with bad data
### Description
Inside `PreimageOracle.sol`, anyone can call the `loadPrecompilePreimagePart()` to load data into the contract. The problem is that anyone is able to specify the `address _precompile` parameter. This opens up the door for malicious users to pre-po... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | token | true | false | ## Medium: Missing Transfer Hook for Claiming Continuously Accruing Rewards
### Description
The `Factory` contract has an issue with its reward-claiming mechanism. The contract continuously accrues rewards for NFT holders on a per-block basis but lacks a mechanism to automatically claim these rewards before ownership ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unnecessary Nested Loop Causes Identical Logic to Occur `n` Times Leading to Repeat Event Emissions and a Potential DoS
### Description
**File(s) affected:**`DataMarket.sol`
**Description:** When finalizing a snapshot batch in the `DataMarket` contract, the `finalizeSnapshotBatch()` function loops over all... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inactive Operators Can Lead to Insufficient Consensus
### Description
**Update**
The client acknowledged the issue and provided the following explanation:
> It's validators' owners responsibility to track operators' performance (via external tools, etc)
**File(s) affected:**`SSVNetwork.sol`
**Description:**... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | false | false | ## Medium: Insufficient Authentication Controls on Critical Services
### Description
Critical services should use FIDO2 hardware security key authentication, instead of relying on less secure methods. FIDO2 hardware keys provide stronger security against phishing and account takeover compared to SMS or authenticator 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 | false | false | ## Low: Missing changelog
### Description
The [`celo-monorepo` project](https://github.com/celo-org/celo-monorepo/tree/7be22605e172ca536c028e408b147aab83202e4a) has no changelog.
Keeping a comprehensive chronological log of the important changes of the project helps maintainers, contributors, and users to keep track... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Misleading Function Name ( removeAllDelegatePowers )
### Description
The DelegateApprovals smart contract defines the `APPROVE_ALL` action, which is leveraged to allow users to grant a delegate all powers/privileges defined in the contract by calling the `approveAllDelegatePowers()` function. When the `removeA... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of storage verification allows for duplicated public keys
### Description
The `_zrKeyRes` function is responsible for adding new public keys to the `wallets` mapping once it confirms the signature is valid and the public key length meets the required threshold. Nevertheless, it fails to verify whether 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... | cyfrin_structured | medium | logic-error | true | false | ## Medium: Incorrect collateral quote amounts due to use of incorrect swap path
### Description
Within `AutoRedemption::legacyAutoRedemption`, the amount of input collateral required is calculated as:
```solidity
(uint256 _approxAmountInRequired,,,) =
IQuoter(quoter).quoteExactOutput(_collateralToUSDCPath, _USDsTarge... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [7] Optimize names to save gas
### Description
`public`/`external` function names and `public` member variable names can be optimized to save gas. See [this](https://gist.github.com/IllIllI000/a5d8b486a8259f9f77891a919febd1a9) link for an example of how it works. Below are the interfaces/abstract contracts 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 | high | other | false | false | ## High: SwapCallLib.call() incorrectly uses return() instead of revert() on failed calls
### Description
Severity: High Risk
Context: SwapCall.sol#L61-L67
Description: When a swap call to UniswapV4 fails in SwapCallLib.call() , the return opcode is used
instead of reverting:
let success :=
call(gas(), uni, 0, add(sel... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | front-running | false | false | ## Medium: In `Cnote.sol`, anyone can initially become both accountant and admin
### Description
_Submitted by p4st13r4, also found by 0x52 and Tutturu_
Affected code:
*
The function `_setAccountantContract()` is supposed to be called after contract initialization, so that the `accountant` is immediately set. How... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: buy – insurance buyers trying to increase their coverage amount will lose their previous coverage ✓ Fixed
### Description
When a user is willing to buy insurance, he is required to specify the desired amount (denoted as `amount_`) and to pay the entire premium upfront. In return, he receives the ownership ove... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Chainlink’s `latestRoundData` might return stale or incorrect results
### Description
**Severity**: Medium
**Status**: Resolved
**Description**
The fulfill function in the PriceAggregator contract use Chainlink oracle as a second oracle to retrieve price data by calling latestRoundData. However, there'... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | storage | true | false | ## Gas: Change `Box` struct to use `uint128` saves 1 storage slot per `Box`
### Description
**Description:** The current `Box` struct looks like this:
This will require 2 storage slots for each `Box`. However neither `blockTs` nor `tier` require `uint256`; both can be changed to `uint128` which will pack each `Box` ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Large or complicated code bases should implement fuzzing tests
### Description
Large code bases, or code with lots of inline-assembly, complicated math, or complicated interactions between multiple contracts, should implement [fuzzing tests](https://medium.com/coinmonks/smart-contract-fuzzing-d9b88e0b0a05). 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 | medium | front-running | false | false | ## Medium: Attacker can spam create identical proposals confusing users as to which is the real proposal to vote on
### Description
**Description:** If an attacker wants to interfere with the voting on a particular proposal, they can spam create many identical proposals to confuse users as to which is the "real" propo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 length of input data
### Description
`paths.length` can be < `creditFilter.allowedTokensCount()`:
https://github.com/Gearbox-protocol/gearbox-contracts/blob/0ac33ba87212ce056ac6b6357ad74161d417158a/contracts/credit/CreditManager.sol#L816
### Recommendation
We recommend adding a check that arrays ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 `_disableInitializers()` in implementation contract
### Description
The `Oracle` contract inherits from `UUPSUpgradeable` and uses an `initializer` pattern, but it does not disable initializers in its constructor.
Without `_disableInitializers()` in the constructor, there's a risk that someone could ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | front-running | false | false | ## Medium: Stableswap - Deadline do not work
### Description
_Submitted by Picodes, also found by cccz, Funen, ladboy233, Soosh, and zzzitron_
The `ensure` modifier is commented, so deadlines will not work when passing orders, breaking this functionality.
**[nivasan1 (Canto) acknowledged](https://github.com/code-42... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: Inconsistent type usage for `IssuanceHours.HOUR_IN_SECONDS`
### Description
In `IssuanceHours` the constant [`IssuanceHours.HOUR_IN_SECONDS`](https://github.com/ondoprotocol/rwa-internal/blob/a74d03f4a71bd9cac09e8223377b47f7d64ca8d4/contracts/globalMarkets/tokenManager/issuanceHours/IssuanceHours.sol#L38) fiel... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `require()`/`revert()` strings longer than 32 bytes cost extra gas
### Description
Each extra chunk of byetes past the original 32 i[incurs an MSTORE](https://gist.github.com/hrkrshnn/ee8fabd532058307229d65dcd5836ddc#consider-having-short-revert-strings) which costs 3 gas.
*There are 8 instances of this issue:... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Accumulated profit/losses by the cumulative value is not dealt with in `borrowingLiquidation::liquidationType1()`, leading to losses
### Description
`borrowingLiquidation::liquidationType1()` [reduces](https://github.com/sherlock-audit/2024-11-autonomint/blob/main/Blockchain/Blockchian/contracts/Core_logic/... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | flash-loan | true | false | ## Low: Error messages hardcode `USDC` but other debt tokens may be used
### Description
**Description:** Error messages hardcode `USDC` but other token may be used, eg:
This code in `onMorphoFlashLoan` also assumes the debt token will be USDC:
**Rocko:** Fixed in commit [ec9f5be](https://github.com/getrocko/oncha... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Upgrading timelock without transferring the nouns from old timelock balance will increase adjusted total supply
### Description
There is one noun on timelock V1 balance, and there can be others as of migration time:
- [Etherscan Token Link](https://etherscan.io/token/0x9c8ff314c9bc7f6e59a9d9225fb22946427ed... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Not using the named return variable when a function returns, wastes deployment gas
### Description
https://github.com/code-423n4/2023-08-goodentry/blob/main/contracts/PositionManager/OptionsPositionManager.sol#L514
https://github.com/code-423n4/2023-08-goodentry/blob/main/contracts/GeVault.sol#L177
https:/... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Remove all console.log() for production readiness
### Description
There are multiple `console.log()` statements in `LibPrice.sol`. It’s a best practice to avoid using them in production-ready code.
### Recommendation
Consider removing `console.log()` statements before deploying contracts. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Debugging Calls Present in Production Code
### Description
The `SignLibrary` contract contains debugging instrumentation, such as `console.log`, which is part of the Foundry framework. These calls are typically used during development and testing to output debugging information. However, their presence in prod... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Investors Could Earn 10x More Than Intended
### Description
Initial funders get 10x the amount of `bToken` than invested `PSM` in [contributeFunding(...)](https://github.com/PossumLabsCrypto/Portals/tree/810fd90645cccf6fd80d91f8050eff618f63af81/src/V2MultiAsset/VirtualLP.sol#L599-L620), since `FUNDING_MAX_R... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Sale window may not be respected for BUY_IT_NOW and BUY_IT_NOW_WITH_BIDS listing types
### Description
The `listing.start` and `listing.end` values are optional for `BUY_IT_NOW` and `BUY_IT_NOW_WITH_BIDS` listing types, but they need to be validated if they do exist.
The `listNFT()` logic currently allows 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 | low | other | true | false | ## Low: Code Refactoring
### Description
## Staking Pool Code Review and Remediation
## 1. Redundant Check in `staking_pool::destroy_empty`
The function `staking_pool::destroy_empty` checks `pending_stakes` twice: once by calling `pool.is_empty()` and again at the end of the function. It is recommended to remove 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 | other | true | false | ## High: TVL double-counts assets returned from strategy to vault
### Description
When assets are allocated to a strategy, `ElytraDepositPoolV1.assetsAllocatedToStrategies[asset]` is incremented. Later, the strategy can return funds to the unstaking vault via:
```solidity
/// @notice Receives assets from strategy 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 | other | false | false | ## Medium: Locked tokens when token is removed during `depositDelay` period
### Description
## Severity
**Impact:** Medium
**Likelihood:** Medium
## Description:
The `Staking.finalizeStake()` function allows staking to be completed even if the intended token is removed from the `acceptedTokens` list **during 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 | overflow | true | false | ## Medium: Invalid oracle version can cause the `maker` position to exceed `makerLimit`, temporarily or permanently bricking the Market contract
### Description
When invalid oracle version happens, positions pending at the oracle version are invalidated with the following pending positions increasing or decreasing in ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | medium | integer-overflow | true | true | ## Medium: `euRetailInvestorsCount` is susceptible to underflow when transferring tokens between retail and qualified investors of the same country on the EU region
### Description
The root cause of this problem is that a qualified EU investor with tokens on its balance would not increment the `euRetailInvestorsCount`... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | front-running | true | false | ## Low: Fixed prices can be arbitraged by large price movements
### Description
The protocol sets a fixed price for NATIVE, USDC and BEAM.
In case of a flash crash, the prices will change much faster than the owner can update. Depositors can gain by frontrunning the oracle update because the price will be higher 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 | medium | overflow | true | false | ## Medium: User Collateral Cap Check Issue
### Description
User Collateral can exceeds the cap andd deposit will still be processed
### Impact
this can result in the user's collateral exceeding the cap once the deposit is processed.
### Recommendation
Please find the updated check for the new deposit amount below:
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: A Seller Can Reduce Royalties Paid
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation: "We do not see that as a concern, as we have a standard marketplace fee of 10% (subject to change at the discretion of the company). We do not want to hard cod... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: faceValue precision can be lowered by additional mulDivDown in LendAsMarketOrder
### Description
When `!params.exactAmountIn`, the `mulDivDown` operation is done twice in `LendAsMarketOrder`, introducing additional rounding errors to the `faceValue` value.
### Recommendation
Consider unifying the calculations... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | ## Low: Partially incorrect Chainlink price feed safety checks
### Description
The `getLatestPrice` function retrieves a specific asset price from Chainlink. However, the price (a signed integer) is first checked that it is non-zero and then is cast to an unsigned integer with a potentially negative value. An incorrec... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Storage changes during event emission
### Description
In the [`NonceManager`](https://github.com/1inch/limit-order-protocol/blob/4d94eea25e4dac6271bfd703096a5c4a4d899b4a/contracts/helpers/NonceManager.sol) contract, when the [`NonceIncreased`](https://github.com/1inch/limit-order-protocol/blob/4d94eea25e4dac62... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Be careful with types
### Description
Avoid declaring variables using *var* if possible. The type-deduction system [can bring some surprises if you don’t think about types very carefully](https://medium.com/zeppelin-blog/onward-with-ethereum-smart-contract-security-97a827e47702#c528). For example, for ints,... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: L03] Redundant balance getter functions in the BeamBalanceStore contract
### Description
###### Low
In the `BeamBalanceStore` contract, there are two public functions to return an address’s token balance: [`balance`](https://github.com/BeamNetwork/currency/blob/c0d8477866a8667a37f45c85378c5938c84569cd/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 | medium | token | true | false | ## Medium: Borrowers can leave unpaid dust
### Description
**Severity**
**Impact:** Low
**Likelihood:** High
**Description**
`withdrawERC20`, `withdrawERC721`, `borrow` and `liquidate` functions in `MarginTrading` contract calculate the portfolio ratio to check if the account is undercollateralized. This ratio is ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Inconsistent decoding methodologies could cause outcome discrepancies
### Description
To support all of its extensibility and flexibility, the Limit Order Protocol routinely has to deal with dynamic bytes data and arbitrary return values from external contracts. As a result, the protocol includes an [`Argument... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Frequent RPL Reward Claim Requirement Unevenly Impacts Small Node Operators
### Description
Rocket Pool defines 14 days as the default period at which staking participants are required to claim any fees generated through RPL rewards. This RPL acts as insurance against poor node operator performance and simulta... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Bonus Token Functionality Will Not Work For Some ERC-20 Tokens
### Description
Tokens not compliant with the ERC20 specification could return `false` from the transfer function call to indicate the transfer fails, while the calling contract would not notice the failure if the return value is not checked. Ch... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [19] Missing NATSPEC
### Description
Consider adding NATSPEC on all public/external functions to improve documentation.
https://github.com/code-423n4/2022-12-tigris/blob/main/contracts/TradingExtension.sol#L190
https://github.com/code-423n4/2022-12-tigris/blob/main/contracts/GovNFT.sol#L168
https://github.c... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | true | false | ## Low: Missing role authorization for `beforeTransferHook`
### Description
The `setBeforeTransferHook` function in BoringVault requires auth but no role has been granted permission to call it. This means the hook functionality is effectively disabled as no one can set it. Consider adding the necessary role capability... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Owner can `rescue()` pool tokens in certain cases
### Description
**Severity**
**Impact:** High
**Likelihood:** Low
**Description**
The pool contract includes a `rescue()` function designed to recover non-pool tokens from the contract:
When the owner attempts to rescue a pool token, the function throw... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Typos
### Description
**[alcueca (Yield) confirmed and commented](https://github.com/code-423n4/2022-07-yield-findings/issues/33#issuecomment-1192606755):**
> This is a great QA report :heart:
**[PierrickGT (judge) commented](https://github.com/code-423n4/2022-07-yield-findings/issues/33#issuecomment-121331... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | cross-chain | true | false | ## Gas: Save 2 storage reads in `TokenBridge::bridgeToken` by caching `sourceChainId`
### Description
**Description:** `sourceChainId` is always read once at the beginning of `TokenBridge::bridgeToken` [L153](https://github.com/Consensys/zkevm-monorepo/blob/364b64d2a2704567adac00e3fa428a1901717666/contracts/contracts/... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | oracle | false | false | ## High: CurveTricryptoOracle incorrectly assumes that WETH is always the last token in the pool which leads to bad LP pricing
### Description
Source: https://github.com/sherlock-audit/2023-07-blueberry-judging/issues/98
## Found by
0x52, Vagner
CurveTricryptoOracle assumes that WETH is always the last token in th... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Missing verification of maker and maker_stats accounts
### Description
The `handle_place_and_take_perp_order` and `handle_place_and_take_spot_order` functions retrieve two additional accounts that are passed to the instruction: `maker` and `maker_stats`. However, there is no check that the two accounts are link... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | storage | true | false | ## High: Incorrect Borrowing Modality Leads to Broken Functionality
### Description
The `supplyBorrowAndProtect` function facilitates supplying liquidity, borrowing, and opening a protection policy within a single transaction. It internally calls the `_openProtectionPolicy` function, passing the provided parameters.
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | logic | true | false | ## Low: Incorrect Comparison Between Scaled and Unscaled Amounts in _repay
### Description
## 01. Relevant GitHub Links
 
* [LendingPool.sol#L398](https://github.com/Cyfrin/2025-02-raac/blob/89ccb062e2b175374d40d824263a4c0b601bcb7f/contracts/core/pools/LendingPool/LendingPool.sol#L398)
## 02. Summary
When a u... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | token | true | false | ## Medium: Using the index for rewardTokens could result in incorrect reward token transfers inRewardForwarder
### Description
In the `RewardForwarder` contract, rewards are distributed based on an index of reward tokens retrieved by the `RewardsController` as shown below:
```solidity
function claimRewardsFor(address... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Rollman should reject null proposals
### Description
In `rollman.rs`, the following assertion lets a proposal pass if it does not advance the state.
```rust
assert!(proposal.from <= proposal.to);
```
### Recommendation
Change `<=` to `<`. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | true | false | ## High: Dutch auctions can be used to drain honest buyers ' escrowed funds from the market
### Description
When a buyer bids for a dutch auction, the flow is `bidForNFT()` → `_bidForAuction()` where all the required validations are done. Even though the `bestBidForListing[listingId]` is not required in the case of 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 | other | false | false | ## Medium: Blocking Through Change of Blocklist Could Trap Tokens
### Description
_Submitted by Respx_
In the normal flow, an account that is blocked is protected from having its funds locked by a call to `forceUndelegate()`, as occurs on line 27 of `Blocklist.sol`.
However, this protection could potentially be circ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: User can free from liquidation fee if its escrow balance is less than the calculated liquidation fee
### Description
User can free from liquidation fee if its escrow balance less than the calculated liquidation fee.
### Proof of Concept
If the `liquidationFeeBps` is enabled, the `gov` should receive the l... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | false | false | ## High: Limb Shift Overflow in shr_assign and shl_assign
### Description
The [`shr_assign`](https://github.com/OpenZeppelin/rust-contracts-stylus/blob/2350766c0c03527aedea04e2bffb8f1eb2d01aeb/lib/crypto/src/arithmetic/uint.rs#L655) and [`shl_assign`](https://github.com/OpenZeppelin/rust-contracts-stylus/blob/2350766c... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Use Ownable2StepUpgradeable for Secure Ownership Transfer
### Description
The current implementation of the contracts inherits from **OwnableUpgradeable**, which provides a basic ownership mechanism. However, this approach has a potential risk: if the owner accidentally transfers ownership to an incorrect addr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | dos | false | false | ## High: DoS with SHA ECALL using big block compression count
### Description
**Severity:** High
**Path:** zkvm/src/exec/executor.rs
**Description:**
In the executor.rs the function ecall_sha() implements the SYSCALL(3), which is meant to be the SHA256 hash function's implementation. It takes as arguments the out-s... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | false | false | ## Medium: Protocol fee is stuck in the `crosschain` module
### Description
When `PayGasInZetaAndUpdateCctx()` is called, the Zeta amount is swapped for `gasZRC20` and the protocolfees are added to this amount to determine the amount of Zeta tokens to mint to the `crosschain` module. However after the swap the protoc... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Attacker/partial liquidator can extend Liquidation action by resetting $.liquidationStart[_agent] to 0.
### Description
Attackers can extend Liquidation by Action, by partially liquidating a position with a few wei to manipulate health to >=1e27 before taking the collateral, since the account is still liqu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | initialization | true | false | ## Gas: [Dependency] Call into EntryPoint 's receive fallback via deposit() for gas savings
### Description
The eth-infiniteism contracts appear to strive for a high degree of gas efficiency. The `BasePaymaster.deposit()` function currently calls `entryPoint.depositTo...` directly along with accompanying arguments to ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | true | false | ## Gas: Caching global variables is more expensive than using the actual variable (use msg.sender instead of caching it)
### Description
https://github.com/code-423n4/2022-12-forgeries/blob/fc271cf20c05ce857d967728edfb368c58881d85/src/VRFNFTRandomDrawFactory.sol#L38-L51
| | Min | Average | Median | Max |
| ------... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 calculation to check remaining ratio after reward in StableConfig.sol
### Description
>
[changeMinimumCollateralRatioPercent()](https://github.com/code-423n4/2024-01-salty/blob/main/src/stable/StableConfig.sol#L127-L130) allows the owner to change the `minimumCollateralRatioPercent` while the [ch... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Ingress.setContractAddress() can cause duplicate entries in contractKeys ✓ Fixed
### Description
`setContractAddress()` checks `ContractDetails` existence by inspecting `contractAddress`. A `contractAddress` of `0` means that the contract does not already exist, and its name must be added to `contractKeys`:... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | medium | other | true | false | ## Medium: `DividendManager::distributePayout` will always revert after 255 payouts, preventing any future payout distributions
### Description
`DividendManager::HolderManagementStorage::_currentPayoutIndex` is declared as `uint8`:
```solidity
/// @dev The current index that is yet to be paid out.
uint8 _currentPayout... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.