prompt
listlengths
2
2
source
stringclasses
3 values
severity
stringclasses
5 values
category
stringclasses
186 values
has_code
bool
2 classes
has_poc
bool
2 classes
reference_response
stringlengths
23
5k
firm
stringclasses
26 values
quality_score
float64
0
5
protocol
stringclasses
398 values
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
access-control
false
false
## Low: Users interacting with untrusted schemas may lose funds to their malicious resolvers ### Description EAS, by design, allows permissionless registering of schemas optionally with associated resolver contracts. While these resolvers are required to adhere to the `ISchemaResolver` interface, they are allowed to 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
other
false
false
## Low: Input parameters are not validated ### Description The current implementation of the Factory contract doesn't properly validate input parameters for the `add_pool` function https://github.com/curvefi/stableswap-ng/blob/8c78731ed43c22e6bcdcb5d39b0a7d02f8cb0386/contracts/main/CurveStableSwapFactoryNG.vy#L719-L72...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Tap - Controller should not be updateable ✓ Fixed ### Description Similar to the [issue 6.11](/diligence/audits/2019/11/aragonblack-fundraising/#tap-reserve-can-be-updated-in-tap-but-not-in-marketmaker-or-controller), `Tap` allows updating the `Controller` contract it is using. The permission is currently 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...
skyward_49k
low
initialization
false
false
## Low: Stricter Account Validation ### Description The margin core program currently has two ways to create a MarginAccount: **InitAccount** and **CreateAccount** which use slightly different techniques. Current **CreateAccount** is used internally by the Jet simulation framework. For consistency, consider removing...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
timing
true
false
## Low: Cache storage variables when same values read multiple times ### Description Cache storage variables when same values read multiple times: File: `dao/AirdropDistributor.sol` ```solidity // function `setMerkleRoot` // should cache `block.timestamp + CLAIM_DURATION` into memory, // write that to `canClaimUntil`...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: ADDING UNCHECKED DIRECTIVE CAN SAVE GAS ### Description For the arithmetic operations that will never over/underflow, using the **unchecked** directive (Solidity v0.8 has default overflow/underflow checks) can save some gas from the unnecessary internal over/underflow checks. Code Location ------------- [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
medium
initialization
false
false
## Medium: Incorrect Fee Calculation Due to Outdated `ZKUSDAmounts` Value ### Description **Severity** : Medium **Status** : Acknowledged **Description** The ZKLP is engineered to rebalance using a dynamic fee structure (source: https://docs.zkdx.io/litepaper/usdzklp#usdzklp-rebalance ) . However, in the `VaultUtil...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [01] liquidation functions not work in the case of ERC20 with the Pausability feature ### Description ERC20 with the Pausability feature is in scope. In case any `underlyingAsset` gets paused the liquidations functions will not work (e.g., [`IsolateLiquidation.sol#isolateAuction(`)](https://github.com/code-...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
storage
true
false
## Gas: `StakedCitadelLocker.sol`: state variables can be tightly packed to save 1 storage slot ### Description From (see `@audit` tags): 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
storage
false
false
## Medium: Misleading Documentation ### Description Throughout the codebase, there are multiple instances of misleading documentation: * In the [`loadField`](https://github.com/latticexyz/mud/blob/12a9eb1afb18a7f7cb43d774cabb2d5af7c74e6b/packages/store/src/Storage.sol#L271) function of the `Storage` library, the doc...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
other
true
false
## Gas: Use `msg.value` directly, instead of assigning it to variable ### Description **File:** `ContractDeployer.sol` [File: code/system-contracts/contracts/ContractDeployer.sol](https://github.com/code-423n4/2024-03-zksync/blob/main/code/system-contracts/contracts/ContractDeployer.sol#L329)
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Centralization Risk Due to Overpowered Owner ### Description **Severity**: Medium **Status**: Resolved **Description** The Devve smart contracts grant significant control to the contract owners through several `onlyOwner` functions. This centralization poses a substantial risk, as it places considerable ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Disable initializer ### Description **Severity**: Informational **Status**: Resolved **Description** Contract AmanaVaultV1 and Contract Rewards do not disable initializer as recommended by OpenZeppelin by adding the code as follows: **Recommendation**: Disable intializers by adding the above code.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Address Collusion ### Description Address collusion may occur with create2 with low probability.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
dos
true
false
## Low: Potential out of gas ### Description The `massUpdateFarms` function iterates over all farms and updates them. This presents a potential risk of reverting due to out-of-gas errors if the number of farms becomes very large. If the function reverts when `collectFees` is set to false, key functionalities such as `...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inaccurate estimation of validation rewards from function ExpectedRewardAVA in MiniPoolManager.sol ### Description ## Lines of code https://github.com/code-423n4/2022-12-gogopool/blob/aec9928d8bdce8a5a4efe45f54c39d4fc7313731/contracts/contract/MinipoolManager.sol#L560 https://github.com/code-423n4/2022-12-...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Never used imports in multiple contacts. ### Description **Description** Disqualifier.sol: ILendingPool, Locked Balance, IUniswapV2Router02, IUniswapV2Factory, IUniswapV2Pair, IChainlinkAggregator, IAToken. PriceProvider.sol: IERC20, SafeERC20. Contracts are imported in files, however they are never used....
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
true
false
## Medium: Users incur losses when selling seats ### Description **Description:** Whenever a user buys or sells a seat, we calculate the seat price at that moment using the difference between `get_reserve` from the new/current position and the old position. The `get_reserve` function returns an i64, whose maximum val...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing HTTP request timeouts across modules in widgets ### Description Several hooks and helpers in `src/pages/bridge/data/` spin up ky clients without ever specifying a timeout. Any unresponsive or maliciously redirected endpoint can cause those requests to hang indefinitely (or until Ky’s internal default,...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
front-running
true
false
## Low: Reward distribution can be tricked by front-running notify calls ### Description The `notify` function in StakedCap can be front-run, allowing attackers to deposit large amounts of CAP tokens immediately before a notification event to receive an unfair portion of rewards. This allows sophisticated users to cap...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Avoid name reuse ### Description The `constructor` and `founderSwitchRequest` function in PromissoryToken.sol use the name `_founderHash`, for two different semantic meanings. Using the same name for two different things is confusing and can bring unintended behaviors. Consider changing the function parameter ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: | DoS Dividends ### Description **Description** Due to the unbounded `for` loop in `distributeDividends`, there is a risk of a DoS attack. Anytime a new address deposits to pool 0, they are added to the `usersBridges` list. A malicious party can keep generating new addresses and deposit miniscule amounts o...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
dos
false
false
## Medium: Lack of Timeout leads Resource Exhaustion in API Client ### Description The absence of timeout settings in the HTTP client poses the following risks: 1. Resource Exhaustion: - Connections may hang indefinitely, leading to goroutine leaks and memory overconsumption. - Over time, this can cause the appli...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing range constraint on remainder check in `div` opcode implementation ### Description When calculating the remainder of the `div` instruction, the circuit needs to verify that the remainder is less than the divisor. It does this by subtracting the divisor from the remainder and enforcing that the borrow ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Expressions for constant values such as a call to `keccak256()`, should use `immutable` rather than `constant` ### Description While it **doesn't save any gas** because the compiler knows that developers often make this mistake, it's still best to use the right tool for the task at hand. There is a difference ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Stylus’s 63/64th gas forwarding di�ers from go-ethereum ### Description The Stylus VM deviates from the Ethereum specification and the behavior of the reference implementation in its application of the 63/64th gas forwarding rule, defined in EIP-150. EIP-150 states that “if a call asks for more gas than all bu...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Double assignment in `InitDiamond` should be removed to avoid confusion ### Description When initializing the "Weather" cases in `InitDiamond` there is a double assignment which should be removed to avoid confusion:
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
overflow
true
false
## Low: `_computeMaturityDate` `uint32` timestamp limits protocol lifespan ### Description The `_computeMaturityDate` function in `PositionParams.sol` casts maturity timestamps to `uint32` before returning them: This imposes a hard limit on the maximum representable timestamp. A `uint32` can only represent Unix time...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Potential underflow error ### Description In the [`AcceleratingDistributor`](https://github.com/across-protocol/across-token/blob/dde7aedc766bf69f1cb0eb791b60259c705baa26/contracts/AcceleratingDistributor.sol#L19) contract, there is no lower bound on the `maxMultiplier` for a staked token. If a value lower 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...
solodit_api
high
Access Control
true
true
<https://github.com/code-423n4/2022-11-stakehouse/blob/5f853d055d7aa1bebe9e24fd0e863ef58c004339/contracts/liquid-staking/GiantSavETHVaultPool.sol#L50><br> <https://github.com/code-423n4/2022-11-stakehouse/blob/5f853d055d7aa1bebe9e24fd0e863ef58c004339/contracts/liquid-staking/GiantMevAndFeesPool.sol#L44> An attacker c...
Code4rena
4
Stakehouse Protocol
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 `_disableInitializers()` call in implementations' constructor ### Description The following smart contracts, which are implementations that the proxies will point to, should call `_disableInitializers()` in their `constructor` but they are not doing it : `StakingManager.sol`, `KHYPE.sol`, `PauserRegist...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
storage
true
false
## High: Slot and block number proofs not required for verification of withdrawal (multiple withdrawals possible) ### Description Since this is a vulnerability that involves multiple in-scope contracts and leads to more than one impact, let's start with a bug description from bottom to top. ### Library `Merkle` 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
gas
storage
true
false
## Gas: Use a more recent version of solidity ### Description Use a solidity version of at least 0.8.10 to have external calls skip contract existence checks if the external call has a return value 1. File: royalty-vault/contracts/RoyaltyVault.sol (line [2](https://github.com/code-423n4/2022-03-joyn/blob/c9297ccd925...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Traders May Lose Entire Position if Asset Was Removed From Bucket ### Description **Update** The health function, found in `PositionLibrary.health()` in commit [`7d350f7`](https://github.com/primex-finance/primex_contracts/commit/7d350f73cad51a0651d1286514fcbee28dab72e6), returns the health value regardless 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
low
other
true
false
## Low: Missing reqId Deletion in `cancelGame()` ### Description The `cancelGame()` function does not delete `reqId` in the randomness provider (RP). This may lead to leftover request IDs, potentially causing inconsistencies. `
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: ELF segment virtual address can be set to an arbitrary address ### Description **Severity:** Medium **Path:** binfmt/src/elf.rs **Description:** The function load_elf() loads and checks the ELF sections and checks that the file size and each segment’s size are not bigger than MAX_MEM (2^28 by default). H...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
signature
true
false
## Medium: Multiple Missing Field Validations ### Description In the current implementation of the project, data structures used throughout the system are supposed to undergo validation checks as defined in `validator.go` to ensure they are well-formed before processing. This validation is crucial to maintaining the 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
gas
other
false
false
## Gas: [7] Multiple accesses of a mapping should use a local variable cache ### Description The instances below point to the second+ access of a value inside a mapping, within a function. Caching a mapping's value in a local `storage` variable when the value is accessed [multiple times](https://gist.github.com/IllIll...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Irrecoverable dust amounts can accumulate in InfraredDistributor due to precision loss ### Description `InfraredDistributor.notifyRewardAmount()` handles incoming reward amounts of IBGT tokens by increasing `amountsCumulative`. This facilitates further distribution of the rewards among Infrared validators. ``...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `recoverToken` function should restrict which tokens are allowed to be recovered ### Description https://github.com/code-423n4/2023-05-xeth/blob/main/src/CVXStaker.sol#L101-L109 The CVXStaker contract manages different tokens as part of its natural intended behavior. Notably, these are the Curve LP tokens, 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
low
other
false
false
## Low: _burnInternal always returns 0 for fy tokens returned ### Description ## Handle pauliax ## Vulnerability details ## Impact Function _burnInternal always returns 0 as a third parameter. It should return tokensBurnt, tokenOut, fyTokenOut. ## Recommended Mitigation Steps return (tokensBurned, tokenOut, fyTok...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Unused constant ### Description **Description** File: migration.ts Constant: PERMANODE Details: The given constant was used in the removed code parts. **Recommendation** Remove the constant declaration **Re-audit comment** Resolved
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [Fixed] Operations are not explicitly casted ### Description The current lack of explicit casting when handling unsigned integer variables in the codebase, considering the various different types of unsigned integers in use (e.g. uint256, uint64 and uint32), hinders the code’s readability, making it more error...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
true
false
## Low: Lack of a double step transfer ownership pattern in the Admin contract ### Description The current ownership transfer process for all the contracts inheriting from `Admin` involves the current admin calling the `setAdmin()` function: ``` function setAdmin(address adminAddress) public onlyAdmin { assembly { ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [05] Contracts without receive/fallback function may not be able to receive leftovers from `swapAndMint`, `swapAndIncreaseLiquidity` functions ### Description If a non-zero amount of ETH is sent during `swapAndMint` or `swapAndIncreaseLiquidity` calls, the protocol will unwrap leftover WETH tokens and send 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: Violations of ERC7540 specs ### Description **Description:** Several deviations from the ERC7540 specs have been noticed for `AccountableAsyncRedeemVault` 1. According to [ERC-7540](https://eips.ethereum.org/EIPS/eip-7540) specification: > Redeem Request approval of shares for a msg.sender NOT equal to owner...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
reentrancy
false
false
## Gas: Redundant locked modifier ### Description The locked modifier is redundant for `settle()` because it first requires the `_preimage` to match the `hashlock`, which can only be the case if there is a prior route set, which then implies the counterparty is not null. ### Recommendation - Update the `settle` functi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unnecessary and potentially risky Multicall functionality in V1LBRouter ### Description The `V1LBRouter` contract inherits from `Multicall`, which provides a multicall function allowing multiple function calls in a single transaction. The presence of Multicall functionality introduces unnecessary complexity 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
low
initialization
false
false
## Low: Incorrect fees calculation in `ChangeFee`. ### Description **Description** 'ChangeFee' functionality does not have validation of passed values. Actually, the 'house_fee_basis_points' variable could have the value much more than '10000', which means that the changed fee could be up to 655% ('u16::MAX'). progra...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: minPrice and maxPrice should reflect the allowed regions for the funds to be transferred from the bidder to the ask recipient ### Description 1. When a maker or taker sets a `minPrice` for an ask, the protocol should guarantee the funds they receive is at minimum the `minPrice` amount (currently not enforced)....
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: DAI-GOLD auction might not get started for last mint of gold tokens ### Description Usually minting gold happens when the available amount is bigger than 1e4, which will configure the minimum distribution amount of DaiGoldAuction. However when it reaches the max supply, the minting amount can be smaller than m...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Use latest version of Solidity ### Description [Fundraiser.sol](https://github.com/cosmos/fundraiser-lib/blob/693cf3f32e9fd679216372876dda86fa57a3277e/src/truffle/contracts/Fundraiser.sol#L6) is written for an old version of solc (0.4.7). We recommend changing the solidity version pragma for the [latest versio...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Price feed in `MCAGRateFeed#getRate` is not sufficiently validated and can return stale price ### Description `MCAGRateFeed#getRate` may return stale data. ### Proof of Concept (, int256 answer,,,) = oracle.latestRoundData(); getRate only uses answer but never checks the freshness of the data, which ca...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: MultiFacetProxyLib.setFunctions should not be externally accessible ### Description The `setFunctions` function is used internally to add, remove, and replace functions implemented in facets. In addition, it is accessible externally in the `NordUpgradeFacet` contract. We think it should be encapsulated to redu...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
oracle
true
true
To protect the fund of vault, the protocol has a security mechanism which limits: Maximum PnL is +500%. source: <https://docs.tigris.trade/protocol/trading-and-fees#limitations> But the implementation is missing to check this limitation while `addToPosition()`, an attacker can exploit it to get more profit tha...
Code4rena
5
Tigris Trade
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
storage
true
false
## Low: Aave `swapBorrowRateMode` is deprecated ### Description **Description:** In the `Aave_Module` there is a call [`aave_swapBorrowRateMode`](https://github.com/d2sd2s/d2-contracts/blob/c2fc257605ebc725525028a5c17f30c74202010b/contracts/modules/Aave.sol#L67-L69): The call `swapBorrowRateMode` is however [deprecat...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: accrue interest function is likely failed to accrue interest for token with low decimal ### Description Loss of precision is too high when accruing interest ### Proof of Concept When interest accrues, [we are calling](https://github.com/code-423n4/2023-11-betafinance/blob/0f1bb077afe8e8e03093c8f26dc0b7a29...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Improper Fee Configuration ### Description ## Vulnerability Overview The vulnerability pertains to the possible configuration of negative fees within the market, presenting risks to the clearing house. It subtracts fees from a user’s collateral. Thus, if either the `maker_fee` or `taker_fee` is negative, 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
access-control
true
false
## Medium: Usage of an incorrect version of Ownable library can potentially malfunction all onlyOwner functions ### Description Title: Usage of an incorrect version of Ownbale library can potentially malfunction all onlyOwner functions Severity: High Risk
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: MinipoolManager: recordStakingError function does not decrease minipoolCount leading to too high GGP rewards for staker ### Description ## Lines of code https://github.com/code-423n4/2022-12-gogopool/blob/aec9928d8bdce8a5a4efe45f54c39d4fc7313731/contracts/contract/MinipoolManager.sol#L484-L515 https://gith...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 type(uint16).max instead of 65535 ### Description In the `distributeAndSwap()` and `processInsideBento()` functions, the value `65535` is used when calculating the amount distributed to each call to `swap()`: ```solidity uint256 amount = (amountTotal * share) / 65535; ``` This is equivalent to the maximu...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Input Validation ### Description **Update** Marked as "Fixed" by the client. Addressed in: `afc7dc5e607f4da7d0dc5586515a9bf3dd01c110`. The client provided the following explanation: Input validations were added However, recommended validations for the following functions are still missing: 1. `disbu...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Vulnerability in Reward Distribution Mechanism Allowing Fund Theft in SubnetActorManagerFacet.sol ### Description **Severity**: Critical **Status**: Resolved **Location**: SubnetActorManagerFacet.sol contract, distributeRewardToRelayers function **Description** A critical vulnerability exists in the IPC ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Calls to untrusted contracts on Blast are incentivized to steal gas from users ### Description On Blast, every contract can claim the gas fees paid by the users executing their code. When calling out to untrusted contracts (e.g., callbacks to receiver and sender, but also the `transferFrom` calls on the und...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
signature
true
false
## Medium: DOMAIN_SEPARATOR in UniswapV2ERC20 will be invalid after chain forks ### Description The current implementation of `DOMAIN_SEPARATOR` in the `UniswapV2ERC20.sol` contract is computed once during contract deployment and stored as an immutable value using the following code: ```solidity DOMAIN_SEPARATOR = ke...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Initializer Can Be Front-Run to Gain Control of the Program ### Description **Description:** The `initialize` function from the `xbelo` program, and the `initialize_farm` function from the `clmm_lp_farm` program can be called by anyone after deployment. Considering these functions sets the admins for programs ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Adversary can utilize a large number of their own loans to cheat other lenders out of interest ### Description The minimal interest paid by a loan is scaled by the number of provisions that make up the loan. By inflating the number of provisions with their own provisions then can cause legitimate lenders 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
high
liquidation
true
false
## High: Attacker can Inflate `effectiveCollateralValue` ### Description Report type: Smart Contract Target: https://testnet.snowtrace.io/address/0x2cAa1315bd676FbecABFC3195000c642f503f1C9 Impacts: - Protocol insolvency - Direct theft of any user funds, whether at-rest or in-motion, other than unclaimed yield ## D...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unbounded Fee Parameters Allow Abusive Fees and Redemption DoS ### Description `PawnShop` charges a fee (in basis points) on top of the borrowed principal when a borrower redeems their NFT via `redeem(...)` (context). However, `setFees(...)` allows `MANAGER_ROLE` to set `fee7Days` and `fee30Days` to any `uint...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [03] Solidity version ### Description All contracts are using 0.8.13. Consider updating to the latest version 0.8.19 to ensure the compiler contains the latest security fixes. https://github.com/code-423n4/2023-05-venus/blob/main/contracts/Pool/PoolRegistry.sol#L2
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: There is no slippage check for the eth deposits processing in the `LibDepositing.processDeposits` ### Description The `LibDepositing.depositEtherToL2` function is called by the TaikoL1.depositEtherToL2 to deposit ether to the `L2 chain`. The maximum number of `unprocessed eth deposits` are capped at `_confi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Transfer result value ignored in John.sol ### Description **Severity**: Medium **Status**: Resolved **Description** In contract John.sol, in function unstake(address, uint256) at line 194 the transfer call performed has an ignored result value. This can lead to undefined behavior in case the transfer 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
gas
initialization
false
false
## Gas: Don’t initialize variables with default value ### Description [G-06] Don’t initialize variables with default value Instances (2): File: src/lib/MinPriorityQueue.sol 98: for (uint256 i = 0; i &lt; curUserBids.length; i++) { Link to code File: src/seaport/modules/OptimisticListingSeaport.sol 390: for (uint25...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Users can lower the interest rate by dividing a loan into multiple smaller loans ### Description The `LenderCommitmentGroup_Smart.getMinInterestRate()` function calculates the minimum APR for borrowing. However, this APR is determined based on the utilization ratio, which includes the newly borrowed amount....
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Truncation in integer division ### Description The profit sharing mechanism uses [integer division](https://github.com/fiinu/smart-contract/blob/7589b9d137bbf902e142e4f0476b06976e390bdb/FiinuCoin.sol#L240) to distribute profits proportionally to token holdings: `balances[addr].mul(msg.value).div(totalSupply)`....
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
false
false
## High: Reward Claim Post Expiry Of Locked Stake ### Description ## Staking Rewards and Expiry It is possible to still qualify for the staking rewards after the locked stake expires. `claim_stakes` does not check if the locked stake has expired before processing rewards for resolved rounds. When processing resolved ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
liquidation
true
false
## High: Liquidations can be made to revert by an attacker through various means, causing losses to liquidators and bad debt to accrue in the vault ### Description **Description:** Coordination between two malicious accounts combined with various other attack vectors fully documented in separate findings can be levera...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inaccessible pause and unpause functions ### Description **Severity** **Impact:** Medium **Likelihood:** Medium **Description** The `Game` contract inherits from `PausableUpgradeable`, a feature designed to allow the pausing and unpausing of contract functionalities in emergency situations or for mainte...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: cEther might fail when repaying a borrow ### Description The [`repayBorrow` function](https://github.com/equilibria-xyz/compound-protocol/blob/rfp12-ctoken-cleanup/contracts/CEther.sol#L85) of the `CEther` contract calls internally the `repayBorrowInternal` function and the [`repayBorrowFresh` function](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
low
initialization
true
false
## Low: Uninitialized country for valid investor wallets allows bypassing US compliance lockup period ### Description **Description:** One way that wallets can be registered in the protocol is via `RegistryService.sol::addWallet`, meanwhile the country field for the registered wallet can be set separately using a sepa...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
initialization
false
false
## Low: `BetFactory::createBet` should revert in a number of scenarios to prevent abuse and ensure bets can be resolved ### Description `BetFactory::createBet` should revert if: * `treasury` is `address(0)` * `msg.sender` and `taker` are the same * `judge` is the same as `msg.sender` or `taker` All of the scenarios r...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: Potential division by zero ### Description In the `enableFarm` function, the `params.allocPoints` is validated to be less than `MAX_ALLOCATION_POINTS`, but there's no check to ensure `totalAllocPoints` remains above zero after adding a new farm. This could theoretically lead to a division by zero error in the ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
signature
false
false
## High: Signature can be reused ### Description An authenticated address (say A) can join multiple times due to a signature replay attack. The nonce used here also comes as an argument, hence can be reused. This has two issues: - It blocks other authenticated addresses from participating. - A can enter into the pot ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Postman Can Incorrectly Deliver a Message While Still Collecting the Fees ### Description The message service allows cross chain message delivery, where the user can define the parameters of the message as: **from**: Sender of the message **\_to**: Receiver of the message **\_fee**: The fees, the sender wan...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
initialization
true
false
Source: https://github.com/sherlock-audit/2023-02-hats-judging/issues/35 ## Found by obront, unforgiven, roguereddwarf, cducrest-brainbot ## Summary When a tophat is unlinked from its admin, it is intended to regain its status as a tophat that is fully self-sovereign. However, because the `linkedTreeRequests` valu...
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
high
signature
false
false
## High: Orders from other market makers can be invalidated ### Description The `checkOrder()` function performs verification of pre-signed orders. This function allows anyone to set the status of an order as used by storing the nonce contained in the order. Orders and their respective nonce can only be used once. ##...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Check that none of the `authorities` is zero address ### Description The [`PartyFactory.createParty`](https://github.com/code-423n4/2023-04-party/blob/440aafacb0f15d037594cebc85fd471729bcb6d9/contracts/party/PartyFactory.sol#L18-L45) function should check that the `authorities` array contains addresses that ar...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: It costs more gas to initialize non-constant/non-immutable variables to zero than to let the default of zero be applied ### Description Not overwriting the default for [stack variables](https://gist.github.com/IllIllI000/e075d189c1b23dce256cd166e28f3397) saves 8 gas. Storage and memory variables have larger sa...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Use of name to identify a token ### Description The function `startBridgeTokensViaCelerIM()` utilizes the token name to identify the cfUSDC token. However, another token with the same name can bypass this check. An attacker could create a fraudulent token named "cfUSDC" that includes a function `canonical()...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
signature
true
true
## Low: Taker orders are not EIP-712 signatures ### Description When takers attempt to match order proposals, they are presented with an obscure blob of data. In contrast, makers are presented with a formatted data structure that makes it easier to validate transactions. ```solidity struct TakerOrder { bool isOrder...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 `initializer` modifier on constructor ### Description OpenZeppelin [recommends](https://forum.openzeppelin.com/t/uupsupgradeable-vulnerability-post-mortem/15680/5) that the `initializer` modifier be applied to constructors in order to avoid potential griefs, [social engineering](https://forum.openzeppe...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inconsistency in view functions can lead to users believing they’re due for more BKD rewards ### Description _Submitted by SmartSek_ ### Impact The view functions used for a user to check their claimable rewards vary in their implementation. This can cause users to believe they are due X amount but will ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Non-blacklisted addresses can't burn `UStb` tokens in a `FULLY_ENABLED` transfer state if `address(0)` is blaklisted ### Description From the [Main invariants](https://github.com/code-423n4/2024-11-ethena-labs/blob/main/README.md): > ### Main invariants > - Only non-blacklisted addresses can send/receive/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
gas
other
false
false
## Gas: `keccak256()` should only need to be called on a specific string literal once ### Description It should be saved to an immutable variable, and the variable used instead. If the hash is being used as a part of a function selector, the cast to `bytes4` should also only be done once *There is 1 instance of this ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
token
false
false
## Low: Lack of events is error-prone ### Description Several critical operations do not trigger events. As a result, it will be difficult to review the correct behavior of the contracts once deployed. Critical operations that would benefit from triggering events include: - `PoolProxy.set_admins` (PoolProxy.vy#L40) -...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Risk of Passing Incorrect Context to Firewall Policies ### Description The on\-chain firewall system is designed to support meta\-transactions. The [FirewallConsumerBase](https://github.com/ironblocks/onchain-firewall/blob/8f4fcf861d53c835ed005db67b8af4037464e0ca/contracts/FirewallConsumerBase.sol#L20) contra...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
true
## Low: Potentially dangerous out-of-bounds memory access in `BytesParsing::sliceUnchecked` ### Description [`BytesParsing::sliceUnchecked`](https://github.com/wormhole-foundation/wormhole-circle-integration/blob/f7df33b159a71b163b8b5c7e7381c0d8f193da99/evm/src/libraries/BytesParsing.sol#L16-L57) currently[ bails earl...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
storage
false
false
## Gas: Using access lists can save gas due to EIP-2930 post-Berlin hard fork ### Description _Submitted by 0xRajeev_ EIP-2929 in Berlin fork increased the gas costs of SLOADs and CALL* family opcodes, increasing them for not-accessed slots/addresses and decreasing them for accessed slots. EIP-2930 optionally support...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: might not be supported in all chains ### Description Solc compiler `version 0.8.20` switches the default target EVM version to Shanghai. The generated bytecode will include **PUSH0** opcodes. The recently released Solc compiler `version 0.8.25` [switches the default target EVM version to Cancun](https://solidi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
overflow
false
false
## Medium: Use safe math ### Description There are many unchecked math operations in the code. We couldn’t find any related attack vectors on the DSTContract, but it’s always better to be safe and perform checked operations. Consider [using a safe math library](https://github.com/OpenZeppelin/zeppelin-solidity/blob/ma...
0