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 | medium | dos | false | false | ## Medium: Attacker will DoS `LidoVault` up to 36 days which will ruin expected apr for all parties involved
### Description
The parameters of each `LidoVault` are tuned such that fixed depositors get an upfront premium and variable depositors in return get all the yield produxed by the fixed depositors' deposits.
Ho... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | token | false | false | ## Medium: TokenManagerERC20.sol uses transferFrom() instead of safeTransferFrom()
### Description
_Submitted by jayjonah8, also found by cmichel and IllIllI_
### Impact
In TokenManagerERC20.sol the \_exit() function makes use of transferFrom() instead of using safeTransferFrom(). Tokens that don’t correctly imple... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | other | true | true | ## Low: `SolidlyV2Pair::setPoolFee` fails to adequately consider fee setters defined by `SolidlyV2Factory`
### Description
If a new `feeSetter` is registered by the owner of `SolidlyV2Factory`, then it is possible for the pool fee to be set below the minimum specified by the factory. This breaks the invariant that the... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: Native funds sent with pushVaultAmounts and sendFundsToVault can be lost
### Description
XChainController's pushVaultAmounts() and sendFundsToVault() do not always use the native funds provided to cover the fees.
In the cases when the funds aren't used they are not returned, ending up frozen on 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 | low | other | true | false | ## Low: Use a shared callback handler for uniswapV3SwapCallback() and algebraSwapCallback()
### Description
The contract implements the logic for handling swap callbacks from Uniswap V3 in `uniswapV3SwapCallback()`, which is a public function. To support Algebra pools as well, `algebraSwapCallback()` directly calls `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 | rounding | false | false | ## Low: Unnecessary usage of the `Math` library
### Description
The `_mulDiv` function from the `Math` library is used in all factories, but it only overcomplicates fee calculation which is tolerant to calculation imprecision: https://github.com/MetaLex-Tech/LeXscrow/blob/c3cbdb6f051dbce1bae237c20b6bc3d06a82af78/src/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 | reentrancy | true | false | ## Medium: A subject creator within a single block can claim holder fees without holding due to unprotected reentrancy path
### Description
A subject creater can keep on [claiming holder fees](https://github.com/code-423n4/2024-01-curves/blob/516aedb7b9a8d341d0d2666c23780d2bd8a9a600/contracts/FeeSplitter.sol#L80) on 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 | high | other | true | false | ## High: RToken's transfer function lead to loss of funds due to incorrect math
### Description
The RToken's `transfer` and `transferFrom`functions incorrectly apply scaling in the transfer amount, which causes the `_update` function, which is triggered at the end of the transfer flow, to apply a second scaling, thus ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unchecked zero address for profit handler can lead to loss of profits
### Description
## Severity: Low Risk
**Context:** AToken.sol#L597
**Description:** During a rebalance (AToken rehypothetication), profits made from a strategy are evaluated and sent to a `_profitHandler` address.
However, it is not chec... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incomplete ERC20 Interface
### Description
The [`IERC20`](https://github.com/PolymathNetwork/polymath-token-distribution/blob/672fabe081e8f90ea025252d92c2eb247d60010e/contracts/interfaces/IERC20.sol) contract defines the basic interface of a standard token to be used by the [`PolyToken`](https://github.com/Pol... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | timing | true | true | ## Medium: `LibLastReserveBytes::storeLastReserves` has no check for reserves being too large
### Description
After every liquidity event & swap, the `IPump::update`()` is called.
To update the pump, the `LibLastReserveBytes::storeLastReserves` function is used. This packs the reserve data into `bytes32` slots in stor... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: First chunk having cpu chip is incorrectly checked in convert circuit
### Description
In the convert recursion circuit, there's a check preventing the first chunk from having no CPU chip:
[convert/builder.rs#L220-L221](https://github.com/brevis-network/pico/blob/3046e89b1c7bf065b7932d859a06a24920d57531/vm/... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Additional check is required at Staking.sol
### Description
**Description**
In function stakeFor() there is no verification for the zero address for the beneficiary address.
**Recommendation**:
Add check for the zero address for beneficiary to internal function _stakeFor(). | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | false | false | ## Low: Add an identifier or descriptor to `PriceStorage` which indicates what token or other entity is being priced
### Description
The `PriceStorage` contract contains no identifier or descriptor that would readily indicate what is being priced.
Consider adding an identifier or a descriptor such as a string that ha... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | flash-loan | false | false | ## High: Unexpected Entry Point Leads to User Impersonation
### Description
Both `WidoCollateralSwap_Aave.executeOperation` and `WidoCollateralSwap_ERC3156.onFlashLoan` check if the message sender is an authorized flash loan provider but neither check to see if the loan originated from the swap contract itself. This 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 | initialization | false | false | ## Low: LACK OF DISABLEINITIALIZERS IN THE IMPLEMENTATION CONTRACT
### Description
The `Saferoot` contract uses the `Initializable` module from OpenZeppelin, and the implementations of this contract are not marked as initialized in the constructor. An uninitialized instance can be initialized by anyone to take over th... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: Function ordering does not follow the Solidity style guide
### Description
According to the [Solidity style guide](https://docs.soliditylang.org/en/v0.8.17/style-guide.html#order-of-functions), functions should be laid out in the following order :`constructor()`, `receive()`, `fallback()`, `external`, `public`... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: restartDca lacks data validation
### Description
The `restartDca` function has similar functionality to the `createDca` function; however, it lacks important safety checks and could be abused.
`restartDca` behaves similarly to `createDca`. It sets up a DCA and stores its parameters and owner.
```solidity... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | false | false | ## Medium: totalMembers Can Be Manipulated
### Description
The `lockTokens()` function is used by a user to lock tokens and gain voting power. This function, however, can be used to manipulate the `totalMembers` variable because it accepts zero amount as an input. A malicious user can call `lockTokens()` as many times... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | access-control | true | false | ## Medium: Lack of events for critical operations
### Description
Two critical operations do not trigger events. As a result, it will be difficult to review the correct behavior of the contracts once they have been deployed. The LiquidityPoolProxy contract’s `setImplementation` function is called to set the implementa... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: Misleading specification [core]
### Description
The EIP [states](https://github.com/eth-infinitism/account-abstraction/blob/6dea6d8752f64914dd95d932f673ba0f9ff8e144/eip/EIPS/eip-4337.md?plain=1#L365) that when a `FailedOp` is detected, all other operations from the same paymaster should be removed from the cur... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: validateOrder(...) does not check the consideration amount against its token balance
### Description
When a lien position gets liquidated, the CollateralToken creates a full restricted Seaport auction with itself as both the offerer and the zone. This will cause Seaport to do a callback to the CollateralTok... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Subtraction might revert.
### Description
**Description**
Line 181. Storage variable ‘eqFeePool’ collects fees in function swapRemote() and subtracts
fees in function swap(). However, in case swap() is executed before swapRemote() has been
executed, subtraction ‘eqFeePool = eqFeePool.sub(s.eqReward);’ migh... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: BaseRouter and BaseQuoter can be defined abstract
### Description
The contracts **BaseRouter** and **BaseQuoter** are currently defined using the `contract` keyword, but since they serve as base contracts for inheritance, they should be declared as abstract contracts.
### Recommendation
Consider declaring both... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | false | false | ## Low: Code Simplifications
### Description
A number of opportunities for simplification of code were observed. Consider applying the following code simplifications:
* Contracts [`GaugeV2`](https://github.com/ThenafiBNB/THENA-Contracts/blob/2bb84cf6bb429e9bac8ac8464f4546da855ef4ca/contracts/GaugeV2.sol) and [`Gauge... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | token | false | false | ## Medium: Deposits don't work with fee-on transfer tokens
### Description
_Submitted by cmichel_.
There are ERC20 tokens that may make certain customizations to their ERC20 contracts.
One type of these tokens is deflationary tokens that charge a certain fee for every `transfer()` or `transferFrom()`.
Others are reba... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect accounting of commissions
### Description
In the [`placeOrder`](https://github.com/longgammalabs/hanji-contracts/blob/09b6188e028650b9c1758010846080c5f8c80f8e/src/OnchainLOB.sol#L261) function, the `total_commission` value is accounted for twice: once as the commission and once as the `token_y` 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 | low | initialization | true | false | ## Low: Anyone can call the initializeDependencies function in CashMarket.sol
### Description
The [`initializeDependencies`](https://github.com/notional-finance/contracts/blob/b6fc6be4622422d0e34c90e77f2ec9da18596b8c/contracts/CashMarket.sol#L34) function in the `CashMarket` contract initializes the addresses of the 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 | high | other | true | false | ## High: Voting Tally Does Not Count the Zero Action
### Description
The function `endProposal()` allows users to tally votes and determine the winning action on a proposal after `block.timestamp` exceeds the proposal `endTime`. Voting is tallied using the following logic:
```solidity
uint256 winningAction = 0;
uint2... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Multiples initializations of `JBTiered721Delegate`
### Description
The `initialize` method of the `JBTiered721Delegate` contract has as a flag that the `_store` argument is different from `address(0)`, however, it can be initialized by anyone with this value to allow the project to continue with its usual 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 | medium | liquidation | false | false | ## Medium: Inconsistency When Accruing Interest for a Single ILK vs. All ILKs
### Description
The `IonPool` contract contains two internal functions for accruing interest: the [`_accrueInterestForIlk` function](https://github.com/Ion-Protocol/ion-protocol/blob/98e282514ac5827196b49f688938e1e44709505a/src/IonPool.sol#L... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | access-control | true | false | ## Medium: paucheTranche state can be set to arbitrary value
### Description
paucheTranche state can be set to arbitrary value
### Proof of Concept
The protocol has this concept of tranche id and borrower tier, the higher borrower tier means higher risk.
Lower borrower tier means lower risk.
When liquidation happe... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | input-validation | true | false | ## Low: Consider enforcing minimum redemption amounts in `PublicStockOffRamp, SecuritizeOffRamp::redeem`
### Description
The `PublicStockOnRamp` contract enforces a minimum subscription amount check via the `validateMinSubscriptionAmount` modifier to prevent dust trades:
```solidity
modifier validateMinSubscriptionA... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: Cache identical storage reads
### Description
Reading from storage is expensive; cache identical storage reads:
* `RequestsManager.sol`:
```solidity
// cache `request.amount` in `RequestsManager::completeBurn`
239: issueToken.burn(_idempotencyKey, address(this), request.amount);
244: emit BurnRequestComp... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | true | ## Medium: Auctioneer Cannot Be Removed From The Protocol
### Description
If a vulnerable Auctioneer is being exploited by an attacker, there is no way to remove the vulnerable Auctioneer from the protocol.
### Impact
In the event that a whitelisted Auctioneer is found to be vulnerable and has been actively exploited... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 `BootstrapPool`’s Buy and Sell Functions Lack Slippage Protection
### Description
There is no slippage protection on any of the `buy` or `sell` functions within the `BootstrapPool` contract. While it is likely that users will be expected to interact with the bootstrap pool via the `AgentRouter` contract, n... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | upgrade | true | false | ## Low: Misleading event emission in `USDCBridgeV2::addBridgeCaller, removeBridgeCaller` when role was not granted or revoked
### Description
`AccessControlUpgradeable::_grantRole,_revokeRole` [return](https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable/blob/master/contracts/access/AccessControlUpgradea... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: tokens are not recoverable from the Giver contract
### Description
## Giver Contract Overview
## Context
**Location:** `Giver.sol#L131-L150`
**Description:**
The Giver contract is located at a precomputed address based on an account ID. Users can send ERC20 tokens directly to this address, ensuring that 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 | gas | token | true | false | ## Gas: Storage update and decoding can be performed after the require statements in uniswapV3SwapCallback(...)
### Description
In case one of the require statements in the above context fails, it would be more gas efficient to apply the storage update and decoding of the provided data after checking all the requireme... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | medium | other | true | false | Source: https://github.com/sherlock-audit/2023-02-hats-judging/issues/36
## Found by
Bauer, cducrest-brainbot, rvierdiiev, obront, carrot
## Summary
There are protections in place to ensure that `minThreshold` is not set above `targetThreshold`, because the result is that the max threshold on the safe would be les... | Sherlock | 5 | Hats |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | false | false | ## Medium: Aquifer is vulnerable to Metamorphic Contract Attack
### Description
The [Aquifer](https://github.com/code-423n4/2023-07-basin/blob/9403cf973e95ef7219622dbbe2a08396af90b64c/src/Aquifer.sol#L40-L64) contract supports multiple ways to deploy the `Well` contracts. More specifically, it supports `create` and `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 | high | dos | true | false | ## High: Griefing vector via arbitrary minting of iUSD tokens
### Description
The mint function in the `InfiniFiGatewayV1` contract allows anyone to mint iUSD receipt tokens to an arbitrary address specified by the `_to` parameter. This functionality introduces a significant griefing vector that can disrupt user and 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 | other | false | false | ## Medium: `FeeBuyback` native token can not be rescued
### Description
Lack of methods to rescue native tokens trapped in the `FeeBuyback` contract.
### Impact
The leftover native tokens trapped in the contract can not be rescued.
### Recommendation
Consider adding support to rescue native tokens. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | false | false | ## Medium: Incorrect checking in `_assertUserHasEnoughGiantLPToClaimVaultLP`
### Description
The batch operations of `withdrawDETH()` in GiantSavETHVaultPool.sol and `withdrawLPTokens()` in GiantPoolBase.sol are meaningless because they will fail whenever more than one lpToken is passed.
Each user can perform `withdra... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: cancelOrdersUpTo can be used to permanently block future orders
### Description
Users can cancel an arbitrary number of future orders, and this operation is not reversible. The `cancelOrdersUpTo` function (Figure 3.1) can cancel an arbitrary number of orders in a single, fixed-size transaction. This 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 | low | other | false | false | ## Low: Potentially Inaccurate Quorum Calculations
### Description
**Update**
The client provided the following explanation:
> This is a design behavior. The whitelist status will not be changed after deployment.
**File(s) affected:**`Web3MusicNativeTokenDAO.sol`
**Description:**`Web3MusicNativeTokenDAO` contract 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 | medium | other | false | false | ## Medium: Non-ideal rETH/WETH pool used pays unnecessary fees
### Description
rETH is acquired using the Uniswap rETH/WETH pool. This solution has higher fees and lower liquidity than alternatives, which results in more lost user value than other solutions.
The Uniswap rETH/WETH pool that is used in Reth.sol to make... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Avoid comparing a bool to true in onlyOwnerOrPriviledgedUser()
### Description
In the `onlyOwnerOrPriviledgedUser()` modifier, comparing `priviledgedUsers[msg.sender]` with `== true` in the second condition is redundant.
```solidity
modifier onlyOwnerOrPriviledgedUser() {
require(msg.sender == owner() || 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 | timing | true | true | ## Medium: `Vault::unbondingActive` can be out of sync with Chainlink and `FundFlowController` bonding
### Description
Each vault has a call to query whether its currently in an unbonding period, `Vault::unbondingActive`:
```solidity
function unbondingActive() external view returns (bool) {
return block.ti... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | token | false | false | ## Medium: Incompatibility with Rebasing/Deflationary/Inflationary tokens
### Description
The Algebra protocol does not appear to support rebasing/deflationary/inflationary tokens whose balance changes during transfers or over time. The necessary checks include at least verifying the amount of tokens transferred to 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 | medium | flash-loan | false | false | ## Medium: Improper slippage tolerance can leads to unexpected results
### Description
**Severity**: Medium
**Status**: Resolved
**Description**
The `FlashloanLiquidator.executeOperation` function is called when a flash loan is made and can only be triggered by an Aave pool after receiving flashloan. The purpose o... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | dos | false | false | ## High: AnteHandler Skipped In Non-CheckTx Mode
### Description
## Cosmos AnteHandlers
Cosmos AnteHandlers are used to implement basic validity checks against transactions to ensure that malformed and malicious transactions are blocked from execution. Since validators are able to insert arbitrary transactions 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... | cyfrin_structured | low | other | true | false | ## Low: Unutilized `position_collection` Field in Events
### Description
When a user stakes and withdraws, `CLMMPositionStaked` and `CLMMPositionWithdrawn` events are emitted respectively.
Both of these events include a `Pubkey` field named `position_collection`.
However in both actions, that field is emitted as `Pubk... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Miscellaneous gas optimisations
### Description
Throughout the course of the review, the testing team encountered various opportunities for reductions in gas consumption.
### Recommendation
The comments above have been acknowledged by the development team, and relevant changes actioned in commits `1e7b0b0`, `... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: No validation of the address parameter value in contract constructor
### Description
The variable is assigned the value of the constructor input parameter. But this parameter is not checked before this. If the value turns out to be zero, then it will be necessary to redeploy the contract, since there is no ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | true | false | ## Low: Missing pure in function definition
### Description
**Severity**: Informational
**Status**: Resolved
**Description**
In NarwhalPriceAggregator - tenPow() is recommended to be defined as a pure function.
**Recommendation**
Add pure to function definition.
Fixed: Issue fixed in commit a72e06b | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Potential EVM Compatibility Issue in Solidity Version `>=0.8.20`
### Description
**Update**
Fixed in `fb7263a6fe32aa2e32c8a287cb6bfbbdff527e4e`. All contracts use `pragma solidity 0.8.19`.
**Description:** According to the project configuration files, the contracts are compiled in Solidity version `0.8.20` wi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: SharesManager._mintShares - Depositors may receive zero shares due to front-running
### Description
The number of shares minted to a depositor is determined by
\[
\text{shares} = \frac{\text{underlyingAssetValue} \times \text{totalSupply()}}{\text{oldTotalAssetBalance}}
\]
Potential attackers can spot a ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | cross-chain | false | false | ## Low: Not possible to rehash `DOMAIN_SEPARATOR` in `MultiSigWallet` to update chainId if is ever required
### Description
**Description:** `MultiSigWallet` does not have a function to rehash the `DOMAIN_SEPARATOR` in case it is required to update the chainId, which was used for the initial DOMAIN_SEPARATOR when 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 | token | false | false | ## Low: [50] Airdrops are automatically lost for the `L1ERC20Bridge`
### Description
### Proof of Concept
Take a look at https://github.com/code-423n4/2024-03-zksync/blob/4f0ba34f34a864c354c7e8c47643ed8f4a250e13/code/contracts/ethereum/contracts/bridge/L1ERC20Bridge.sol
Contract is obviously a bridge that allows 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... | skyward_49k | high | cross-chain | false | false | ## High: Unsafe `replyNeeded` Messaging Mechanism
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation:
> Since a fix for this change would include some significant change to the already deployed contracts (with funds at stake), we are avoiding adding a fix ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: MigratorZap 's _v2ToV3Vault() pushes the ERC-1155 tokens directly to the v3 Vault, breaking up its mint, which renders MigratorZap unavailable for ERC-1155 underlyings
### Description
The `_v2ToV3Vault()` function redeems directly to the v3 Vault all the time. However, this approach works only for ERC-721 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 | high | access-control | false | false | ## High: Insufficient Slippage Check
### Description
The [`BaseCustomAccounting` hook](https://github.com/OpenZeppelin/uniswap-hooks/blob/f051c147dbf296b2b854de92970905a880cd1d51/src/base/BaseCustomAccounting.sol#L35) requires users to modify the associated UniswapV4 pool's liquidity only via the hook itself. The liqu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Kernel - onRpcRequest Misleading Function Documentation ✓ Fixed
### Description
The `onRpcRequest` function documentation contains incorrect information about the return value. The JSDoc comment states that the function “The result of `snap_dialog`” while the actual implementation returns the result of the 771... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: While ‘particlePositionManager contract is paused, positions could go liquidatable
### Description
The `Contract ParticlePositionManager` uses the modifier `whenNotPaused` from the inherited contract `PausableUpgradeable` to disallow calling certain functions if the contract is paused. The following functio... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `initialAnchor` not validated to be `>= IWAD`
### Description
_Resolved_
The `initialAnchor` is used to adjust the interest rate around a point at which trading will be the most capital efficient. If `initialAnchor = 1e18` upon market creation:
Consider validating `initialAnchor` upon pool deployment as wel... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Pool owner can sandwich deposits into his pool to keep their fs at 1 while being able to withdraw ETH earnings
### Description
## Trust Score Overview
**Context:**
(No context files were provided by the reviewer)
**Description:**
The trust score depends on three factors: total ETH staked in the 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 | token | false | false | ## Low: Id fields for transfers are not unique
### Description
Comments in the code inside the `CeFiSmartTransfer` and `DeFiSmartTransfer` contracts declare that the `id` field in the `NativeTransfer` , `Erc20Transfer` and `Transfer` structs represents a unique identifier for the transfer.
```
string id; // A unique ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect storage slot annotation in `Storage::SiloSettings`
### Description
While it appears that the order struct members in storage have not changed, the storage slot annotation of [`Storage::SiloSettings`](https://github.com/BeanstalkFarms/Beanstalk/blob/dfb418d185cd93eef08168ccaffe9de86bc1f062/protocol/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 | medium | liquidation | false | false | ## Medium: No mechanism to settle out-of-money put options even after Bond receipt token is redeemed.
### Description
In the current implementation of `PerpetualAtlanticVault::settle`, the only way an `optionId` can be burnt is when the option is in-the-money. Note that at the time of bonding, a put option that is 25%... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | token | false | false | ## Medium: M01] Token allowances are tracked in different contracts
### Description
###### Medium
The [`BeamBalanceStore`](https://github.com/BeamNetwork/currency/blob/c0d8477866a8667a37f45c85378c5938c84569cd/contracts/currency/BeamBalanceStore.sol) [contract](https://github.com/BeamNetwork/currency/blob/c0d8477866a... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Dynamic lending fees vulnerability: uncertain protocol fees during loan refinance
### Description
The lending fees in the protocol are subject to change, leading to potential discrepancies between initially agreed-upon values and the actual fees during loan repayment or refinance. The `setLendingFee` function in... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Efficient Memory Reallocation
### Description
## AddPrincipleAdmin Context
In the context of `AddPrincipleAdmin`, each time a new admin is added, the account is reallocated with an additional 64 bytes. However, a single public key is only 32 bytes in size. This implies that half of the reallocated space (32 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 | false | false | ## High: Calculation of `tokensToWithdraw` is wrong.
### Description
**Severity**: High
**Status**: Resolved
**Description**
In the `withdrawAirdropTokens()` and `getCurrentAirdropBalance()` functions, `tokensToWithdraw` is assumed to be calculated by multiplying `airdropTokenPerDay` by the number of days passed si... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Avoid calling the same internal function multiple times
### Description
Calling an internal function will cost at least ~16-20 gas (JUMP to internal function instructions and JUMP back to original instructions). If you call the same internal function multiple times you can save gas by caching the return value ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | signature | false | false | ## Low: Miscellaneous General Comments
### Description
This section describes general observations made by the testing team during this assessment.
1. **Reliance on client-side security**: The security of the backup/recovery process of the Dapper Ethereum smart contract wallet is highly dependent on the users’ device... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: CONFIGURATION PARAMETER COULD NOT BE UPDATED
### Description
The instantiate function did not set the `cw20_token_contract` address, as done with other contract addresses required in the configuration. Instead, it relied on `update_config` being called post initialization, which could cause undesirable situati... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: Queued withdrawals should use an external protocol-owned unlocker to prevent `BunniHub` earning referral rewards
### Description
When the am-AMM is enabled with an active manager, withdrawals must be queued:
```solidity
function withdraw(HubStorage storage s, Env calldata env, IBunniHub.WithdrawParams cal... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 revert message in `transfer` function (line 39) of UniMexToken.sol
### Description
**Description**
In contract UniMexToken.sol in function transfer at line 39 there's no revert message.
**Recommendation**
Add a revert message.
**Re-audit comment**
Unresolved | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Airdrop Constants
### Description
## Maintenance Concern with Undocumented Constants
The use of undocumented constants potentially raises a maintenance concern.
## File Reference
`rewards/src/state/airdrop.rs`
### Struct Fields
It is not clear that `400024` must be kept in sync with the size of `AirdropTa... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Past or current grace period can be setup : conflicting the natspec of new reservedata struct
### Description
The `Pool.sol - setLiquidationGracePeriod`:
```solidity
/// @inheritdoc IPool
function setLiquidationGracePeriod(
address asset,
uint40 until
) external virtual override onlyPoolConfigurator {
re... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | liquidation | false | false | ## Low: [07] Definition mix-up in documentation
### Description
Reference:
The definitions for the `Collateral Savings Strategy` and `Borrowed Asset Savings Strategy` have been mixed up.
### Recommended Mitigation Steps | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [ACKNOWLEDGED] Impossible to withdraw partial amount
### Description
The functions [`withdrawStablecoin`](https://github.com/Into-the-Fathom/fathom-stablecoin-smart-contracts/tree/3768c87367d286ae0e82f444b2f9d760417b507e/contracts/main/fathom-SDK/FathomProxyWalletOwner.sol#L144) and [`withdrawXDC`](https://git... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 modifier on functions may cause unexpected behavior
### Description
InfraredUpgradeable defines a modifier `whenInitialized` which enforces a function to only be callable after the contract has been initialized, i.e., when `initialize()` has been called. While Infrared applies this modif... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `claimUnassignedAsset` `_percentage` can be more than 1e18
### Description
**Impact**
https://github.com/blkswnStudio/ap/blob/8fab2b32b4f55efd92819bd1d0da9bed4b339e87/packages/contracts/contracts/BorrowerOperations.sol#L614-L620
Maybe abused for exploit, I haven't spent a lot of time on this, it's best to 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... | solodit_api | high | front-running | false | false | ## High Risk Vulnerability Report
## Severity
High Risk
## Context
YieldManager.sol#L51-L61
## Description
The yield manager can mint additional tokens whenever the value of the backing assets is higher than the total amount of shares. The method for determining the current value of backing assets relies on a call t... | Spearbit | 5 | Aragon Generic Money |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Ursula’s responses are unauthenticated
### Description
Ursula never signs her response to work orders. Anyone can pretend to be her and respond to a given Bob.
### Recommendation
Require Ursula to sign responses to work orders. Require Bob to validate Ursula’s signed response. If communications have security ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | medium | Bypass limit | false | false | ## Severity: Medium Risk
## Context: FeeCollector.sol
### Description
There is a contract to pay fees for using the bridge: **FeeCollector**. This is used by crafting a transaction via the frontend API, which then calls the contract through `_executeAndCheckSwaps()`.
Here is an example of the contract of such a tra... | Spearbit | 5 | LI.FI |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Volatile pools with higher fee structure cannot be created because of tick_spacing
### Description
### Impact
Provision of liquidity for pools with high volatility will not be possible as such pools cannot be initiated with a tick spacing basis point greater than 256 because of the `tick_spacing` datatype ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | ## High: Troves can be improperly removed under certain circumstances which results in unexpected reverts
### Description
In certain circumstances, troves are not properly inserted in the sorted list and therefore, cannot be removed, causing unexpected revert and potential loss of funds. The list of troves is kept sor... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Slashing fails when node operator doesn’t have enough staked GGP
### Description
When creating a minipool the node operator is required to put up a collateral in `GGP`, the protocol token. The amount of `GGP` collateral needed is currently calculated to be 10% of the `AVAX` staked. This is calculated using ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unhealthy troves with LTV > 90% cannot always be absorbed as intended
### Description
Unhealthy troves with `ltv > 90%` and `threshold 90%`:
> Absorption can happen only after an unhealthy trove's LTV has exceeded the LTV at which the maximum possible penalty is reached, or if it has exceeded 90% LTV. The... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: [06] Inconsistent Use of NatSpec
### Description
NatSpec is a boon to all Solidity developers. Not only does it provide a structure for developers to document their code within the code itself, it encourages the practice of documenting code. When future developers read code documented with NatSpec, they are ab... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Publisher can lock all user funds in the Basket in order to force a user to have their bond burned
### Description
## Handle
TomFrenchBlockchain
## Vulnerability details
## Impact
All user funds in a basket being held hostage by the publisher
## Proof of Concept
The `Basket` publisher can propose an ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | access-control | true | false | ## Gas: Functions guaranteed to revert when called by normal users can be marked `payable`
### Description
If a function modifier such as `onlyOwner` is used, the function will revert if a normal user tries to pay the function. Marking the function as `payable` will lower the gas cost for legitimate callers because th... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Define `symbol` and `name` methods as `external`
### Description
At the line https://github.com/sushiswap/bentobox/blob/c2e150b16b8764ebfe2e1e6e267ae14e10738065/contracts/LendingPair.sol#L85 and https://github.com/sushiswap/bentobox/blob/c2e150b16b8764ebfe2e1e6e267ae14e10738065/contracts/LendingPair.sol#L95 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 | medium | access-control | false | false | ## Medium: NFT owner can change token URI
### Description
_Submitted by cmichel_
In the `ERC721OnChain` implementation the *token owner* can set the token's URI using `setTokenURI`.
Usually, this is token URI points to data defining the NFT (attributes, images, etc.).
It's usually set by the *contract* owner.
A user... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | false | false | ## Low: auth-checker’s use of checkRely is incomplete
### Description
The auth-checker script checks permissions settings within a deployment. Specifically, the script’s `checkRely` method checks the presence or absence of an edge within a contract’s wards mapping. The problem: There are edges that must be present tha... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | access-control | true | false | ## High: Malicious users can bypass the blacklist.
### Description
The protocol sets the blacklist through roles, and users can bypass the blacklist through the [renounceRole function](https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable/blob/f6febd79e2a3a17e26969dd0d450c6ebd64bf459/contracts/access/Acce... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Summoner can steal funds using bailout ✓ Fixed in Pull Pattern
### Description
Currently, there are 2 major reasons for using the `bailout` function:
1. Kick someone out of the LAO. If the shareholders vote for kicking somebody, the kicked user goes to jail at first. If the LAO kicks someone, it’s important... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.