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 | gas | other | true | false | ## Gas: Better storage packing by changing declaration order
### Description
**Description:** Better storage packing by changing declaration order:
* `2-nav-provider/contracts/nav/SecuritizeAmmNavProvider.sol` - declare `lastMarketStatus` immediately after `asset`:
**Securitize:** Fixed in commit [41815fa](https://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 | other | true | false | ## High: Pool can be drained
### Description
The pool can be drained just as it was during the incident that occurred previously. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: EnumerableSet.remove() in Loop Corrupts The Set Order
### Description
The receivers global state variable in MergeMarketplaceStrategy is of type `EnumerableSetUpgradeable`. If the order of an `EnumerableSet` is required, removing items in a loop using `at()` and `remove()` corrupts this order. This finding has... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | reentrancy | true | false | ## Medium: Not updating state before making custom external call can cause borrower's to loose assets due to re-entrancy
### Description
Not updating state before making custom external call can cause borrower's to loose assets due to re-entrancy
### Impact
Borrower will loose repayment amount and also the collateral... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Functionality.
### Description
**Description**
ChainportMiddlewareV3: modifiers only Maintainer(), only NotBlacklisted(), onlyNotBlacklistedWithUser().
The ArbitrageManager contract inherits from ChainportMiddlewareV3, which contains certain functionalities and modifiers. It has been observed that not ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | reentrancy | true | false | ## Medium: Reentrancy in `GovernanceProxy._executeChange()`
### Description
The Check-Effect-Interaction pattern is violated in the `GovernanceProxy.executeChange()` function:
```
function _executeChange...
...
for(uint256 i; i < change.calls.length; i++) {
change.calls[i].target.functionCall(change.calls[i].dat... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The value in `idInList` mapping can be wrong.
### Description
**Description**
TokensFarm.sol: function finalise Deposit(), line 1103.
TokensFarmSDK.sol: function finalise Deposit(), line 1061. Perpetual TokensFarmSDK.sol: function finaliseDeposit(), line 1114. Perpetual TokensFarm.sol: function finaliseDepos... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Risk of NFT Loss when Accepting Order
### Description
**Update**
Addressed in: `95afb46f2fb25ba7d9150526710f08e1d674fb2a`.
**File(s) affected:**`Orderbook.sol`
**Description:** When accepting orders, the transferring ERC-721 tokens uses the `transferFrom()` function, which does not include safety checks to v... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | oracle | true | false | ## Medium: Improper Price Deviation Calculation Formula
### Description
## Price Deviation Calculation
The `get_price_diff_` function is responsible for computing price deviation. To calculate the percentage of price deviation, the formula should be:
The current implementation uses `new_price` as the denominator if... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | overflow | true | false | ## Gas: Redundant overflow checks in safe arithmetic operations
### Description
**Description:** `Solidity 0.8.25` includes built-in overflow checks for arithmetic operations, which add ~20-30 gas per operation. In `UptimeTracker::computeValidatorUptime`, operations like loop increments (i++) and additions (lastUptime... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 `amount` parameter is not validated in `increaseBid(address pool, uint256 amount)`
### Description
The `increaseBid(address pool, uint256 amount)` function doesn't validate `amount`, zero amount can be passed to the function.
### Recommendation
We recommend adding:
```
require(amount > 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 | low | initialization | true | false | ## Low: Inconsistent List Of Possible Reward Funders
### Description
## InitializeReward Instruction
The `InitializeReward` instruction requires the `reward_funder` to be one of those users:
After the initial check, another one is performed if the last reward is being initialized:
However, the `CollectRemainingRe... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: DISCREPANCY ON FUNCTION NAMING
### Description
The `setLiquidtyPool` function on the `LPToken` contract is named inconsistently. Similarly, there is a `setLiquidityPool` function on the `LiquidityProviders` contract which uses LiquidityPool as argument. As a result of the function named in this way in the LPTo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | true | false | ## Low: Misleading errors descriptions
### Description
For each variant of the `CsprUSDError`, a concise description was provided to offer additional context for each error.
However, it was observed that the descriptions were misleading in two instances.
Code Location
-------------
The highlighted error description... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | liquidation | true | false | ## Low: Insu�ficient testing
### Description
The repositories under review lack appropriate testing, which increases the likelihood of errors in the development process and makes the code more difficult to review.
The polkastrategies repository manages the bookkeeping of users’ principals and the rewards they earn on ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | overflow | true | false | ## Low: Protocol can be DOS due to arithmetic underflow in interest accrual
### Description
_Resolved_
In `DebtMath.calculateApproxNotionalUpdate`, when `_lnRate` is negative, the function calculates:
`WadRayMath.RAY - rate1 + rate2 - rate3`.
Where `rate1 = abs(_lnRate) * _timeDelta / _duration`.
If `_timeD... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | rounding | true | true | ## Medium: `AccountableFixedTerm::claimInterest` unpredictable due to share burn mechanics
### Description
[`AccountableFixedTerm::claimInterest`](https://github.com/Accountable-Protocol/audit-2025-09-accountable/blob/fc43546fe67183235c0725f6214ee2b876b1aac6/src/strategies/AccountableFixedTerm.sol#L215-L217) lets a le... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Tokens reverting on zero value may block operation flows
### Description
Severity: Low Risk
Context: Vault.sol#L144
Description: Some obscure tokens may revert on zero value. There are cases wheresendTo() is called with zero
value, eg. in the BatchRouter when wrapping / unwrapping ERC4626 & limits[i] == underl... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Dangerous type casting
### Description
Type casting here https://github.com/cryptoalgebra/Algebra/blob/6c22b64977e0b0266aec89470480df74977eb606/src/core/contracts/AlgebraPool.sol#L146 can lead to a potential loss of user funds.
### Recommendation
We recommend using a safe type cast there. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Flawed mechanism for fractional token withdrawal
### Description
`VaultAdmin` provides the admin with a two-step mechanism for withdrawing fractional tokens from the vault. This could be used to withdraw fractional tokens not claimed after a certain period of time, and the dust remainder caused by the rounding... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | liquidation | false | false | ## Medium: Paused Protocol Prevents Critical Functions Including Debt Repayment and Liquidations
### Description
## Relevant Context
The `LendingPool` contract implements a pause mechanism through the `whenNotPaused` modifier that can be activated by the owner. This mechanism is intended to protect users during emerge... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | dos | true | true | ## High: Users' voting weight can be double-counted when finalize epoch is processed in multiple steps
### Description
In `Voter.sol`, the admin can call `finalizeEpoch` in order to tally all of the votes when an epoch has ended. Since the list of voters can be unbounded, finalizing can be broken into multiple steps i... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | overflow | false | false | ## Low: `recipQ64()` Could Overflow
### Description
**Update**
Fixed in commit `151224b`.
**File(s) affected:**`libraries/FixedPoint.sol`
**Description:** The `recipQ64()` method may lose precision if the input parameter `x` is ever `2^-64`. The correct reciprocal of that number is `2^129`. However, since that numbe... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | ## Medium: `AggregateStablePrice` EMA can be manipulated
### Description
- https://github.com/defidotmoney/dfm-core/blob/0bde9fb784400d73f434d585aab7d9dd0ad1c679/contracts/cdp/oracles/AggregateStablePrice.vy#L156-L157
If the `price_w()` function, which updates `last_timestamp`, is not called for a long time, the valu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: maxSellAllAmount and maxBuyAllAmount functions can be unintentionally paused (always revert).
### Description
_Submitted by PP1004, also found by hansfriese_
### Impact
The two functions maxSellAllAmount and maxBuyAllAmount will always revert in case at least (100-fee)% of user's balance can be matched 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 | medium | flash-loan | true | false | ## Medium: anti-flashloan mechanism may lead to protocol default
### Description
_Submitted by gzeon_
There is a price check to avoid flash loan attacks which significantly moved the price. If current price is 5% lower than the stored twap price, the liquidation will fail. This design can be dangerous as it is to ope... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 `SwapOne2One_V2` pool assumes token value to be constant
### Description
**Severity**: Informational
**Status**: Acknowledged
**Description**
The pool follows an X = Y linear curve for swaps. Nobody will want to put the costlier token in the pool as a liquidity provider. This is because let's say the m... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | false | false | ## Gas: Deployer.implementations can be immutable
### Description
Gas saved: ~28K per RToken deployment
The struct itself can’t be immutable, but you can save the values of the fields (and fields of the `components`) as immutable variables, and use an internal function to build the struct out of those immutable varia... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inaccurate Calculation of Pending Rewards of XVS Vault Pools
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `8d547ac656c33618125733e00d4ae237a16b82be`.
**File(s) affected:**`XVSVault.sol`
**Description:** According to the design of the XVS vault, pending withdrawals after the upgra... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Market rate never used due to decimal discrepancy
### Description
A decimal precision mismatch between `marketRate ` (18 decimal precision) and `redeemRate ` (6 decimal precision) in `Pool.sol` will cause the market rate to never be used.
### Impact
The intended functionality of considering the market rate... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Fee on transfer tokens will not behave as expected
### Description
In Numoen, it does not specifically restrict the type of ERC20 collateral used for borrowing.
If fee on transfer token(s) is/are entailed, it will specifically make `mint()` revert in Lendgine.sol when checking if `balanceAfter Can you giv... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Use safe math
### Description
There are many unchecked math operations in the code. It’s always better to be safe and perform checked operations. Consider [using a safe math library](https://github.com/OpenZeppelin/zeppelin-solidity/blob/master/contracts/SafeMath.sol#L6), or performing pre-condition checks ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | overflow | true | false | ## Low: Consider using OpenZeppelin's SafeCast library to prevent unexpected overflows when casting from uint256
### Description
In the StakeManager contract, the `withdrawTo` function takes an argument `withdrawAmount` of type uint256.
Now, in the function, the value of `withdrawAmount` is downcasted to uint112.
##... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | other | false | false | ## Medium: Minting can be indefinitely stuck due to request timeout of external adapters when using Chainlink Any API
### Description
Mode has integrated Chainlink Any API to interact with external adapters, verifying user codes and wallet addresses to determine the number of boxes to mint. The system uses a `direct-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 | other | false | false | ## High: CLGauge.deposit() doesn't verify that the liquidity to stake is from the pool the gauge integrates with
### Description
`CLGauge.deposit()` allows staking an NFT that provides liquidity to a different pool (i.e., a pool the gauge doesn't integrate with). This allows a malicious actor to stake liquidity into a... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | signature | false | false | ## Medium: Reverted L2 Upgrade Block Forces Recommitment of Preceding Blocks with Incorrect Values
### Description
An L2 upgrade block that has been reverted may prompt the recommitment of the blocks preceding the upgrade. Given that the block height is [enforced based on the previously recorded `l2SystemContractsUpgr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Similar token-to-token swap methods can yield very different results
### Description
`BPool`’s interface exposes several methods to perform token swaps. Because the formula used to calculate trade values varies depending on the method, we compared token swaps performed using two different methods:
1. `BPo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: ValidateBasic function in config.go is redundant / incomplete
### Description
## Severity: Low Risk
**Context:** mod/config/pkg/config/config.go#L119
**Description:**
Per inline documentation, the `ValidateBasic` function in `config.go` should return an error if the `min-gas-prices` field is empty. However... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Missing important events
### Description
**Description:**
There is no event emitted in important functions like stake, unstake, etc
**Recommendations:**
It is recommended to add all events. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Cannot use uint256.max to repay the balance of compoundv2migrationbundler
### Description
The `compoundV2Repay`'s natspec states the following for the `amount` parameter:
*The amount of cToken to repay. Pass `type(uint256).max` to repay all (except for cETH).*
It's ambiguous what "all" refers to: the bun... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [05] Use of Average Instead of Median
### Description
**Contract Name:** `OracleManager.sol`
**Function Name:** `generatePerformance`
**Description:**
The function aggregates oracle data using averages, which are susceptible to manipulation by outliers or malicious oracles, potentially skewing performance me... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | reentrancy | true | false | ## High: `expressReceiveToken` can be abused using reentry
### Description
A token transfer can be express delivered on behalf of another user when the call contains data to be executed:
The issue here, is that check effect interactions are not followed.
There are two attack paths here with varying assumptions and ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | dos | false | false | ## Low: AllocateDevGas() divide-by-zero can cause denial of service
### Description
The following line in `AllocateDevGas()` will trigger a `panic("division by zero")` if `netGas` is 0:
```go
scaledGasUnits := new(big.Int).Div(new(big.Int).Mul(remainingGas, parsedRawAmount), netGas)
```
If this panic occurs, it will... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | token | true | false | ## Low: Unsafe use of `transfer()/transferFrom()` with `IERC20`
### Description
Some tokens do not implement the ERC20 standard properly but are still accepted by most code that accepts ERC20 tokens. For example Tether (USDT)'s `transfer()` and `transferFrom()` functions on L1 do not return booleans as the specificati... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: gush ignores total vat.Line() debt ceiling
### Description
The `trim` function currently only considers its own ilk-specific debt ceiling `ilk.line`, ignoring the global total debt ceiling `vat.Line()`. There are cases when it should trim more DAI than it currently does if it would respect the global total 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 | gas | other | true | false | ## Gas: [16] Splitting `require()` statements that use `&&` saves gas
### Description
See [this issue](https://github.com/code-423n4/2022-01-xdefi-findings/issues/128) which describes the fact that there is a larger deployment gas cost, but with enough runtime calls, the change ends up being cheaper
*There are 4 inst... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Non-assembly method available
### Description
`assembly{ id := chainid() }` => `uint256 id = block.chainid`, `assembly { size := extcodesize() }` => `uint256 size = address().code.length`
There are some automated tools that will flag a project as having higher complexity if there is inline-assembly, so it's be... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | logic-error | false | false | ## Low: Unverifiable contracts resulting from logic abstraction in externally scoped implementations
### Description
Dolomite is a versatile base layer that facilitates various actions across multiple tokens. The current audit scope encompasses contracts such as `GenericTraderProxyV1.sol` and `LiquidatorProxyV4WithGen... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Misleading value assignment to poolId
### Description
**Severity**: Low
**Status**: Acknowledged
**Description**
In contract TraderJoeYieldSource, according to the line: 175 in the constructor,
poolId = isFarmExists ? _poolId : 0;
The poolId to _poolId in case the Farm exists. But it is entirely possible... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect Key Ordering in _compactKeys Function Leads to Potential Overwriting of New Keys
### Description
The [`_compactKeys` function](https://github.com/matter-labs/zksync-sso-clave-contracts/blob/ed21d09add8da99d9c82d0f7c30659625c6636e6/src/OidcKeyRegistry.sol#L158) of the `OidcKeyRegistry` contract man... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: access control flaw: Role removal logic incorrectly grants unauthorized roles
### Description
### Finding description
The `removeRole()` function incorrectly updates a user’s role list by replacing a removed role with the last role from the `global_roles` array. This results in unintended and unauthorized ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: changeSpotPriceAndDelta() reverts when there is enough liquidity to support 1 sell
### Description
The function `changeSpotPriceAndDelta()` reverts when there is enough liquidity to support 1 sell because it uses `>` instead of `>=` in the check:
```solidity
if ((newPriceToSellToPair > priceToSellToPair) && p... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | true | false | ## Low: Incorrect revert strings in `StakingContract::revokeAdminRole`
### Description
**Description:** There are two revert strings [[1](https://code.zeeve.net/zeeve-endeavors/benqi_smartcontract/-/blob/b63336201f50f9a67451bf5c7b32ddcc4a847ce2/contracts/staking.sol#L1021), [2](https://code.zeeve.net/zeeve-endeavors/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 | liquidation | false | false | ## Medium: Asset price can be reset by owner
### Description
The [`addStableCoin` function](https://github.com/holdefi/Holdefi/blob/f4df394d7cf6df347b1f1e9af8e2676c5933c2c9/contracts/HoldefiPrices.sol#L47) of the `HoldefiPrices` contract is used to introduce new token prices to the Holdefi system with an initial price... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | dos | true | false | ## High: Canceling all transaction requests causes DoS on MMF system
### Description
Any shareholder can cancel any transaction request, which can result in a denial of service (DoS) from the MMF system.
The `TransactionalModule` contract uses transaction requests to store buy and sell orders from users. These reques... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: HARDCODED SLIPPAGE
### Description
In most of the interactions with pools (such as swaps or liquidity providings), slippage % is somehow adjustable (since `_slippage` parameter from `ParameterStore.sol` contract is used).
However, in some interactions, such as when providing liquidity using `PoolManager.sol`'... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | true | false | ## Low: Curve stable swap AMM is not usable
### Description
The `AMM/markets/curve_stable/math.fc` uses `CUBE_STABLE` as `SWAP_TYPE` instead of `CURVE_STABLE_SWAP`. The use of an incorrect swap type makes it unusable. The FIVA Pool contract uses the `SWAP_TYPE` constant to modify the contract storage usage for differe... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Ineffective token burning mechanism in fee handling
### Description
_Resolved_
The bug occurs when attempting to "burn" tokens by transferring them to `address(0)` instead of properly reducing the total supply, which fails to achieve true burning and merely relocates inaccessible tokens while keeping the repo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | front-running | false | false | ## Medium: formPOL lacks slippage and deadline protection
### Description
formPOL can be vulnerable to a well known liquidity deposit sandwich attack causing loss of funds for the protocol.
### Proof of Concept
In `formPOL`, there are no slippage parameters when calling `depositLiquidityAndIncreaseShare`
All liquid... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | high | access-control | true | false | ## High: Missing Version Validation for Private Clients Account in `new_private_client`
### Description
The `new_private_client()` function fails to validate that the provided `private_clients_acc` account matches the protocol version specified in `root_state`.
Since different protocol versions use different PDA seed... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Precompile Keccak256 Contract Is Missing Constructor Code
### Description
The [`Keccak256`](https://github.com/matter-labs/era-system-contracts/blob/217e115a91348c6a4dafde19a9777613e782e747/contracts/precompiles/Keccak256.yul) contract defined in the [`Keccak256.yul`](https://github.com/matter-labs/era-system-... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of Dedicated Mint Event for Transparency
### Description
The contract relies solely on the standard `Transfer` event emitted by `_mint`.
Although this indicates the creation of new tokens, it lacks explicit clarity. Off-chain services, explorers, and auditors may find it challenging to differentiate ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of timely price feed updates may result in loss of funds
### Description
The prices used to check loan health and maximum borrowable value are updated manually by calling `performUpkeep` on the PriceAggregator contract. There are incentives to call the price update function, and the client has indicated ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Two-Step Ownership Transfer for Improved Security
### Description
The `Ownable2Step` pattern is an improvement over the traditional `Ownable` pattern, designed to enhance the security of ownership transfer functionality in a smart contract. Unlike the original "Ownable" pattern, where ownership can be tran... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | initialization | false | false | ## Medium: Fees can be sent to the zero address
### Description
If the `protocolFee` is set to a non-zero amount and an IP order is created without setting `protocolFeeRecipient`, the fees will be sent to the zero address.
### Recommendation
Assign a value to `protocolFeeRecipient` in the constructor ensuring that wh... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Same tokens can be added to eligible tokens array.
### Description
**Description**
EligibilityDataProvider.sol: add Token().
The owner is able to set the same token as eligible multiple times. Thus the same token will be added to the array 'eligibleTokens multiple times. The issue is marked as info since 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 | access-control | false | false | ## Low: External Functions Should Not Be Specified Within `TransparentUpgradeableProxy`
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `6b3347677bda5b16549577136f39cd15b99bd6bb`. The client provided the following explanation:
> Removed getAdmin and moved to a separate mock class to facilita... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing Slippage Check on `liquidation_amount` in Redemption-Enabled Vaults
### Description
**Description:** When calling `liquidate_handler()` the liquidator provide the minimum amount of assets he is willing to receive. either assets or liquidation tokens
The slippage check is implemented only for asset... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | true | false | ## Low: The ic-admin subcommand SubCommand::GetNodeOperatorList reports duplicate and stale operator IDs
### Description
The `ic-admin` subcommand `SubCommand::GetNodeOperatorList` is implemented using the function `RegistryClientImpl::get_key_family`. This function is used to obtain a list of all keys with a given 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... | cyfrin_structured | medium | front-running | true | false | ## Medium: Owner of `BetFactory` can subtly rug-pull any caller to `BetFactory::createBet` stealing their tokens
### Description
Owner of `BetFactory` can rug-pull any caller to `createBet` stealing their tokens by front-running to call `BetFactory::setPool` with the address of a malicious contract that implements 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 | rounding | true | false | ## Low: Precision loss in `requiredDonation()`
### Description
`requiredDonation()` determines the number of required donations in USDC/USDT precision (6 decimals), which is lower than ZRO's precision (18 decimals). This will result in a precision loss, which could result in less USDC/USDT required for donation.
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 | cross-chain | false | false | ## Low: Pragma Compiler Version Default Can Generate Incompatible Opcodes
### Description
Valid compiler versions for the codebase are set via the pragma solidity tag at the top of Solidity files. The codebase uses [`pragma solidity ^0.8.19`](https://github.com/Consensys/linea-contracts/blob/f08c1906855198e2dc0413a47d... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: POSSIBLE MISUSE OF PUBLIC FUNCTIONS
### Description
In the contracts below contracts, there are some functions marked as `public` that are never called directly within the contract itself or in any of their descendants:
`ProxyAdmin.sol`
* `getProxyImplementation()` (ProxyAdmin.sol#19-31)
* `getProxyAdmin()` ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Execution Layer rewards are lost
### Description
According to Rio Network Docs: "The Reward Distributor contract ([RioLRTRewardDistributor](https://github.com/contracts-and-tooling/source-code/restaking/riolrtrewarddistributor)) has the ability to [receive](https://github.com/contracts-and-tooling/source-co... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | true | false | ## Gas: Extracting a storage pointer can result in a gas optimisation
### Description
In multiple places in the `Organizer`, `ApproverManager`, and `PayrollManager` code, there are storage reads to the `orgs` mapping. Extracting a storage pointer to the mapping will result in gas savings.
### Recommendation
- Prefera... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Protocol fee front-run
### Description
Privileged users can front-run withdrawal operations to increase withdrawal fees, reducing the amount of assets other users will receive when they execute withdrawals.
Withdrawal operations carry a fee:
```solidity
uint256 withdrawFee = toInternalBalance ? 0 : _calculate... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Contracts should have full test coverage
### Description
While 100% code coverage does not guarantee that there are no bugs, it often will catch easy-to-find bugs, and will ensure that there are fewer regressions when the code invariably has to be modified. Furthermore, in order to get full coverage, code auth... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Amount is used as native fee in events
### Description
**Severity**: Low
**Status**: Resolved
**Description**
When calling `_bridgeToRunes` within `bridgeNativeToRunes`, the fifth parameter should be `nativeFee` but `amount` is passed instead.
It does not have high severity implications as it is only used... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | SOLC Version | false | false | ## Security Audit Summary
## Severity
**High Risk**
## Context
`FullMath.sol#L2`
## Description
UniswapV3’s `FullMath.sol` is copied and migrated from an old solidity version to version 0.8, which reverts on overflows. However, the old `FullMath` relies on implicit overflow behavior. The current code will revert on ... | Spearbit | 5 | Morpho |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | storage | false | false | ## Medium: Full test suite is necessary
### Description
The test suite at this stage is not complete. It is crucial to have a full test coverage that includes the edge cases and failure scenarios, especially for complex system like Gamma.
As we’ve seen in some smart contract incidents, a complete test suite can 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 | high | overflow | false | false | ## High: 4. MISSING CONSTRAINT IN PIL LEADING TO EXECUTION FLOW HIJACK
### Description
**Severity:** Critical
**Path:** utils.zkasm, main.pil
**Description:**
The combination of the free input checking in zkEVM ROM and a missing constraint in main.pil leads to execution hijack with a possibility to jump to an arbi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect fees calculation in `ChangeFee`.
### Description
**Description**
'ChangeFee' functionality does not have validation of passed values. Actually, the 'house_fee_basis_points' variable could have the value much more than '10000', which means that the changed fee could be up to 655% ('u16::MAX').
progra... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: resolver.isPayable() can be hoisted out of the loop and cached
### Description
The function `resolver.isPayable()` is an external call and the same value is applicable for all loop iterations. Thus, we can hoist it out of the loop, cache it in a memory variable, and use that variable inside the loop to save ga... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Resizing the payout schedule with less items might revert
### Description
According to some comments in `setPayoutScheduleFixed`, reducing the number of items in the schedule is a supported use case. However in that case, the function will revert because we are iterating over as many items as there was in 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 | front-running | false | false | ## Low: Typos, Comments, Unused Code,
### Description
## Code Review Summary
## Context
- **Dahlia.sol**:
- Lines: 489-495
- Line: 39
- Line: 189
- **VariableIrm.sol**:
- Line: 84
- **WrappedVault.sol**:
- Lines: 68-69
- Line: 147
- Lines: 162-164
- Line: 414
## Description/Recommendations
- **ID... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Can Obtain Unlimited Giveaway Amounts
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `2a51347523e7169141cc35653d12fd1113725261`, `51aeaca6566856be694aea53755d7b4f53caca9e`, and `87d894011036edc06960677493b278a4bfcec632`.
The team only allows whitelisted partitipants for `IFFi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: TRST-M-1 LSP20 verification library deviates from spec and will accept fail values
### Description
**Description:**
The functions `lsp20VerifyCall()` and `lsp20VerifyCallResult()` are called to validate the owner
accepts some account interaction. The specification states they must return a specific 4 byte ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Non-whitelisted tokens cannot be added if the limit of token addresses is filled with whitelisted ones
### Description
Non-whitelisted tokens cannot be deposited to a bounty contract if too many whitelisted contracts were deposited.
### Impact
Bounty minters may not be able to deposit non-whitelisted 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... | skyward_49k | medium | oracle | false | false | ## Medium: No RWAs have a chainlink feed in ETH, so RWAs cannot be minted as nuAssets
### Description
A key intention of the protocol is to allow RWAs with chainlink feeds to be represented with synthetic nuAssets.
The issue is that the protocol only works with chainlink feeds where the asset is priced with ETH.
All... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | true | false | ## Gas: Cache function calls
### Description
https://github.com/code-423n4/2023-10-ethena/blob/ee67d9b542642c9757a6b826c82d0cae60256509/contracts/StakedUSDe.sol#L89-L99
Note, we are calling `getUnvestedAmount()` function two times. If we look at the implementation of that function [here](https://github.com/code-423n... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | token | true | false | ## Gas: Use already `cached` value instead of re-reading from `storage`
### Description
Reading state variable from storage takes 100 Gas in other consecutive after first access. To avoid 1 `SLOAD`, we can use already cached value.
*Note: This only includes the instance which were missed by bot*
Total Gas Saved: ~10... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Excessive Fees
### Description
## Current Risks in Arbitrary Fee Definitions
Currently, the `definitive_admin` may arbitrarily define `input_fee_amount` and `output_fee_bps` values during swap initiation (`handle_preswap`) and finalization (`handle_postswap`). By setting these values excessively high, the adm... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Use named return variables where this can eliminate local variables
### Description
**Description:** Use named return variables where this can eliminate local variables:
* `BetFactory::createBet`
* `Bet::_status`
**WannaBet:** Fixed in commit [1c5fb9d](https://github.com/gskril/wannabet-v2/commit/1c5fb9db9280... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | dos | true | false | ## High: Withdrawals can be locked forever if recipient is a contract
### Description
The [`WithdrawQueue`](https://github.com/code-423n4/2024-04-renzo/blob/519e518f2d8dec9acf6482b84a181e403070d22d/contracts/Withdraw/WithdrawQueue.sol#L303) contract allows users to request withdrawals of their ezETH tokens in exchange... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Division by Zero Returns Zero
### Description
The math libraries **WadRayMath** and **PercentageMath** perform operations on `uint256` with a set number of decimal places. The following functions provide division operations accounting for the decimal places:
- **WadRayMath.rayDiv()**
- **WadRayMath.wadDiv()**... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [04] Unchecked `amount + feeAmount` allows 256-bit overflow in permit flow
### Description
### Vulnerability details
`depositToIntentWithPermit` verifies `permitAmount == amount + feeAmount` within an `unchecked` block. An attacker can choose `feeAmount` close to `2^256 - 1`, causing the addition to wrap and ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Useless Storing Of Boolean
### Description
## Code Analysis of pool.move and storage.move
During the execution of `pool.move` and `storage.move`, when performing the `set_owner` and `set_admin` operations for the former and `set_configurator` for the latter, the `val` variable provided as a parameter helps po... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Liquidation Avoidance through Rejecting Native Ether Transfers
### Description
Borrowers can avoid liquidations by creating a CreditAccount from a contract address that reverts every time it receives native ETH transfers. Gearbox is designed as a composable DeFi protocol. Therefore, it is possible to open a 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 | medium | overflow | true | false | ## Medium: Underlying With Non-Standard Decimals Not Supported
### Description
Arithmetic operations are performed with the assumption that the token always has 18 decimals.
### Impact
- The addition of underlying capital that does not use 18 decimals will not be possible.
### Recommendation
- Consider whether the a... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | signature | true | false | ## Medium: Late-entry disqualification is griefable
### Description
RewardsEngine marks an account ineligible for the remainder of the epoch on any inflow after `checkpointStart`. The hook is called for all transfers and all mints, and the hook does not have context to distinguish a true late entry from a dust transfe... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.