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... | solodit_api | medium | dos | true | false |
<https://github.com/code-423n4/2025-05-blackhole/blob/92fff849d3b266e609e6d63478c4164d9f608e91/contracts/factories/GenesisPoolFactory.sol# L56-L67>
<https://github.com/code-423n4/2025-05-blackhole/blob/92fff849d3b266e609e6d63478c4164d9f608e91/contracts/factories/PairFactory.sol# L139-L151>
<https://github.com/code-... | Code4rena | 4.5 | Audit 507 |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Consider Using Named Mappings
### Description
The project is using Solidity version greater than 0.8.18, which supports named mappings. Using named mappings can improve the readability and maintainability of the code by making the purpose of each mapping clearer. This practice will enhance code readability 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 | cross-chain | true | false | ## Low: Incorrect minSend Check Allows Zero-Amount Transfers
### Description
The BridgeEVM contract contains a critical vulnerability in its implementation of the `minSend` check. The check is performed on the `amountWithFee` instead of the actual amount being sent, allowing for potential bypass of the minimum send li... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Shift-Overflow in getEquivalentLiq Inflates LP Shares
### Description
`PoolLib.getEquivalentLiq` computes the liquidity-equivalent value of token balances using left shifts prior to division. The term `(lyX128 << 96) / sqrtPriceX96` can overflow 256 bits before division, silently truncating high bits and sh... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | rounding | true | false | ## Low: The modified implementation of redeem is omitting a check to make sure not to redeem 0assets.
### Description
The modified implementation of `redeem` is omitting the check:
```solidity
// Check for rounding error since we round down in previewRedeem.
require((assets = previewRedeem(shares)) != 0, "ZERO_ASSETS... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | dos | true | true | Source: https://github.com/sherlock-audit/2024-01-napier-judging/issues/111
The protocol has acknowledged this issue.
## Found by
Arabadzhiev
## Summary
Using computed pool addresses to verify the callback function callers is collision attack prone and can be abused in order to steal all token allowances of the `N... | Sherlock | 5 | Napier |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | oracle | false | false | ## Low: Potential `Out of range` error
### Description
At the lines https://github.com/iearn-finance/yoracle.link/blob/faf1309cbe7a05f70b338351315039eb8e5b9c09/contracts/Keep3rV1Oracle.sol#L656, https://github.com/iearn-finance/yoracle.link/blob/faf1309cbe7a05f70b338351315039eb8e5b9c09/contracts/Keep3rV1Oracle.sol#L69... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | signature | false | false | ## Gas: [15] Empty blocks should be removed or emit something
### Description
### Proof of concept
*There are 10 instances of this issue.*
### Mitigation
The code should be refactored so they no longer exist; or the block should do something useful, such as emitting an event or reverting. If the contract is meant... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | overflow | true | true | ## Severity
**Impact**: Medium, temporary DOS of funds
**Likelihood**: Medium, occurs when funds are staked / used in the protocol
## Description
The `Vesting` is used to lock funds on behalf of a user while giving them the ability to participate in the protocol. The idea behind the contract is that the amount of f... | Pashov Audit Group | 4 | Subsquid |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Many `create` methods are suspicious of the reorg attack
### Description
### Proof of Concept
There are many instances of this; but to understand things better, take the example of the `createTalosV3Strategy` method.
The `createTalosV3Strategy` function deploys a new `TalosStrategyStaked` contract using t... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | overflow | true | false | ## Medium: Try-catch block at Auction._createAuction() will only catch string errors
### Description
## Lines of code
https://github.com/code-423n4/2022-09-nouns-builder/blob/7e9fddbbacdd7d7812e912a369cfd862ee67dc03/src/auction/Auction.sol#L234
## Vulnerability details
The `_createAuction` function wraps the `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... | cyfrin_structured | low | reentrancy | true | false | ## Low: Improper deadline handling
### Description
The Bera module shows improper handling of transaction deadlines in DEX operations:
- KodiakV2/V3 operations use `type(uint256).max` as deadline:
```solidity
// Bera.sol
function bera_kodiakv2_add(...) {
kodiakv2.addLiquidity(..., type(uint256).max);
}
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... | cyfrin_structured | medium | reentrancy | true | true | ## Medium: Incomplete validation in `OpNetVaultAutoDeploy` allows invalid burner configuration for registering operators with auto vault deployments
### Description
`OpNetVaultAutoDeploy._validateConfig()` is missing burner address validation that could lead to deployment failures. The function fails to validate a con... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | false | false | ## High: SpeedBumpPriceGate: Excess ether did not return to the user
### Description
_Submitted by cccz, also found by 0x52, 0xYamiDancho, csanuragjain, GimelSec, gzeon, hickuphh3, horsefacts, hyh, IllIllI, kenzo, leastwood, PPrieditis, reassor, unforgiven, WatchPug, and danb_
The `passThruGate` function of the `Spee... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Event not emitting
### Description
After manager update, event is not emitting:
https://github.com/Gearbox-protocol/gearbox-contracts/blob/0ac33ba87212ce056ac6b6357ad74161d417158a/contracts/tokens/GearToken.sol#L115
### Recommendation
We recommend to emit events after updating storage variables. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `AutoRedemption::calculateUSDsToTargetPrice` could be refactored to avoid repeated logic
### Description
**Description:** When calculating the target `USDs` amount, the call to `LiquidityAmounts::getAmountsForLiquidity` is common to both conditional branches, with the liquidity parameter being the only 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 | high | signature | true | false | ## High: Signature replay in `createArt` allows to impersonate artist and steal royalties
### Description
Function [`PhiFactory::createArt()`](https://github.com/code-423n4/2024-08-phi/blob/8c0985f7a10b231f916a51af5d506dd6b0c54120/src/PhiFactory.sol#L196-L213) doesn't limit the signature to either the specific submitt... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Option NFTs can be exercised by any account
### Description
**Severity**
**Impact:** High
**Likelihood:** High
**Description**
The `exercise` function flow does not check if the margin account owns the token to be exercised. This allows any account to exercise the options of another account and get its pr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Manager gets different views of strategy 's balance
### Description
These functions call `manager.withdrew()` and withdraw underlying token in the opposite order. It would be good to be consistent here. The manager may depend on strategy existing balance.
### Recommendation
Make this order consistent by first... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | reentrancy | true | false | ## Low: Event in secondaryLiquidation could be misused to show false liquidations
### Description
The **`liquidateSecondary`** function in the protocol is designed to emit events detailing the specifics of liquidation, which can be crucial for other protocols or front-end integrations that track secondary liquidations... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [08] The function `changeBondingCurveAllowed()` will not be able to disable previously boundcurves that have been used in some share creation
### Description
It can only used to prevent future share creation to use the curve again.
[Market.sol#L104-L108](https://github.com/code-423n4/2023-11-canto/blob/33593... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `UUPSUpgradeable` was not removed from `KintoWallet`.
### Description
- https://github.com/KintoXYZ/kinto-core/blob/f7dd98f66b9dfba1f73758703b808051196e740b/src/wallet/KintoWallet.sol#L29
Since `KintoWallet` is currently `BeaconProxy`(https://github.com/KintoXYZ/kinto-core/blob/f7dd98f66b9dfba1f73758703b80... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Wrong percent for `FraxlendPairCore.dirtyLiquidationFee`.
### Description
After confirming with the sponsor, `dirtyLiquidationFee` is 90% of `cleanLiquidationFee` like the [comment](https://github.com/code-423n4/2022-08-frax/blob/c4189a3a98b38c8c962c5ea72f1a322fbc2ae45f/src/contracts/FraxlendPairCore.sol#L1... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | liquidation | false | false | ## High: Liquidators cannot reclaim underlying asset when there is enough liquidity
### Description
When calling the [`liquidationCall` function](https://gitlab.com/aave-tech/dlp/contracts/blob/1f8e5e65a99a887a5a13ad9af6486ebf93f57d02/contracts/lendingpool/LendingPool.sol#L574) to liquidate a borrow position, liquidat... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [04] `TwTAP` position not burnt on exit
### Description
When exiting a position in `TapiocaOptionBroker`, the users `oTAP` position [is burned](https://github.com/Tapioca-DAO/tap-token/blob/20a83b1d2d5577653610a6c3879dff9df4968345/contracts/options/TapiocaOptionBroker.sol#L353).
This is not done when exiting ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | false | false | ## High: Important state updates are made after the callback in the mint() function
### Description
_Submitted by jayjonah8_
In TimeswapPair.sol, the `mint()` function has a callback in the middle of the function while there are still updates to state that take place after the callback. The lock modifier guards agai... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | false | ## Medium: registerWallet() doesn't verify the wallet is a real Safe
### Description
A wallet can register itself via `registerWallet()`. However, no check is done to verify that this wallet is actually a Safe. Additionally, there is no check to determine if this wallet has a supported version. As the Brahma logic use... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Impossible to `setCreationCode()` with code size less than 13K
### Description
_Submitted by 0xA5DF_
### Vulnerability Details
In case of setting the creation code to less than 13K the creation would fail at 2 points:
* [`BytesLib.slice(_creationCode, 0, 13000)`](https://github.com/code-423n4/2022-08-f... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | initialization | true | false | ## Medium: Token Overburn Risk
### Description
## Summary of _burn Function Verification Issue in DN404
In `DN404::_burn`, the contract verifies whether the current balance (`fromBalance`) is less than the product of `lockedLength` and `_unit()`. If this verification is successful, the contract reverts with an `Insuf... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | cross-chain | false | false | ## Medium: Airdrop pool can be drawn by a maintainer.
### Description
**Severity**: Medium
**Status**: Resolved
**Description**
ChainportMainBridge.sol, releaseTokens()
ChainportSideBridge.sol, mintTokens()
The caller can set any airdropAmount up to the max available, drawing all available liquidity.
Despite that... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | overflow | false | false | ## Low: SafeMath and SafeCast Usage
### Description
The contract does not utilize Solmate's FixedPointMathLib or OpenZeppelin's SafeCast libraries for arithmetic operations, which could streamline the readability of the code.
### Recommendation
We recommend using FixedPointMathLib and SafeCast libraries to handle ari... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Voting cap can be manipulated
### Description
The [`canReceiveVotes` function](https://github.com/celo-org/celo-monorepo/blob/7be22605e172ca536c028e408b147aab83202e4a/packages/protocol/contracts/governance/Election.sol#L741) of the `Election` contract determines whether more votes can be cast for a specific gr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Erroneous UserBalance Restriction in Withdrawal Validation
### Description
https://github.com/aave/protocol-v2/blob/f435b2fa0ac589852ca3dd6ae2b0fbfbc7079d54/contracts/libraries/logic/ValidationLogic.sol#L68
It looks like `userBalance` is erroneously used instead of `amount`. This will result in overly strict... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Staking Before Operator Leads To No swETH Minted
### Description
The first staking call to a validation node is intended to be done by the operator, in which the operator sends a 1 or 16 ETH deposit (assuming they are not in the super whitelist). However, no validation is done to check if the first user sta... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Approve amount 0 for tokens to previously used routers/managers
### Description
**Severity**: Low
**Status**: Resolved
**Description**
In Contract HedgedThetaVault, the method `setRewardRouter(...)` approves HedhedThetaVault tokens of amount type(uint).max to _thetaRewardTracker but does not approve 0 to al... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | cross-chain | true | false | ## Gas: Combine checkEvmChainSettingsAdapter and checkEvmChainSettingsIsEnabled to improve gas efficiency
### Description
The `Bridge.sol` contract currently uses two separate modifiers, `checkEvmChainSettingsAdapter` and `checkEvmChainSettingsIsEnabled`, to validate EVM chain settings. These modifiers validate the same... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | dos | false | false | ## High: Unable to claim vesting due to unbounded timelock loop
### Description
_Submitted by nathaniel, also found by WatchPug, leastwood, and pauliax_
#### Impact
The timelocks for any *beneficiary* are unbounded, and can be vested by someone who is not the *beneficiary*. When the array becomes significantly big e... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | cross-chain | false | false | ## Low: Missing emit of orderFilled event in Eco7683DestinationSettler may affect offchain moni- toring
### Description
The `Eco7683DestinationSettler` contract declares the event `orderFilled(bytes32 _orderId, address _solver)`, which is intended to be emitted "when an intent is fulfilled using Hyperlane instant prov... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | signature | true | false | ## Gas: isValidSignature() in Nexus.sol can be optimized for cases when the call is not a ERC7739 detection request
### Description
Currently, the `isValidSignature()` function on Nexus calls into `checkERC7739Support()` for all calls. The `checkERC7739Support()` function returns false in two cases:
- When the call 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 | signature | false | false | ## Low: Events indexing
### Description
Events should use indexed fields
### Proof of Concept
Instances include:
#### InfinityExchange.sol
[event CancelAllOrders(address user, uint256 newMinNonce)](https://github.com/code-423n4/2022-06-infinity/blob/765376fa238bbccd8b1e2e12897c91098c7e5ac6/contracts/core/InfinityE... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: No controllers can be deployed if certain tokens are chosen as `feeAsset`
### Description
[WildcatMarketController Line 345](https://github.com/code-423n4/2023-10-wildcat/blob/main/src/WildcatMarketController.sol#L345)
### Issue Description
The `MarketControllerFactory` allows for setting an `originationFeeA... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unnecessary read function
### Description
**Description**
Public variables can be accessed directly, without additional function. Contract will become
less in size and cheaper to deploy.
**Recommendation**:
Unless there is a special requirement, variable mintingNonce can be set to public and function
getMin... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Wrongly calculated ETH amount to transfer
### Description
At lines https://github.com/bondappetit/bondappetit-protocol/blob/355180f0aca0b29d60d808f761052956b7a3a159/contracts/profit/ProfitSplitter.sol#L198-L205 contract swaps whole `splitterIncomingBalance` to ETH if `splitterIncomingBalance` insufficient to ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Investigate failing differential fuzz tests
### Description
As mentioned in appendix C, during the review we developed a preliminary differential fuzzing harness between Automata Network’s X509Helper library and Golang’s X509 standard library to try and identify implementation errors or edge-cases. While runni... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Risk of Incorrect Spread Calculation
### Description
In the `updateAndGetEpochPrice` function, when a new price is fetched from the oracle, the stored exponent (`epochPriceData.expo`) is compared with the current oracle exponent (`pythPrice.expo`). If these values differ, the function rescales the stored 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 | low | flash-loan | true | false | ## Low: Unused Import
### Description
The following dependency is imported but never used:
**code/contracts/mainnet/flashloans/Flasher.sol:L13-L13**
```
import "../../interfaces/IFujiMappings.sol";
```
### Recommendation
Remove the unused import. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | token | true | true | ## Medium: Native funds can be lost by submit() as msg.value isn't synchronized with amount
### Description
When used with native funds FeeBuyback#submit() doesn't check for the `amount` argument to correspond to `msg.value` actually linked to the call.
### Impact
Net impact is a fund loss proportional to the 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 | oracle | true | false | ## Low: Missing price staleness check `inAdapter::latestAnswer`
### Description
* Instances(2)
There are no staleness checks in multiple `latestAnswer` methods from the adapter. Due to latestAnswer is not used in flows in scope. No material impact.
1. [src/oracles/EETHPriceAdapter.sol# L77](():
2. [src/oracles... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Set token metadata during instantiation
### Description
The **stable\_pool** contract creates a new stable currency during instantiation, however, the metadata configuration is performed in the separate function `set_token_metadata`, which has its own entry point, thus completing the creation of the stable 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... | cyfrin_structured | low | other | true | false | ## Low: Use `uint256(1)/uint256(2)` instead of `true/false` to save gas for changes. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Limitations of Exposure Ceiling
### Description
An exposure ceiling was intended to be added as a control
- a) against supply attacks such as infinite minting which would allow draining of all funds in the pool
- b) disabling an asset to be used as collateral on new loans.
The exposure ceiling would red... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Arbitrum Sequencer Timestamps Can Affect the `maxLockDuration` Update
### Description
The Arbitrum L2 block timestamp and block number are derived following a set of specific rules, that could impact the update of the max lock.
### Impact
The Arbitrum timestamp is updated every L2 block (which block is delaye... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Transfer Ownership to an incorrect address
### Description
**Severity**: Medium
**Status**: Acknowledged
**Description**
The CPort contract contains the transferOwnership() function in contract allows the current admin
to transfer his privileges to another address. However, inside transferOwnership(), 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 | rounding | true | false | ## Low: rewardsToken may cause rounding issues if not 18 decimals
### Description
`ICLGauge.notifyRewardWithoutClaim` documents the following:
- Assumes gauge reward tokens is 18 decimals.
- If not 18 decimals, rewardRate may have rounding issues.
The reward token used with the `CLGauge` contract is `_contractStorag... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: burnToken does not verify token transfer success
### Description
_Resolved_
The `burnToken()` function in `FunnelVaultUpgradeable` uses a direct ERC-20 transfer to the burn address but does not check the return value. If the token does not strictly follow ERC-20 standards (e.g a non-compliant token that retur... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: ERC20 Transfer — Not All Tokens Return Boolean
### Description
Uses ERC20(token).transfer(...) and checks whether it returns true to confirm success. However, some widely-used tokens like USDT do not return any value on transfer, which causes the boolean check to fail and revert even if the transfer was suc... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 rewards distribution
### Description
Some of the rewards will be blocked on the contract if they were deposited to the empty gauge (when totalSupply == 0) https://github.com/curvefi/stableswap-ng/blob/8c78731ed43c22e6bcdcb5d39b0a7d02f8cb0386/contracts/main/LiquidityGauge.vy#L318 This happens because... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | ## Risk Assessment
## Severity
**Medium Risk**
## Context
- **Files Affected**:
- `MultiMerkleDistributor.sol` (#L260-L275)
- `balance-tree.ts` (#L30-L35)
- `MultiMerkleDistributor.sol` (#L126-L144)
## Description
The `MultiMerkleDistributor.sol` contract does not verify that the merkle tree belongs to the ri... | Spearbit | 5 | Paladin |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Directly sending dust token amount will slow down distribution in `MultiFeeDistribution.sol`
### Description
While sending a small amount and calling `getReward` is a typical example of griefing which is normally considered Medium. Given the low cost of the attack and that no specific external conditions need... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Market makers have a reduced cost for performing front-running attacks
### Description
The 0x Protocol 3.0 specification defines how protocol fees are calculated. The protocol fee can be calculated with `tx.gasprice * protocolFeeMultiplier`, where the `protocolFeeMultiplier` is an upgradable value meant to ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | dos | false | false | ## Medium: Gas Consumption Risk in `Pool.totalAssets()` Function
### Description
**Update**
Acknowledged. Reply from the Nemeos team:
> _Extremely unlikely considering a `SLOAD`cost 5k and max block limit is over 30M. Gas optimizations are not a priority as we will be on Polygon._
We still recommend a more gas-effic... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | liquidation | true | true | ## High: intToUint returns absolute values
### Description
The system uses a custom library, `FixedPointInt256`, for fixed-point integer (FPI) calculations. One of the widely used functions is `toScaledUint`:
```solidity
function toScaledUint (
FixedPointInt memory _a,
uint256 _decimals ,
bool _roundDown
) ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `MarketConfigStruct.sol` Config Maximum Size Checks Off-by-One
### Description
**Update**
Fixed in commit [ed06b18](https://github.com/blex-dex/contracts/commit/ed06b18) by changing the upper bound checks as suggested.
**File(s) affected:**`./contracts/market/MarketConfigStruct.sol`
**Description:** Contract... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | false | false | ## Medium: LACK OF RATE LIMITING
### Description
API requests consume resources such as network, CPU, memory, and storage. This vulnerability occurs when too many requests arrive simultaneously, and the API does not have enough compute resources to handle those requests.
During the assessment, no rate limitation poli... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: aaveAdapter.vy has no method to claim LP incentives
### Description
**Details**
Considering this low since the primary scope for this audit is mainnet Ethereum.
On alt L1's and L2's AAVE V3 frequently has LP incentives (such as OP tokens on Optimism). The current adapter has no methodology to claim these 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 | low | other | true | false | ## Low: earlyEndGame can be called several times for the same user
### Description
`earlyEndGame` function can be called by the admin when the user is defeated before the game has finished. In this case user loses some amount of funds and they are deducted from his balance.
There are 2 problems here:
- function doe... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | false | false | ## Medium: Not working method bulkMint.
### Description
**Description**
AccessTokenContract.sol function bulkMint()
The bulkMint method sequentially calls the_internalMint method, which in turn checks the
user's passport balance limit. That is, calling BulkMint with the number of -5, but with a limit of 1 - the tra... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | false | false | ## Low: Fulfillable ITM orders may not always be fulfilled
### Description
Currently, orders are only fulfillable via `LimitOrderRegistry::performUpkeep` which processes them
via the doubly linked list, with a limit of `maxFillsPerUpkeep` orders per call. Considering extreme and/or adversarial market conditions, 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 | storage | false | false | ## Low: Duplicate HederaTokenService Contracts
### Description
There are multiple instances of the `HederaTokenService` contract within the codebase, one in the `misc` directory and the other in the `tokenWrapper` directory. These contracts contain duplicated functions such as `createFungibleToken`, `mintToken`, `burn... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Verified smart wallet accounts can be used as proxies to facilitate swaps
### Description
Severity: Medium Risk
Context: VerifiedPoolsBasicHook.sol#L260-L344
Description: Smart contract wallets such as ERC-4337 contracts can receive attestations which allow interacting
with Coinbase's verified pools. These ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 scientific notation (e.g. `1e18`) rather than exponentiation (e.g. `10**18`)
### Description
While the compiler knows to optimize away the exponentiation, it's still better coding practice to use idioms that do not require compiler optimization, if they exist
*There is 1 instance of this issue:*
https:/... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | false | false | ## High: Brave can get an unfair refund if tokenCreationMin is not reached
### Description
A fixed 300 million BAT tokens are assigned to Brave (specifically to the `batFundDeposit` address) [when the crowdsale contract is deployed](https://github.com/brave-intl/basic-attention-token-crowdsale/blob/17a5f8440a256a6dc5d... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | false | ## Medium: Out Of Gas Error
### Description
## Potential Out-of-Gas Issue in Payout
There is a potential out-of-gas issue in payout due to iterating over a large number of items, specifically the `approved_application_ids` set, in both `chef_set_payouts` and `admin_process_payouts`.
> _p o t / s r c / p a y o u 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 | initialization | true | false | ## Gas: Reuse the constant BOOTSTRAP_LOAN to save SLOADs
### Description
The following logic, located at `PCV.sol#L106-L110`:
```solidity
debtToPay = BOOTSTRAP_LOAN;
borrowerOperations.mintBootstrapLoanFromPCV(debtToPay);
isInitialized = true;
depositToBAMM(debtToPay);
```
can be changed in such a way that it uses `... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [05] Deposits are broken in an edge case
### Description
### Proof of Concept
First, per the readMe, we can see the below stated: https://github.com/code-423n4/2024-08-wildcat/blob/fe746cc0fbedc4447a981a50e6ba4c95f98b9fe1/README.md#L243-L249
### General Questions
| Question | Answer |
| ----------------... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: price calculation in OtimFee contract does not include priority fee
### Description
The OtimFee contract incorrectly uses `block.basefee` instead of `tx.gasprice` for calculating gas costs, potentially leading to incorrect fee calculations. The `chargeFee` function calculates the gas cost using `block.basefee`... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 _distributeExcessIdle is not called when zombie interest is collected
### Description
## Severity: Low Risk
**Context:**
HyperdriveLong.sol#L199, HyperdriveShort.sol#L201
**Description:**
When a position is closed by a checkpoint at maturity but the user does not close it, it can accumulate interest ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Deleting a struct is cheaper than creating a new struct with null values
### Description
### Proof of Concept
### 1 Instance
1. ### Refactor `veOLAS.withdraw()` to use `delete` to clear a struct mapping rather than assigning a null struct.
- https://github.com/code-423n4/2023-12-autonolas/blob/main/governan... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `swap` and `claim` functions will be unavailable
### Description
The `swap` function can not be invoked if the `FairAuctionVesting` has no `VBIO_TOKEN.VESTING_CREATOR_ROLE` role.
The `claim` function also reverts due to a check in the `TokenVesting.createVestingSchedule` function for the same condition.
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 | overflow | false | false | ## Low: Risks with non-standard token implementations
### Description
There exist numerous non-standard token implementations that present unique risks to any pool or buffer that uses these tokens. We have outlined some notable risks related to interacting with common non-standard token implementations below:
- **Reb... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | front-running | false | false | ## High: "Sandwich attack" on user withdrawal
### Description
In some rare conditions, the strategy is using AMM DEX to [swap SNX to SUSD](https://github.com/jmonteer/yearnV2-strat-SNX-staking/blob/91b839df4a350d80cb583795bccafe0836fdb732/contracts/Strategy.sol#L348) inside of the user-handled transaction. This is vul... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: _checkBalance Returns an Incorrect Value During Insolvency
### Description
The [`_checkBalance`](https://github.com/OriginProtocol/origin-dollar/blob/eca6ffa74d9d0c5fb467551a30912cb722fab9c2/contracts/contracts/vault/OETHVaultCore.sol#L392-L407) function returns the balance of an asset held in the vault 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 | access-control | false | false | ## Low: No check of MAX_LIQ_FEES in contructor of Controller
### Description
## Handle
gpersoon
## Vulnerability details
## Impact
Both the functions setLiqParamsToken and setLiqParamsDefault have a check to make sure that
_liqFeeCaller + _liqFeeSystem <= MAX_LIQ_FEES
However the constructor of Controller sets th... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | false | false | ## Medium: Invariants are not checked after calling calculateDistributeExcessIdleShareProceedsNetLongEdgeCaseSafe
### Description
## Medium Risk Report
**Severity:** Medium Risk
**Context:** LPMath.sol#L653-L666
**Description:**
`calculateDistributeExcessIdleShareProceedsNetLongEdgeCaseSafe` returns:
- \( z\te... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | rounding | true | false | ## Medium: DnGmxJuniorVaultManager#_totalAssets current implementation doesn't properly maximize or minimize
### Description
The maximize input to DnGmxJuniorVaultManager#_totalAssets indicates whether to either maximize or minimize the NAV. Internal logic of the function doesn't accurately reflect that because under ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | false | ## Medium: DoS on `deposit` if vaults do not accept more tokens
### Description
On deposits to `BunniHub`, if the pool uses vaults for rehypothecation, a fraction of the amount deposited is sent to the vaults.
However, it is not checked if the vaults can accept the amount sent to them. Vaults might not be able to acc... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Borrowers can avoid paying interest for lenders
### Description
When we check the borrowers total debt value, we use `_positionScaledDebt` internal function. It uses following formula:
`rawDebtBalance * usageIndex / positionIndex`
However, it doesn't increase rawDebtBalance correctly in `borrow` function 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 | high | other | true | false | ## High: Users wouldn't refund from the lost ETH crowdfunds due to the lack of ETH
### Description
After the ETH crowdfunds are lost, contributors wouldn't refund their funds because the crowdfunds contract doesn't have enough ETH balance.
### Proof of Concept
The core flaw is `_calculateRefundAmount()` might return... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | upgrade | true | false | ## High: Users can cast vote without actually holding tokens
### Description
In `voting.rs` users can vote for protocol decisions with the `drvs` tokens they posses in their respective client accounts. However this mechanism can be abused by users where users can vote with inflated token balances by exploiting the tim... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The Hats contract needs to override the ERC1155.balanceOfBatch function
### Description
The Hats contract does not override the ERC1155.balanceOfBatch function
### Impact
This will make balanceOfBatch return a different result than balanceOf, which may cause errors when integrating with other projects
###... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Withdraw functionality does not check wallet balance
### Description
The withdraw functionality handling in the EVM channel does not check that the expected amount to withdraw is lower than or equal to the current balance of the wallet. This may lead to send transactions that will revert, consuming gas for 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 | initialization | true | false | ## Medium: User can lock tokens from the TemporaryHolding for an "infinite" amount of time
### Description
`TemporaryHoldings.sol` allows the `beneficiary` address to use tSQD in the whitelisted protocol contracts for a limited amount of time
```solidity
function execute(address to, bytes calldata data, uint256 req... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Order can be maliciously processed for profit
### Description
## MonumentMarketplace Contract Overview
The **MonumentMarketplace** contract allows for buyers to place orders for artifact tokens. These artifact tokens are represented as ERC-721 tokens and can change ownership at any time due to various buy/sel... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Consider a mutable baseURI
### Description
`baseURI` is assigned in the constructor with no way of updating it in the future. The approach used by [`tokenURI`](https://github.com/code-423n4/2023-01-canto-identity/blob/dff8e74c54471f5f3b84c217848234d474477d82/src/CidNFT.sol#L140) prevents using IPFS since that ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | access-control | true | false | ## Medium: forceAllow() can cause inclusion of a non-compliant address in the access list
### Description
From comments under the `STRX.sol:: _update()` function, it is clear that the Denylist could also be used to freeze accounts and prevent them from sending/receiving STRX tokens (USDT style blacklisting), and could... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | dos | false | false | ## Medium: Potential Gas Limitation Issue with `.transfer()` Method in LibStaking.sol
### Description
**Severity**: Medium
**Status**: Resolved
**Location**: LibStaking.sol contract, Lines 90 and 443
**Description**
The `.transfer()` method is used in two instances within the LibStaking.sol contract (specifically... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | false | ## Medium: ProxyAdmin May Cause DoS for SYS_ADMIN
### Description
As the `TransparentUpgradeableProxy` doesn’t allow the ProxyAdmin to delegate calls to the implementation, it means the `SYS_ADMIN` can’t be the same as ProxyAdmin. Now, talking about the design, the proxy defines a system-wide feature to pause or unpau... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Incorrect comment
### Description
Comment for this variable is incorrect:
https://github.com/Gearbox-protocol/gearbox-contracts/blob/0ac33ba87212ce056ac6b6357ad74161d417158a/contracts/core/AccountFactory.sol#L54
### Recommendation
We recommend changing the comment. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | reentrancy | true | false | ## Low: BribeVotingReward does not allow removal of blacklisted reward tokens
### Description
Once the `notifyRewardAmount()` method of BribeVotingReward is invoked with a non-reward token, its Infrared whitelisting status is checked and in case of success, it is automatically added as a reward token.
```solidity
fun... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Users can claim rewards for the last epoch multiple times
### Description
In the `StakingContract.sol` contract, users can stake tokens, and receive rewards for each `epochId` they have staked for. However when the rewards that a user should receive are calculated, the last `epochId` is taken into considerati... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.