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 | cross-chain | true | false | ## Low: Verify anyswap token
### Description
The AnyswapFacet supplies `_anyswapData.token` to different functions of `_anyswapData.router`. These functions interact with the contract behind `_anyswapData.token`. If the `_anyswapData.token` is malicious, then tokens can be stolen. Note, this is relevant if the LiFi 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 | low | initialization | false | false | ## Low: Missing HTTP request timeouts in axios clients on SKIP APIs
### Description
Every call to Skip’s HTTP API in SkipService._requestSkip() uses axios.request(...) without a timeout. A slow or unresponsive Skip backend can block the Router API’s event loop threads, causing request handlers to hang indefinitely and... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: TRST-L-1 Incorrect validation of strike price
### Description
**Description:**
When validating the properties of TimeswapV2PoolCollectProtocolFeesParam and
TimeswapV2PoolCollectTransactionFeesAndShortReturnedParam, `Error.zeroInput()` is thrown
if both requested token amounts and the strike price are zero. 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 | true | false | ## Low: type(T).max is inclusive
### Description
Throughout the codebase, there are checks whether a number can be represented by a certain type.
### Recommendation
`type(T).max` is inclusive, i.e., it is the greatest number that *can* be represented with type `T`. Strictly speaking, it can and should therefore be 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 | low | access-control | false | false | ## Low: Isolated assignments of Critical variables addresses
### Description
**Severity**: Low
**Status**: Acknowledged
**Description**
There are isolated and separate assignment of critical variable addresses for each contract although they are expected to be the same across the codebase.
But it is not advised 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 | other | false | false | ## Low: Old Floating Pragma Version
### Description
Pragma directives should be fixed to clearly identify the Solidity version with which the contracts will be compiled.
The file [`IPrime.sol`](https://github.com/VenusProtocol/venus-protocol/blob/f31a0543da039dab69112c6be3e36ea54959503b/contracts/Tokens/Prime/IPrim... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | access-control | true | true | ## Medium: Calling `PaymentSettler::setStableCoin` can lead to inability of holders to claim funds and old stablecoin being trapped in the contract
### Description
An admin can call `PaymentSettler::setStablecoin` at any time. As the code is currently design this should only be done when the stablecoin balance of the ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | signature | true | true | ## Medium: Deposit and redeem functions can be DOSed by exploiting the replay prevention mechanism
### Description
This issue affects both minting and redemption, as both use the same `_deduplicateOrder` function to prevent replay attacks.
The `_deduplicateOrder` function relies on the `order.benefactor` and `order.n... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | access-control | false | false | ## High: Functions are not restricted.
### Description
**Description**
1) RadiantOFT.sol: setLpMintComplete(), setMinter().
Functions are not restricted, meaning anyone can call and stop the minting or set a minter address. While function setMinter() can be called only once, there are no deployment scripts to 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 | high | storage | true | true | ## High: Any network contract can change any node’s withdrawal address
### Description
The RocketStorage contract uses the eternal storage pattern. The contract is a key-value store that all protocol contracts can write to and read. However, RocketStorage has a special protected storage area that should not be writabl... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | cross-chain | false | false | ## Medium: Missing validation on relation
### Description
At the lines https://github.com/aave/governance-crosschain-bridges/blob/7f56e7ae63f30ba8dcd7ced6a11a34c2eb865a1d/contracts/BridgeExecutorBase.sol#L34-L39 are working with the variables `minimumDelay` and `maximumDelay`. But nowhere is there a comparison of thes... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | token | false | false | ## High: Fully repaying a loan will result in debt payment being lost
### Description
When a `loan` is fully repaid the `loan` storage is deleted. Since `loan` is a `storage` reference to the loan, `loan.lender` will return `address(0)` after the `loan` has been deleted. This will result in the `debt` being transferre... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Visibility Check Enhancement
### Description
## Twitter Observer Setup
The `setupTwitterObserver` function is setting up a `MutationObserver` to watch for changes in the DOM in order to dynamically handle new elements added to the page.
When utilizing a `MutationObserver` to monitor DOM changes and react 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 | token | true | false | ## Low: EOA-Behaviour Mismatch
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `50b5dbd9dacc1436b781dccc6f43ba482038fb9b` and `085a6985fcc86843df1084c55d474bbe6dc67b3e`.
**File(s) affected:**`Pectra.sol`
**Description:** The documentation states:
> Transaction Completion: The transaction f... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | true | false | ## High: ERC4626 mint uses wrong `amount`
### Description
_Submitted by cmichel, also found by 0xliumin, CertoraInc, Picodes, and Ruhum_
> The docs/video say `ERC4626.sol` is in scope as its part of `TurboSafe`
The `ERC4626.mint` function mints `amount` instead of `shares`.
This will lead to issues when the `asset <... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: QuoterV1 knows too many implementation details
### Description
The QuoterV1 currently knows implementation details for the different routers and types of assets via:
- `_getErc4626Assets()`
- `_getErc7540Assets()`
For maintenance and upgradability, it is advisable to delegate this calculation to the router.
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inaccurate MAX_MSAFE_OWNERS_LIMIT
### Description
## Vulnerability Report
An additional nonce key is added in `derive_multisig_auth_key`. This means that the actual `MAX_MSAFE_OWNERS_LIMIT` should be one less than the Aptos enforced maximum of 32, or a total of 31.
## Code Snippet
## Remediation
Change th... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | access-control | true | false | ## High: Malformed equate statement
### Description
*Note: This finding was reported via the winning [Automated Findings report](include link to bot-report.md file). It was declared out of scope for the audit, but is being included here for completeness.*
### Lines of code
[8](https://github.com/code-423n4/2024-01-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 | false | false | ## Low: Functions without comments
### Description
Some functions do not have comments describing them.
### Instances
* [`function reserves(uint granularity)`](https://github.com/code-423n4/2022-09-canto/blob/65fbb8b9de22cf8f8f3d742b38b4be41ee35c468/src/Swap/BaseV1-core.sol#L224)
* [`function sampleReserves(uint p... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: In `CredibleAccountModule` the `validateSessionKeyParams()` Function is `public`
### Description
The function `CredibleAccountModule::validateSessionKeyParams()` will be used in `validateUserOp()` when validating user input. It changed the `TokenData` to claimed so that the smart wallet can unlock the tokens.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Bridge NFTs/tokens to Contracts with Different Ownership Across L1 and L2
### Description
**Update**
The team fixed as recommended for the `NFT bridges` in the commit `3af1450` and decided to leave the LP contracts as it is. The following is their original statement:
> the contract check to prevent user 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... | skyward_49k | medium | front-running | false | false | ## Medium: `VaderPoolV2.mintFungible` exposes users to unlimited slippage
### Description
_Submitted by TomFrenchBlockchain, also found by pauliax and robee_
Frontrunners can extract up to 100% of the value provided by LPs to VaderPoolV2 as fungible liquidity.
#### Proof of Concept
Users can provide liquidity to `V... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | oracle | false | false | ## High: An incorrect `last_tvl` state after the price pair removal
### Description
- https://github.com/curvefi/curve-stablecoin/blob/25fb794f1acea1e1d498fab41f6cab9cbdc565e7/contracts/price_oracles/AggregateStablePrice2.vy#L108
The `AggregateStablePrice` contract doesn't remove the corresponding entry in the `last_... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: No check for Individual mint amount surpassing 10% when the circulation reaches 10\_000\_000 in `mint()` of `LybraEUSDVaultBase` contract
### Description
### Lines of code
### Impact
The mint functions in `LybraEUSDVaultBase` have no checks for when the supplied amount to mint is more than 10% if circu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: Using `calldata` is more efficient to `memory` for read-only external function inputs
### Description
Using `calldata` is more efficient to `memory` for read-only external function inputs:
`PreDepositVault`:
```solidity
35: , string memory name
36: , string memory symbol
``` | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: OracleManager allows reporting for the same epoch multiple times, leading to unknown behavior.
### Description
## Severity: Low Risk
**Context:** OracleManager.1.sol#L463
**Description:**
Currently, it is possible for the oracle to report on the same epoch multiple times, because `_-
isValidEpoch` checks th... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | true | false | ## Gas: Remove second `for` loop in `DropBox::claimDropBoxes` and reduce 1 storage read per deleted box
### Description
**Description:** The first `for` loop inside `DropBox::claimDropBoxes` can be written like this such that the second `for` loop can be removed, meaning there is only need to iterate once over the inp... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: Lack of input validation
### Description
Several `external` functions fail to validate the input parameters supplied. For example:
* The [initialization of the `Reservoir` contract](https://github.com/notional-finance/contracts-v2/blob/c37c89c9729b830637558a09b6f22fc6a735da64/contracts/external/governance/Re... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | true | false | ## Low: Access Control Flaw in `_burn` Function Leads to Operational Disruption
### Description
Report type: Smart Contract
Target: https://github.com/alchemix-finance/alchemix-v2-dao/blob/main/src/VotingEscrow.sol
Impacts:
- Contract fails to deliver promised returns, but doesn't lose value
- Temporary freezing 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 | medium | other | true | false | ## Medium: OCL_ZVE.sol::forwardYield relies on manipulable Uniswap V2 pool reserves leading to theft of funds
### Description
`OCL_ZVE.sol::forwardYield` is used to forward yield in excess of the basis but it relies on Uniswap V2 pools that can be manipulable by an attacker to set `basis` to a very small amount and 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 | medium | other | true | false | ## Medium: Inactive managers may under-report funds
### Description
`LiquidityBuffer.getControlledBalance()` sums balances of managers with `isActive == true` only. If an admin deactivates a manager via `updatePositionManager()`/`togglePositionManagerStatus()` before evacuating funds, any residual underlying on that m... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | overflow | false | false | ## Medium: Sensitive mathematical operations are not explicitly documented
### Description
Intending to make the platform as transparent as possible, the Aave team has implemented most of the calculations the Aave protocol relies on in their smart contracts. Such calculations usually entail complex arithmetic operatio... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | liquidation | true | false | ## Medium: lenderKick incorrectly sets LUP
### Description
Source: https://github.com/sherlock-audit/2023-09-ajna-judging/issues/49
## Found by
0xkaden
`KickerActions.lenderKick` retrieves what the LUP would be if the lender's deposit were removed to validate collateralization of the borrower being kicked. The met... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: ChainlinkOracleWithMaxDelayBase price precision analysis
### Description
The constant `ORACLE_PRECISION` is defined as:
```
ORACLE_PRECISION = 10 * (
36 + quoteTokenDecimals + params.quoteFeedPrimary.getDecimals() +
params.quoteFeedSecondary.getDecimals() - baseTokenDecimals -
params.baseFeedPrimary.get... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Auction account is not closed after `cancel_auction` without bids.
### Description
**Description**
After the cancel_auction method call (in case there is no bid yet), the 'auction' account is not closed.
programs/auction_house/src/methods/cancel_auction.rs, function 'handle'
**Recommendation**
The "auction"... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | storage | true | false | ## High: Lack of contract existence check on delegatecall will result in unexpected behavior
### Description
The `AdminUpgradeableProxy` contract uses the delegatecall proxy pattern. If the implementation contract is incorrectly set or is self-destructed, the proxy may not detect failed executions.
The `AdminUpgradea... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | token | false | false | ## High: VaderPoolV2 owner can steal all user assets which are approved VaderPoolV2
### Description
## Handle
TomFrenchBlockchain
## Vulnerability details
## Impact
Possible theft of all user assets with an ERC20 approval on VaderPoolV2
## Proof of Concept
The owner of `VaderPoolV2` can call the `setTokenSuppor... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | false | false | ## Gas: Check `boxAmount < 100` only once before loop in `MysteryBox::_assignTierAndMint()`
### Description
**Description:** As `boxAmount` input is static, [check `boxAmount < 100`](https://github.com/Earnft/smart-contracts/blob/43d3a8305dd6c7325339ed35d188fe82070ee5c9/contracts/MysteryBox.sol#L479) only once before ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Roles Not Transferred Following a Two-Step Pattern
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `6d5224d`.
**File(s) affected:**`Reach.sol, ReachFactory.sol, ReachDistributionV2.sol`
**Description:** The owner of the contracts inheriting from OpenZeppelin's Ownable can call `tran... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Risk of lost funds due to lack of zero-address check in functions
### Description
The `VaultFactory.claimFees` (figure 8.1), `RepaymentController.redeemNote` (figure 8.2), `LoanCore.withdraw`, and `LoanCore.withdrawProtocolFees` functions are all missing a check to ensure that the `to` argument does not equ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | ## Low: VestableVotesUpgradeableV1._computeVestingReleasableAmount : Users with VestingSchedule.releasedAmount > globalUnlocked will be temporarily denied of service
### Description
The current version of the code introduces a new concept; **global unlocking**. The idea is that wherever `IgnoreGlobalUnlockSchedule` 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 | token | true | false | ## Low: 13] Id should be checked by the LP before redeeming
### Description
**Severity:** Low
**Path:** chains/evm/solidity/contracts/HashedTimeLockERC20.sol#L253-L272
**Description:** When a user calls the `addLock()` function, an event containing the HTLC ID, hashlock, and timelock is emitted. The Solver implemen... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: depletionTimeOf() can fail due to overflowing uint40 result
### Description
## Context and Description
**Context:** SablierFlow.sol#L94
**Description:** `depletionTimeOf()` returns a `uint40`. This is common because it measures time, and all reasonable times fit comfortably within that value. However, `deplet... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Non-conformance to EIP-712 standard
### Description
The current implementation for hashing and signing messages does not conform to the EIP-712 standard for hashing and signing of typed structured data. This non-conformance results in several issues:
- Messages will not display correctly on wallets that suppo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | storage | false | false | ## Low: UPGRADE TO AT LEAST PRAGMA 0.8.10
### Description
Gas optimizations and additional safety checks are available for free when using newer compiler versions and the optimizer.
* Safemath by default from 0.8.0 (can be more gas efficient than the SafeMath library)
* Low level inliner: from 0.8.2, leads to cheaper... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: User's can seize more assets during liquidation by using type(uint).max
### Description
User's can seize more assets during liquidation than what should be actually allowed by replaying the repayment amount using type(uint).max
### Impact
Borrowers will loose excess collateral during liquidation
### Recomme... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | DOS | false | false | Source: https://github.com/sherlock-audit/2022-11-opyn-judging/issues/156
## Found by
indijanc, \_\_141345\_\_, Trumpero, reassor, Met, KingNFT, zapaz, csanuragjain, HonorLt
## Summary
State variables `userDepositIndex` and `userWithdrawIndex` are growing indefinitely, this might lead to expensive transactions and ... | Sherlock | 3 | Opyn Crab Netting |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | cross-chain | true | false | ## High: Math error in creator payment calculation
### Description
**Description:** The Tunnl protocol applies 3 kinds of fees.
- **Flat Fee**: The advertiser pays a flat fee and it is charged on acceptance of offers.
- **Advertiser Percentage Fee**: The advertiser percentage fee is the percentage fee that is charged ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Rate limits can prevent the system recovery via debt issuance
### Description
When a position is opened the debt of an existing position is increased, and the system is in recovery mode, users are not charged any borrowing fees. This is done to maximally encourage borrowing, as the minimum required ICR is high... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Use Ownable-Two-Step Pattern for Administrator Contract
### Description
The contract currently uses an immutable [`administrator`](https://github.com/longgammalabs/hanji-contracts/blob/09b6188e028650b9c1758010846080c5f8c80f8e/src/OnchainLOB.sol#L84) address initialized through the `Governance` contract. Howeve... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | front-running | false | false | ## Medium: The contracts owner can maliciously front-run users
### Description
**Severity**
**Impact:**
High, as it can result in a loss of funds for users
**Likelihood:**
Low, as it requires a malicious or compromised owners
**Description**
The `Swap` and `Aave` contracts have the `setNewAddresses` functionality,... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Malicious Owner Could Front-Run `updateOwners()` Calls
### Description
**Update**
Alchemy has acknowledged this issue and commented: "This is a tradeoff that we’re accepting for this iteration, and is covered in our documentation."
**File(s) affected:**`plugins/owner/MultiOwnerPlugin.sol`
**Description:** 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 | high | cross-chain | true | false | ## High: _handleExecuteTransaction() doesn’t handle native assets correctly
### Description
## Security Report
**Severity:** High Risk
**Context:** BridgeFacet.sol#L644-L718, Executor.sol#L142-L243
**Description:**
The function `_handleExecuteTransaction()` sends any native tokens to the executor contract firs... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | rounding | true | true | ## High: Loss of fees due to rounding down
### Description
The `FarmKeeper` contract uses a `SCALE_FACTOR` of `1e12` when accumulating fees per share of liquidity. For tokens with low decimals (e.g. USDC with 6 decimals) and large liquidity amounts, this can lead to precision loss and rounding down to 0, resulting 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 | high | access-control | true | false | ## High: Hardcoded gas used in ERC20 queries allows for block production halt from infinite recursion
### Description
### Vulnerability details
The `funtoken` precompile allows an EVM caller to access information about tokens that coexist in the Cosmos ("coin") and EVM ("ERC20") spaces.
Some operations performed by ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | OZ Version | true | false | Source: https://github.com/sherlock-audit/2023-01-uxd-judging/issues/423
## Found by
ctf\_sec, HonorLt
## Summary
The protocol uses an OZ version of contracts that contain a known vulnerability in government contracts.
## Vulnerability Detail
```UXDGovernor``` contract inherits from ```GovernorVotesQuorumFraction`... | Sherlock | 4 | UXD 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 | medium | other | true | false | ## Medium: Bad debt isn't cleared when `earningsAccumulator` is lower than a fixed-pool bad debt
### Description
When the bad debt from a fixed pool must be cleared but the `earningsAccumulator` value is slightly lower than the debt, it won't clear any amount of debt. If the bad debt amount is big enough, this may cau... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 in Registry contracts
### Description
The AddressProviderService inherited by the registry contracts copies the registry values internally in the constructor.
If one of the registries is not initialized, the constructor will exit gracefully. It is worth adding this validation whic... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | flash-loan | true | false | ## Low: Migrating collateral will leave dust amounts of source tokens behind
### Description
When migrating collateral, the user provides two separate amounts related to how much of the source market tokens should be migrated: `migrationAmount` and `swapParams.fromAssetAmount`.
- `migrationAmount` is the number of `q... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Omissions in Events
### Description
Throughout the codebase, events are generally emitted when sensitive changes are made to the contracts.
However, some events are missing important parameters.
The events should include the new value and old value where possible:
Events with no old value; | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | liquidation | true | false | ## Medium: Withdrawal of collateral should not be restricted to only allowed providers
### Description
If the whitelist is enabled in the `LPExternalRequestsManager` contract, only allowed providers could create mint and burn requests:
```solidity
File: LPExternalRequestsManager.sol
40: modifier onlyAllowedProviders... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: TRSRY susceptible to loan / withdraw confusion
### Description
_Submitted by Trust, also found by 0xSky, datapunk, and tonisives_
Treasury allocates approvals in the withdrawApproval mapping which is set via setApprovalFor(). In both withdrawReserves() and in getLoan(), \_checkApproval() is used to 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 | token | true | false | ## Medium: Inconsistent Interface Between Similar Functionality: Whitelist / Blocklist Acknowledged
### Description
`VaultBlocklist` and `VaultWhitelist` implement similar functionality. However, their handling from a management perspective is quite different.
* `setBlocklistManager` and `setWhitelister` implementa... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | dos | true | false | ## Low: Attacker can abuse the system by modifying the collateral of pending orders
### Description
When a user creates an order, it enters a pending state. To activate the order, Zaros' `Keeper` must execute `fillOrder`. However, there is a critical issue in the process:
Users must deposit collateral when creating a... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Unused imports, events, custom errors and modifiers
### Description
**Severity**: Informational
**Status**: Resolved
**Description**
The code base contains unused imports, events, custom errors and modifiers that should be removed to improve code cleanliness and eliminate unnecessary dependencies.
MasterPe... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Ability to create wallets before WalletFactory is initialized
### Description
When a user creates a new wallet through the WalletFactory contract, a check for whether the factory has been initialized correctly is missing. This missing check can result in the creation of unusable wallets.
When a new wallet 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 | access-control | false | false | ## Low: Ingress should use a set ✓ Fixed
### Description
The `AdminList`, `AccountRulesList`, and `NodeRulesList` contracts have been recently rewritten to use a set. `Ingress` has the semantics of a set but has not been written the same way.
This leads to some inefficiencies. In particular, `Ingress.removeContract`... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | dos | true | false | ## Low: Potential DOS due to Gas Exhaustion Due to Large Array Iteration in `_distribute` Function
### Description
The `_distribute` function in the provided contract contains a loop that iterates through arrays of winners and percentages to distribute tokens. If these arrays are very large, this loop could lead to ex... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Wrong Argument Validation in Modifier Generation
### Description
In the [`generate`](https://github.com/Brushfam/openbrush-contracts/blob/553347354de6d0ead6a335ba4c197bdd01fb2d12/lang/codegen/src/modifier_definition.rs#L34) function of the `modifier_definition` macro, modifier arguments are matched against ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Outdated Dependencies
### Description
## Outdated npm Packages with Vulnerabilities
Some outdated npm packages with known vulnerabilities are being utilized as dependencies:
## BASH
- **3 moderate severity vulnerabilities**
### To Address All Issues, Run:
## Remediation
Update these dependencies with th... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Avoid using magic numbers
### Description
During the analysis of the contracts under scope, specifically in `Auction` and `Listing` contracts, it was identified the use of magic numbers. This can reduce code readability, as some literals might not be so obvious or intuitive.
- contracts/Auction.sol [Line: 147... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | logic | false | false | ## Medium: Set owner unable to update configuration when insolvent
### Description
Set owner may only update the configuration in a manner that does not cause the utilization of any market to rise to and over 100%. This would create insolvent markets, meaning a market would not have enough collateral to cover its claims... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Missing Validation for `newEndTime` in `updateEndDepositTime` Function
### Description
This issue has been identified in the `updateEndDepositTime` function of the `Prestaking` contract.
The function currently allows updating the `endDepositTime` without validating whether the new time is between the `startDep... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Remove `< 0` checks for unsigned variables since they can't be negative
### Description
**Description:** Remove `< 0` checks for unsigned variables since they can't be negative:
File: `src/DropBox.sol`
**Mode:**
Fixed in commit [ccc358a](https://github.com/Earnft/dropbox-smart-contracts/commit/ccc358a88e27e... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | dos | true | false | ## Low: Overly restrictive balance consistency check in `TotalBalanceChange` class of enforcers can cause potential DoS
### Description
`TotalBalanceChange` class of enforcers contain a defensive check in `beforeAll` hook that can cause DoS attacks in cross-execution batch scenarios and prevents legitimate balance-mod... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `rigidRedemption()`: Disallow rigid redemption of 0 value
### Description
Currently, `rigidRedemption` of 0 eUSD amount is allowed and won't revert. Consider adding zero value check for `eusdAmount` in `rigidRedemption` | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | reentrancy | true | true | ## Severity
Medium Risk
## Description
The `PositionManager.onERC721Received()` function intends to accept liquidity positions sent only by the admin to the `PositionManager` contract. It performs some validations regarding the liquidity position type that is being transferred and records the pair so other liquidity... | Shieldify | 3.5 | Surge |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Anybody Can Remove Tokens Accidentally Sent to the Contract
### Description
The [`adminRefundEth`](https://github.com/uncx-private-repos/liquidity-locker-univ3-contracts/blob/342c621cc93a13882601b30e547907877f3e3f86/contracts/UNCX_ProofOfReservesV2_UniV3.sol#L543) and [`adminRefundERC20`](https://github.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 | medium | other | true | false | ## Medium: Unsafe EOA validation can be bypassed
### Description
An unsafe validation that the caller is an EOA is used, resulting in an attacker being able to withdraw funds which are intended to be safely recoverable.
### Recommendation
In general, there is no clear safe way to validate that a caller is an EOA. How... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | token | true | false | ## Low: Yearn: Redundant approve call
### Description
The approval for token transfer is done in the following way:
**code/pooltogether-yearnv2-yield-source/contracts/yield-source/YearnV2YieldSource.sol:L167-L170**
```
if(token.allowance(address(this), address(v)) < token.balanceOf(address(this))) {
token.safeAp... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Oracle data feed is insufficiently validated.
### Description
_Submitted by Jujic, also found by hickuphh3_
Price can be stale and can lead to wrong `answer` return value.
### Proof of Concept
Oracle data feed is insufficiently validated. There is no check for stale price and round completeness. Price ca... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Race Condition Exists Between Admin Operations and Deposits
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `07c72c733cc5273b5a053d7907ff10505b73cad8`.
**File(s) affected:**`OperaBridge.sol`
**Description:** A race condition exists between admin operations and deposits. Even if most... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | Business Logic | false | false | ## Vulnerability Report
## Severity
**Medium Risk**
## Context
- [MorphoGovernance.sol#L407](https://github.com/aave-v2/MorphoGovernance.sol#L407)
- [MorphoUtils.sol#L285](https://github.com/aave-v2/MorphoUtils.sol#L285)
## Description
The Morpho Aave deployment can set the asset to not be used as collateral for Aav... | 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 | medium | other | true | true | ## Medium: Missing Boost State Update in extend() and withdraw()
### Description
The `_updateBoostState()` function is missing at the end of `extend()` and `withdraw()` in `veRAACToken.sol`. Since these functions significantly affect `totalSupply()` and user voting power, failing to update the boost state leads to out... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Strategy's outstanding debt is not accounted in `adjustPosition()`
### Description
Argument `_debtOutstanding` is unused in method `adjustPosition()` at https://github.com/tonkers-kuma/strategy-ssb/blob/e49d07a64ea0eb4f5a199c2bf9ea4c8aee2b313f/contracts/Strategy.sol#L189. As a result, strategy joins pool 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 | high | other | true | false | ## High: anyone can call function `sponsor`
### Description
_Submitted by [paulius.eth](https://twitter.com/SolidityDev), also found by [0xRajeev](https://twitter.com/0xRajeev), [cmichel](https://twitter.com/cmichelio), and [shw](https://github.com/x9453)_
This function `sponsor` should only be called by the factory,... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Topics wont activate even with a sufficient stake
### Description
Topics wont activate even with a sufficient stake
### Impact
Topic does not get activated immediately on stake deposit due to EMA not clearing the threshold. Since the `EndBlocker` funciton due to turn on topics automatically, the topic will... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Rewards might get stuck when approved actor renews a position
### Description
When an approved actor calls the harvest function, the rewards get sent to the user (staker). However, when the approved actor renews the user’s position, they receive the rewards instead.
If the approved actor is a smart contrac... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Shadowed `Prices` struct declaration should be resolved
### Description
Both `P.sol` and `BeanstalkPrice` declare a `Prices` struct of similar form. The version currently residing in `P.sol` should be modified as follows in favor of that in `BeanstalkPrice` which can then be subsequently be removed: | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | reentrancy | true | false | ## Medium: Same block deposit check blocks `StabilityPool` withdrawals during liquidation
### Description
When the `StabilityPool` liquidates user positions, it may lack enough `crvUSDToken` to cover the liquidation. In such cases, it withdraws the shortfall from the `LendingPool`, which burns the corresponding `rToke... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Clone-and-Own
### Description
**Update**
The team added the source repository and the commit(s) to the code documentation.
**File(s) affected:**`diamond/*.sol`
**Description:** DerivaDEX inherits from a Diamond Standard implementation of EIP-2535. However, it is unclear which repository and which commit hash... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [09] Partial refinance offer could be used in `refinanceFull()`
### Description
The function `refinanceFull()` does not verify the `_renegotiationOffer.trancheIndex` to ensure it includes all the indexes of the current loan.
```solidity
function refinanceFull(
RenegotiationOffer calldata _renegotiationOff... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 NatSpec `@title` from contract declaration
### Description
Some contract definitions have an incomplete NatSpec: add a `@title` notation to describe the contract to improve the code documentation.
*There are 2 instances of this issue.*
--- | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | reentrancy | false | false | ## Low: Missing `msg.value` check in some functions
### Description
Some functions in the `MassSmartAccount.sol` contract are missing the check that `msg.value == value`. This check is required in functions where users can send eth when calling the function and makes sure that the user doesn't end up sending extra eth... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Consider using OpenZeppelin’s SafeCast library to prevent unexpected overflows when casting from uint256
### Description
Using the SafeCast library can help prevent unexpected errors in your Solidity code and make your contracts more secure
[DNSSECImpl.sol#L160](https://github.com/code-423n4/2023-04-ens/blob... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 variables should be deleted
### Description
In this case bytes "data" is implemented in the function, but it isn't used.
If not used, the variable shouldn't be used in the first place.
Other instance: | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: Missing Instruction to Update `max_price_feed_age`
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `0ea7108d9c227dc2f0fbf1079646c87bff18e8bc`. The client provided the following explanation:
> An additional field was added to UpdateSaleParams for the update_sale instruction, max_price... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | liquidation | true | false | ## High: Fund Withdrawal Flaw in preMarket Allows Users to Avoid Settlement Obligations
### Description
The goal of the protocol is to facilitate pre-market trading by allowing sellers to list points at their desired prices and enabling buyers to purchase these assets before their official launch. After the Token Gene... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | high | Reentrancy | false | true | Source: https://github.com/sherlock-audit/2023-10-real-wagmi-judging/issues/76
## Found by
0x52
Due to the lack of nonReentrant modifier on takeOverDebt() a liquidatable position can be both liquidated and transferred simultaneously. This results in LPs being repaid from the vault while the position and loans conti... | Sherlock | 5 | Real Wagmi #2 |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | storage | false | false | ## Low: Missing docstrings
### Description
Throughout the codebase, there are several files that do not have docstrings. For instance:
* The [`ConfigurationManager`](https://github.com/pods-finance/yield-contracts/blob/9389ab46e9ecdd1ea1fd7228c9d9c6821c00f057/contracts/configuration/ConfigurationManager.sol) contrac... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.