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 | signature | true | false | ## Low: msg.sender is not hashed in the permit
### Description
In PermitC's PermitHash.sol, its hashSingleUsePermit hashes the msg.sender together with the nonce and master nonce.
In PearlmitHash.sol, the individual permits do not have a nonce and master nonce, but the whole batch hash has a nonce and a master nonce... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `BondVault.sol`: Possibly unwithdrawable bondedLP funds in `claimForMember()` + `claimRate` never zeros after full withdrawals
### Description
_Submitted by hickuphh3, also found by 0xRajeev_
A host of problems arise from the L110-113 of the `claimForMember()` function, where `_claimable` is deducted from ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | true | false | ## Gas: Use assembly to validate `msg.sender`
### Description
We can use assembly to efficiently validate msg.sender for the `didPay` and `uniswapV3SwapCallback` functions with the least amount of opcodes necessary. Additionally, we can use `xor()` instead of `iszero(eq())`, saving 3 gas. We can also potentially save ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | token | true | true | ## Medium: Incorrect allowance check permits an attacker to perform undesired transactions to an allowed account
### Description
The ERC20 standard has an allowance system that permits one user to transfer tokens on behalf of another user. Due to an incorrect allowance check, an attacker can transfer funds of another ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Hardcoded Exchange Rate Leading to Incorrect Deposits and Redemptions
### Description
The `StabilityPool::getExchangeRate()` function is hardcoded to return a fixed value of `1e18`, which assumes a static 1:1 exchange rate between `rToken and deToken`. This implementation does not account for real-time change... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Using `private` rather than `public` for constants, saves gas
### Description
If needed, the values can be read from the verified contract source code, or if there are multiple values there can be a single getter function that returns a tuple of the values of all currently-public constants. Saves **3406-3606 g... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Non-library/interface files should use fixed compiler versions, not floating ones
### Description
[xTRIBE.sol#L4](https://github.com/fei-protocol/xTRIBE/tree/989e47d176facbb0c38bc1e1ca58672f179159e1/src/xTRIBE.sol#L4) | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Bridges don't support all of the listed assets
### Description
/
### Impact
Rebalancing will be impossible for those markets.
### Recommendation
_No response_ | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: It might not be possible to withdraw tokens from the basket
### Description
_Submitted by Czar102, also found by csanuragjain_
#### Impact
When enough basket token owners exit, it will be impossible to exit pool with the last `MIN_AMOUNT` tokens because of [this](https://github.com/code-423n4/2021-12-amun/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 | medium | cross-chain | true | false | ## Medium: Allow message value to be more than the quote cost
### Description
**Description:** The `SecuritizeBridge` contract's `bridgeDSTokens()` function requires users to provide an exact value that matches the quote obtained from `quoteBridge()`. This strict matching requirement creates issues because the actual ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Use low level call method instead of transfer
### Description
The `transferEtherFromAdmin()` function from the deployed `Escrow` contract uses Solidity's `transfer` method to send native assets (e.g., Ether) from the smart contract. Although the use of `transfer` has been a standard practice for sending native... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | ## High: Vault leverage can be increased to any value up to min margin requirement due to incorrect `maxRedeem` calculations with closable and `LEVERAGE_BUFFER`
### Description
When redeeming from the vault, maximum amount allowed to be redeemed is limited by collateral required to keep the minimum vault position size... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing NatSpec docstrings
### Description
While the code is well commented and easy to follow, most of the public and external functions in the code base lack NatSpec documentation. This may hinder some reviewers’ understanding of the code’s intention, which is fundamental to correctly assess not only securit... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [11] Small stakes reward griefing due to rounding, and actions by anyone with nothing at stake
### Description
*Note: At the judge’s request [here](https://github.com/code-423n4/2024-02-uniswap-foundation-findings/issues/299#issuecomment-1997457762), this downgraded issue from the same warden has been included... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | overflow | false | false | ## High: When relisting a floor item listing, listingCount is not increased, causing listingCount can be underflowed.
### Description
https://github.com/sherlock-audit/2024-08-flayer/blob/main/flayer/src/contracts/Listings.sol#L625-L672
The `relist` function is used to refill the parameters of any token listings, incl... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `getPeriodReward()` always reverts when receiver is `address(0)`
### Description
Instead of reverting when the receiver address is address(0), the function can be modified to automatically redirect the rewards to the owner of the position. This ensures that rewards are not lost and avoids unnecessary reverts w... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | false | false | ## High: Users are allowed to create unencrypted iCloud backups
### Description
During user onboarding and wallet creation, users are given the option to back up a copy of their mnemonic private key to iCloud. Users are prompted to enter a six-digit pin for encryption (see TOB-UNIMOB-003) with the option to skip encry... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: | Fee-On-Transfer Tokens
### Description
**Description**
The `LPStaker` contract is not compatible with fee-on-transfer tokens for the `rewardToken` as it relies on the `uint` returned from the `uniswapV3Staker` `claimReward` function to increment the reward mapping.
Fee on transfer tokens will cause 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 | low | storage | false | false | ## Low: Inconsistent storage gaps
### Description
When using the proxy pattern for upgrades, it is common practice to include storage gaps on parent contracts to reserve space for potential future variables. The size is typically chosen so that all contracts have the same number of variables (usually 50). However, 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 | token | false | false | ## Medium: Use of standard transfer methods may lead to undetected failures
### Description
The functions `convert`, `addLiquidity`, `removeLiquidity`, and `removeBaseLiquidityOneToken` in the **Router** contract use `transfer` and `transferFrom` methods for token transfers. Unlike `safeTransfer` and `safeTransferFrom... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Constant expressions
### Description
Constant expressions are [re-calculated each time they are in use](https://github.com/ethereum/solidity/issues/9232), costing an extra `97` gas than a constant every time they are called.
### Proof of Concept
3 instances include:
##### src/constants/Permit.sol
### Reco... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `setReserves` and `setPrice` can be sandwiched
### Description
Calls to `setReserves` and `setPrice` creates opportunity for MEV, since users monitoring mempool can conduct transactions around calls to the functions either by frontrunning or backrunning to gain quick profit. The issue is further exarcebated in... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | initialization | true | false | ## Medium: Moving Average Length Validation Prevents Admin Override for Rules Requiring Historical Data
### Description
The `initialisePoolRuleIntermediateValues()` function in `UpdateRule` fails to properly handle rules like `MinimumVarianceUpdateRule` that require double the number of moving averages (current + prev... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 indexed parameters in events
### Description
Throughout the code, there are parameters in events that are not indexed. *Some examples* are:
* In the [`VaultStorage`](https://github.com/OriginProtocol/origin-dollar/blob/bf4ff28d5944ecc277e66294fd2c702fee5cd58b/contracts/contracts/vault/VaultStorage.so... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inadequate Handling of Fee-on-Transfer Tokens
### Description
**Severity**: Medium
**Status**: Resolved
**Description**:
The `AirdropFactory` contract does not account for tokens that charge a fee on transfer. When transferring such tokens, the actual amount received by the recipient is less than 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 | token | false | false | ## Low: No Association Between On-Chain Gas Costs and the User’s ERC-20-Payment
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation:
> We acknowledge that the price is fixed and have a customizable multiplier for developers to use to create an erc20 buffer.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [07] Using the Deprecated AppModuleBasic in Cosmos SDK
### Description
According to the documentation, **AppModuleBasic has been deprecated**.
[Cosmos SDK Upgrading Guide - Module Basics](https://github.com/cosmos/cosmos-sdk/blob/main/UPGRADING.md# module-basics)
The following code utilizes AppModuleBasic:
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Incorrect natspec comment for proveMessageReceived()
### Description
Correct first comment on Line 394 to "msgHash has been received" | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unlimited token transfer
### Description
Function `getSharesByMintedRsTAO()` has been used to calculate amount of shares that corresponds to the RsTAO amount and it's been used in multiple functions like `_transfer()` and `_mintRsTAO()`. The issue is that the function `getSharesByMintedRsTAO()` returns 0 when... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | initialization | true | false | ## Gas: Using `calldata` instead of `memory` for read-only arguments in `external` functions saves gas
### Description
When a function with a `memory` array is called externally, the `abi.decode()` step has to use a for-loop to copy each index of the `calldata` to the `memory` index. **Each iteration of this for-loop ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unchecking arithmetics operations that can't underflow/overflow (7 instances)
### Description
* Deployment. Gas Saved: **18 621**
* Minumal Method Call. Gas Saved: **227**
* Average Method Call. Gas Saved: **503**
* Maximum Method Call. Gas Saved: **829**
Solidity version 0.8+ comes with implicit overf... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: iOS - PERSISTENT KEYCHAIN DATA
### Description
The SSP-Key iOS app stores sensitive information in the iOS Keychain, which persists even after the app is uninstalled and reinstalled. Additionally, the application did not provide a logout functionality, which would allow users to clear sensitive data manually w... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | dos | false | false | ## Low: The length of a storage array is not cached before loops
### Description
In the `StakingContract.sol` cotntract, the `withdraw()` function loops trough all of the unstake request a user has made, and then withdraws the tokens from each request where the `unstakeTime` is less than the current `block.timestamp`.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Excessive Gas Usage in `PheasantNetworkBridgeChiled.getUserTradeListByIndex()`
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `199d0412e8605c5558a63518c274b05bfa6c5198`.
**File(s) affected:**`PheasantNetworkBridgeChild.sol`
**Description:** The `PheasantNetworkBridgeChiled.getUserT... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | medium | integer-overflow | true | true | ## Medium: Locks can be created with expiry in the past
### Description
Due to a silent overflow in [`SolidityV2ERC42069::lockToken`](https://github.com/SolidlyLabs/v2-core/blob/757b18ad05780d2af22018b0c2c9d59422dc59d3/contracts/SolidlyV2-memecore.sol#L387), a sufficiently large duration will cause the unlock date 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: Tests Panic and Fail
### Description
The proposed changes are not thoroughly covered by the test suite. In addition, there are multiple tests that fail, making it difficult to confirm the correctness of the implementation. The following components require additional testing:
* op-node
* op-batcher
* op-chain... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: Unused constant | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Additional code optimizations.
### Description
**Description**
The following optimizations were discovered during unit-testing and should be considered as suggestions:
MyShare.sol: function_checkTransfer(), line 784.
The "amount" parameter should be validated not to be 0.
MyShare.sol: function_burn(), line... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | oracle | true | false | ## Low: The validator count to exit in _requestExitsBasedOnRedeemDemandAfterRebalancings assumes that the to-be selected validators are still active and have not been penalised.
### Description
The `validatorCountToExit` is calculated as follows:
```solidity
uint256 validatorCountToExit = LibUint256.ceil(
redeemMan... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Users can avoid paying the gas fee for the token creation transaction
### Description
To create a new token, a user must send a `CreateToken` message to the Stream Pool contract with enough value to pay for the token creation fee. This fee is also used as a mitigation feature to disincentivize the creation of ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | cross-chain | false | false | ## Low: Excess fee is not refunded back to solvers using Hyperlane
### Description
Solvers are expected to pay fees with native tokens when they utilize the Hyperlane mailbox for instant proving of their fulfilled intents. However, any excess fee paid by them is lost to the protocol and not refunded back to them.
Sol... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | liquidation | true | true | ## High: Incorrect auction end validation in liquidatorNFTClaim()
### Description
The function `liquidatorNFTClaim()` includes a check to determine if a Seaport auction has ended:
```solidity
if (block.timestamp < params.endTime) {
// auction hasn't ended yet
revert InvalidCollateralState(InvalidCollateralStates.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: msg.sender has to be un-aliased in L2BlastBridge.finalizeBridgeETHDirect()
### Description
`L2BlastBridge.finalizeBridgeETHDirect()` checks that `msg.sender` is `L1BlastBridge`:
```solidity
require(msg.sender == address(OTHER_BRIDGE), "StandardBridge: function can only be called from the other bridge");
```
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: USE SHIFT RIGHT/LEFT INSTEAD OF DIVISION MULTIPLICATION IF POSSIBLE
### Description
While the DIV opcode uses 5 gas, the SHR opcode only uses 3 gas. Furthermore, Solidity’s division operation also includes a division-by-0 prevention, which is bypassed using shifting.
Code Location
-------------
[FeeExecutor.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 custom errors rather than `revert()`/`require()` strings to save gas
### Description
Custom errors are available from solidity version 0.8.4. Custom errors save [**~50 gas**](https://gist.github.com/IllIllI000/ad1bd0d29a0101b25e57c293b4b0c746) each time they're hit by [avoiding having to allocate and store... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Maximum Transfer Amount Is Bypassable
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation:
> This is the intended behavior. The limit amount is applied during some time and for a single transfer, not accumulation type.
**File(s) affected:**`Mavi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | dos | false | false | ## Medium: Immutable gas limit within `WormholeTransceiver` can lead to execution failures on the target chain
### Description
The Wormhole-specific Transceiver implementation uses an immutable [`gasLimit`](https://github.com/wormhole-foundation/example-native-token-transfers/blob/f4e2277b358349dbfb8a654d19a925628d48a... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect Gas Penalty Calculation in `postOp()` Overcharges User
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation:
> We think this is the most ergonomic way to address gas penalties, however we are open to changing this logic in the future.
**Fi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | true | false | ## Gas: Cheap Contract Deployment Through Clones
### Description
See `@audit` tag:
There's a way to save a significant amount of gas on deployment using Clones: .
This is a solution that was adopted, as an example, by Porter Finance. They realized that deploying using clones was 10x cheaper:
*
*
I suggest ap... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Protocol can't be deployed with default configuration
### Description
The contracts in the protocol are using compiler version 0.8.20 and the docs specifically say that the protocol will be deployed on Arbitrum. While Arbitrum is EVM-compatible, the PUSH0 opcode is still not supported on the network, and the 0... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | reentrancy | false | false | ## Gas: 3S-LENFT-N22 Trading/TradingPool.sol: nonReentrant modifier being called many times inside a function
### Description
The current implementation of the `removeLiquidityBatch(uint256[] lpIds)` function calls the function `removeLiquidity(uint256 lpId)` for every LP ID in the array. Since function `removeLiquidi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | false | ## High: Too few `ICHI` v2 farming reward tokens transferred to the user due to incorrect decimal precision
### Description
The `burn` function in the `WIchiFarm` contract transfers too few `ICHI` **v2** farming reward tokens to the caller due to using 9 decimals instead of 18 decimals for the `ICHI` **v2** token.
##... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | medium | reentrancy | true | true | ## Medium: Incorrect interface for `ExchangeRouter::updateOrder` prevents order updates in GMX V2
### Description
There is an issue in the integration with the GMX V2 trading platform, specifically in the [`GMX_Module::gmxv2_update`](https://github.com/d2sd2s/d2-contracts/blob/c2fc257605ebc725525028a5c17f30c74202010b/... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inconsistent behavior when anchor price is zero
### Description
The assigned reporter for the `UniswapAnchoredView` contract is expected to submit prices via its [`postPrices` function](https://github.com/compound-finance/open-oracle/blob/d0a0d0301bff08457d9dfc5861080d3124d079cd/contracts/Uniswap/UniswapAnc... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Mitigating Unexpected Abort Risks
### Description
## Vulnerability in handleV3AcrossMessage Handler
The vulnerability in `handleV3AcrossMessage` handler is related to unexpected aborts during the execution of `_handleSwap`. `handleV3AcrossMessage` directly calls `_handleSwap` to perform the swap based on the ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Needless accrue for src
### Description
We don't need to accrue for `src` because we don't use any information of `src` and that info will be accrued during the [underlyingComet transfer](https://github.com/compound-finance/comet/blob/main/contracts/Comet.sol#L942).
- https://github.com/reserve-protocol/proto... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | overflow | false | false | ## Low: Unnecessary SafeMath #1
### Description
**Description**
At contract utils/MultiOwnable.sol (argo-payments-contract-master) you can skip
Openzeppelin’s safe math for 2 reasons:
With Solidity >= 0.8.0 you don't need to import the Openzeppelin SafeMath anymore.
Just write a + b and it will automatically revert 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 | medium | initialization | true | false | ## Medium: Insufficient validation of the rebalanceInterval parameter could produce a revert in the propose function
### Description
The `propose` function could unexpectedly revert if a `RebalancingSetToken` is created with an unexpectedly large `rebalanceInterval` parameter. Before creating a new `RebalancingSetTok... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Trapped NMT Tokens in Fund Contracts
### Description
**Update**
The client fixed the issue in commit `7cb10125ebdc2679f47238297350001aaa87954c` by adding a withdraw function that allows a privileged role to remove any excess NMT tokens from the contracts.
**File(s) affected:**`CommunityFund.sol`, `StrategicFu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | true | ## Low: Events emitted during critical operations omit certain details
### Description
Events are generally emitted for all critical state-changing operations within the system. However, the `AntePoolCreated` event emitted by the `AntePoolFactory` does not capture the address of the `msg.sender` that deployed the Ante... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | token | true | false | ## High: User can pay less protected listing fees.
### Description
`ProtectedListings.unlockProtectedListing()` function create checkpoint after decrease `listingCount[_collection]`.
Therefore, when user unlock multiple protected listings, user will pay less fees for the second and thereafter listings than the first l... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | oracle | true | false | ## High: SwapManager fails at updating TWAP
### Description
The update function returns early without updating the TWAP if the elapsed time is past the TWAP period. Meaning, once the TWAP period passes, the TWAP is stale and forever represents an old value. This could lead to a denial of service attack when claiming r... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | flash-loan | true | false | ## High: Proposals created with voting mode EarlyExecution are vulnerable to flashloan attacks
### Description
If the token used by the LockManager can be flashloaned (or flashminted) and a proposal is created with the voting mode `EarlyExecution`, anyone could be able to "early execute" it performing the following act... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: Same token twice not checked
### Description
Pool constructor does not check that a token is provided twice in the length of tokens.
Actually, the whole pool can work given this mistake.
But it would allow an attack using `skim()` based on the difference between the virtual balance and the actual balance - 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 | access-control | false | false | ## Low: LACK OF EA AND POOL OWNER TREASURY VALIDATION IN POOL CREATION
### Description
The `create_pool` instruction requires several parameters, including the `evaluation_agent` and `pool_owner_treasury` addresses. However, this instruction lacks validation for these addresses, meaning that providing an invalid 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 | gas | overflow | false | false | ## Gas: [05] Expression can be unchecked when overflow is not possible (6 instances)
### Description
Deployment. Gas Saved: **20 220**
Minimum Method Call. Gas Saved: **410**
Average Method Call. Gas Saved: **4 630**
Maximum Method Call. Gas Saved: **1 354**
Overall gas change: **-6 233 (-5.326%)**
### src/DBR.so... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: | Unable To Withdraw Bid
### Description
**Description**
There is potential for a user to be unable to withdraw their bid.
Consider the following scenario:
1. Bob bids for the name “Alice”.
2. He then receives the NFT named “Alice” through secondary markets or a direct transfer.
3. Bob is unable to withd... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [07] Uninitialized/unbounded issue in `fetchListings`
### Description
The function `fetchListings` initializes an array of `listingCount + 1` but only fills elements from index `1` to `listingCount`, leaving the first element uninitialized. This off-by-one issue can cause confusion and may lead to unexpected 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... | solodit_api | medium | oracle | true | true |
The current implementation uses `_checkDelay()` function to prevent profitable opening and closing in the same tx with two different prices in the "valid signature pool". But the protection is not enough, an attacker can long with low price and short with high price at the same tx but two orders to lock profit and tak... | 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 | token | true | false | ## High: exerciseOptionsReceiver() Lack of Ownership Check for oTAP, Allowing Anyone to Use oTAPTokenID
### Description
In `UsdoOptionReceiverModule.exerciseOptionsReceiver()`:
For this method to execute successfully, the `owner` of the `oTAPTokenID` needs to approve it to `address(usdo)`.
Once approved, anyone can fr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: Incorrect `TOKEN_ADDRESS` and `DSR_DEPOSIT_ADDRESS`
### Description
The `DSRStrategy` declares incorrect contract addresses for `TOKEN_ADDRESS` and `DSR_DEPOSIT_ADDRESS`, which are intended to represent the `sDAI` contract for depositing `DAI` tokens and earning yield.
```solidity
//mainnet
address public ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 conditional block in `Ignite::getTotalRegistrations` can removed
### Description
**Description:** The conditional in [`Ignite::getTotalRegistrations`](https://github.com/Benqi-fi/ignite-contracts/blob/bbca0ddb399225f378c1d774fb70a7486e655eea/src/Ignite.sol#L483-L494) is intended to handle the case ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | true | false | ## Gas: In `InvestorBasedRateLimiter::_setAddressToInvestorId` use `delete` when setting to zero for gas refund
### Description
**Description:** In `InvestorBasedRateLimiter::_setAddressToInvestorId` use `delete` when setting to zero:
**Ondo:**
Acknowledged. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: function initTranche should check that the share parameter is > 0
### Description
## Impact
only admin can call this so highly unlikely to happen yet it would be better if code prevents that.
## Recommended mitigation steps
require share to be greater than 0.
## Tools used
## Email address
pauliax6@gm... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `_swap()` is vulnerable to sandwich attacks
### Description
Anyone can buy a ticket from a specified pool, a certain payment token will be used to swap for meme tokens. The swapping process is implemented as below:
```solidity
function _swap(
address token,
uint256 cost
) private returns (uint256 act... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: Phase calculation inaccuracy will always extend sell phase and cut withdrawal phase time
### Description
Due to incorrect if comparison sell period will always be extended by 1 unit and cut withdrawal time by the same amount.
### Impact
Incorrect phase calculation only shifts 1 second from last to first ph... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `DrawManager.canStartDraw` does not consider retried RNG requests when determining if a new draw auction can be started
### Description
Inconsistent checks in the `DrawManager.canStartDraw` function, neglecting to consider retried RNG requests, might lead to wrongly assuming that a new draw auction cannot 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 | high | front-running | true | false | ## High: Detaching HSG when there's non-unregistered owners who no longer own the hat would give them control over the multi-sig
### Description
After a user no longer owns a hat, although they are no longer treated as a valid signer, they remain an `owner` within the Safe, until `removeSigner` is called
```solidity... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Return a tuple of (preOpsReturnData, userReturnData) in _preOpsUserExecutionIteration()
### Description
The `returnData` returned by `_preOpsUserExecutionIteration()` means different things in different contexts:
| needsPreOpsCall | needsPreOpsReturnData | needsUserReturnData | returnData |
|----------------... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The `nonReentrant` `modifier` should occur before all other modifiers
### Description
This is a best-practice to protect against re-entrancy in other modifiers | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Deleting badges may lead to incorrect getter value (BadgeReg)
### Description
Getter functions return information on badges even after badges are deleted. This behavior may lead to unexpected behavior in third-party applications or contracts. The `BadgeReg` contract contains a `badges` array consisting of `Bad... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | front-running | true | false | ## Medium: Flashloan fee collection mechanism can be easily manipulated
### Description
[`LBPair.flashLoan()`](https://github.com/code-423n4/2022-10-traderjoe/blob/79f25d48b907f9d0379dd803fc2abc9c5f57db93/src/LBPair.sol#L415-L456) utilizes an “unfair” fee mechanism in which the whole pair liquidity can be loaned but 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 | medium | initialization | false | false | ## Medium: Legacy NFT Validation Gaps
### Description
## Vulnerability Report
The vulnerability relates to verification gaps in **TakeBidLegacy** and the handling of legacy standards for NFTs (non-programmable NFTs). The **master_edition** account ensures the non-fungibility of an NFT. However, the **PDA** validation... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Getter returns misleading value
### Description
In the [`GettersFacet` contract](https://github.com/matter-labs/zksync-2-dev//blob/c05b49d7e303996f60a0e35f18ef224e45ee19f5/contracts/ethereum/contracts/zksync/facets/Getters.sol), the function [`isFunctionFreezable`](https://github.com/matter-labs/zksync-2-dev//... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Illiquidity of NFTs Make It Difficult to Rely on Arbitrage for Price Correction
### Description
**Update**
The Tribe3 team has acknowledged the finding and provided the following explanation:
"Regarding the point on market liquidity, over the past few months, we have seen a surge in trading activity with the ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | token | true | false | ## Low: Unnecessary storage gap in `MembershipERC1155` can be removed
### Description
`MembershipERC1155` declares a [storage gap](https://github.com/OneWpOrg/audit-2024-10-oneworld/blob/416630e46ea6f0e9bd9bdd0aea6a48119d0b515a/contracts/dao/tokens/MembershipERC1155.sol#L212-L213) at the very end of the contract:
```... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Leverage borrowing with stale rate can atomically create bad debt with no prior positions and no investment
### Description
Leverage buying, borrow and collateral removal can increase riskness of a position, but are allowed to be performed with a stale exchange rate within `rateValidDuration` both in BB ans... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: A single precision value may not work for both the min and max prices
### Description
The same precision may not work for the min and max prices
### Impact
Depending on how the order keepers and oracle archive work, either the fetching the price from the oracle will fail, or the user will get less than the... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | liquidation | false | false | ## High: Users can steal funds
### Description
Whenever users deposit assets into a particular reserve, they choose whether the assets can be used as collateral against future loans, in addition to earning interest. This decision is [stored as a flag in a `UserReserveData` object](https://gitlab.com/aave-tech/dlp/cont... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | liquidation | true | false | ## Low: Stale Oracle Price
### Description
## Flux Aggregator and Collateral Token Price in Debt Tokens
In the program, `flux-aggregator` is used for getting the collateral token price in debt tokens. This price is then used for checking the collateral ratio during liquidation.
## Function: `read_collateral_token_pr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | token | true | false | ## Medium: `mintFromFixedPriceSale` for a custom contract can lead to users losing funds
### Description
_Submitted by joestakey_
`NFTDropMarketFixedPriceSale.createFixedPriceSale` allows creators to create a sale drop.
A creator can create a drop sale for their custom NFT Contract that adheres to `INFTDropCollection... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing Event Emissions in Contract Functions
### Description
The provided contract functions `release()` and `withdrawUnvestedTokens()` include comments indicating that they emit Transfer events. However, upon inspection of the code, these functions do not have any explicit event emissions. This may lead to a... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Bypassing require checks possible
### Description
**Severity**: Low
**Status**: Acknowledged
**Description**
In contract FEYTraderJoeProduct, It is possible to deploy Product contract without the factory contract. If someone accidentally deploys the Product contract without the factory, then all the critic... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Both msg.sender and _msgSender()‘ are used
### Description
Most of the time `msg.sender` is used, however sometimes `_msgSender()` is used, which is confusing.
### Recommendation
Consider replacing `_msgSender()` with `msg.sender`. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The setTotalBalance function is superfluous.
### Description
**Recommendation**:
The amount can be passed directly to the ArgoTokenVesting constructor. Then
ArgoTokenVesting does not need to be Ownable and has setTotalBalance method. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 `claimAll()` Function Does Not Return the Total Amount of Interest Claimed
### Description
The comment for `claimAll()` states that the return value is the `Total amount of interest claimed`, but from the code, it can be seen that if the owners of these tokens are not the same, the return value is only the... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Project Upgrade and Stop Scenario should be
### Description
Suggestion
At the start of the project, the system may need to be stopped or upgraded, I suggest you have a script beforehand and add it to the documentation. This can also be called an ” EMERGENCY STOP (CIRCUIT BREAKER) PATTERN “.
(https://github.c... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Insufficient Input Validation inSushiMakerAuction
### Description
- **Zero or small rewardAmount**
It is possible to bid on tokens which have zero or smaller than desirable `rewardAmount` in `startBid()`. This may occur if a user’s call to `startBid()` is not mined in the time it takes another auction to e... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Generated mnemonic could be leaked
### Description
The Deposit CLI tool is responsible for generating BLS key pairs. This tool implements a series of EIP standards that specify how to derive these key pairs from a mnemonic phrase. Specifically, a random mnemonic phrase is generated by the tool and then it is 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 | low | initialization | false | false | ## Low: Order Taker Forced Into Paying Increased Royalty Fees
### Description
**Update**
Acknowledged by the Sequence team:
> _"This is an acknowledged risk. When interacting with a token contract, the user has a trust assumption with the token contract owner. In this case, the token contract owner is responsible for... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.