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 | initialization | false | false | ## Low: Checking the wallet type to prevent unexpected calls to the claim() and forfeit() function
### Description
Severity: Low Risk
Context: RecipeKernel.sol#L675-L677
Description: Even if the market 's reward type is Upfront , the wallet owners can still call
claim() . Although no additional rewards will be sent ou... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | rounding | false | false | ## Low: Loss of Precision Due to Division Before Multiplication
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `6d216819f013cb57defef0c67ade847348eef2e2`.
The OasisSwap team moved division operation after the multiplication when calculating the OasisSwap fee.
**File(s) affected:**`OasisSwa... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: optimization for loop increment (line 207).
### Description
**Description**
In contract Voting.sol, at line 207, there is a for loop that could be better optimized by changing the i++ inside the for loop to an unchecked arithmetic because the i variable is of type uint256, and you will run out of gas before 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 | gas | other | true | false | ## Gas: Use named `returns` for local variables where it is possible (3 instances)
### Description
Deployment Gas Saved: **5 400**
* src/Kernel.sol:[130-135](https://github.com/code-423n4/2022-08-olympus/blob/2a0b515012b4a40076f6eac487f7816aafb8724a/src/Kernel.sol#L130-L135)
fix:
* src/modules/INSTR.sol:[41-79]... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Docs Typos
### Description
**Merge marks**
https://github.com/solidity-labs-io/kleidi/blob/1a06ac16bc99d0b4081281329d03064c3737f5e4/docs/TESTING.md#L53-L59
**Pseudocode doesn't exist**
https://github.com/solidity-labs-io/kleidi/blob/1a06ac16bc99d0b4081281329d03064c3737f5e4/docs/CALLDATA_WHITELISTING.md#L34... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: tryRemove may throw the wrong error when a cancellation reverts
### Description
Users may receive the wrong error if their cancellation reverts due to the order of the guard clauses in `Tick.tryRemove`.
### Recommendation
To preserve all three error states with minimal additional gas consumption, rearrange th... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: Lack of minimum redeem value might lead to less return than expected
### Description
The lack of a minimum redeem amount argument in the redeem functions could make a redeemer receive less assets than expected.
```solidity
if (redeemFeeBps > 0) {
uint256 redeemFee = _amount.mul(redeemFeeBps).div(10000);
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of Cleanup Mechanism for Starved WolfNFTs
### Description
In the `WolfNFT` contract, the condition:
```solidity
require(block.timestamp < starved[_wolfID],'your wolf starved');
```
in the `eatSheep` function prevents a wolf from burning `SHEEP` tokens if its starvation timer (`starved[_wolfID]`) has expir... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Code Redundancy
### Description
## Code Review Summary
1. In the calculation of `SyMeta::LEN_STATIC`, the size allocations for `treasury_sy` and `last_seen_share_index` are unnecessary and may be removed.
2. In the Number implementation, `is_positive` and `is_negative` appear redundant since they do not supp... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Allowance Double-Spend Exploit
### Description
**Update**
The Fabric team mitigated the issue in commit `b919265` by adding the `increaseAllowance()` and `decreaseAllowance()` functions.
**Description:** As it presently is constructed, the contract is vulnerable to the [allowance double-spend exploit](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 | medium | other | false | false | ## Medium: Be careful with small transactions
### Description
[Transactions executing the fallback function](https://github.com/ether-camp/virtual-accelerator/blob/6d4097a08669c2520e0d5bab317b60f1d13df44e/contracts/DSTContract.sol#L140) with amounts smaller than `1 finney` will assign zero tokens to the sender. [Same ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Potential Loss of Ownership During Transfer
### Description
The [`OidcKeyRegistry` contract](https://github.com/matter-labs/zksync-sso-clave-contracts/blob/ed21d09add8da99d9c82d0f7c30659625c6636e6/src/OidcKeyRegistry.sol#L11) implements a single-step ownership transfer process which may lead to unintended loss... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect Handling Of Balance Mappings
### Description
## Issue Summary
The function `_updateERC20Balance` contains an implementation error that overlooks a specific corner case involving ether as the asset. When the token address is zero, the function calls `IERC20(address).balanceOf(address(this))`, which 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 | cross-chain | false | false | ## Low: | Duplicate Code Lines
### Description
**Description**
The statement `user.rewardDebt = user.amount.mul(pool.accBRGPerShare).div(1e12)` is repeated on line 275.
**Recommendation**
Remove the first occurrence on line 273.
**Resolution**
Bridges Team:
- The first duplicate was removed. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: MISSING SAFE ENGINE ADDRESS VALIDATION
### Description
It was noted that `safeEngine_` address is not validated in `SurplusAuctionHouse.sol` contract. Lack of address validation has been found when assigning supplied address values to state variables directly. `safeEngine_` address should be `!=0` or add logic... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Funding rate changes during closed market
### Description
The funding rate calculation and funding rate velocity mechanism can suffer (or be manipulated) because it takes into account the time when markets are closed (which is possible for equities, FX, and commodities markets).
When the market resumes on Mon... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | rounding | true | false | ## Medium: Portion of revenue to be distributed for gauges remains undistributed
### Description
The `distributeRevenue()` function in the contract has a flaw in its revenue distribution logic, particularly when distributing `rewards` to `active gauges` of a specific `type`. This issue arises due to integer `truncatio... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Miscalculation of payout in settle
### Description
Within [`SettleableFund.settle()`](https://github.com/mcdexio/mai-fund-protocol/blob/98af0d1d7e9872ba2b5e734e2a43c161ef635608/contracts/fund/SettleableFund.sol#L204), the variable [`collateralSettled` is calculated as `_rawBalanceOf(_self()) - _totalFeeClaime... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unlocked Pragma Compiler
### Description
The codebase contains several instances of unlocked pragma compiler directives. These directives do not specify a fixed compiler version, which can lead to inconsistencies and potential security vulnerabilities due to differences in compiler behavior across versions.
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: `SecuritizeSwap::executeStableCoinTransfer` should use `SafeERC20` approval and transfer functions instead of standard `IERC20` functions
### Description
In `SecuritizeSwap::executeStableCoinTransfer` use [`SafeERC20::forceApprove`](https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/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 | medium | other | true | false | ## Medium: claims accounting only tracks execution costs
### Description
The claims storage variable records the ETH that will be reimbursed to the bundler for paying transaction fees. Currently, this value only tracks the difference between two calls to `gasleft()`, which implies that the bundler is only reimbursed f... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | front-running | true | false | ## High: Unsolicited Account Data Modification
### Description
## esFLUO Deposit Vulnerability
In esFLUO, the `deposit` function lacks any validation on the arguments it accepts, such as the user address and value of the amount.
## esFLUO.sol (SOLIDITY)
On calling `deposit`, the specified amount is added to the ba... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | signature | false | false | ## Low: Signed Message May Be Replayed Across Chains
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation: The contract is only intended to be deployed on one chain, apart from that the signature is created by our backend signer which can be different for dif... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Users are forced to approve Router for full collection to use commitToLiens() function
### Description
When a user calls Router#commitToLiens(), the Router calls `commitToLien()`. The comments specify:
`//router must be approved for the collateral to take a loan,`
However, the Router being approved isn'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: CEI pattern is not followed
### Description
**Severity**: Low
**Status**: Resolved
**Description**
Most of the methods of the contract follow this pattern: (Check, Interaction, Effects)
Here, it is advised to update the state before making external calls such as transferring ERC20 tokens to avoid reentranc... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | false | ## Low: <a name="GAS-12"></a>[GAS-12] Use != 0 instead of > 0 for unsigned integer comparison | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect creditConfigurator Upgrades Will Lock Configuration
### Description
If `CreditConfigurator.upgradeConfigurator()` is called by the configurator (owner of ACL contract) with an incorrect contract address, then `creditConfigurator` will be locked at this address and several parameters of `CreditManager... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `YieldEthStakingLido` lacks a limit on the max stake amount, which may result in the unstake exceeding `MAX_STETH_WITHDRAWAL_AMOUNT`, resulting in the token not being retrieved
### Description
In `YieldEthStakingLido`, the main processes are as follows:
1. `stake()` -> stEth balance increase
2. `unstake ()... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 newCooldownHorizon Calculation
### Description
The calculation for `newCooldownHorizon` in the `pressButton()` function does not add back `configuration.startTime` after calculating the number of seconds since the start time, resulting in a `newCooldownHorizon` value that is too small.
```solidity
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 | overflow | false | false | ## Low: Usage of Unrecommended `parse_overflowing_slice()`
### Description
**Update**
The team fixed the issue as recommended in commit `5d104a9`.
**File(s) affected:**`modules/crypto/src/keys.rs`
**Description:** The `verify_signature()` function uses `Signature::parse_overflowing_slice()`, which is not recommended... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Consider using Solady 's max , min , abs functions in HMXLib
### Description
The HMXLib contains functions `max`, `min`, and `abs`. The current implementations of these functions might not be the most gas-efficient. There's a potential opportunity to improve gas efficiency by using Solady's implementations.
#... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: No need for mapping `supportedInterfaces` to exist
### Description
This mapping takes some space and every time `supportsInterface(bytes4)` is called we do `SLOAD` to get data from this mapping.
https://github.com/code-423n4/2022-07-golom/blob/7bbb55fca61e6bae29e57133c1e45806cbb17aa4/contracts/vote-escrow/Vote... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `Depot` is missing functions present in on-chain deployment
### Description
The `Depot` contract is already [deployed](https://etherscan.io/address/0xDEb0f00071497a5cc9b4A6B96068277e57A82Ae2) and in use; however, this deployed version contains `receive` and `version` functions that are missing from the 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 | medium | storage | false | false | ## Medium: Previous withdraw proxy's withdrawReserveReceived is not updated when assets are drained from the current withdraw proxy to the previous
### Description
When `drain` is called, we don't update the `s.epochData[s.currentEpoch - 1].withdrawReserveReceived`. This is in contrast to when withdraw reserves are tr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | rounding | true | false | ## Low: Hard-Coded Minimum Deposit Amount ✓ Fixed
### Description
The `deposit` function specifies a minimum amount of 1e12 units of the base token for a deposit:
**contracts/Pool.sol:L22**
```
uint256 constant AMOUNT\_PER\_SHARE = 1e18;
```
**contracts/Pool.sol:L369-L376**
```
// Anyone can be a seller, and de... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `claimPrizesForRound` transfers the entire amount deposited for a prize regardless of the number of winners
### Description
`claimPrizesForRound()` transfers the entire amount of a prize to a winner without considering the total number of winners for that prize.
The prize for a given round and prize index ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Calls to `BoringMath.to128()` are redundant
### Description
All calls to `to128()` occur on the result of `calculateInterest()`, which itself already checks that the value fits into a `uint128` | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Creating a pair while the token is in the initial sale phase
### Description
**Severity**
**Impact:** High
**Likelihood:** High
**Description**
As the initial sale approaches its end, a scenario can occur where a user buys more tokens than are available for sale. In this situation, the user will receive 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 | rounding | true | false | ## Low: Possible loss of rewards due to precision loss
### Description
**Severity**: Low
**Status**: Resolved
**Description**
In `MasternodeStakingContract.sol`, the method claim rewards calculate the total dividends as follows:
Here, there is a `wei` loss of rewards funds due to automatic truncation in the solidi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: TRST-L-3 PoolHedger can receive ETH directly from anyone
### Description
**Description:**
A `receive()` function has been added to GMXFuturesPoolHedger, so that it is able to receive
ETH from GMX as request refunds. However, it is not advisable to have an open receive()
function if it is not necessary. Users... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | cross-chain | true | false | ## Low: Check enough native assets for fee
### Description
The function `_startBridge()` of `SquidFacet` adds `_squidData.fee` to `_bridgeData.minAmount`. It has verified there is enough native asset for `_bridgeData.minAmount`, but not for `_squidData.fee`. So this could use native assets present in the Diamond, alth... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: A malicious actor can prevent sending messages through the executor and ULN
### Description
**Severity**
**Impact:** High
**Likelihood:** Medium
**Description**
The `Executor` program has an `acl` that is checked against when calling `quote`:
The permission is revoked through the `SetDenylist` function.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: An attacker can steal Accumulated Awards from `RootBridgeAgent` by abusing `retrySettlement()`
### Description
### Lines of code
The Accumulated Awards inside `RootBridgeAgent.sol` can be stolen. The Accumulated Awards state will be compromised and awards will be stuck.
### Proof of Concept
*Note: An 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 | medium | other | false | false | ## Medium: The `buyer` address can be set to the `seller` address
### Description
There is an issue within the [`updateBuyer` function](https://github.com/MetaLex-Tech/LeXscrow/blob/94ca277528bb25b8421dc127941c18915144eb29/src/EthLexscrow.sol#L264). Currently, the `buyer` can alter the `buyer` variable value to the `s... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Missing duplicate checks in `L2SecurityCouncilMgmtFactory`'s `deploy()`
### Description
In `L2SecurityCouncilMgmtFactory.sol`, the `deploy()` function only checks that every address in every cohort is an owner in `govChainEmergencySCSafe`:
[L2SecurityCouncilMgmtFactory.sol#L111-L121](https://github.com/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 | low | liquidation | true | false | ## Low: `TradingAccount::deductAccountMargin` can incorrectly add the same values multiple times to output parameter `marginDeductedUsdX18`
### Description
**Description:** In `TradingAccount::deductAccountMargin`, `ctx.settlementFeeDeductedUsdX18`, `ctx.orderFeeDeductedUsdX18`, and `ctx.pnlDeductedUsdX18` are added 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 | other | false | false | ## Low: Pantheon permits RLP encoded ints with leading zeros
### Description
In `RLP.decode` (one of the two code locations in Pantheon that decodes RLP-encoded integers), it is possible to take an encoded scalar. This method assumes a fixed-length sequence and will decode an RLP-encoded integer even if it has leading... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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] `ShortToken.adjustPosition` FUNCTION DOES NOT NEED TO UPDATE `totalShorts` and `position.shortAmount` IN CERTAIN CASE
### Description
When calling the following `ShortToken.adjustPosition` function, if `positionId == 0` is false and `shortAmount` equals `position.shortAmount`, `totalShorts` and `position.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unoptimized for loops
### Description
Throughout the code in scope, there are several instances of unoptimized for loop declarations that may incur in higher gas costs than necessary, or some instances where the unnecessary use of a `unchecked` block is present.
### Recommendation
Optimize the `for` loop decl... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Fee must be less than the instantAmount
### Description
During stream creation by the Paymaster, the fee amount is deducted from the stream's `instantAmount`. If the fee exceeds the `instantAmount`, the transaction will revert when executed by the Paymaster. While this issue can be temporarily resolved by sett... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | dos | false | false | ## Low: [09] Function Calls in Loop Could Lead to Denial of Service
### Description
Function calls made in unbounded loop are error-prone with potential resource exhaustion as it can trap the contract due to the gas limitations or failed transactions. Here are some of the instances entailed:
https://github.com/code-4... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Freezing Coin Metadata Object
### Description
## Freezing Metadata in the Sui Blockchain
Freezing the metadata object after validating all metadata values is a recommended practice in the Sui blockchain according to the Sui documentation. This ensures that the metadata of the coin — such as its name, descript... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Debugging Import Included in Production Code
### Description
Most contracts in scope include the following import:
```
import "hardhat/console.sol";
```
The `console.sol` library is a debugging utility from Foundry, typically used for logging during development and testing. Including it in production con... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Compile-time division for signed integer edge case
### Description
At compile-time, division is using the same logic for both signed and unsigned integers. This is causing some corectness issues.
### Impact
Here are some examples at looking how this could be exploited:
```py
@external
def div_bug() -> int256... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unused import
### Description
The `InceptionVault` contract imports the `IRebalanceStrategy` interface but does not use it in the contract. This can be considered as unnecessary code and should be removed to keep the code clean and easy to read.
### Recommendation
Remove the unused `IRebalanceStrategy` import... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack Of Instruction Sysvar Validation
### Description
## Instruction Sysvar Account Vulnerability
The instruction sysvar account is passed to both `deposit` and `set_service` instructions, but its validation is not performed in `validate_remaining_accounts` and `set_stake`. Thus, it may be possible to replac... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: RewardThrottle.sol has code that needs to be UNCHECKED in many places
### Description
L117 SHOULD BE UNCHECKED DUE TO L116
L162 AND L146 SHOULD BE UNCHECKED DUE TO L145
L222 SHOULD BE UNCHECKED DUE TO L219
...
**[0xScotch (Malt) confirmed](https://github.com/code-423n4/2023-02-malt-findings/issues/19)**
*... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Morpho low-liquidity vaults at risk of price manipulation
### Description
Morpho vaults or any ERC-4626 vaults are inherently prone to price manipulation, especially in the case of new or low-liquidity vaults. For instance, In an empty vault with no protection mechanisms:
- The attacker deposits a minimal amo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Potentially dirty upper bits of narrow types could affect allowance computations in `ERC20Referrer`
### Description
**Description:** Solidity makes no guarantees about the contents of the upper bits of variables whose types do not span the full 32-byte width. Consider `ERC20Referrer::_transfer`, for example:
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Save gas for collecting protocol fees and interests
### Description
When a loan is touched (giving loan, buying loan, refinancing loan, borrowing loan, repaying, seizing loan), protocol fees is calculated and transferred to `feeReceiver`. By implementing like this, users are paying gas fee for governance. 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 | other | false | false | ## Medium: Title: Brute Force Attack on PIN in Keyring
### Description
**Severity**: Medium
**Status**: Resolved
**Location** :
https://github.com/getsafle/safle-vault/blob/main/src/lib/keyring.js#L19
https://github.com/getsafle/safle-vault/blob/main/src/lib/keyring.js#L129
**Precondition**:
The Keyring allows ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Leveraged positions can be created before the system start
### Description
The protocol contains a `start` storage variable, which only the owner can set:
```solidity
function setStart() public onlyOwner {
start = true;
emit Started(true);
}
```
Before this point, it should not be possible to interact 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 | other | false | false | ## Low: Emergency Pause May Revert and Cause a Delay
### Description
**Update**
Fixed in: `71daccef8ad490fdb6d5d3bb2a4ef95a4fef4d6f`.
The client provided the following explanation:
> _Removed revert._
**File(s) affected:**`Registry.sol`
**Description:** In emergency situations, pausing involved contracts needs 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 | gas | signature | true | false | ## Gas: File: FiatTokenV1.sol
### Description
### function initialize()
#### Use `tokenName` instead of `name`
This can save 2 SLOADs (around 200 gas).
Replace:
with
Additionally, `EIP712.makeDomainSeparator()` signature is as such:
As the first argument is a `memory` and not a `storage`, passing the storage `... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Name and Symbol for All Vault Bearer Tokens
### Description
**Update**
The client acknowledged the issue . `vaultId` will be added to the token name and symbol in the next version of the protocol.
**File(s) affected:**`Vault.sol`
**Description:** When a new vault is created and initialized, three `Vault... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The purchase of nomins and/or havvens is vulnerable to front-running
### Description
Front-running [1] attacks occur when users watch a blockchain for transactions, then submit transactions with higher gas prices to give their transactions a greater order preference. By modifying the state in some way, 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... | solodit_api | high | dos | true | true | Source: https://github.com/sherlock-audit/2023-02-carapace-judging/issues/174
## Found by
0Kage
## Summary
Existing buyers have an opportunity to renew their protection within grace period. If lending state update happens from `Active` to `LateWithinGracePeriod` just 1 second after a buyer's protection expires, pro... | Sherlock | 5 | Carapace |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: Allowance checks not correctly implemented
### Description
_Submitted by cmichel_
The `nTokenAction` implements two token approvals, the `nTokenWhitelist` which is always used first, and the `nTokenAllowance` which is checked second.
If the `nTokenWhitelist` does _not_ have enough allowance for the transfe... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | flash-loan | true | false | ## Medium: `PositionAction.sol#onCreditFlashLoan` may end up with stuck funds for `EXACT_IN` primary swaps
### Description
*Note: This is a new issue that was introduced by the latest code diff.*
When conducting a `decreaseLever` action, the final swap inside `onCreditFlashLoan()` is from collateral token to debt tok... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | signature | false | false | ## Medium: Arbitrary code can be run with Controller as msg.sender
### Description
_Submitted by hyh_
A malicious user can call Controller's operate with ActionType.QTokenPermit, providing a precooked contract address as qToken, that will be called by Controller contract with IQToken(\_qToken).permit(), which impleme... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: _getCreatorPaymentInfo() is Not Equipped to Handle Reverts on an Unbounded _recipients Array
### Description
## Lines of code
https://github.com/code-423n4/2022-02-foundation/blob/main/contracts/mixins/NFTMarketCreators.sol#L49-L251
## Vulnerability details
## Impact
The `_getCreatorPaymentInfo()` 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 | other | true | false | ## Low: `require` and `revert` statements should have descriptive reason strings
### Description
**Description:** `require` and `revert` statements should have descriptive reason strings:
**Solidly:**
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 | medium | liquidation | true | false | ## Medium: Fee receiver does not get paid when collateral is enough to cover the funding fee, during liquidation
### Description
When a position is liquidated, and there is enough collateral to cover the outstanding funding fee, the fee receiver does not get paid its fee
### Impact
Fee receiver does not get paid its ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: CURRENT QUORUM CAN BE EMITTED DURING THE PROPOSAL CREATION
### Description
Events allow capturing the changed parameters so that off-chain tools/interfaces can register such changes with timelocks that allow users to evaluate them and consider if they would like to engage/exit based on how they perceive the ch... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | signature | false | false | ## Low: Insufficient BLS Domain Allows For Signature Replays Under Specific Conditions
### Description
The choice of `BLS_DOMAIN` is insufficient to provide full protection from replays across different contracts and chains. The `BLS_DOMAIN` is `keccak256(abi.encodePacked(uint32(0xfeedbee5)))`.
The first issue relate... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `LinearDistributor._forfeit()`: declaredBalance should get cached
### Description
See @audit tag | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Adding constructor params causes creation code to change
### Description
Using constructor parameters in create2 makes the construction code different for every case. This makes address calculation more complex as you first have to calculate the construction code, hash it, and then do address calculation. What... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Fees never deducted in `AccountableOpenTerm` loan
### Description
**Description:** In `AccountableOpenTerm`, `interestData()` returns non-zero `performanceFee` and `establishmentFee`, but no path ever charges these fees. `_accrueInterest()` only updates `_scaleFactor` for base interest and none of `supply` ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Long Revert Strings
### Description
Shortening revert strings to fit in 32 bytes will decrease gas costs for deployment and gas costs when the revert condition has been met.
If the contract(s) in scope allow using Solidity >=0.8.4, consider using Custom Errors as they are more gas efficient while allowing 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 | rounding | false | false | ## Low: Precision Loss Due to Division Before Multiplication in `closingFee` Calculation
### Description
**Severity**: Low
**Status**: Resolved
**Location**: Trading.sol
**Description**:
The calculation of `closingFee` within the `_closeTrade` function is susceptible to precision loss due to the order of operati... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unchecked Return Values - IComptroller exitMarket, enterMarket
### Description
`IComptroller.exitMarket()`, `IComptroller.enterMarkets()` may return a non-zero uint on error but none of the Providers check for this error condition. Together with [issue 4.10](#aavegeist-interface-declaration-mismatch-and-unche... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Missing event and or timelock for critical parameter change
### Description
Events help non-contract tools to track changes, and events prevent users from being surprised by changes.
*There is 1 instance of this issue:*
https://github.com/code-423n4/2022-12-tessera/blob/f37a11407da2af844bbfe868e1422e3665a5f... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Deleting `nft Info` can cause users' `nft.unpaidRewards` to be permanently erased
### Description
_Submitted by WatchPug, also found by 0xDjango and hyh_
[LiquidityFarming.sol#L229-L253](https://github.com/code-423n4/2022-03-biconomy/blob/db8a1fdddd02e8cc209a4c73ffbb3de210e4a81a/contracts/hyphen/LiquidityFar... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrectly implemented modifiers in `LybraConfigurator.sol` allow any address to call functions that are supposed to be restricted
### Description
The modifiers `onlyRole` (bytes32 role) and `checkRole` (bytes32 role) are not implemented correctly. This would allow anybody to call sensitive functions that sh... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Prefer `safeTransfer` and `safeTransferFrom` for ERC20 token transfers
### Description
Consider using OpenZeppelin's [`SafeERC20`](https://docs.openzeppelin.com/contracts/2.x/api/token/erc20#SafeERC20) library to handle edge cases in ERC20 token transfers. This prevents accidentally forgetting to check the ret... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lp price calculation is not correct for oracles
### Description
In both crpto and stable swap oracles, it firstly gets the estimated price of the LP price, but it's not accurate enough to calculate the price of LP token. Price of LP token is estimated with additional **ramp** logic inside of the curve pool ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Use of String Instead of `bytes` for Oracle Signatures
### Description
This issue has been identified in `SelfPeggingAssetFactory`, where new `OracleExchangeRateProvider` contracts receive function signatures as strings (`tokenAFunctionSig` or `tokenBFunctionSig`). Using strings instead of `bytes` can introduc... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Verified accounts can execute swaps as limit orders by sanctioned users
### Description
Severity: Medium Risk
Context: VerifiedPoolsBasicHook.sol#L316-L344
Description: Verified accounts are able to execute swaps placed as limit orders by sanctioned users.
When a sanctioned user wants to swap with the Coinb... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Users can directly call the HyVM implementation
### Description
Although the HyVM contract is intended to be called via `delegatecall` (so that the code is executed in the context of the caller), the contract also allows users to make direct calls to the implementation contract. This behavior is risky, and it ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 whenInitialized for setVaultRegistrationPauseStatus() allows it to be called before ini-
### Description
Missing `whenInitialized` modifier for `setVaultRegistrationPauseStatus()` allows it to be called before Infrared initialization.
### Recommendation
Consider adding `whenInitialized` modifier 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 | high | token | true | true | ## Lines of code
https://github.com/code-423n4/2022-09-nouns-builder/blob/7e9fddbbacdd7d7812e912a369cfd862ee67dc03/src/lib/token/ERC721Votes.sol#L262-L268
## Vulnerability details
If Alice the NFT owner first delegates her votes to herself, second delegates to anyone else with delegate() or delegateBySig() then all... | Code4rena | 5 | Nouns Builder |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Immutable Admin Configuration in DIAOracleV2Meta
### Description
The current implementation of `DIAOracleV2Meta` sets the admin during contract initialization with no mechanism for future admin changes. Specifically:
- The admin is set to `msg.sender` during contract deployment
- There is no function to transf... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Can steal all dNFTs and funds from contract by flash loaning deposits & liquidations
### Description
When liquidate() is called for a given dNFT ID, there are two requirements:
- The current shares of that ID must be less than 0.1% of the total shares in the pool
- The shares after the liquidator's funds are... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Open TODOs
### Description
Code architecture, incentives, and error handling/reporting questions/issues should be resolved before deployment
*There is 1 instance of this issue:*
https://github.com/code-423n4/2023-01-popcorn/blob/d95fc31449c260901811196d617366d6352258cd/src/vault/adapter/abstracts/AdapterBas... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: The psm.to18ConversionFactor() call can be cached
### Description
The `psm.to18ConversionFactor()` call can be cached as this variable is immutable in the psm.
### Recommendation
Consider caching this variable into an immutable variable. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Package Enforcement Bypass via ContextModules
### Description
## Package Enforcement Bypass Issue
There is a package enforcement bypass issue related to **ContextModules**, a Webpack feature that handles imports that contain expressions. Since these modules are not wrapped by LavaMoat’s runtime protection, 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 | medium | other | false | false | ## Medium: `_protocolFees` can be applied multiple times in `AutoCompoundingPodLp` contract
### Description
In the `_processRewardsToPodLp` function, the reward token is swapped to `PAIRED_LP_TOKEN`, and then some of it is paid as `_protocolFees`. The remaining `PAIRED_LP_TOKEN` is swapped to `pod` and `StakingPoolTok... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unused ReentrancyGuard contract
### Description
At line
https://github.com/p2p-org/p2p-eth2-depositor/blob/9ad1803294a968e9bc4ce9a24e37b0f312a07d0e/src/P2pEth2Depositor.sol#L10
`P2pEth2Depositor` inherits `ReentrancyGuard`, but the functions of this contract are not used.
Inheritance of unnecessary code gener... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 order book spread
### Description
## Issue in Aob's OrderBookState::get_spread Method
The `get_spread` method in Aob's `OrderBookState` incorrectly uses `find_max` to obtain the best ask price.
## Code Snippet
Note that this method is not directly used in Aob and Dex, so there is no immediate sec... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Code style problems
### Description
**Severity:** Low
**Path:** Crate.sol, Swap.sol
**Description:** In the Crate contract, the ordering of the variable declaration can be tightly packed to optimize storage usage and save gas.
In the Crate and Swap contracts there is redundant return keywords usage as the v... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.