prompt listlengths 2 2 | source stringclasses 3
values | severity stringclasses 5
values | category stringclasses 186
values | has_code bool 2
classes | has_poc bool 2
classes | reference_response stringlengths 23 5k | firm stringclasses 26
values | quality_score float64 0 5 | protocol stringclasses 398
values |
|---|---|---|---|---|---|---|---|---|---|
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Inconsistency in IDL Name
### Description
## Discrepancy in Anchor Framework
There is a discrepancy in the Anchor framework that stems from an inconsistency in how IDL names are generated during testing.
Specifically, when a program name contains a number, such as **test1**, the expected IDL name should dir... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | flash-loan | true | false | ## Low: `CollateralMigrator` reverts when pre-existing funds are used for flash loan fees
### Description
**Description:** The flow for migrating collateral between two markets is as follows:
1. The end user calls `CollateralMigrator::migrateCollateral` with the required swap parameters.
2. `CollateralMigrator` takes... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Solver can bypass maker signature verification
### Description
In the `LiquoriceSettlement.settleSingle()` function, the `Signing.validateSignature()` function attempts to recover the signature. If it fails, it checks that the **isMaker** value is set to false. However, by default, in `Signing.validateOrder()... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | overflow | true | false | ## High: SushiToken transfers are broken due to wrong delegates accounting on transfers
### Description
_Submitted by cmichel_.
When minting / transferring / burning tokens, the `SushiToken._beforeTokenTransfer` function is called and supposed to correctly shift the voting power due to the increase/decrease in 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 | medium | other | true | false | ## Medium: archive-server can be killed by connected shardus-instance
### Description
## archive-server can be killed by connected shardus-instance
Report type: Websites and Applications
Target: https://github.com/shardeum/archive-server/tree/dev
Impacts:
* Taking down the application/website
### 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... | cyfrin_structured | low | other | true | false | ## Low: Stale request id mapping persists for losing spins
### Description
One change from the previous version of `SpinGame` is the removal of the "LuckyNFT," which served as a consolation prize for users who did not win a "proper" prize.
As part of this change, the clearing of the request mapping (`requestIdToUser`... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `0 address` check
### Description
0 address control should be done in these parts;
**Context:**
[GiantLP.sol#L20-L21](https://github.com/code-423n4/2022-11-stakehouse/blob/main/contracts/liquid-staking/GiantLP.sol#L20-L21)
[LiquidStakingManager.sol#L170-L177](https://github.com/code-423n4/2022-11-stakehouse/b... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Equation can be simplified
### Description
The calculation of the token collection can be simplified.
https://github.com/FantiumAG/smart-contracts/blob/a2d126453c1105028f12277b8f342d2cdbf01a77/contracts/utils/TokenVersionUtil.sol#L21-L22
### Recommendation
We recommend changing the calculation to `uint256 col... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 `_msgSender()` call in `_resolveVaultId` when `caller` parameter is available
### Description
**Description:** In `RWASegWrap::_resolveVaultId()`, the function receives a `caller` parameter representing the address for which a vault ID should be resolved, but when calling `_addVault()`, it uses `_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 | front-running | true | false | ## High: Strategy allocation tracking errors affect TVL calculations
### Description
The Elytra protocol tracks strategy allocations using a static variable `assetsAllocatedToStrategies[asset]`, which is manually updated during asset allocation and deallocation. However, this tracking mechanism fails to account 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... | solodit_api | medium | token | true | true | ## Lines of code
https://github.com/code-423n4/2022-12-tigris/blob/588c84b7bb354d20cbca6034544c4faa46e6a80e/contracts/BondNFT.sol#L206-L228
https://github.com/code-423n4/2022-12-tigris/blob/588c84b7bb354d20cbca6034544c4faa46e6a80e/contracts/BondNFT.sol#L48-L86
## Vulnerability details
## Impact
Function `BondNFT.cr... | Code4rena | 5 | Tigris Trade |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: User can lock and stake arbitrary amount of tokens without paying
### Description
**Severity:** Critical
**Path:** superfluid_lp/src/contract.rs
**Description:**
In the `superfluid_lp/src/contract.rs` contract the user has the ability to lock and stake native tokens. While staking the user has the followin... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Using storage variables instead of memory ones
### Description
**Severity**: Low
**Status**: Acknowledged
**Description**
Using storage variable for multiple reading access (ex: in `closePosition` function) costs lots of gas. Consider using memory variables when multiple readings occur. Do not forget that 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: Scantastic server API does not strictly validate users’ data
### Description
The data coming from the user is not validated on the Scantastic level. The resulting error sources rely on the back-end components (such as DynamoDB). This behavior can lead to unpredictable server-side problems, especially if the sp... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: EMPTY SUBDOMAIN ALLOWED
### Description
The `registerPluginRepo` function on the `PluginRepoRegistry` contract does allow specifying an empty string as a subdomain, which will result in the `c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470` hash node. This is allowed due to the registering func... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | token | false | false | ## Low: Inadequate Handling of Fee on Transfer Tokens
### Description
**Severity** : Low
**Status** : Acknowledged
**Description** :
The smart contract's mechanisms for handling token transfers, particularly in functions like `directPoolDeposit`, `buyZKUSD`, `sellZKUSD`, `swap`, `increasePosition`, `decreasePositio... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: <a name="GAS-4"></a>[GAS-4] Using bools for storage incurs overhead | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Long and complex functions
### Description
Some functions are too long and complex. For example, the [`createLiquidations`](https://github.com/UMAprotocol/protocol/blob/1631ef7ad29aaeba756ef3b9a01c667e1343df85/packages/core/contracts/financial-templates/perpetual-multiparty/PerpetualLiquidatable.sol#L220) 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 | medium | initialization | false | false | ## Medium: Missing Implementation of isPausable State Variable Leads to Inability to Prevent New Trades
### Description
**Severity** : Medium
**Status**: Resolved
**Description** :
In NarwhalTradingCallback contract a state variable boolean
isPaused that is intended to prevent new trades from being opened. 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 | high | initialization | true | false | ## High: Missing TokenAccount Checks
### Description
## Vulnerability in Withdraw Instruction
In the withdraw instruction, the program does not enforce `beneficiary_ata` to be an associated token account. The Solana token program allows any user to create a `TokenAccount` with an arbitrary owner and mint. This could ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | liquidation | true | false | ## High: Users Unable To Claim Surplus
### Description
## Record Repayment Capped in the Bottle Module
The `record_repay_capped` function in the bottle module calculates the collateral amount to return for a given debt amount.
## Code Snippet
## Explanation
When the debt amount (`repay_amount`) is greater than or... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | token | false | false | ## Low: Potential out-of-bounds memory read
### Description
In the `_extractApprovalSpender()` function, the length of `data` is not checked to ensure that the memory at offset `data + ERC20_SPENDER_OFFSET` is valid. As a result, `mload()` may access an out-of-bounds memory and return random data. Additionally, due to... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | access-control | true | false | ## High: Incomplete payload validation in whitelist register
### Description
The `_validateWhitelist` and `_validateFreeWhitelist` functions in the **RegistrarController** contract calculate the payload for signature validation without including all fields of the `RegisterRequest` struct. For example, fields such as `... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | dos | false | false | ## Low: OPEN TODOs
### Description
Open TO-DOs can point to architecture or programming issues that still need to be resolved. Often these kinds of comments indicate areas of complexity or confusion for developers. This provides value and insight to an attacker who aims to cause damage to the protocol.
Code Location
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: No lender is able to exit even after the market is closed
### Description
When a borrower creates a market hooked by a [fixed-term hook](https://github.com/code-423n4/2024-08-wildcat/blob/main/src/access/FixedTermLoanHooks.sol), all lenders are prohibited from withdrawing their assets from the market 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 | other | true | false | ## Low: Prevent Zero Unstaking
### Description
## Unstaking AFSUI for SUI
When a user requests to unstake in order to exchange AFSUI for SUI, a `PendingUnstakeRecord` is stored in `StakedSuiVaultStateV1::pending_unstake_records`. During `epoch_was_changed`, `process_pending_unstake_requests` calculates the SUI amount... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Potential Misuse of ERC1155BalanceGteEnforcer and ERC721BalanceGteEnforcer. Acknowledged
### Description
Two similar enforcers, `ERC1155BalanceGteEnforcer` and `ERC721BalanceGteEnforcer`, are designed to ensure that the balance increases after the transaction for no less than a specific amount.
**src/enforc... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing usage of safe wrappers to handle ERC20 operations
### Description
- https://github.com/code-423n4/2023-09-asymmetry/blob/main/contracts/strategies/votium/VotiumStrategyCore.sol#L216
- https://github.com/code-423n4/2023-09-asymmetry/blob/main/contracts/strategies/votium/VotiumStrategyCore.sol#L282
- htt... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Signatures used in `PublicStockOnRamp` and `PublicStockOffRamp` lack investor-specified deadline and nonce parameters so can be used multiple times by operators
### Description
**Description:** Both `PublicStockOnRamp` and `PublicStockOffRamp` contracts use EIP-712 signatures to authorize investor transactions... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Set Upper/Lower Bounds While Assigning maxLeverage And minLeverage
### Description
**Severity** - Low
**Status** - Acknowledged
**Description**
The owner can call the function setMaxandMinLeverage inside VaultkaVaultV2 at L394 to assign or update the values of max and minLeverage. Assigning the MAX_LEVERAG... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | false | false | ## Medium: XSS possible via unfiltered `src` in `img.initia.xyz` proxy endpoint
### Description
An XSS vulnerability exists due to the use of unvalidated and unfiltered URLs passed into an image proxy service (`img.initia.xyz`). This affects the image rendering logic within the `Image.tsx` component, which directly bi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: A single compromised account can lock up the protocol
### Description
The ability to `pauseVault()` and `unpauseVault()` the protocol is unilaterally controlled by a single `admin` account, which if compromised could be exploited to attempt to lock up the protocol and extort users.
It is advised that these 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 | high | other | false | false | ## High: External Call Reverts if Period Has Not Elapsed
### Description
The function `notifyRewardAmount()` will revert if `block.timestamp >= periodFinish`. However, this function is called indirectly via the `Synthetix.mint()` function. A revert here would cause the external call to fail and thereby halt the mint 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... | solodit_api | high | Business Logic | false | false | ## Severity: High Risk
**Context:** RootManager.sol#L1
**Description:** Fraudulent Roots cannot be removed once fraud is detected by the Watcher. This means that Fraud Roots will be propagated to each chain.
**Recommendation:** Create a new method (callable only by Owner) which can be called when the contract is in ... | Spearbit | 5 | Connext |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [Across] Error-Prone Initialization of Blast_Adapter.sol
### Description
The constructor of the [`Blast_Adapter`](https://github.com/across-protocol/contracts/blob/95c4f923932d597d3e63449718bba5c674b084eb/contracts/chain-adapters/Blast_Adapter.sol) contract initializes the inherited `CircleCCTPAdapter` 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 | initialization | false | false | ## Low: Missing Initializers
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `b6c7ac95cdb50db0bcac7cbd85e68458ce90d7de`.
**File(s) affected:**`BorrowerOperations.sol`, `StabilityPool.sol`, `TroveManager.sol`
**Description:** The affected contracts inherit from `ReentrancyGuardUpgradeable`. ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | front-running | false | false | ## Medium: Attacker can make stakeRate to be 1 in the StRSR contract and users depositing tokens can lose funds because of the big rounding error
### Description
Code calculates amount of stake token and rsr token based on `stakeRate` and if `stakeRate` was near `1e18` then division error is small but attacker can 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 | gas | other | true | false | ## Gas: Use assembly to check for `address(0)`
### Description
Saves 6 gas per instance
**Client:**
Fixed.
**Cyfrin:** Verified in commit [b21d23e](https://github.com/HyperGood/woosh-contracts/commit/b21d23e661b0f25f0e757dc00ee90e4464730b1b). | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `emergencyWithdrawFromStaking()` does not update `lastWithdrawalTimestamp`
### Description
_Acknowledged_
The `emergencyWithdrawFromStaking()` function performs the same withdrawal action as `withdrawFromStaking()` but fails to update the `lastWithdrawalTimestamp` state variable. This inconsistency means that... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | initialization | false | false | ## Medium: Discrepancy between comment and code
### Description
`CentrallyIssedToken` has a constructor parameter named `_owner`, which is used as the `upgradeMaster`. The comment in [line 29](https://github.com/Storj/storj-contracts/blob/2bdeb27c0216d2f0889b6e7363d8a84b54cd7f39/contracts/CentrallyIssuedToken.sol#L29)... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: Order owner isn't zeroed after burning
### Description
The order's owner is not zeroed out when the NFT is burnt. As a result, while the `onBurn()` method records the NFT to have been transferred to the zero address, `ownerOf()` still returns the current order's owner. This allows for unexpected behaviour, ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | integer-overflow | true | true | ## Low: Updating `vestingPeriod` can retroactively reclassify vested rewards as unvested
### Description
`sUSBD` tracks an active vesting “epoch” using `vestingAmount` and `lastRewardTimestamp`, while `sUSBD::getUnvestedAmount` computes remaining unvested rewards using the current `vestingPeriod`. If `vestingPeriod` i... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | false | false | ## Gas: Number of solc runs can be increased
### Description
The current number of solc runs utilized for contract compilation is **200**. This number (maximum value of `2**32-1`) can be increased significantly to reduce runtime gas costs. However, the tradeoff is a larger bytecode size, which leads to increased deplo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | input-validation | false | false | ## Low: DAOs can be created with non-zero `TierConfig::minted`
### Description
When creating a new DAO membership, there is no validation on the `minted` member of the parallel `TierConfig` structs, meaning that DAOs can be created with non-zero minted tokens even when the supply for a given tier index is actually zer... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | Bypass limit | false | true |
<https://github.com/prepo-io/prepo-monorepo/blob/3541bc704ab185a969f300e96e2f744a572a3640/apps/smart-contracts/core/contracts/WithdrawHook.sol#L61>
<https://github.com/prepo-io/prepo-monorepo/blob/3541bc704ab185a969f300e96e2f744a572a3640/apps/smart-contracts/core/contracts/WithdrawHook.sol#L68>
### Description
In C... | Code4rena | 5 | prePO |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Code Refactoring
### Description
## Code Review Suggestions
1. Prevent the creation of expired orders and zero balance orders in `place_limit_order`.
2. Add the same validation present in `place_limit_order` to `create_indexer_and_place_limit_order`.
3. In `update_min_trade_amount`, skip emitting an event if ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `WhitelistPeriodManager`: Improper state handling of exclusion additions
### Description
_Submitted by hickuphh3_
[WhitelistPeriodManager.sol#L178-L184](https://github.com/code-423n4/2022-03-biconomy/blob/main/contracts/hyphen/WhitelistPeriodManager.sol#L178-L184)
[WhitelistPeriodManager.sol#L83-L99](https... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | token | true | false | ## Gas: Do not assign `offset` in the last call of `UnsafeBytes.readUint256` in `L1ERC20Bridge.sol`
### Description
A simple test in Remix IDE has been created, to compare gas usage of assigning more than one value from function call:
`getOne()` costs 74 gas, while `getAll()` costs 82 gas. This implies, that we shou... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `amplification_` vs `amplification` in the pool constructor
### Description
**Severity**
**Impact:** Medium
**Likelihood:** High
**Description**
The mistake made during the input validation:
[link](https://github.com/lucidlyfi/lucidly-core-v1/blob/f00c45bbadc836b9eaa94717a0b3aa017e792588/src/Pool.sol#L1... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | access-control | true | false | ## Medium: streamedvesting denies bonus when the lock is for 4 years and bonuspool has not enough to cover it
### Description
From what we can deduce from the StreamedVesting usage, a user will call `createVest` or `createVestFor` to burn their VestedZeroLend tokens and create a vest "record". At this point, the user ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Dutch auction can be manipulated
### Description
_Submitted by gzeon_
When malt is under-peg and the swing trader module do not have enough capital to buy back to peg, a Dutch auction is triggered to sell arb token. The price of the Dutch auction decrease linearly toward endprice until \_endAuction() is 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 | medium | oracle | false | false | ## Medium: Arbitrary Price Feed Utilization
### Description
## Vulnerability Overview
The vulnerability involves utilizing arbitrary or potentially stale price feeds. If a price feed account is not kept up-to-date, it may provide outdated or incorrect prices. This will result in incorrect valuations and decision-maki... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Inconsistent Comments
### Description
Some of the contracts in the code have incorrect developer comments annotated for them. This could create confusion for future readers of this code that may be trying to maintain, audit, update, fork, integrate it, and so on.
### Recommendation
Remediated as per the clien... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | medium | other | false | false | Source: https://github.com/sherlock-audit/2023-01-uxd-judging/issues/251
## Found by
0x52
## Summary
PerpDepository has no way to calculate or withdraw any profits made by the vault. By [design](https://github.com/sherlock-audit/2023-01-uxd/blob/main/contracts/integrations/rage-trade/RageDnDepository.sol#L99-L115)... | Sherlock | 5 | 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 | low | reentrancy | true | false | ## Low: Incorrect Event Parameter Naming
### Description
In the `RewardReceiver` contract, the `StakeCore` and `WithdrawCore` events are emitted with parameters named `to`, `candidate`, and `msg.value` (or `amount`):
```
function stakeCore(bytes32 _txHash, address candidate, address to) payable external nonReentrant ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Attacker can cancel claimed staking incentives on Arbitrum
### Description
The [`ArbitrumDepositProcessorL1`](https://github.com/code-423n4/2024-05-olas/blob/main/tokenomics/contracts/staking/ArbitrumDepositProcessorL1.sol) contract is responsible for bridging OLAS tokens and messages from L1 to the `Arbitr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Malicious borrowers can use forceRepay to grief lenders
### Description
A malicious borrower can grief a lender by calling the `forceRepay` function instead of the `repay` function; doing so would allow the borrower to pay less in gas fees and require the lender to perform a separate transaction to retrieve... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Check with withdrawals in _borrow() is incorrect
### Description
The check with withdrawals in function `_borrow()` doesn't seem correct because the balance is decreased with `safeTransferETH`, while withdrawals are increased, leading to a double count. This example illustrates the issue:
- Assume claims 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 | liquidation | false | false | ## Medium: Unexpected fee deduction on self-liquidations
### Description
The `selfLiquidate` function is designed to allow lenders to liquidate their positions without external liquidator involvement, improving protocol health by ensuring timely collateral recovery without profitability for the liquidator. According t... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | cross-chain | false | false | ## Low: Storage constants should be used.
### Description
**Description**
Disqualifier.sol: function_process UserWithBounty(), line 184; bountyForUser(), line 277, value "10000".
Eligibility DataProvider.sol: required UsdValue(), line 159, value "1e4".
MiddleFee Distribution.sol: mint(), line 171; forward Reward(),... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Missing Validations
### Description
## Audit Findings
## Findings
1. **Faulty Validation in Configuration**
- The functions `config::add_operator` and `config::set_tier` are missing a version validation check, resulting in possible version mismatch errors. The functions should call `checked_package_version... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Downcasting to uint96 can cause assets to be lost for some tokens
### Description
Downcasting to uint96 can cause assets to be lost for some tokens
### Impact
The auctioner will suffer extreme loss in situations where the auctions bring in >uint96 amount of tokens
### Recommendation
Use a higher type or war... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: CACHING LENGTH IN FOR LOOPS
### Description
In a for loop, the length of an array can be put in a temporary variable to save some gas. This has been done already in several other locations in the code.
In the above case, the solidity compiler will always read the length of the array during each iteration. Tha... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: _endingDelegations list is redundant ✓ Addressed
### Description
`_endingDelegations` is a list of delegations that is created for optimisation purposes.
But the only place it’s used is in `getPurchasedAmount` function, so only a subset of all delegations is going to be updated.
**code/contracts/delegatio... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 checks for address(0) in setter methods
### Description
**Severity**: Low
**Status**: Acknowledged
**Description**
In contract Voting.sol, the following methods are missing zero-address checks.
function initialize(address[] memory _tokens, address _minter) external;
This method does not check if _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 | initialization | true | false | ## Low: Events is missing indexed fields
### Description
Index event fields make the field more quickly accessible to off-chain.
Each event should use three indexed fields if there are three or more fields.
Instances in:
**[Trust (judge) commented](https://github.com/code-423n4/2023-01-ondo-findings/issues/275#issu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: types are not sorted correctly
### Description
When an EIP-712 type references other struct types, the set of all referenced structs should be sorted alphabetically by name and then appended to the main type. This is outlined in the EIP-712 spec:
>If the struct type references other struct types (and these in... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | true | false | ## Low: Unreachable code can be removed
### Description
**Description:** Within [`RiskOracle::_processUpdate`](https://github.com/ChaosLabsInc/risk-oracle/blob/9449219174e3ee7da9a13a5db7fb566836fb4986/src/RiskOracle.sol#L155), the `else` branch of the ternary operator is unreachable due to `updateCounter` being initia... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `keccak256()` should only need to be called on a specific string literal once
### Description
It should be saved to an immutable variable, and the variable used instead. If the hash is being used as a part of a function selector, the cast to `bytes4` should also only be done once
*There is 1 instance of this ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | false | false | ## Medium: Wrong rounding direction in _maxdeposit
### Description
The `_maxDeposit` should over-estimate the returned `totalSuppliable` assets, as otherwise, when over-estimating, a deposit using this `_maxDeposit` value might revert. This means `totalSuppliable` should round down, which means the `supplyCap.zeroFloo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | front-running | true | false | ## Low: `_distributeToGauges` is venerable to outOfGas
### Description
The `_distributeToGauges` function is vulnerable to two issues:
1. It may run `Out of Gas` if processing too many gauges.
2. A single gauge revert can `disrupt the reward distribution` for all other gauges.
### Impact
The `_distributeToGauges` fu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | oracle | false | false | ## Low: Approve to `StrategyManager` during an initialization
### Description
There is no need to inflate the bytecode for `NodeDelegator` by introducing a special function for an approval grants. Instead, approve to the `eigenlayerStrategyManagerAddress` during an initialization.
### Example of an occurrence
Coul... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | overflow | false | false | ## Gas: `unckecked` keyword
### Description
It's possible to save gas using the `unckecked` keyword. This will avoid the required checks to ensure that the variable won't overflow.
Reference:
*
The balance was checked before, it can be subtracted without checking overflows:
* [WETH.sol#L30](https://github.com/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 | reentrancy | true | false | ## High: all NFTs can be stolen by calling VestedZeroNFT::split()
### Description
Report type: Smart Contract
Target: https://github.com/zerolend/governance
Impacts:
- Direct theft of any user NFTs, whether at-rest or in-motion, other than unclaimed royalties
- Direct theft of any user funds, whether at-rest or 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 | initialization | false | false | ## High: Incorrect dataPricer model update in ProgramKeepalive, causing lower cost and demand
### Description
When the `ProgramKeepalive` function calls the `dataPricer.UpdateModel` function, it passes in the number of program bytes in kilobytes instead of in bytes (Figures 24.1–24.2). As a result, the computed demand... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unused freeze authority revocation creates token lock risk
### Description
The codebase includes a `revoke_freeze_authority` function in `locker.rs` that is not being called during pool creation, despite being necessary to prevent tokens from being frozen after migration.
If the freeze authority is not revok... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Understatement of `poolTotalPeUSDCirculation` amounts due to incorrect accounting after function `_repay` is called
### Description
Incorrect accounting of `poolTotalPeUSDCirculation`, results in an understatement of `poolTotalPeUSDCirculation` amounts. This causes inaccurate bookkeeping and in turn affects... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Deadline check is not effective, allowing outdated slippage and allow pending transaction to be unexpected executed
### Description
Deadline check is not effective, allowing outdated slippage and allow pending transaction to be unexpected executed
### Impact
AMMs provide their users with an option to limit t... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | token | true | false | ## Low: Admin Can Make a `Position NFT` Unmineable by `Blacklisting` Position Collateral Token
### Description
When an NFT is minted, the function `NftHandler.mintNFT()` checks if the position short collateral token is in `Comptroller.allowedTokens()`:
```solidity
/// @inheritdoc INFTHandler
function mintNFT(
addre... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The Original Owner During Mint Depositing Is Incorrectly Overridden
### Description
The `Credifi1155` contract facilitates the creation of credit tokens, keeping track of each token's metadata, like amount, creation date, etc. There is also a field `originalOwner` meant to keep track of the very first holder o... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | false | false | ## Low: Tokenmint() Produces Conflicts Across Bridges
### Description
The Polygon child token contract (also called `Dimo.sol`) has both a `deposit()` function for the Polygon bridge and a `mint()` function. As the main token is on the Ethereum blockchain, the purpose of this child token is to serve as a bridged repre... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | false | false | ## Medium: `ConvexMasterChef`: `safeRewardTransfer` can cause loss of funds
### Description
_Submitted by cccz_
Same as
All calculations are rounded down, since a lack of tokens in the contracts cannot be rounding errors' fault. So the function is redundant.
On the other hand, if the contract is undersupplied 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 | medium | other | false | false | ## Medium: User could deposit more ETH than allowed
### Description
zkSync has implemented a limit on the amount of ETH that can be deposited to L2 per account. However, the code currently has a design flaw that allows users to bypass this limit by exploiting a gas refund scheme. Specifically, in the `requestL2Transac... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Cooldown Withdrawals Do Not Support ERC4626 Allowance-Based Owner Flow
### Description
**Description:** `ERC-4626` specifies that withdraw and redeem [MUST support](https://eips.ethereum.org/EIPS/eip-4626) a flow where shares are burned from an owner address when `msg.sender` has sufficient ERC-20 allowance ov... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `Vault::takeFees` can be front run to minimize `accruedPerformanceFee`
### Description
`performanceFee` is a fee on the profits of the vault. The `feeRecipient` (or any user) can collect these at any point.
They rely on the difference between the current share value and the `highWaterMark` that records a 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 | low | other | false | false | ## Low: Keepers Will be Underpaid in a Post-Merge Ethereum Environment
### Description
The keeper tip amount will not prove accurate in a post-merge Ethereum environment as block times will drastically change. As a result, keepers will actually be underpaid due to the lowered per-block increase that is provided to kee... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: SafeApprove is not used in AutoCompounder
### Description
`safeApprove` is not used in AutoCompounder. Tokens that do not follow standard ERC20 will be locked in the contract.
### Recommendation
Use `safeApprove` and clear the allowance before calling token contracts.
```solidity
IERC20(token).safeApprove(ad... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | liquidation | false | false | ## Gas: using x=x+y /x=x-y is more gas efficient than x+=y / x-=y
### Description
using x=x+y /x=x-y is more gas efficient than x+=y / x-=y
```
totalCollateralValueInUsd += getUsdValue(token, amount);
``` | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Synchronization Issue Between L1 and L2 Upgrades
### Description
1. **Protocol Version Discrepancy**: In cases where an L2 upgrade fails but is processed on L1 without concern for its execution result, the protocol version is advanced while the actual system remains unaltered on L2. This results in a discre... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Inconsistent session validation across actions
### Description
The current implementation of session validation in the `EngineV0::do_execute` method is inconsistent across different action types. Specifically, the Withdraw action uses a `get_valid_session` method that checks for session expiration, while other... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | dos | false | false | ## Medium: The proposal expiration logic is incorrect
### Description
The `is_proposal_expired` function uses incorrect comparison logic that causes proposals to be marked as expired when they should still be active, and vice versa. This is as a result of the reversed comparison operator in the expiration check.
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 | initialization | true | false | ## Low: ExecutionPayload implements MarshalJSON on pointer receiver
### Description
The `ExecutionPayload` struct implements `MarshalJSON` on a pointer receiver instead of on a value receiver. Due to how the JSON library handles these definitions, using `json.Marshal` on a value receiver will result in attempting to u... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | cross-chain | false | false | ## Medium: Lost Bridged Funds When Pausing ACTION_WITHDRAW
### Description
Pausing `ACTION_WITHDRAW` in the Omni bridges can lead to bridged funds becoming permanently lost. When a user calls `bridge()` to bridge OMNI tokens, an XMsg is sent to the destination chain to call the destination chain bridge’s `withdraw()` ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Multiple cooldowns are not managed for the same user
### Description
When `unstake()` a given user updates their `cooldownStartTimestamp`.
It means different unstakes by the user will not go in parallel - only the last unstake will accumulate all previous pending unstakes and can be withdrawn on `last unstak... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Magic Numbers Are Used
### Description
In the `BalancerMetaPoolStrategy` contract, the value of `1e50` is used for [setting approvals](https://github.com/OriginProtocol/origin-dollar/blob/eb11498c376b65696c90981757221b076d6226aa/contracts/contracts/strategies/balancer/BalancerMetaPoolStrategy.sol#L439C12-L442C... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The `feeProtocol` Calculation in the `VolatilityOracle::_getPoolMetadata()` Is Flawed
### Description
The `feeProtocol` calculation in the `VolatilityOracle::_getPoolMetadata()` is erroneous:
```solidity
unchecked {
if (feeProtocol % 16 != 0) metadata.gamma0 -= uint24(fee / (feeProtocol % 16));
if (feePr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing checks of array lengths in LP allowance update functions
### Description
The `increaseLPAllowance` and `decreaseLPAllowance` functions both accept array arguments, `indexes_` and `amounts_`.
```solidity
function increaseLPAllowance (
address spender_,
uint256[] calldata indexes_,
uint256[] calld... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [G‑14] Division by two should use bit shifting
### Description
` / 2` is the same as ` >> 1`. While the compiler uses the `SHR` opcode to accomplish both, the version that uses division incurs an overhead of [**20 gas**](https://gist.github.com/IllIllI000/ec0e4e6c4f52a6bca158f137a3afd4ff) due to `JUMP`s to 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: Randomness can be manipulated by miners Won't Fix
### Description
Random number generator uses future `blockhash` as a seed. So it’s possible for miners to manipulate that value in order to get a better gold card. The issue is minor because it only makes sense if the cost of the card is high enough to do 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 | gas | other | true | false | ## Gas: Cache storage variables when same values read multiple times
### Description
**Description:** Cache storage variables when same values read multiple times:
File: `src/DropBox.sol`
**Mode:**
Fixed in commit [3cfec7f](https://github.com/Earnft/dropbox-smart-contracts/commit/3cfec7fe5d6c912725e8db5284399b7177d... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.