prompt listlengths 2 2 | source stringclasses 3
values | severity stringclasses 5
values | category stringclasses 186
values | has_code bool 2
classes | has_poc bool 2
classes | reference_response stringlengths 23 5k | firm stringclasses 26
values | quality_score float64 0 5 | protocol stringclasses 398
values |
|---|---|---|---|---|---|---|---|---|---|
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: direction and zeroForOne in swapUniV2() and swapUniV3() are unnecessary
### Description
Both `swapUniV2()` and `swapUniV3()` have a `direction` and `zeroForOne` parameter respectively in `stream` to specify the direction of the swap (i.e. whether the swap is from `token0` to `token1`, or vice versa). However, ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Suboptimal Initial LP Minting Logic
### Description
This issue has been identified within the `addLiquidity` function of the `LPManager` contract.
When the pool is initialized (i.e., `lpTotalSupply == 0`), the logic uses only `tokenUSDValue` of the newly added liquidity instead of accounting for any tokens 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 | true | false | ## Medium: Swap Callback Rejects Current Time as `deadline`
### Description
In `FrontendManager.sol`'s `callback()` function, if the action is 6, a swap action is supposed to take place. The function, however, rejects the `deadline` check if the current block time is less than the `deadline`.
### Impact
This violates... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Solvers don't always reimburse the bundler
### Description
In the Atlas system, bundlers pay gas fees upfront and are eventually reimbursed throughout the transaction flow. This is facilitated through the claims storage variable (which tracks the total amount due), the `_releaseSolverLock()` function (which... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Expensive operation inside a for loop
### Description
https://github.com/code-423n4/2023-08-goodentry/blob/main/contracts/RangeManager.sol#L62-L67 | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: severity findings
### Description
The protocol has multiple branches with `initialization` functions, all using a single `initialized` variable. As a result, all branches must be initialized in the constructor otherwise the initialization fails. and the future branches should not use `initializer` modifier 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 | initialization | false | false | ## Low: Some contracts not following UUPS best practices
### Description
_Resolved_
The `AlgebraVaultFactory` and `AlgebraGauge` are both deployed behind a UUPS proxy, but do not call `_disableInitializers` inside of their `constructors`. This means that anyone can call `initialize` directly on the implementation con... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | false | false | ## Medium: Modulo Bias In Randomness
### Description
An ideal randomness function has an equal likelihood of producing each possible outcome. Due to the modulo operations performed between lines [36] and line [39] in the `getComponents()` function, some values are more likely to occur than others. This is known as **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 | high | other | false | false | ## High: A vault can be locked from MarketplaceZap and StakingZap
### Description
_Submitted by p4st13r4, also found by cmichel, GreyArt, hyh, jayjonah8, leastwood, pauliax, shenwilly, and WatchPug_
Any user that owns a vToken of a particular vault can lock the functionalities of `NFTXMarketplaceZap.sol` and `NFTXSta... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: AccessHub missing functionality
### Description
## AccessHub Contract Analysis
## Context
AccessHub.sol#L18
## Description/Recommendation
In the current codebase, many functions are decorated with the `only-Governance` modifier, indicating they are intended to be called by the AccessHub contract. However,... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | oracle | true | false | ## High: VST Oracle Data Could Be Stale
### Description
**Update**
**Quantstamp:** The Sperax team removed VST Oracle from the codebase.
**Update**
Marked as "Fixed" by the client. Addressed in: `eda0c1f2c32c3316067faddb60b738d00b8238de`. The client provided the following explanation:
> All artifacts related to VST... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | true | false | ## Gas: Unnecessary computation
### Description
When emitting an event that includes a new and an old value, it is cheaper in gas to avoid caching the old value in memory. Instead, emit the event, then save the new value in storage.
### Proof of Concept
Instances include:
### Recommended Mitigation
Replace
with | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | true | false | ## Low: Duplicate vaults can be pushed to `assetsArr`
### Description
**Description:** While `MetaVault::addVault` is protected by the `onlyOwner` modifier, there is no restriction on the number of times this function can be called with a given `vaultAddress` as argument:
In such a scenario, the vault will become du... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `claimFees()` can withdraw all funds needed for user refunds
### Description
_Acknowledged_
If the government calls `OstiumTradingStorage.claimFees()` to withdraw all accumulated fees, the contract will transfer the entire `devFees` balance out.
Later, when `closeTradeMarketTimeout()` attempts to refund us... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | liquidation | true | false | ## High: Insufficient slippage protection in mintlvlUSD
### Description
In the `mintlvlUSD` method, the minimum `lvlUSDAmount` (slippage protection) is overwritten by the allowed slippage amount leading to a negligibly low minimum `lvlUSDAmount`, which can cause potential losses for the receiver/collateral provider.
Th... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | rounding | true | false | ## Low: Rounding of Auction Bids
### Description
Rocket Pool’s auction system is designed to cover the loss of ETH caused by slashed node operators. Users participate in a Dutch style auction to claim Rocket Pool Tokens (RPL) at a discount.
These auctions are separated into lots which are then bid on. When a bid 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... | solodit_api | medium | Weird ERC20 | true | true |
<https://github.com/code-423n4/2022-11-size/blob/main/src/SizeSealed.sol#L163><br>
<https://github.com/code-423n4/2022-11-size/blob/main/src/SizeSealed.sol#L96-L105>
The following report describes two issues with how the `SizeSealed` contract incorrectly handles several so-called "weird ERC20" tokens, in which the to... | Code4rena | 5 | SIZE |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Insufficient wrapper type checking
### Description
When adding a rebasing token wrapper to the `AaveV3YieldManager` contract, the `setWrapperForToken` method performs an underlying token and a decimals check.
```solidity
function setWrapperForToken(
address token,
address wrapper
) external onlyRole(DEFAULT... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `StrategyPUSDConvex.balanceOfJPEG` uses incorrect function signature while calling `extraReward.earned`, causing the function to unexpectedly revert everytime
### Description
_Submitted by rayn_
[StrategyPUSDConvex.sol#L234](https://github.com/code-423n4/2022-04-jpegd/blob/main/contracts/vaults/yVault/strate... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Naming inconsistency - some arguments have `_` at their prefixes but others do not at NestedFactory.sol
### Description
Throughout the file `NestedFactory.sol`, arguments of functions have _ at their prefixes like function `setFeeSplitter(FeeSplitter _feeSplitter)`. However, following 2 arguments do not have `... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inaccurate Perp debt calculation
### Description
The anticipated Perp account debt value calculation via `PerpDepository.getDebtValue` is inaccurate and does not incorporate the (not yet settled) owed realized PnL `owedRealizedPnl`.
### Impact
The Perp account debt calculation is inaccurate and deviates fr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Event emissions
### Description
It is considered best practice when developing Solana programs to emit events when important modifications to the state are performed, such as **Metadata modifications and** `authority` **transfers**.
`- programs/endoavs-program/src/contexts/manage.rs`
```
impl Transfe... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Single strategy failure blocks global reward distribution
### Description
The `performUpkeep` function within the RewardsInitiator contract exhibits a critical flaw. This function, intended to update strategy rewards in the event of a negative rebase, is hindered by its stringent validation mechanism. Specific... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | Same Block Issue | true | true | _Submitted by cmichel_
In `ERC20ConvictionScore._writeCheckpoint`, when the checkpoint is overwritten (`checkpoint.fromBlock == blockNumber`), the new value is set to the `memory checkpoint` structure and never written to storage.
```solidity
// @audit this is MEMORY, setting new convictionScore doesn't write to stor... | Code4rena | 3 | FairSide |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | dos | true | false | ## High: Cool-off period for deposits in swap pools can be bypassed
### Description
**Severity**
**Impact:** Medium
**Likelihood:** High
**Description**
Deposits into the swap pool are subject to a cool-off period before being available for withdrawal via the backstop pool.
However, this restriction can be bypass... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: No way to withdraw funds during emergency in `RewardVault`
### Description
The `RewardVault` contract has pausing functionality which is expected to be called when there is some kind of an emergency, for example a possible vulnerability discovered in the contract. You should add a ways to withdraw the funds ou... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | false | false | ## High: Users can be tricked to blindly sign transactions
### Description
The wallet implements a custom `galleon://...` URI handler which opens the “dApp Authentication Request” dialog (see TOB-TEZORI-001). This functionality could be exploited to send signatures of attacker-controlled messages to attacker-controlle... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `updateBeneficiary` function lacks critical validation checks
### Description
**Severity**: Medium
**Status**: Unresolved
**Source**: ./libraries/VestingWallet.sol , ./libraries/VestingWallet2.sol
**Description**:
The `updateBeneficiary` function in the `VestingWallet` contract allows the contract owne... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect Reallocation Size
### Description
## Managing Members in Multi-Signature Accounts
When adding a member to a multi-signature account, if the pre-allocated memory becomes fully utilized, it is necessary to reallocate. `realloc_if_needed` assesses the requirement for reallocation and performs reallocat... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Origin Spoofing
### Description
## Vulnerability in Auro Wallet's Post Message Implementation
The current implementation of post message inside Auro Wallet is susceptible to origin spoofing because it sends the origin via post message without performing a valid check.
This vulnerability may potentially ena... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: EtherTokens can be used to increase the price arbitrarily
### Description
The support price can be arbitrarily increased by transferring Ether tokens to the Reserve contract account. Users can buy Market tokens using the support function. Several parameters determine the price, including the price floor, the 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 | gas | rounding | true | false | ## Gas: Calculation in computeTotalReward() can be simplified to save gas
### Description
Currently the calculation is very repetitive as seen below and some similar operations occur internally. If we observe closely, each reward separated by `+` have paymentAmountWei and 10000 common in them.
Let us assume x = payme... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The variable _votingPortalsCount is not updated correctly
### Description
There is a lack of checks in the function `_updateVotingPortals()`. As a result, the variable `_votingPortalsCount` may not contain the exact number of VotingPortals.
There are two cases where `_votingPortalsCount` will be incorrectly 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 | other | true | false | ## Low: Incorrect instructions for CFG_EVC_COMPATIBLE_ASSET flag use
### Description
Developers integrating or building smart contracts on top of heavily audited Euler contracts may be overconfident in the code and depend on trusted comments instead of code, which in this case might lead to incorrect flag setting. Sett... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | oracle | true | false | ## High: Stablecoin Arbitrage Leads to Potential for Vusd to Become Undercollateralized
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `655b2efc2704480b32a13a2a52886a71520eb8ea`.
**File(s) affected:**`Redeemer.sol, Minter.sol`
**Description:** The core invariant of the protocol is that 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 | false | false | ## Low: [04] No event emissions for critical state changes in `PrelaunchPoints::setEmergencyMode` and `PrelaunchPoints::allowToken`
### Description
`PrelaunchPoints::setEmergencyMode` and `PrelaunchPoints::allowToken` modify critical state variables, but no events are defined and emitted to broadcast the changes.
###... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `onlyOnce` mapping can be set outside the loop
### Description
**Severity**: Informational
**Status**: Resolved
**Description**
In Contract AFiStorage.sol, the following mapping in setTeamWallet method can be set once the for loop ends
**Recommendation**:
Update the method to set the mapping onlyOnce 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 | false | false | ## Low: Redundant validation in emission override check function
### Description
**Severity**: Informational
**Status**: Unresolved
**Description**
The Minter.emission_override_enabled function is used to check if the emission override feature is enabled. It verifies three conditions: the current timestamp is less ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The balance.unsettledAmount is missing in the calculations for `getMaxWithdraw` and `isSubAmountAllowed` in UsdPool.sol
### Description
The balance.unsettledAmount is missing in the calculations for `getMaxWithdraw` and `isSubAmountAllowed` in UsdPool.sol
### Impact
The higher-level function calls to g... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | oracle | false | false | ## Low: UniswapOracle does not allow overflow
### Description
The [`update` function](https://github.com/fei-protocol/fei-protocol-core/blob/29aeefddd97f31c7f2a598fb3dca3ef24dc0beb4/contracts/oracle/UniswapOracle.sol#L53-L55) in the [`UniswapOracle` contract](https://github.com/fei-protocol/fei-protocol-core/blob/29ae... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Uninitialized Variable marketWhitelist in RCTreasury.sol
### Description
## Handle
leastwood
## Vulnerability details
## Impact
The variable, `marketWhitelist`, is never initialized in the contract `RCTreasury.sol`. As a result, the function `marketWhitelistCheck()` does not perform a proper check on 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... | cyfrin_structured | low | other | true | false | ## Low: Event parameter names are incorrect | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | Rounding | true | false | ## Severity: Medium Risk
## Context
River.1.sol#L277
## Description/Recommendation
In `_onEarnings`, we calculate the `sharesToMint` and `operatorRewards` by dividing two numbers. We can reduce the number of divisions to one and also delegate this division to `_rewardOperators`. This would further avoid the rounding ... | Spearbit | 5 | Liquid Collective |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Variables not used
### Description
The FantiumNFTV1 contract does not use variables:
- `KYC_Manager`
- `FIELD_FANTIUM_PRIMARY_MARKET_ROYALTY_PERCENTAGE`
- `tierSet`
Lines:
- https://github.com/metaxu-art/fantium-smart-contracts/blob/cb2d97bc30c40321991fe5ab8fc798babba1610f/contracts/FantiumNFTV1.sol#L37
- h... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: malicious user can front run any call to the `swapReward` and cause reverting admin calls and prevent setting the correct index to the newToken
### Description
Report type: Smart Contract
Target: https://github.com/alchemix-finance/alchemix-v2-dao/blob/main/src/Bribe.sol
Impacts:
- Griefing (e.g. no prof... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | initialization | false | false | ## Severity: Medium Risk
## Context
`MarketsManagerForAave.sol#L448`
## Situation
Users on the pool currently earn an inferior rate compared to users with P2P credit lines. There is a queue for being connected P2P. Since this queue cannot be fully processed in a single transaction, the protocol introduces the conce... | Spearbit | 5 | Morpho |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `TradingUtils._executeTrade()` doesn't check `preTradeBalance` properly.
### Description
`TradingUtils._executeTrade()` doesn't check `preTradeBalance` properly.
### Impact
All of ETH/WETH balance of the contract might be lost in some cases.
### Recommendation
We should check `preTradeBalance` properly. We ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Potential DoS in `FertilizerFacet::getFertilizers` if enough Fertilizer is added
### Description
It is possible that [`FertilizerFacet::getFertilizers`](https://github.com/BeanstalkFarms/Beanstalk/blob/c7a20e56a0a6659c09314a877b440198eff0cd81/protocol/contracts/beanstalk/barn/FertilizerFacet.sol#L172-L192) can... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Duplicating Event.
### Description
**Description**
RadiantOFT: mint()
Transfer event is duplicated since super._mint() uses same event.
**Recommendation**:
Remove duplicated event.
**Post-audit**:
Radiant team has removed duplicated event. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inconsistent use of upgradeable contracts
### Description
Some upgradeable contracts don't use the upgradeable versions of the OpenZeppelin contracts [as recommended](https://docs.openzeppelin.com/contracts/4.x/upgradeable). These contracts may contain initializers to work properly or reserve gaps in storage 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: Change in interest rate can disable repay of loan
### Description
_Submitted by pmerkleplant_
#### Impact
The ability of a borrower to repay a loan is disabled if the interest rate is
set too high by the `InterestRateModel`.
However, there is neither a check when setting the interest rate nor an
indicatio... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Tokens accidentally sent to the contract cannot be recovered
### Description
It can't be recovered if the tokens accidentally arrive at the contract address, which has happened to many popular projects, so I recommend adding a recovery code to your critical contracts.
### Recommended Mitigation Steps
Add thi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Optimism will lose fee vault L1 withdrawal test coverage from PR 5886
### Description
In PR 5886, Coinbase introduced the possibility for Bedrock chains to set L2 addresses for withdrawals instead of Optimism's default option of withdrawing to L1. Part of this PR was to edit the OP Stack's end-to-end tests to ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | rounding | true | false | ## Low: Failure In Decoding Error Message
### Description
## Issue in `executeAndRevert` within `Executor`
The issue arises in `executeAndRevert` within `Executor`, where the function tries to revert with the actual string containing the error message when the execution of a particular call fails.
## Location
File:... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | front-running | true | false | ## High: Denial of service of Liquiditypool `QueuedWithdrawals`
### Description
The preferred way for withdrawals of the Liquiditypool is to do this via a withdrawal queue.
According to Polynomial:
> Queuing will be the default deposit/withdraw mechanism (In the UI) and not planning to charge any fees for this mechan... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Potential nil pointer dereference in reloadPendingTransfer
### Description
A potential nil pointer dereference exists in `reloadPendingTransfer`. The bug could be triggered if invalid data were stored within a node’s database, and could make it impossible to restart the node.
The relevant code appears in figu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Price Update Data Has Insufficient Validation
### Description
The [`PythPriceOracle.updatePrice`](https://github.com/AmperaFoundation/sol-contracts/blob/4c4423791b3427153937881fc5287a81283ee141/contracts/PythPriceOracle.sol#L206) function returns a price after decoding the input and output token addresses fro... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: INCREASECREDIT FUNCTION LACKS CALL TO SORTINTOQ
### Description
In the `LineOfCredit` contract, the `increaseCredit()` allows borrowers and lenders to increase their credit. This function also allows transferring specified `principal` to the borrower immediately. However, this function does not call the `_sort... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | rounding | true | false | ## Medium: In `MultiRewardStaking.addRewardToken()`, `rewardsPerSecond` is not accurate enough to handle all type of reward tokens.
### Description
The raw `rewardsPerSecond` might be too big for some ERC20 tokens and it wouldn't work as intended.
### Proof of Concept
As we can see from `_accrueStatic()`, the `rewar... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | initialization | false | false | ## Low: `disableInitializers` not used to prevent uninitialized contracts
### Description
`PolygonVault` and `PolygonStrategy` contracts are designed to be upgradeable.
They are both inheriting from `Initializable` but do not have a constructor that calls `_disableInitializers()`.
An uninitialized contract can be ta... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Use general `safeTransferFrom`
### Description
It is required to check success of transfer. So it is should be handled as in ERC20:
- https://github.com/RealityCards/RealityCards-Contracts/blob/8c0b05b25a7deef25f98532ae2f8afd4f9a84360/contracts/nfthubs/RCNftHubXdai.sol#L69
### Recommendation
It is recommen... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | liquidation | false | false | ## High: Shrine's recovery mode can be weaponized as leverage to liquidate healthy troves
### Description
In the Shrine implementation, the loan (trove) health is calculated by having its LTV compared to the shrine threshold:
```cairo
File: shrine.cairo
1133: fn is_healthy_helper(self: @ContractState, health: Health... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Oracle Data May Be an Unexpected Value
### Description
**Update**
Validation that checks the price is greater than `0` was added.
**File(s) affected:**`ChainlinkPriceFeed.sol`
**Description:** It is recommended to add a require statement for `latestPrice > 0`. While the price is generally expected to be grea... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | true | ## Low: Missing validation in DharmaUpgradeBeaconControllerManager
### Description
Within the `DharmaUpgradeBeaconControllerManager` contract, the `armAdharmaContingency` function does not perform adequate validation of its controller and beacon address parameters (Figure 11.1).
```solidity
function armAdharmaConting... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | storage | true | false | ## Medium: Missing validation in Masset._redeemTo Acknowledged
### Description
In function `_redeemTo` the collateralisation ratio is not taken into account unlike in `_redeemMasset`:
**code/contracts/masset/Masset.sol:L558-L561**
```
uint256 colRatio = StableMath.min(props.colRatio, StableMath.getFullScale());
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Permit signatures cannot be cancelled by signers before deadline
### Description
The `permit` signatures in LibSiloPermit.sol and LibTokenPermit.sol cannot be cancelled if the signer so wishes.
### Impact
Signers cannot cancel their signatures before its deadline. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: POSSIBLE INTEGER OVERFLOWS DUE TO IMPROPER USE OF UNCHECKED KEYWORD
### Description
As of version **0.8.0** in Solidity, a control mechanism was implemented to prevent overflow and underflow issues for mathematical operations. Since this costs extra gas, the `unchecked` keyword was also implemented to remove 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... | solodit_api | high | oracle | true | false | Source: https://github.com/sherlock-audit/2023-12-flatmoney-judging/issues/194
## Found by
LTDingZhen, nobody2018, xiaoming90
## Summary
Malicious keepers can manipulate the price when executing an order by selecting a price in favor of either the LPs or long traders, leading to a loss of assets to the victim's par... | Sherlock | 5 | FlatMoney |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | ## Medium: Potential loss of LP Fees
### Description
When a token sale completes, the corresponding `curvePool` is set to `paused`. Subsequently, the owner can invoke `TokenFactory::moveToAMM` to create a pool on Uniswap and add liquidity (TokenFactory#L888-905). This action mints a Uniswap position NFT and stores its... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Presumptive edge tracker never reaches confirmation
### Description
An edge tracker in the presumptive state for which a rival is never created will be indefinitely stuck in the same state, and the validator will be unable to advance the challenge.
As shown in the figure below, whenever an edge reaches the pr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | true | false | ## Gas: Variable swapping can be more efficient
### Description
Solidity has a way to swap two variable values in a single line that's more gas efficient, instead of requiring a third variable.
### Recommendation
Implement Solidity's native variable swapping:
```solidity
- address temp = lenders[i];
- lenders[i] = len... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | initialization | true | false | ## Medium: `EmissionScheduler` and `Minter` contracts can't be initialized due to an incorrect `startTime` check
### Description
In the `EmissionScheduler` contract, the `initialize()` function is intended to initialize the contract and is invoked via `Minter.initialize()` function. However, the function incorrectly 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 | token | false | false | ## Low: `SecuritizeSwap::executeStableCoinTransfer` should use `SafeERC20` approval and transfer functions instead of standard `IERC20` functions
### Description
**Description:** In `SecuritizeSwap::executeStableCoinTransfer` use [`SafeERC20::forceApprove`](https://github.com/OpenZeppelin/openzeppelin-contracts/blob/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... | cyfrin_structured | low | access-control | true | false | ## Low: Redundant manual access control checks
### Description
In both `BaseRewards` and `BaseSlashing` contracts, functions perform manual access control checks (`_checkRewarder` and `_checkSlasher`) instead of using the already-defined `onlyRewarder` and `onlySlasher` modifiers. Specifically:
* `distributeStakerRew... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | dos | true | true | ## Medium: `LidoVault::vaultEndedWithdraw` doesn't take into consideration income withdrawals before slashing, blocking variable users from withdrwing their income
### Description
When FIXED users deposit ETH, they are being deposited in Lido, and Lido might experience slashing. This is expected on the protocol's side... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | true | ## Low: Incorrect sload in LibBytes
### Description
The function `storeUint128` in `LibBytes` intends to pack uint128 `reserves` starting at the given slot but will overwrite the final slot if [storing an odd number of reserves](https://github.com/BeanstalkFarms/Wells/blob/e5441fc78f0fd4b77a898812d0fd22cb43a0af55/src/... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `UniquenessTests` incorrectly refers to the caller being included in the call identifier computation
### Description
**Description:** `UniquenessTests::test_CallIdIncludesCaller` is implemented based on the assumption that the call identifier will differ when called by two different addresses as the caller 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: Passing the `return data` by the EVM state
### Description
[`execTransactionFromModuleReturnData`](https://github.com/EnsoFinance/shortcuts-contracts/blob/951a4a247165f4209bceb6deb628a4970bf3f6da/contracts/wallet/ModuleManager.sol#L45) is using `returndatasize` and `returndatacopy` in the assumption that virtu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Upgradability
### Description
**Update**
Acknowledged by the client.
**File(s) affected:**`CyanPaymentPlanV2.sol`, `CyanApeCoin.sol`, `CyanApeCoinVault.sol`, `CyanPeerPlan.sol`, `CyanPrivateSales.sol`, `CyanVaultV2.sol`
**Description:** While upgradability is not a vulnerability in itself, users should be aw... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Node Allows To Notarize Reverted Transactions
### Description
During the `notarizeTransactionController` class execution, there are several checks run in the `preHandle` function in order to validate whether a transaction is correct or not, taking into account several situations such as if the transactions 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 | access-control | false | false | ## Medium: Fund Access Restrictions
### Description
## Set Funds Recovery Address
The `set_funds_recovery_address` instruction requires a signature from the `infinex_authority` account, an administrator-controlled account managed by Infinex. Similarly, the `authorize_invoke` instruction also requires it to be signed ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 setter function to change config storage contract in LockManager
### Description
[Link to instance](https://github.com/code-423n4/2024-05-munchables/blob/57dff486c3cd905f21b330c2157fe23da2a4807d/src/managers/LockManager.sol#L61)
Currently it is possible to reconfigure the BaseBlastManager state (inher... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unused Reserves List
### Description
## Storage Object in storage.move
In `storage.move`, the `Storage` object contains `reserves_list` as a field representing a vector of reserve indexes. However, this field is removable since there are no delegations of reserve in the storage, and the vector may be derived ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 zero address checks
### Description
**Description:** Critical address in the controller, strategy and vault contracts have missing zero address checks, both at the time of initialization and later, at the time of updates.
`PolygonStrategy.sol`
`PolygonFundFlowController.sol`
**Recommended Mitigati... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Minor gas improvements in staked_lpt.move#L895
### Description
## Context
(No context files were provided by the reviewers).
## Description/Recommendation
## In create_staked_lpt function:
- Change the following line:
- `let farming = borrow_global(package::package_address());`
- To:
- `let farming = ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | Whitelist/Blacklist Match | true | true | ## Lines of code
https://github.com/code-423n4/2022-11-stakehouse/blob/main/contracts/liquid-staking/LiquidStakingManager.sol#L278-L284
https://github.com/code-423n4/2022-11-stakehouse/blob/main/contracts/liquid-staking/LiquidStakingManager.sol#L684-L692
https://github.com/code-423n4/2022-11-stakehouse/blob/main/contr... | Code4rena | 4 | Stakehouse Protocol |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | false | false | ## Low: Implementation Vulnerable to Front-Running
### Description
Front-running attacks [6, 7] involve users watching the blockchain for particular transactions and, upon observing such a transaction, submitting their own transactions with a greater gas price. This incentivizes miners to prioritize the later transact... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: Needless addition in `TradingAccount::withdrawMarginUsd`
### Description
Needless addition in `TradingAccount::withdrawMarginUsd` since this is an output variable that has no prior assignment or value:
```solidity
File: TradingAccount.sol
371: withdrawnMarginUsdX18 = withdrawnMarginUsdX18.add(amoun... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Duplicate Node Delegators Not Accounted For
### Description
The `LRTDepositPool` contract does not check for duplicate node delegator addresses when they are added to the `nodeDelegatorQueue`. This could allow the same node delegator to be added multiple times. As a result, functions that rely on this queue... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 nonce validation in signature verification allows transaction replay attacks
### Description
**Description:** The `SecuritizeOnRamp::executePreApprovedTransaction` function fails to validate that the nonce provided in the transaction data matches the expected nonce for the investor before executing th... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | token | true | false | ## Medium: `createERC20DAO()` will always revert when `_depositChainIds` has a length bigger than 1
### Description
Whenever we call `createERC20DAO()`, we have the following **if** check:
```solidity
if (_depositChainIds.length > 1)
```
If we end up in there, we will always revert. This is due to this line:
```sol... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Outdated `emergencyUninstallTimelock` may affect `emergencyUninstallHook`
### Description
In smart account, we will uninstall one hook if the hook does not work or is malicious. We have several ways to uninstall one hook, `emergencyUninstallHook`, `uninstallModule`.
In `emergencyUninstallHook`, we have one ti... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | reentrancy | false | false | ## Low: `nonReentrant` is not the first modifier
### Description
In `FeeManager::withdrawProtocolFee`, `nonReentrant` is not the first modifier. To protect against reentrancy in other modifiers, the `nonReentrant` modifier should be the first modifier in the list of modifiers. Consider putting `nonReentrant` first 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 | medium | other | false | false | ## Medium: Several Issues with Consents Obtained Through Voting
### Description
A consent obtained through voting will also apply to MetaVesTs [that were added to the set](https://github.com/MetaLex-Tech/MetaVesT/blob/b614405e60bce8b852e46d06c03fd47b04d86dde/src/MetaVesTController.sol#L691) after the voting process fi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Lack of Input Validation for Default Pubkey
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation:
> We acknowledge this suggestion but we have decided not to check against the default public key for every stored pubkey in each program.
**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 | low | initialization | true | false | ## Low: Misleading result returned by view function getPostedSwap
### Description
The value returned by the `getPostedSwap` function to indicate whether a swap has been executed can be misleading. Once a swap has been executed, the value of the swap is reset to either 0 or 1. However, the `getPostedSwap` function retu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | oracle-manipulation | false | false | ## Medium: `PriceFeed` will use incorrect price when underlying aggregator reaches `minAnswer`
### Description
`PriceFeed` which has been designed to work with Chainlink oracles will use incorrect price when underlying aggregator reaches `minAnswer`.
This occurs because Chainlink price feeds have in-built minimum & 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 | token | false | false | ## Low: Non-conformance to Solidity naming conventions.
### Description
**Description**
Naming conventions are powerful when adopted and used broadly. The use of different conventions can convey significant meta information that would otherwise not be immediately available. Specific instances: Parameter_feeTo is not ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Limit orders are unnecessarily delayed by a block
### Description
Limit orders are delayed by a block due to oracle block number restrictions, in combination with requiring ascending/descending prices. Limit orders have special logic to ensure that they're only triggered when the price approaches the trigge... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | cross-chain | true | false | ## Medium: Cross-Chain Borrowing will not work as intended
### Description
-
### Impact
Core protocol functionality is broken
### Recommendation
_No response_ | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.