prompt listlengths 2 2 | source stringclasses 3
values | severity stringclasses 5
values | category stringclasses 186
values | has_code bool 2
classes | has_poc bool 2
classes | reference_response stringlengths 23 5k | firm stringclasses 26
values | quality_score float64 0 5 | protocol stringclasses 398
values |
|---|---|---|---|---|---|---|---|---|---|
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | initialization | false | false | ## Medium: Unchecked delegatecall result
### Description
**Severity**: Medium
**Status**: Resolved
**Description**
In contract Diamond.yul at line 30, inside the constructor, there is a delegatecall performed back to the caller contract (AdminFacet) which executes the initializeFacet. The result of the delegate 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... | cyfrin_structured | low | other | true | false | ## Low: `_checkProposalEligibility` gas optimization
### Description
Current implementation of the `HubEvmSpokeAggregateProposer::_checkProposalEligibility` processes all spoke chain responses before checking if the proposal threshold is met. Additionally, the hub vote weight is added to the total vote weight after 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 | high | token | true | false | ## High: Repaying with ETH does not refund excess
### Description
Users can repay WETH Morpho positions with ETH using the WETHGateway. The specified repay amount will be wrapped to WETH before calling the Morpho function to repay the WETH debt. However, the Morpho repay function only pulls in `Math.min(_getUserBorrow... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Refactor common code across functions
### Description
`claimRewards` and `unclaimedRewards` functions in the `Lottery` contract have a lot of duplicate functionality. Consider refactoring common code in a private function. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | overflow | true | false | ## Gas: Don't use `SafeMath` once the solidity version is 0.8.0 or greater
### Description
Version 0.8.0 introduces internal overflow checks, so using `SafeMath` is redundant and adds overhead | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: In contract UnifarmCohort, functions setPortionAmount and disableBooster does not contains sanity checks, even if they are only settable by the owner they still need to contains sanity checks to be in standard with best practices.
### Description
**Recommendation**:
Add sanity checks to the setPortionAmount 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 | other | false | false | ## Low: `InterchainGovernance` can be `abstract`
### Description
As the contract is not complete on its own, I recommend making it `abstract` to convey that it is supposed to be extended. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | high | front-running | true | true |
### Impact
Because the validator's signature message does not include the `from_chain` field, a malicious actor can preemptively execute the validator's transaction with an incorrect `from_chain` field. This can cause the status of `create_cross_txs[txid]` to become a `Failed` state, preventing it from being executed... | Code4rena | 5 | Chakra |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | token | false | false | ## High: CRAFTAMOUNT CAN BE SET TO ZERO DRAINING THE CHAINLINK VRF SUBSCRIPTION
### Description
In the `CraftingSystem` contract, the `craft()` function can be called passing a 0 value as a `craftAmount`. It is not possible to exploit this in any way when ERC1155 tokens are used as inputs, as these errors would stop t... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Use `days` keyword for better readability
### Description
**Description:** `TimeWeightedIncentiveLogic` currently declares the `MIN_INCREASE_DURATION` constant as `3 * 86400`. Instead, `3 days` should be used for better readability.
**Paladin:** Fixed by commit [`8eac91a`](https://github.com/PaladinFinance/Va... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing sanity check for `defaultEdge` correctness
### Description
In cases where the edge between tokens is not set, the `edge()` function will return a default edge. However, this default edge is not properly checked for correctness. Specifically, when `defaultEdge.amplitude == 0`, the `edge()` function shou... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | medium | other | false | false | ## Medium: A malicious user can grief a `StakePet` contract by creating massive number of pets
### Description
The `StakePet::create` function facilitates the minting of a pet NFT by depositing collateral. However, its lack of a minimum deposit requirement for minting exposes it to potential abuse. A malicious user 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... | solodit_api | high | Business Logic | true | true |
[FulfillmentApplier.sol#L406](https://github.com/code-423n4/2022-05-opensea-seaport/blob/main/contracts/lib/FulfillmentApplier.sol#L406)<br>
The `_aggregateValidFulfillmentOfferItems()` function aims to revert on orders with zero value or where a total consideration amount overflows. Internally this is accomplished b... | Code4rena | 4 | OpenSea |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unnecessary allowance
### Description
Vault's withdraw function burns shares, so allowance is unnecessary:
https://github.com/Gearbox-protocol/gearbox-contracts/blob/0ac33ba87212ce056ac6b6357ad74161d417158a/contracts/adapters/YearnV2.sol#L130
### Recommendation
We recommend removing providing allowance. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | token | true | false | ## Low: Refactor duplicated checks into modifiers
### Description
Refactor duplicated checks into modifiers:
* `contracts/compliance/LockManager.sol`
```solidity
// 1) invalid address
compliance/InvestorLockManager.sol
60: require(_to != address(0), "Invalid address");
108: require(_to != address(0), "In... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | oracle | true | false | ## High: Not excluding `accruedProtocolFee` from state update operations causes several issues
### Description
Covenant governance can turn on protocol fees, which if done, can cause several issues.
When `_calculateMarketState` is called, it calculates the accrued fee based on `baseTokenSupply`. This fee is added 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 | storage | false | false | ## Low: Protocol is using old version of OpenZeppelin contracts
### Description
The version currently used is 4.5.0 which is quite outdated. All versions of OpenZeppelin until 4.9.3 have associated bugs with them. While the scope is not directly impacted by the issues reported in 4.5.0 it is recommended to use the ear... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | oracle | true | true | ## Medium: PreimageOracle.loadPrecompilePreimagePart an outOfGas error in the precompile will overwrite correct preimageParts
### Description
Alexis Williams from Coinbase initially identified this issue in the `loadPrecompilePreimagePart` function during the engagement with Spearbit. The function calls any `_precompi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [G‑11] Splitting `require()` statements that use `&&` saves gas
### Description
See [this issue](https://github.com/code-423n4/2022-01-xdefi-findings/issues/128) which describes the fact that there is a larger deployment gas cost, but with enough runtime calls, the change ends up being cheaper by **3 gas**.
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Usage of a TWAP price instead of the exact current sqrtPriceX96 will lead to wrong calcula- tion of token amounts within the position
### Description
The problem is that the `sqrtPriceX96` used is not the current one, but rather the TWAP value returned from the oracle. This would lead to inaccurate token am... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Increase in calldata cost due to EIP-7623 affects L1 <> L2 transactions
### Description
As part of the Pectra upgrade, EIP-7623 increases the cost of calldata for transactions. More specifically, the total gas used per transaction is now the maximum between the execution gas and the following:
```
10 * (ze... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Vault tokens lose fungibility after a user claims interest
### Description
As explained in the finding "WrappedVault share transfers results in stuck funds":
Only the `wrappedVault` is allowed to lend and withdraw assets to/from the Dahlia lending contract. Users can interact with `wrappedVault` through i... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: Late users will take more losses than expected when the underlying contract (EthAnchor) suffers investment losses
### Description
## Handle
WatchPug
## Vulnerability details
Even though it's unlikely in practice, but in theory, the underlying contract (`EthAnchor`) may suffer investment losses and causi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | input-validation | true | false | ## Low: Zero-weight validators can be registered via `BalancerValidatorManager::initiateValidatorRegistration`
### Description
The `BalancerValidatorManager::initiateValidatorRegistration` function does not validate that the weight parameter is non-zero before delegating to the underlying `ValidatorManager`. Additiona... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | oracle | true | false | Source: https://github.com/sherlock-audit/2023-12-notional-update-5-judging/issues/46
## Found by
xiaoming90
## Summary
The deviation between the target and current lending amount (`offTargetPercentage`) will be underestimated due to incorrect calculation. As a result, a rebalancing might be skipped even if the exi... | Sherlock | 5 | Notional Update #5 |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Chain ID Misconfiguration
### Description
## sendMessage Overview
The `sendMessage` function emits an event with the encoded chain ID, which is set to the Ethereum chain ID (`$.ethereumChainId`). Thus, the chain ID included in the event is the Ethereum chain ID instead of the Solana ID. This may confuse off-c... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: [15] INCOMPLETE NATSPEC COMMENTS
### Description
NatSpec comments provide rich code documentation. The following functions miss the `@param` and/or `@return` comments. Please consider completing the NatSpec comments for these functions. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `isEligibleSender` in ContractWhitelist.sol blocks multisig wallets.
### Description
**Description**
ContractWhitelist.sol - isEligibleSender which is a modifier applied to limit access on stake is now blocking multisig wallets due to tx.origin == msg.sender.
**Recommendation**
Modify `isEligibleSender` ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Possible zero price for token
### Description
In the new version of the oracle smart contract, the price for stETH = 0 until user calls the `submitState` function:
https://github.com/lidofinance/curve-merkle-oracle/blob/ae093b308999a564ed3f23d52c6c5dce946dbfa7/contracts/StableSwapStateOracle.sol#L268
### 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... | cyfrin_structured | low | other | true | false | ## Low: The `swap` function emits incorrect event type for existing investor purchases
### Description
The `SecuritizeOnRamp::swap` function emits a `Swap` event instead of the expected `Buy` event when existing investors purchase assets. According to the interface documentation, the `Swap` event is intended for "new ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Bridged tokens would be lost if sender and receiver are contracts that don't implement fallback/receive
### Description
When a bridged token is received on the dest chain, `ERC20Vault.onMessageInvocation()` is being called.
`onMessageInvocation()` always calls `to.sendEther(msg.value)` even when the `msg.va... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | Validation | true | false | ## Severity: Critical Risk
## Context
- `NomadFacet.sol#L99-L149`
- `BridgeRouter.sol#L176-L199`
- `BridgeRouter.sol#L347-L381`
## Description
The `onReceive()` function does not verify the integrity of `transferId` against all other parameters. Although the `onlyBridgeRouter` modifier checks that the cal... | Spearbit | 5 | Connext |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Funds can be stolen after wrong approve.
### Description
**Severity**: Critical
**Status**: Resolved
**Description**
The `refund()`, `withdrawFees()` and `distributeWithoutFee()` functions within the `Treasury.sol` smart contract are used for transferring funds out from the Treasury to a receiver address... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | liquidation | true | false | ## Medium: Credit can be sold forcibly as `forSale` setting can be ignored via Compensate
### Description
Any credit position can be forcibly sold with the help of its borrower. This will be executed only when have expected profit; for example, when lender's curve is not null and is above the market it is profitable t... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: `mintWithEth()` and `mintUsername()` does not return extra ETH
### Description
The `mintWithEth` function in `AccountSystem` contract, allows users to mint by paying Ether. However, if the user sends more Ether than the required `mintPrice`, the contract does not refund the excess amount. This results in us... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | liquidation | false | false | ## Low: Unnecessary calcEscrowLiquidationAmount() function
### Description
Description
The calcEscrowLiquidationAmount() function returns simply - getUserMinMargin() or 0 if this value is less
than 0. We raise this as its own separate issue to ensure the calculation is as expected.
The function is:
function calcEscrow... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | liquidation | true | false | ## Medium: Risk of hash collisions in FraxLendPairDeployer that could block certain deployments
### Description
A hash collision could occur in the `FraxLendPairDeployer` contract, allowing unauthenticated users to block the deployment of certain contracts from authenticated users. The `FraxLendPairDeployer` 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 | initialization | false | false | ## Medium: Commission rates can be set to 100%
### Description
The issue is identified within the [`constructor`](https://github.com/longgammalabs/hanji-contracts/blob/09b6188e028650b9c1758010846080c5f8c80f8e/src/OnchainLOB.sol#L90) of the `LOB` contract.
The commissions (`admin_commission`, `marketmaker_commission`,... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Shorts can withdraw full available funds instead of being restricted to margin call limits in `perp-withdraw`
### Description
**Description:** In [perp_withdraw.rs](https://github.com/deriverse/protocol-v1/blob/f611019674f668681c3dbe074f8b7bc2ba846c97/src/program/processor/perp_withdraw.rs#L99), the margin 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 | other | false | false | ## Low: Too much code mocked
### Description
Swift code depends on external services called over the Internet. To make tests reliable and reproducible, a separate set of implementations mimics the external functionality. Mocking, however, is done on a level of abstract services (such as `AccountService`, `ConseilServi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: State variables should be cached in stack variables rather than re-reading them from storage
### Description
**Issue Description** - In the `changeUnwrapFee()` function, the state variable `unwrapFeeDivisor` is read directly from storage on line 199 when emitting the event `ChangeUnwrapFee`. This is inefficien... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `emergencyUnlockEnabled` Is Never Used, Rendering “Emergency Unlock” Ineffective
### Description
**Overview**
The contract defines:
But what is clear is , **no** function that checks user lock status, withdraw eligibility, or emergency flows ever references `emergencyUnlockEnabled`. For instance:
* `withdr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Calculating tax amount does not include taxes in `WasmMsg::Execute` messages
### Description
`get_tax_amount()` fetches the amount of tax to be paid by totaling the amounts in the message transfers generated by the `on_funds_transfer()` hook. However, it only counts `CosmosMsg::Bank(BankMsg::Send)` messages... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 named imports
### Description
**Description:** Use named imports; this is already being done in some places but not others:
* `Issuance`:
* `Deposit-Registry`:
**Syntetika:**
Fixed in commit [a8b4853](https://github.com/SyntetikaLabs/monorepo/commit/a8b485381ad97ffb01595e8e5cc3d479126fcee8).
**Cyfrin:... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: TWAP CAN BE MANIPULATED IF THE PERIOD IS SHORT ENOUGH
### Description
**Severity**: Medium
**Status**: Acknowledged
**Description**
The function `getUsdPrice` in `UsdOracle.sol` is used for converting an amount of token to usd. This function gets `_period` as input. `_period` is the number of seconds fr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Centralization Risk For Trusted Owners
### Description
The `StakerLight` contract grants extensive control to the contract owner, including the authority to pause and unpause the contract, set reward amounts and durations, adjust withdrawal periods, and perform emergency token withdrawals. While these funct... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Save some gas when looping over state arrays ✓ Fixed
### Description
There are a few loops over state arrays in `LiquidutyMining`.
**code/contracts/LiquidityMining.sol:L209**
```
for (uint256 i = 0; i < leaderboard.length; i++) {
```
**code/contracts/LiquidityMining.sol:L217**
```
for (uint256 i = 0; i ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | storage | false | false | ## Medium: Uncontrolled call of functions
### Description
- [crv-locker.sol#L84](https://github.com/pickle-finance/protocol/blob/9b0f330a16bc35c964211feae3b335ab398c01b6/src/strategies/curve/crv-locker.sol#L84)
Uncontrolled call of functions of another contract on behalf of this contract with the possibility of tr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Misleading comments
### Description
Some comments in the `V3DutchOrderReactor` contract are misleading.
- **V3DutchOrderReactor#L17:**
- Original:
```solidity
/// @dev V3 orders must be cosigned by the specified cosigner to override starting block and value
```
- Suggested:
```solidity
/// @de... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | medium | Fund Lock | false | false | **Impact:**
Medium, as it will result in stuck funds, but they will just have the value of gas refunded
**Likelihood:**
Medium, as it will happen when there is a refund from a cross-chain call
**Description**
The `HibernationDen` contract has a `receive` method. This is mostly expected to be used for `LayerZero` ref... | Pashov Audit Group | 3 | Bearcave |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Risks associated with using the Hu� programming language
### Description
The use of the Huff programming language leads to risks related to its unstable code that are not justified and may be unnecessary. The Huff programming language is still under heavy development, and there are no stable releases of it yet. ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inverting the condition of an `if`-`else`-statement wastes gas
### Description
Flipping the `true` and `false` blocks instead saves ***[3 gas](https://gist.github.com/IllIllI000/44da6fbe9d12b9ab21af82f14add56b9)***.
*There are 2 instances of this issue:*
https://github.com/debtdao/Line-of-Credit/blob/e8aa08b... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | false | false | ## Low: Just in time (JIT) liquidity can be used to inflate rebalance order amounts
### Description
As reported in the Trail of Bits audit, the addition of JIT liquidity before a swap that would trigger a rebalance order can inflate the amount required fulfil the order beyond that which would typically be within the p... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | signature | true | false | ## Medium: Price can change, making `sigFees` calculation insufficient
### Description
**Severity**
**Impact:** Medium
**Likelihood:** Medium
**Description**
When a user asks for a redemption, the validators submit signatures which eventually transfer out the bitcoin ordinal. To compensate the validator's gas fees... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | liquidation | true | false | ## Gas: Cache external calls outside of loop to avoid re-calling function on each iteration
### Description
Performing STATICCALLs that do not depend on variables incremented in loops should always try to be avoided within the loop. In the following instances, we are able to cache the external calls outside of the loo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Insufficient duration validation in `STBL_Register::setupAsset` can lock user withdrawals
### Description
**Description:** Lack of duration validation in `STBL_Register::setupAsset` and `STBL_Register::setDurations` allows asset configurations where `yieldDuration > duration`, creating mathematically impossibl... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Oracles are vulnerable to cross-chain replay attacks
### Description
Oracles are vulnerable to cross-chain replay attacks
### Impact
Keepers on the forked chain can use oracle prices from the original chain, even though they may not be correct for the current chain (e.g. USDC's price on the fork may be wor... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | other | false | true | ## High: The delegator resetting self-delegation causes multiple issues in the protocol
### Description
Whenever the vote power of delegators are changed, the validity of self-delegation of the delegator is not checked, which results in issues in multiple parts of the protocol.
- `unsetUserVoteDelegate`: It does 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 | low | initialization | true | false | ## Low: Irrelevant Error message
### Description
## Hashing Account Findings
For a Hashing account, `is_active` is used to track whether the computation has been initiated/started or not. However, in the compute and finalize hashing functions for `is_active`, the guard assertion gives an incorrect error message.
###... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Code Optimization
### Description
## Code Review Feedback
## 1. Redundant Functions
The functions `grantRoleToAddress` and `revokeRoleFromAddress` in `Intent` are redundant as `grantRole` and `revokeRole` are public. The `grantRole` and `revokeRole` functions provide the necessary functionality, rendering 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 | true | false | ## Low: Unsafe casting of uint256 to uint32 in LayerZeroAdapter.sol
### Description
LayerZero represents chains using `uint32`, while the sweep-n-flip protocol uses chain IDs as `uint256`. Multiple instances exist in the `LayerZeroAdapter.sol` contract where `uint256` values are directly cast to `uint32`. This casting... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `SwingTraderManager.costBasis()`: should use memory instead of storage variable
### Description
See @audit tag | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | reentrancy | false | false | ## Low: Missing or erroneous docstrings and comments
### Description
Several docstrings and inline comments throughout the codebase were found to be erroneous and should be fixed. *Some examples* are:
* In [line 2458](https://etherscan.io/address/0x3d9819210a31b4961b30ef54be2aed79b9c9cd3b#code#L2458) of `Unitroller.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Rocketpool CLI - Insecure SSH HostKeyCallback ✓ Fixed
### Description
The SSH client factory returns instances that have an insecure `HostKeyCallback` set. This means that SSH servers' public key will not be validated and thus initialize a potentially insecure connection. The function should not be used for... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | false | false | ## High: Incorrect Accounting in `_removeOrder()` Leading to Loss of Orders
### Description
**Update**
The Talentir team fixed the issue in commit 29e5bc9a49f3af07714752fc458398b1052e8459 by removing the specific order ID from the list.
**File(s) affected:**`TalentirMarketplaceV1`
**Description:** The function `Tale... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Issued options might not be backed by underlying assets
### Description
Options issued by the Primitive protocol have an expiry date. The [`notExpired` modifier](https://github.com/primitivefinance/primitive-protocol/blob/78a8e64b7618e9199203ab84042876c580ae1e90/packages/primitive-contracts/contracts/option/p... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | dos | true | false | ## Medium: Fee-on-transfer token handling issue in `Treasury::deposit` leads to permanent fund loss
### Description
The `Treasury::deposit` and `Treasury::withdraw` functions in the `Treasury` contract do not properly account for fee-on-transfer tokens, such as `RAAC` Token. This leads to incorrect balance tracking, c... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | reentrancy | false | false | ## Medium: Giant pools cannot receive ETH from vaults
### Description
Both giant pools are affected:
1. GiantSavETHVaultPool
2. bringUnusedETHBackIntoGiantPool
The giant pools have a `bringUnusedETHBackIntoGiantPool` function that calls the vaults to send back any unused ETH.
Currently, any call to this function w... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Users are unable to withdraw immediately, even if they stake after reaching maxEndTime
### Description
Users can still stake stETH in the pool after the pool's maxEndTime, but they won't receive any rewards. Withdrawal of these stETH funds necessitates users to wait for the `withdrawLockPeriodAfterStake` durat... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | ## High: Ine�ective access control can lead to user funds being stolen
### Description
The `onlyAllowedModule` modifier used as access control in the `BondEscalationAccounting` contract can be easily bypassed by creating an arbitrary request in the Oracle contract. This allows a malicious user to steal the token balan... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | critical | integer-overflow | true | true | ## Critical: Reward tokens can become inaccessible due to revert when `rewardPerTokenStored` is downcast and overflows
### Description
The return value of `_newRewardPerToken()` that is assigned to the `rewardPerTokenStored` state variable present in all incentive logic contracts is not safe to be type casted to `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... | solodit_api | high | Wrong Math | true | false | Source: https://github.com/sherlock-audit/2022-10-merit-circle-judging/issues/109
## Found by
WATCHPUG
## Summary
The current implementation may result in a burn of shares when `extendLock()`, which may result in a decrease of overall rewards (`total length of locked period * shares`).
## Vulnerability Detail
In... | Sherlock | 4 | Merit Circle |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Code
### Description
In the [`_moveVotingPower`](https://github.com/AmperaFoundation/sol-contracts/blob/c6e940c12044c8994f778c978e34582449229df8/contracts/governance/Anvil.sol#L142) function of the `Anvil` contract, the integer sign of the `fromVotingUnitDelta` variable makes a distinction between the c... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | access-control | false | false | ## Medium: PRIVILEGED ADDRESS CAN BE TRANSFERRED WITHOUT CONFIRMATION
### Description
Incorrect use of the `update_config` function in contracts can set owner to have an invalid address and inadvertently lose control of the contracts, which cannot be undone in any way. Currently, the contract owner can change the **ow... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Erc4626formimplementation._processdirectwithdraw sends funds to msg.sender instead of re- ceiver
### Description
## Context
(No context files were provided by the reviewer)
## Proof of Concept
When a user wants to do a withdrawal on the same chain (or on another chain), they provide the `receiverAddress` o... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | false | false | ## High: Wrong design of swap() results in unexpected and unfavorable outputs
### Description
## Handle
WatchPug
## Vulnerability details
The current formula to calculate the `amountOut` for a swap is:
https://github.com/code-423n4/2021-11-vader/blob/429970427b4dc65e37808d7116b9de27e395ce0c/contracts/dex/math/Vad... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Address restrictions in AllowanceModule
### Description
The address of the Organizer/PayrollManager has some restrictions imposed by the AllowanceModule:
- `uint48(address(Organizer))` may not be 0;
- `uint48(address(Organizer))` may not be the same as another delegate contract.
This is unlikely to occur; how... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: There is no processing of the value returned by the function
### Description
In the https://github.com/Grandthrax/yearnV2-generic-lender-strat/blob/979ef2f0e5da39ca59a5907c37ba2064fcd6be82/contracts/GenericLender/IGenericLender.sol contract, line 21 has a function `withdrawAll()`. This function returns a v... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | initialization | false | false | ## Medium: Timed.isTimeEnded returns true if the timer has not been initialized
### Description
`Timed` initialization is a 2-step process:
* `Timed.duration` is set in the constructor:
* `Timed.startTime` is set when the method `_initTimed` is called:
Before this second method is called, `isTimeEnded()` calcula... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing Validation of `depositCalldata` in `depositBufferedEther` Function
### Description
The issue is identified within the [depositBufferedEther](https://github.com/lidofinance/core/blob/fafa232a7b3522fdee5600c345b5186b4bcb7ada/contracts/0.8.9/DepositSecurityModule.sol#L500) function of the contract `Deposi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Improper Bit-Length Validation in Reserve Configuration
### Description
https://github.com/aave/protocol-v2/blob/f435b2fa0ac589852ca3dd6ae2b0fbfbc7079d54/contracts/libraries/configuration/ReserveConfiguration.sol#L46
https://github.com/aave/protocol-v2/blob/f435b2fa0ac589852ca3dd6ae2b0fbfbc7079d54/contracts/... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Risk of mismatched price used resulting in invalid price
### Description
* `src/oracles/EETHPriceAdapter.sol`
* Instances(4)
### Vulnerabilities
`getAnswer` will take a roundId input for `BASE_AGGREGATOR` to get a round-specific price. However, it only takes the latest price for `WEETH_AGGREGATOR`. Since bot... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: Lack of Validation of Treasury Address Could Halt Contract
### Description
The [`updateTreasury` function](https://github.com/Ion-Protocol/ion-protocol/blob/98e282514ac5827196b49f688938e1e44709505a/src/reward/RewardModule.sol#L223) of the `RewardModule` contract changes the address of the treasury that receive... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Usage of uint/int smaller than 32 bytes (256 bits) incurs overhead
### Description
When using elements that are smaller than 32 bytes, your contract’s gas usage may be higher. This is because the EVM operates on 32 bytes at a time. Therefore, if the element is smaller than that, the EVM must use more operation... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect Comment Line
### Description
**Severity**: Informational
**Status**: Resolved
**Description**
In the contract CVIReverseOracle, the function getComputedCVIValue has a comment line that states “ // Truncate to 1 to avoid 0 cvi issues”. While this is correct, it would be easier to understand as “ro... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Off by One Error in `_validatePermit()` Function
### Description
The `_validatePermit()` function has a check for `expiresAt`, purchase can't be made if the permit has expired, however, this has an off-by-one error and the call fails when the `block.timestamp == expiresAt`.
### Impact
Purchase can't be made w... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | token | true | false | ## Low: Position State Can Be Broken If Referee Is Blacklisted
### Description
There is an issue in the `PlatformLogic.handleTokenAmountWhenPositionHasFailed()` function, specifically related to the handling of USDC and USDT which have a blacklist feature. If a referee (recipient of funds) is blacklisted, any operatio... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: SherpaUSD does not work with fee-on-transfer tokens
### Description
**Description:** The SherpaUSD contract cannot work correctly with fee-on-transfer tokens. An example of such a token is USDT, which is expected to be supported as per comments. Note: Fees are not yet activated on USDT however they can be at a... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | dos | true | false | ## Medium: `asdRouter.sol` is at risk of DOS due to vulnerable implementation of `NOTE` address
### Description
### Proof of Concept
Based on Canto [doc](https://docs.canto.io/evm-development/dex-and-lending-market# note), `NOTE` address may be modified and redeployed:
> The `NOTE` smart contract may be modified 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 | gas | other | true | false | ## Gas: Using `> 0` costs more gas than `!= 0` when used on a `uint` in a `require()` statement
### Description
1. File: core-contracts/contracts/CoreCollection.sol (lines [52-55](https://github.com/code-423n4/2022-03-joyn/blob/c9297ccd925ebb2c44dbc6eaa3effd8db5d2368a/core-contracts/contracts/CoreCollection.sol#L52-L... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | cross-chain | true | false | ## Medium: Rebalancer can send to unallowed destination chains through EverclearBridge
### Description
The rebalancer contract is called on `sendMsg` with a message encoded as bytes (`_msg.message`). This message is specific for the bridge contract, and in the case of `EverclearBridge` it is of the form `IntentParams`... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Whitelisted profile creators could accidentally break migration for V1 profiles
### Description
Profiles that exist before the V2 upgrade are migrated using the [`batchMigrateProfiles()`](https://github.com/code-423n4/2023-07-lens/blob/main/contracts/misc/LensV2Migration.sol#L33-L35) function, which works b... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | false | false | ## High: Arbitrary Position Managers
### Description
The [`UNCX_ProofOfReservesV2_UniV3`](https://github.com/uncx-private-repos/liquidity-locker-univ3-contracts/blob/342c621cc93a13882601b30e547907877f3e3f86/contracts/UNCX_ProofOfReservesV2_UniV3.sol) contract is meant to work with any "UniswapV3-like" protocol. It 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 | cross-chain | true | false | ## Medium: Users cannot burn their TRSY in exchange for assets when RelayerV2.withdraw() is paused
### Description
**Severity**
**Impact:** High
**Likelihood:** Low
**Description**
In RelayerV2.sol, the guard, which is appointed by the keeper, can pause the protocol through `pauseProtocol()`.
When the protocol i... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | front-running | false | false | ## Medium: VaderPoolV2.mintFungible exposes users to unlimited slippage
### Description
## Handle
TomFrenchBlockchain
## Vulnerability details
## Impact
Frontrunners can extract up to 100% of the value provided by LPs to VaderPoolV2 as fungible liquidity.
## Proof of Concept
Users can provide liquidity to `Vade... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: If bounty is created without all underlying tokens, accounting will be permanently thrown off
### Description
When a bounty is created, it includes a `nominal` value for each underlying token.
If the token is not going to be adjusted, the `nominal` value should equal the previous nominal amount, minus all ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | access-control | true | false | ## Low: Disabling an asset via `STBL_Register::disableAsset` with active deposits can DOS user withdrawals
### Description
The `STBL_Register::disableAsset` does not check for active deposits before disabling an asset, creating a Denial of Service (DOS) condition where users cannot withdraw their deposited funds.
`S... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | false | false | ## Low: `FORCE_RELEASER_ROLE` can cause underflow in `lockedBalances`
### Description
The `FORCE_RELEASER_ROLE` can call `TreasuryIntermediateEscrow.forceRelease()` with a `_payoutAmount` of zero multiple times. This leads to a decrease in the `lockedBalances` mapping for a specific asset by an amount greater than 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 | front-running | true | false | ## High: `acceptCounterOffer()` May Result In Both Orders Being Filled
### Description
_Submitted by kirk-baird, also found by csanuragjain, hansfriese, Lambda, and minhquanym_
When a user is attempting to accept a counter offer they call the function [acceptCounterOffer()](https://github.com/code-423n4/2022-06-putty... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Deauthorized accounts can keep shares of the MMF
### Description
An unauthorized account can keep shares if the admin deauthorizes the shareholder without zeroing their balance. This can lead to legal issues because unauthorized users can keep shares of the MMF.
The `deauthorizeAccount` function in the `Au... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.