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 | medium | token | true | false | ## Medium: `PartyGovernanceNFT` advertises but does not honor the ERC-4906 standard
### Description
### Lines of code
### Vulnerability details
The `PartyGovernanceNFT` contract inherits from PartyGovernance, and through it, it advertises support for the ERC-4906 standard:
Because of this, consumers like NFT mark... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Grace period reset can be avoided by redeeming when switch to normal mode occurs due to market conditions and there are no or few CDPs between MCR and TCR
### Description
CdpManager's `redeemCollateral()` allows redeeming any `cdpID` as long as:
- `MCR = MCR`
In a rare situation when such CDP has `ICR > TCR`... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | reentrancy | true | true | ## High: borrow/repay calls race condition can be exploited to repay more than expected
### Description
A borrower can front-run a repay with another borrow, forcing the user to repay more than expected. The repay function (Figure 5.1) is used to return the funds borrowed, even on behalf of other users.
```solidity
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 | low | reentrancy | false | false | ## Low: External call to arbitrary address
### Description
The Router has a convenience function to commit to multiple liens: `AstariaRouter.commitToLiens`. This function causes the router to receive WETH and allows the caller to supply an arbitrary vault address via `Request.strategy.vault`, which is called by the ro... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: In staking contract, resetting self delegation will reset vote weight to zero
### Description
In `TempleGoldStaking` contract, when a delegate resets self delegation, the vote weights delegated to the delegate will be removed by calling `_updateAccountWeight`.
Since zero is passed as new balance parameter, ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: evm.Watcher.Run’s default behavior could hide bugs
### Description
`evm.Watcher.Run` tries to create an evm watcher, even if called with a ChainID that does not correspond to an evm chain. Additional checks should be added to `evm.Watcher.Run` to reject such ChainIDs.
Approximately 60 watchers are started in ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | true | false | ## Low: Duplicate access control mechanism
### Description
The `NFTRegistry` contract incorporates both the **Ownable** pattern and **Role-Based Access Control (RBAC)** pattern for managing access and permissions. While both systems are robust for access control in their respective contexts, employing them concurrentl... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [17] Possible overflow when borrower accepts renegotiation offer in `refinanceFull()`
### Description
*Note: At the judge’s request [here](https://github.com/code-423n4/2024-04-gondi-findings/issues/70#issuecomment-2067964983), this downgraded issue from the same warden has been included in this report for com... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Prevent dual entry point tokens
### Description
The function `recoverERC20()` in contract `QuestBoard.sol` only allows the retrieval of non-whitelisted tokens. Recently, an issue has been found that can circumvent these checks with so-called dual entry point tokens. See a description here: [compound-tusd-integ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Add additional check for `addLender`
### Description
At the line https://github.com/Grandthrax/yearnV2-generic-lender-strat/blob/979ef2f0e5da39ca59a5907c37ba2064fcd6be82/contracts/Strategy.sol#L67 in method `addLender` there are no checks for `want`.
### Recommendation
It is recommended to check that `want... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Single host can unfairly skip veto period for proposal that does not have full host support
### Description
After a proposal passes the vote threshold, there is a delay before it can be executed so that hosts get a chance to `veto` it if they wish. If all hosts voting in favour of the proposal, then this veto... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Same `userRandomNumber` can be used for different requests to pyth entropy
### Description
The game ID is calculated in `Flip.flip()` as follows:
This value is used in `PythRandomnessProvider.requestRandomness()` to calculate the user random number that will be sent in the call to `entropy.requestWithCallbac... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Some dynamic attributes are ignored
### Description
## ELF Parser and Dynamic Table Attributes
The ELF parser allows ELFs that set a wide range (DT_{x}) attributes in the dynamic table (0-35). However, it silently ignores all except: **DT_REL**, **DT_RELENT**, **DT_RELSZ**, and **DT_SYMTAB**.
For example, 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: Increments can be unchecked in for-loops
### Description
**Description:**
Make the increments in for-loop unchecked
**Recommendations:**
Change the for-loop to make the increment unchecked | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Improper Price Deviation Calculation Formula
### Description
## Price Deviation Calculation
The `get_price_diff_` function is responsible for computing price deviation. To calculate the percentage of price deviation, the formula should be:
\[
\text{Percentage Deviation} = \left( \frac{\text{diff(new\_pric... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Emission schedule is not followed and can cause unexpected allocation of rewards
### Description
Whenever a new emission schedule is to be followed, i.e., `block.timestamp `becomes greater than the `startOffset` of the schedule, the `setScheduledRewardsPerSecond` function invokes the `_massUpdatePools` func... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | high | token | true | true | Source: https://github.com/sherlock-audit/2023-02-carapace-judging/issues/60
## Found by
bin2chen, Koolex
## Summary
Missing validation of snapshotId makes it possible for the investor/seller to claim unlocked capitals from the same snapshot multiple times
## Vulnerability Detail
### Description
The seller can cal... | Sherlock | 5 | Carapace |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unwhitelisting does not clear _arbitrageProfits, so re-whitelisting may result in an unfair distribution of liquidity rewards
### Description
When a pool that has been excluded from the whitelist is added again, it can receive liquidity rewards based on the previous `_arbitrageProfits`.
### Proof of Concep... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `SwapAction.sol#balancerSwap` does not support native ETH as input token
### Description
SwapAction is used to swap tokens using Balancer/Uniswap or join/exit a Pendle pool. Pendle accepts native ETH as input token when joining a Pendle pool, and Balancer accepts native ETH during swap.
We can check that t... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | overflow | true | false | ## High: Division rounding can make fraction-price lower than intended (down to zero)
### Description
_Submitted by 0xA5DF, also found by 0x52, exd0tpy, horsefacts, hyh, kenzo, Lambda, minhquanym, panprog, scaraven, shenwilly, and simon135_
Divisions in EVM are rounded down, which means when the fraction price is clo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Response Handler Cannot Handle Two Popups
### Description
## User Approval Request Handler
When requesting user approval for an action, the extension creates a handler for incoming internal messages. However, this handler does not identify the messages, so it considers that only one message is being broadcast... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [26] Possible nil pointer dereference in multiple locations when calling crypto.SigToPub can cause panic
### Description
*Note: At the judge’s request [here](https://github.com/code-423n4/2023-11-zetachain-findings/issues/164#issuecomment-1906690237), this downgraded issue from the same warden has been include... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Manipulation of governance voting result by unlimited minting the Flux Token by repeatly call poke function
### 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 ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Ability to Pause and Unpause Using UNUSED Pause Type ✓ Fixed
### Description
The `pauseByType` and `unPauseByType` functions allow pausing and unpausing functionality by specifying a `PauseType` value. However, the `UNUSED` pause type, which is intended as a default value, can still be used in these functions.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | liquidation | false | false | ## Medium: No incentive to liquidate small positions could result in protocol going underwater
### Description
The protocol allows to create vaults and provide collateral for minting EUROs with no lower limit. As such, multiple low value vaults can exist. However, there is no incentive to liquidate low value vaults 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 | true | false | ## Medium: MISSING CHECK TO IF THE AGENT IS MSG.SENDER WHEN TRANSFERRING POWER
### Description
**Delegators** can call **transferPower** in **PledgeAgent** to transfer BTC hash power delegate to a different validator. The **transferPower** method is a simpler version of **delegateHashPower** since the **delegator** ha... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Calling `PaymentSettler::setStableCoin` can lead to inability of holders to claim funds and old stablecoin being trapped in the contract
### Description
**Description:** An admin can call `PaymentSettler::setStablecoin` at any time. As the code is currently design this should only be done when the stablecoi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Init Auction Validation Improvement
### Description
## Owner Init Auctions
`_ownerInitAuctions` initializes auctions for a batch of NFTs, updating their expiration timestamps and other auction-related information. It handles the logic of bucket updates to track auction expiration and ensures that existing act... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Emergency unlocking penalty makes long duration positions economically advantageous
### Description
The farm-manager contract has a static emergency unlock penalty (initialized to 2% in the deployment file `deploy_mantra_dex.sh`) regardless of the position’s unlocking duration. However, longer unlocking dur... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Add parameter to Event-Emit
### Description
Some event-emit description hasn’t parameter. Add to parameter for front-end website or client app , they can has that something has happened on the blockchain. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Permission in method description doesn't match implementation
### Description
**Occurs**:
Basilisk-node/pallets/lbp/src/lib.rs:516-568
Dispatch origin restrictions described in comments must match method implementation
**Recommendation**:
Make sure dispatch origin checks are consistent with method descript... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing Tick and Liquidity Checks in _decodeAndReward (currentOnly=true ) Enables Front-Running and Slippage Attacks
### Description
The `_decodeAndReward` function in the `GrowthOutsideUpdate` contract lacks proper validation of the current tick price and liquidity when the `currentOnly` flag is set to `tr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | false | false | ## High: Public access to all functions
### Description
In contract `Controller` all functions have public access which can be exploited:
https://github.com/mixbytes/lido-dot-ksm/blob/76a10efa5f223c4c613f26794802b8fb9bb188e1/contracts/Controller.sol
### Recommendation
We recommend adding access modificators. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inconsistent strategy allocation tracking in `deallocateFromStrategy()`
### Description
_Resolved_
The `deallocateFromStrategy()` function may introduce discrepancies between `assetsAllocatedToStrategies[asset]` and the sum of all `assetStrategyAllocations[asset][strategy]`.
When either of the two conditiona... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 quality issues: function ordering
### Description
Key contracts under review do not follow the standard Solidity style guide recommendations for function ordering. Per the Solidity style guide, grouping and ordering functions in a specific manner improves code readability and maintainability.
Functions s... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | signature | false | false | ## Low: Event related issues
### Description
## Context
(No context files were provided by the reviewer)
## Description/Recommendation
## Missing events
- **MechMarketplace.sol#L369**: `MarketplaceParamsUpdated` is not emitted. Best to move this event in `_changeMarketplaceParams`. Note that the event is emitted whe... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Refund discrepancies in `AmAmm.sol`
### Description
In `AmAmm.sol`, when a user places a bid, they specify a `manager` who may not be the same as the `msgSender` (the actual depositor of the assets, code line `AmAmm#L100`). If the bid fails because there is a better bid, the assets are refunded to the `manager... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `changeMaxGenerationId` allows to mint tokens from older generations retroactively
### Description
`changeMaxGenerationId` is meant to allow more minting for the current generation, however, because of the fact that merkleProofs do not validate for the current season, whenever the limit will be raised, 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 | oracle | false | false | ## Low: DoS Price Feed Vulnerability Due to Incorrect `RoundId`
### Description
**Update**
The team now parses the `aggregatorRoundId` from the `roundId` and ensures that the previous round exists before computing.
**File(s) affected:**`ChainlinkPriceFeed.sol`
**Description:** The `RoundId` for the Chainlink Price 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 | low | token | true | false | ## Low: Callbacks can be used to alter token state
### Description
The callback function executed when transferring an NFT can be used to alter the state of another NFT contract (changing its ether balance or number of experience points or equipped items, for example). A state change could cause an unexpected decrease... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Shorten arrays with inline assembly
### Description
**Issue Description** - When shortening an array in Solidity, it creates a new shorter array and copies the elements over. This wastes gas by duplicating
storage.
**Proposed Optimization** - Use inline assembly to shorten the array in place by changing its 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 | medium | token | true | false | ## Medium: Direct WETH swap fails due to incompatibility with ``ZetaTokenConsumerUniV3`` & ``ZetaTokenConsumerPancakeV3``
### Description
User use the `ZetaTokenConsumerUniV3.sol` to get the zeta tokens. Either through ETH or through other ERC20 tokens.
One of the most important tokens in Defi today is the WETH token,... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | reentrancy | false | false | ## High: Use of arbitrary token addresses.
### Description
**Description**
LockToken.sol: functions lock Tokens(), lockNFTs(), migrate(). These functions are public, and any token addresses are passed in their parameter lists. This creates a vulnerability for the use of malicious tokens.
**Recommendation**
Add toke... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | overflow | false | false | ## Medium: Not using SafeMath functions
### Description
There are several places in the code base where regular Solidity arithmetic operators are used. For example:
* In [line 298 of the `GlobalSettlement` contract](https://github.com/reflexer-labs/geb/blob/261407b6b332c2063e4256aa5f9b223d52dad7e1/src/GlobalSettleme... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: Wrong usage of block's timestamp instead of block's number
### Description
**Severity**
**Impact:** Low
**Likelihood:** High
**Description**
When code wants to get last block hash it uses `blockhash(block.timestamp - 1)`.
But according to Solidity docs:
As a result `blockhash(block.timestamp - 1)` 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 | low | reentrancy | true | false | ## Low: (HAL-10) Style Guide Optimizations
### Description
In Solidity development, adhering to the official style guide is best practice to ensure code consistency, readability, and maintainability. Throughout the contracts, there are several instances where the code does not follow these guidelines. Some examples 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... | solodit_api | high | Wrong Math | true | false | **Description:**
`ProfitSharingModel.getProfitSharingE18()` calculates the share of profit that Lender gets
based on the APR of the position. According to the formula, the higher the APR, the lower
the share of profit the Lender gets, but due to the wrong implementation of the
`getProfitSharingE18()` function, if th... | Trust Security | 4 | Stella |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Emission Rate Manipulation through Unrestricted Function Access
### Description
**Severity**: informational
**Status** : Acknowledged
**Description**:
In `ChefIncentivesController` contract, the function `setRewardsPerSecond` is only restricted by the `onlyOwner` modifier. There is a potential risk if own... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unimplemented getAmountsOut function in Balancer V2
### Description
The `getAmountsOut` function in the `BalancerV2Wrapper` contract is unimplemented. The purpose of the `getAmountsOut()` function, shown in Figure 12.1, is to allow users to know the amount of funds they will receive when executing a swap. 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 | liquidation | false | false | ## Low: Collateral price growth may cause hard liquidation
### Description
When the oracle price changes, the AMM tick price changes by approximately 3.3 times more. If a user's position were replaced with stablecoins, its health would be determined by the market price of the collateral that can be purchased 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 | low | oracle | false | false | ## Low: payKeeper() Does Not Properly Handle Errors
### Description
Try/catch statements are useful when we want to ensure a function handles errors without reverting. In this case, `payKeeper()` will revert if `IOracleWrapper.getPrice()` fails to correctly query the price from the oracle. As a result, `payKeeper()` m... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Constant redefined elsewhere
### Description
Consider defining in only one contract so that values cannot become out of sync when only one location is updated. A [cheap way](https://medium.com/coinmonks/gas-cost-of-solidity-library-functions-dbe0cedd4678) to store constants in a single location is to create an... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: TokenAccount Reload
### Description
## Withdraw Stake Function Risk Validation Issue
In the `withdraw_stake` function, risk validation is attempted after a transfer, but the custody token account needs to be reloaded to reflect its true balance.
## Code Snippet
## Remediation
To make this validation funct... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: RocketVault - consider rejecting zero amount deposit/withdrawal requests ✓ Fixed
### Description
Consider disallowing zero amount token transfers unless the system requires this to work. In most cases, zero amount token transfers will emit an event (that potentially triggers off-chain components). In some case... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: runtime > 1 hours error message discrepancy
### Description
## Email address
pauliax6@gmail.com
## Handle
paulius.eth
## Eth address
0x523B5b2Cc58A818667C22c862930B141f85d49DD
## Vulnerability details
Here, the revert message says that the value needs to be at least 1 hour, however, the code allows 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... | cyfrin_structured | low | other | true | false | ## Low: Perform post-increment in a single line | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Using `require` statements without error strings
### Description
The `activeAuction` and `inactiveAuction` modifiers use `require` statements without error strings. Use `if` statements with custom errors instead for a better error case UX. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Use more consistent function naming (includeAssimilator / excludeAdapter) ✓ Fixed
### Description
The function `includeAssimilator` adds a new assimilator to the list
**src/Controller.sol:L98**
```
shell.assimilators[\_derivative] = Assimilators.Assimilator(\_assimilator, \_numeraireAssim.ix);
```
The 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 | other | false | false | ## Low: (HAL-04) VaultV1 upgradeable contract is missing storage gap
### Description
The `VaultV1` contract, which inherits or acts as an upgradeable parent contract, does not reserve a storage gap at the end of its contract variables. In the context of upgradeable contracts, a storage gap is critical to preventing st... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Consolidate unnecessary code duplication in `ConvertFacet::_withdrawTokens`
### Description
`ConvertFacet::_withdrawTokens` duplicates the following code in [L119-132](https://github.com/BeanstalkFarms/Beanstalk/blob/dfb418d185cd93eef08168ccaffe9de86bc1f062/protocol/contracts/beanstalk/silo/ConvertFacet.sol#L1... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Multiple mappings can be combined into a single mapping of a value to a struct
### Description
1. File: contracts/PooledCreditLine/LenderPool.sol (lines [109-121](https://github.com/sublime-finance/sublime-v1/blob/46536a6d25df4264c1b217bd3232af30355dcb95/contracts/PooledCreditLine/LenderPool.sol#L109-L121))
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect slippage in Curve 3Pool strategy
### Description
When withdrawing funds from the `ThreePoolStrategy`, LP tokens [are exchanged](https://github.com/OriginProtocol/origin-dollar/blob/bf4ff28d5944ecc277e66294fd2c702fee5cd58b/contracts/contracts/strategies/ThreePoolStrategy.sol#L201-L205) for the underl... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Pool.buy– Users may end up paying more than intended due to changes in policy.weeklyPremium ✓ Fixed
### Description
The price that an insurance buyer has to pay for insurance is determined by the duration of the coverage and the `weeklyPremium`. The price increases as the `weeklyPremium` increases. If a `bu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: Upgradeable contract initializer not disabled in constructor allows implementation contract initialization
### Description
The `SegregatedVault` contract is designed as an upgradeable contract using the UUPS (Universal Upgradeable Proxy Standard) pattern, inheriting from `BaseContract` which extends `UUPSUpgra... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Large multiples of ten should use scientific notation
### Description
Use (e.g. 1e6) rather than decimal literals (e.g. 1000000), for better code readability
VotingEscrow.sol::57 => Point[1000000000000000000] public pointHistory; // 1e9 * userPointHistory-length, so sufficient for 1e9 users
VotingEscrow.s... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | cross-chain | false | false | ## High: Risk of token/uToken exchange rate manipulation
### Description
The Umee specification states that the token/uToken exchange rate can be affected only by the accrual of interest (not by Lend, Withdraw, Borrow, Repay, or Liquidate transactions). However, this invariant can be broken:
- When tokens are burned ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Floating Pragma
### Description
Pragma directives should be fixed to clearly identify the Solidity version with which the contracts will be compiled.
Throughout the [codebase](https://github.com/euler-xyz/ethereum-vault-connector/tree/69626eba206ae301b919f021e71b49feaf7ea8f5/src) there are multiple floating ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | reentrancy | false | false | ## Low: Risk of Reentrancy
### Description
**Update**
The issue was fixed by implementing the check-effects-interactions pattern as suggested.
**File(s) affected:**`ElderGateway.sol`
**Description:** The implementation does not follow the checks-effects-interactions pattern. For instance, L39-41 calls the `transferF... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Balance drain with deposit/withdraw repeat
### Description
The `deposit` and the `withdraw` are using different base value for conversion between vault shares into user deposits. The `withdraw` is based on [liquidity amount plus `free tokens`](https://github.com/mellow-finance/mellow-contracts/blob/702dc5a2a8... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | other | false | false | ##### Description
`LimitOrderManager._getCrossedTicks()` relies on `tickLowerLasts[pool]`, a value recorded under the previous tick-spacing. If governance changes a pool’s tick-spacing (e.g., from 10 to 20), the stored `tickLowerLast` no longer aligns with the new grid. When the next swap occurs, the function calculate... | MixBytes | 3 | Algebra Finance |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Prevent accidental call of emergencyUpdatequestPeriod()
### Description
Functions `updateQuestPeriod()` and `emergencyUpdatequestPeriod()` are very similar. However, if the function `emergencyUpdatequestPeriod()` is accidentally used instead of `updateQuestPeriod()`, then `period` isn’t pushed to the array `qu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | front-running | false | false | ## Gas: Take lpIndex as an argument instead of searching for it
### Description
The `withdrawAllLP()` function loops through `activeLpAddresses` to find the index at which the LP address is stored. To avoid iterating through the entire `activeLpAddresses`, `withdrawAllLP()` can take `lpIndex` as an argument and verify... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: An attacker can DoS vault's buyout with as little as 1 wei per 4 days
### Description
_Submitted by 0xA5DF, also found by 0x52, 0xDjango, 0xsanson, async, berndartmueller, cccz, hubble, kenzo, Lambda, PwnedNoMore, Ruhum, scaraven, shenwilly, sseefried, Treasure-Seeker, xiaoming90, and xiaoming90_
The under... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Timestamp usage
### Description
We verified that [the timestamp list included in the HackerGold constructor](https://github.com/ether-camp/virtual-accelerator/blob/2529ffe5efd5294b44f1bc89dc9a4721a7b16409/contracts/HackerGold.sol#L55-L64) correspond to the times stated in comments, and they check.
That sa... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | signature | true | false | ## High: isValidERC6492SignatureNowAllowSideEffects allows arbitrary calls via maliciously crafted signa-
### Description
The ERC-6492 standard specifies a way that signatures can be validated for contract accounts whose code has not been deployed yet. This is done by simulating or actually executing the deployment 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 | dos | false | false | ## Low: Open TO-DOs
### Description
It has been identified Open TO-DOs in the scoped files. Open TO-DOs can point to architecture or programming issues that still need to be resolved. Often these kinds of comments indicate areas of complexity or confusion for developers. This provides value and insight to an attacker ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inconsistent decimal handling in liquidity calculation
### Description
The `_calcAddLiquidity` function inconsistently handles decimal places during liquidity calculations:
1. **Initial Calculation (Correct):**
- Uses `provDecimals` (from price feed) when calculating `valueChange`:
2. **LP Amount Calc... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [01] Market can immediately fall into deliquency
### Description
### Proof of Concept
First, note that the protocol allows borrowers to set a reserve ratio that they must maintain to avoid being charged a delinquency fee.
Now, see https://github.com/code-423n4/2024-08-wildcat/blob/fe746cc0fbedc4447a981a50e6b... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Vault accounts with excess cash can avoid being settled
### Description
If excess cash was transferred out from an account during account settlement, then the protocol will check the account's collateral ratio and revert if the position is unhealthy. Because it may not be possible to settle a vault account, 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 | medium | other | false | false | ## Medium: A malicious DAO can hold token holders captive by setting forkPeriod to an unreasonably low value
### Description
A malicious majority can reduce the number of Noun holders joining an executed fork by setting the `forkPeriod` to an unreasonably low value, e.g., 0, because there is no `MIN_FORK_PERIOD` enfor... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 dangerous Difficulty: Low
### Description
Numerai has enabled optional compiler optimizations in Solidity. There have been several bugs with security implications related to optimizations. Moreover, optimizations are actively being developed. Solidity compiler optimizations... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing debt check lets users start a debt auction of non-existent debt
### Description
The `AccountingEngine.sol` contract serves as the protocol's central component responsible for initializing both debt and surplus auctions. Debt auctions are consistently initiated with a predefined minimum bid referred to... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | false | false | ## Medium: Certain functions are unavailable after opting in to the "auto compounder
### Description
Certain features (e.g., delegation, governance voting) of a veNFT would not be available if the veNFT is transferred to the auto compounder.
Let x be a managed veNFT. When an "auto compounder" is created, ownership of... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Emit missing events for storage changes
### Description
**Description:** Emit missing events for storage changes:
* `Allowlist::changeUserAccreditation`, `changeAdminStatus`
* `Allowlist::UserAllowed` should be expanded to contain and emit the `HolderInfo` boolean flags
* `ReferralManager::addReferral`
* `Remo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | token | true | false | ## Gas: Off-chain counter mechanism
### Description
In `VeloAmmModule.beforeRebalance`, we increment the Counter contract state by the balance amount of tokens being transferred to the farm contract by calling `Counter.add`:
```solidity
if (balance > 0) {
IERC20(token).safeTransfer(callbackParams_.farm, balance);
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Token With Non-zero Balance
### Description
The owner can add and remove tokens to the contract `RewardsPoolController`. The `removeToken()` function does not check if the token balance of the contract is zero or not. If the balance of a token is not zero and this token is removed, the owner should add ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | initialization | true | false | ## High: No safety check in addToken
### Description
## Handle
jonah1005
## Vulnerability details
## Impact
There's no safety check in `Manager.sol` `addToken`. There are two possible cases that might happen.
1. One token being added twice in a Vault. Token would be counted doubly in the vault. Ref: [Vault.sol#L29... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: Missing Docstrings
### Description
Throughout the [codebase](https://github.com/VenusProtocol/venus-protocol/tree/e5f112ac6f8cb9e5dcf760ad3626c9f3fc43609c/contracts/), there are several parts that do not have docstrings. For example:
* [Line 18](https://github.com/VenusProtocol/venus-protocol/blob/e5f112ac6f... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: (HAL-05) ARBITRARY SENDER USED IN PULLTOKENS
### Description
It was identified that the `receiveRewards()` functions in the `ContributorRewardManager` and `OperatorRewardManagercontracts` can pull tokens from arbitrary addresses. These functions are used by the `Managers` to transfer rewards the contracts for ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: `constant`s should be defined rather than using magic numbers
### Description
Even [assembly](https://github.com/code-423n4/2022-05-opensea-seaport/blob/9d7ce4d08bf3c3010304a0476a785c70c0e90ae7/contracts/lib/TokenTransferrer.sol#L35-L39) can benefit from using readable constants instead of hex/numeric literals... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Improper totalvotes calculation by referring to numbergauges instead of gaugetypes
### Description
In `_getTotal()`, `numberGauges` (number of gauges) is referenced as a count of the number of loops. However, any variables used in the loop depend on the number of gauge types. There is no guarantee that the nu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | ## Medium: Governance NFT holder, whose NFT was minted before Trading._handleOpenFees function is called, can lose deserved rewards after Trading._handleOpenFees function is called
### Description
## Lines of code
https://github.com/code-423n4/2022-12-tigris/blob/main/contracts/Trading.sol#L689-L750
https://github.co... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | signature | true | false | ## High: Missing Length Check for proof ✓ Fixed
### Description
The `Verify` function has the following signature:
```
function Verify(bytes memory proof, uint256[] memory public_inputs)
```
Here, `proof` is a dynamically sized array of bytes (padded upto the nearest word). The function `derive_gamma(aproof, pub_in... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | oracle | true | false | ## Medium: Same-Slot Price Update Error
### Description
## Issue Summary
The issue lies in `oracle_price_history` within `get_and_update_price`, specifically in its interaction with `update_price` and `ensure_recency` in cases where the price changes within the same slot. This results in the `ensure_recency` check fa... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unchecked Low-level Call when buying tokens
### Description
In the `_buyGovernanceTokenERC20DAO()` and `_buyGovernanceTokenERC721DAO()` functions, the success of low-level calls to both `gnosisAddress` and `ownerAddress` is not verified. This oversight means that when these calls fail, the failure will go u... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | true | false | ## High: Loss of claimable rewards upon gauge deactivation
### Description
The `killGauge` and `reviveGauge` functions in the `Voter` contract allow the `emergencyCouncil` to deactivate and reactivate gauges. However, once a gauge is killed, its associated claimable rewards are set to zero, resulting in the permanent ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing Quorum Requirement in Governance Voting
### Description
**Description:** The governance voting system in `finalize_voting()` lacks a quorum requirement, allowing protocol parameters to be changed based on relative vote counts without validating that a minimum percentage of total token supply has par... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: Single-step admin transfer creates risk of permanent loss of administrative control
### Description
The `SegregatedVault::changeAdmin` function implements a single-step admin transfer mechanism that immediately grants admin privileges to the new address and revokes them from the current admin in a single trans... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Hardcoded Value Instead of Enum
### Description
In the `LenderBlueprint` contract, the `_initialSupplyPrimitive` function, which internally calls `_evmAddressValidation`, uses a hardcoded value of `1` to represent a token configuration. This is meant to indicate the `AvailableForConcreteLite` configuration but... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incentives contract does not compile
### Description
**Description**
Contract does not compile because it doesn t implement the function withdrawAllIncentives.
Also some methods mark override but they don t override anything.
**Recommendation**:
Implement function withdrawAllIncentives() external override ... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.