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
oracle
true
false
## Medium: DoS on the `deposit` function due to excessively low slippage tolerance ### Description On deposits, part of the input tokens and newly minted ULTI tokens are added to the pool as liquidity. As a slippage protection mechanism, adding liquidity reverts when the difference between the TWAP and the spot price ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
overflow
true
false
## Low: early exit can lock funds in contract ### Description **Description** When a fixed staker exists early in the staking duration they are penalized with an `earlyExitFee`. The `earlyExitFee` is decided by this calculation in `calculateFixedEarlyExitFees`: `earlyExitFeeBps` is 10% (set at construction from `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
high
access-control
false
false
## High: Malicious markets can be injected into orders in the event of a re-org ### Description Severity: High Risk Context: RecipeKernel.sol#L51 Description: Recipe markets can be instantiated permissionlessly in createMarket() and is indexed by numMarkets which increases for each new instance. AP and IP offers can 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: Double-Counting of Dividend Payout Results in Capital Providers Not Being Able to Withdraw Dividends ### Description **Update** Marked as "Fixed" by the client. Addressed in: `0649519abe4bde381328143d6b502e8b4ce3b9af`. All three items were fixed. **File(s) affected:**`LibTokenizedVault.sol` **Description:**...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
solodit_api
medium
token
false
true
Report type: Smart Contract Target: https://github.com/alchemix-finance/alchemix-v2-dao/blob/main/src/VotingEscrow.sol Impacts: - Griefing (e.g. no profit motive for an attacker, but damage to the users or the protocol) ## Description ## Brief/Intro Assume there's three addresse's (Bob,Alex and Maya). Maya got `1e1...
Immunefi
5
Alchemix
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
logic
true
false
## High: Business logic bug in __abdicate() function - 2 Bugs ### Description _Submitted by cyberboy, also found by Meta0xNull_ #### Impact The `\__abdicate()` function at is the logic to remove the governance i.e., to renounce governance. However, the function logic does not consider emergency governor and pending...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Public Functions Could Be Marked External ### Description **Severity**: Informational **Status**: Resolved **Description** The `distributeRewards()` and `depositFromRewards` functions of the `MiniPoolManager.sol` contract is marked as public but it could be marked as external instead. While both public 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
medium
storage
false
false
## Medium: Array signed int access ### Description Arrays can be keyed by a signed integer, while they are defined for unsigned integers only. ### Impact This could cause sne(a)ky accesses to forbidden storage slots.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Redundant zero value state var initialization ### Description In `Counter`, we initialize `value` as `0`: ```solidity uint256 public value = 0; ``` However, since the default value for `uint256` variables is already `0`, this stores the same value which is already present. A cold `SSTORE` from a zero value 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...
solodit_api
medium
First Depositor Issue
true
false
## ERC4626 Clone Analysis ## Severity **Medium Risk** ## Context `ERC4626-Cloned.sol#L130` ## Description Aside from storage layout/getters, the context above notes the other major departure from Solmate's ERC4626 implementation. The modification requires the initial mint to cost 10 full WETH. ### Code Snippet ```s...
Spearbit
5
Astaria
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `lastIntervalNumber` Is Off By One ### Description When the protocol starts, `startTimestamp` is saved. At time t (startTimestamp) to t+5, the interval should be zero and at time t+5 - t+10, the interval should be 1. ``` Supposed interval count t - t+5, Interval = 0 t+5 - t+10, Interval = 1 ``` The protocol ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: vault.changeAdapter can be misused to drain fees ### Description The vault owner has an option to change the adapter for the vault. The normal mechanism to change adapter is that the change should first be proposed by the owner via `proposeAdapter` and after a `quitPeriod`, it can be set via a call to `cha...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
### Relevant GitHub Links <a data-meta="codehawks-github-link" href="https://github.com/Cyfrin/2023-09-ditto/blob/main/contracts/facets/MarginCallPrimaryFacet.sol#L47">https://github.com/Cyfrin/2023-09-ditto/blob/main/contracts/facets/MarginCallPrimaryFacet.sol#L47</a> <a data-meta="codehawks-github-link" href="https:...
Codehawks
5
DittoETH
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing call to sweep() before calling collect() in harvestOperatorRewards() may result in inaccu- ### Description ## Rate Rewards **Severity:** Medium Risk **Context:** RewardsLib.sol#L307-L313 **Summary:** Missing sweep before calling collect in `harvestOperatorRewards()` may result in inaccurate rew...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
reentrancy
true
false
## Low: Use of `transfer(...)` for native gas token transfers is not future-proof ### Description See [`_refundToken`(…)](https://github.com/code-423n4/2024-03-canto/blob/1516028017a34ccfb4b0b19f5c5f17f5fa4cad42/contracts/asd/asdRouter.sol# L184) method: The `transfer(...)` function forwards a fixed amount of 2300 g...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
access-control
true
false
## Medium: Lack of access control in the parameterize function of proposal contracts ### Description ## Handle shw ## Vulnerability details ## Impact Most of the proposal contracts have a `parameterize` function for setting the proposal parameters, and these functions are protected only by the `notCurrent` modifi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Zero fee orders are possible if a user performs transactions with a zero gas price ### Description Users can submit valid orders and avoid paying fees if they use a zero gas price. The computation of fees for each transaction is performed in the `calculateFillResults` function. It uses the gas price selecte...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing Events on Important State Changes ✓ Fixed ### Description The `setBaseURI()` and `setMintingSchedule()` state\-changing functions do not emit an event. Events help to track state changes of smart contracts and make it easier for off\-chain tools to track critical updates. It’s always better to emit eve...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: selection sort with stop condition instead of bubble sort wouldn't require to sort the entire list in sortLendersWithAPR ### Description One alternative design instead of bubble sort could be to directly sort in `requestLiquidity` with selection sort. This would be more efficient because it wouldn't require so...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 validation for start and end IDs in settlement retrieval ### Description The `getSettlements(uint256, uint256)` function in the **BeraAuctionHouse** contract does not validate whether the `startId` is less than or equal to the `endId`. If an invalid range (e.g., `startId > endId`) is provided, the func...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Use standard ReentrancyGuard ### Description **Description** Throughout the project the variable _Locked together with _nonReentrant() function are used for the reentrancy prevention, though, for the safety of further development it is recommended to use standard ReentrancyGuard with modifier. It will increas...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
logic
true
false
## Low: [11] VULNERABILITIES IN VERSION 4.8.1 OF `@openzeppelin/contracts` AND `@openzeppelin/contracts-upgradeable` ### Description As shown in the following code in `package.json`, version 4.8.1 of `@openzeppelin/contracts` and `@openzeppelin/contracts-upgradeable` can be used. As described in https://security.snyk....
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
initialization
true
false
## Low: The `NON_WHITELISTED_MAX_PER_USER` parameter is taking effect only if `merkleRoot` is not set ### Description The current implementation of the `_preBuyCheck` function in the `NFTMintSaleWhitelisting` contract relies on the `merkleRoot` being set to `bytes32(0)` to make the `NON_WHITELISTED_MAX_PER_USER` param...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 market enabled validation in Swap and CreateAdl activities ### Description There is no market enabled validation in Swap and CreateAdl activities. ### Impact Activities can still be performed on an disabled market ### Recommendation Add the similar following code ```solidity Market.Props memo...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
dos
false
false
## High: BalancedVault.sol: loss of funds + global settlement flywheel / user settlement flywheels getting out of sync ### Description When an epoch has become "stale", the `BalancedVault` will treat any new deposits and redemptions in this epoch as "pending". This means they won't get processed by the global settleme...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
## Severity **Impact:** Medium **Likelihood:** High ## Description In the `NativeVault` contract `Storage.ownerToNode[nodeOwner].activeValidatorCount` keeps track of the total validators with withdrawal credentials pointed to a specific node. This value is decreased in `NativeVaultLib.validateSnapshotProof` when t...
Pashov Audit Group
5
Karak-June
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
overflow
false
false
## High: Risk of overflow. ### Description **Description** accTokenPerShare calculation utilizes 1e12*1e18*1e32 that is equal to 1e62. Max size of unsigned integer (256) is 2**256-1 that is ~1e77. With high pool rate and low rateDenominator such amount can cause an overflow. **Recommendation**: Handle or prevent a...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
initialization
false
false
## Low: Unprotected initialize function ### Description **Severity**: Low **Status**: Acknowledged **Description** In contract Identity.sol, at line 31, the initialize function is not protected and therefore anybody can call and initialize the contract with an arbitrary initialOwner address. As the function is bloc...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Validation Logic ### Description ## Code Review and Recommendations ## Issues Identified 1. **collect_reward Usage of Incorrect Token Mint** - The `collect_reward` function utilizes `token_mint` to initialize the `rewards_token_account` instead of `emission_mint`. The MarginFi program expects the 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...
solodit_api
medium
Wrong Math
true
false
Source: https://github.com/sherlock-audit/2022-10-rage-trade-judging/issues/36 ## Found by 0x52 ## Summary The maximize input to DnGmxJuniorVaultManager#_totalAssets indicates whether to either maximize or minimize the NAV. Internal logic of the function doesn't accurately reflect that because under some circumsta...
Sherlock
5
Rage 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
dos
false
false
## Low: TODOs in the code ### Description **Description** File: Balance.svelte Details: There are multiple "TODO"s in the given file. **Recommendation** Double check needed implementation is done and remove TODO tags **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
gas
access-control
true
false
## Gas: Storage read optimizations ### Description **Description:** 1. [`AccountableOpenTerm::_calculateRequiredLiquidity`](https://github.com/Accountable-Protocol/audit-2025-09-accountable/blob/fc43546fe67183235c0725f6214ee2b876b1aac6/src/strategies/AccountableOpenTerm.sol#L642-L655): `vault` and `_scaleFactor` can 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
gas
other
true
false
## Gas: TokenFactory::implementation variable can be marked as immutable ### Description The implementation state variable in `TokenFactory` can be made immutable. Immutables are available in Solidity v0.6.12. ### Recommendation - Change from: ```solidity address public implementation; ``` - To: ```solidity ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
initialization
true
true
## Low: WithdrawalManager can have an invalid exit configuration ### Description The `setExitConfig` function sets the configuration to exit from the pool. However, unsafe casting allows this function to set an invalid configuration. The function performs a few initial checks; for example, it checks that `windowDurati...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
Business Logic
true
false
## Security Risk Report ## Severity **Medium Risk** ## Context `BridgeFacet.sol#L571-L638` ## Description The function `_handleExecuteLiquidity()` initially checks for `receiveLocal` but does not check for `receiveLocalOverrides`. Later on, it does check for both values. ```solidity function _handleExecuteLiquidity...
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
low
other
false
false
## Low: Missing NatSpec comments ### Description The MultiRewards and MultiRewardsFactory contract both lack NatSpec comments. Adding NatSpec comments can improve readability for developers and enhance user experience on external applications such as Etherscan. ### Recommendation Implement NatSpec comments in the Mul...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Signatures Can Be Reused To Undo Revocation ### Description A valid signature submitted to the function `signActionViaPermit()` has the effect of setting `signedData[actionHhash]` to `true`, allowing the action to be executed. The functions for revoking signed status for an action operate by setting `signed...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: No slippage control on `deposit` of `IbbtcVaultZap.sol` ### Description _Submitted by gzeon, also found by WatchPug_ #### Impact There is no slippage control on `deposit` of `IbbtcVaultZap.sol`, which expose user to sandwich attack. #### Proof of Concept [`IbbtcVaultZap.sol` L174](https://github.com/Badg...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Misleading Errors ### Description Throughout the codebase, some errors are misleading or do not provide enough information about the root cause: * The [`ValueMismatch(uint256 expected, uint256 actual)`](https://github.com/matter-labs/era-contracts/blob/19575710034b16994932a1f055371fccaaaebf6f/l1-contracts/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
initialization
true
false
## Low: adjustedMinAbsRate might be greater than adjustedMaxAbsRate ### Description In `calcSwapSize`, one tweaks the rate ranges to: - \( r'_{min} = r_{min} \otimes (10^{18} + 10^8) \) - \( r'_{max} = r_{max} \otimes (10^{18} - 10^8) \) Whenever `rmin` and `rmax` are set either in the constructor or through `setAMM...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
reentrancy
true
false
## Medium: A user loses funds when he modifies only price of listings. ### Description When user modifies only price of listings, the protocol applies more taxes than normal. ### Impact The protocol applies more tax than normal. ### Recommendation `Listings.sol#modifiyListings()` function has to be modified as follo...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: registerAsset() can overwrite _assetClass value ### Description ## Handle gpersoon ## Vulnerability details ## Impact Everyone can call the function registerAsset() of MochiProfileV0.sol Assuming the liquidity for the asset is sufficient, registerAsset() will reset the _assetClass of an already registered...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `deleverageAccount` can be used by an address to enter a vault that would otherwise be restricted by the `requireValidAccount` check in `enterVault` ### Description `deleverageAccount` can be used by an address to enter a vault that would otherwise be restricted by the `requireValidAccount` check in `enterV...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Use of deprecated function for setting token allowances ### Description Throughout the [codebase](https://github.com/pods-finance/yield-contracts/tree/c4b401ce674c24798de5f9d02c82e466ee0a2600/contracts) there were multiple locations where the deprecated [`safeApprove`](https://github.com/OpenZeppelin/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
access-control
false
false
## Medium: Lack of pause functionality within the OFT Adapter ### Description The transferring of tokens is performed in two steps: locking (or burning) tokens on the local chain and then minting (or releasing) the same amount of tokens on the remote chain. If an issue arises with the remote chain endpoint (such as pa...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
reentrancy
true
false
### Relevant GitHub Links <a data-meta="codehawks-github-link" href="https://github.com/Cyfrin/2023-07-beedle/blob/658e046bda8b010a5b82d2d85e824f3823602d27/src/Staking.sol#L46">https://github.com/Cyfrin/2023-07-beedle/blob/658e046bda8b010a5b82d2d85e824f3823602d27/src/Staking.sol#L46</a> <a data-meta="codehawks-github-...
Codehawks
5
Beedle - Oracle free perpetual lending
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Checks-effects interaction pattern not followed ### Description The `withdraw()` function allows the withdrawal of deposited funds from the strategy. However, the function does not follow the **checks-effect-interaction** pattern, which is a common pattern in Solidity development to prevent reentrancy attacks....
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Enforce Passcode Request ### Description ## Security Vulnerability in Mobile Application The mobile application requests a passcode every time it is accessed. However, when the application runs in the background, the passcode is not requested again to perform actions that require authentication when 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: Updating the entity allowance when the individual belongs to a group that has multiple catalysts for different entities can result in mistakenly modifying the allowance of entities where the individual is not even part of ### Description **Description:** The problem is that entities that have nothing to do wi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
storage
false
false
## High: Network cannot detect malicious nodes ### Description NuCypherKMS does not currently have a way to establish whether a miner is performing valid re-encryptions. At best, this severely reduces the reliability of the network. At worst, it could lead to malicious nodes mining free money. ### Recommendation We 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...
cyfrin_structured
low
logic-error
true
false
## Low: Unnecessary execution mode support in `DelegationMetaSwapAdapter` ### Description The `executeFromExecutor` function in the `DelegationMetaSwapAdapter` supports multiple execution modes (batch/single) and execution types (default/try). However, in practice, the adapter's main function swapByDelegation only eve...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: DIVISION BY ZERO IN ISWITHINCREDITLIMIT ### Description The `isWithinCreditLimit` function does not handle leveraged-only collateral properly. When leveraged-only collateral is passed, and the credit value exceeds the collateral value, the transaction fails with a `Division or modulo division by zero` 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
signature
false
false
## Low: Missing Function Selector Check in `isIModuleFunction()` ### Description **Update** Marked as "Fixed" by the client. Addressed in: `c23dec6922d8f9f6e9e4d126b3dea5cd634e488f`. **File(s) affected:**`KnownSelectorsLib` **Description:** The `KnownSelectorsLib.isIModuleFunction()` is missing a check for `preSigna...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: Cache storage variables when same values read multiple times ### Description Cache storage variables when same values read multiple times: File: `src/DropBox.sol` ```solidity 232: if (remainingBoxesAmount == 0) revert NoMoreBoxesToMint(); 235: if (remainingBoxesAmount < boxAmount) revert NoMoreBoxesToMi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: liquidation factor < collateral factor for Sigma type ### Description _Submitted by cmichel, also found by gzeon_ The `MochiProfileV0` defines liquidation and collateral factors for different asset types. For the `AssetClass.Sigma` type, the liquidation factor is *less* than the collateral factor: This 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: Several Addresses May Have Multiple Tokens ### Description **Update** Marked as "Unresolved" by the client, and we believe the explanation provided by the development team shows that they have acknowledged the issue. The client provided the following explanation: > Even if we change the address, the change sh...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
false
false
## Medium: Forbidden manager never can use pool ### Description If a credit manager was forbidden, then he can't use the pool and nobody can change it: https://github.com/Gearbox-protocol/gearbox-contracts/blob/0ac33ba87212ce056ac6b6357ad74161d417158a/contracts/pool/PoolService.sol#L443 ### Recommendation We recommen...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
true
true
## Medium: Incorrect condition handling in `BunniSwapMath::_computeSwap()` ### Description In the `BunniSwapMath::_computeSwap` function, there is an issue with the condition handling at line `BunniSwapMath#L134`. Specifically, the `if` statement does not validate whether `naiveSwapResultSqrtPriceX96` is equal to `sqr...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Malicious modification of _usdi or_oracleMaster would allow the removal of all user funds ### Description Description VaultController has two functions registerUSDi() and registerOracleMaster() which allow modification of the key variables that the contract uses. Either of these functions, if ever used mistake...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Conditions' order has impact ### Description The current implementation of the conditions check relies on the condition order, which makes the system more vulnerable to owner's faults and makes the protocol less flexible. - https://github.com/MetaLex-Tech/borg-core/blob/9074503d37cfa1d777ef16f6c88b84c98b4f5...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
cross-chain
false
false
## Low: Ignored return value ### Description **Update** Marked as "Fixed" by the client. Addressed in: `28272a71d9602b1e3cc18bb2a7f629b1a33dce7f`. **File(s) affected:**`Bridge.sol` **Description:** The `claim()` function calls `mint()` on the minted token address, which returns a boolean indicating whether the minti...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: User Can Bypass Maximum Deposit Limit by Exploiting Incorrect Deposit Counting Logic ### Description The `userDeposit()` function in the `Vault` contract contains a critical flaw in how it tracks and enforces the maximum number of different deposits per user. The vulnerability stems from the incorrect place...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Empty event log data is returned when processing order increases ### Description When executing market orders, the `processOrder` function within each order type manages order execution and returns event log data. This data can later be utilized within the `afterOrderExecution` function inside the order’s call...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
initialization
true
false
## Medium: RabbitHoleReceipt’s address might be changed therefore only manual mint will be available ### Description ## Lines of code https://github.com/rabbitholegg/quest-protocol/blob/8c4c1f71221570b14a0479c216583342bd652d8d/contracts/Quest.sol#L13 https://github.com/rabbitholegg/quest-protocol/blob/8c4c1f71221570b...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Withdrawal transactions can get stuck if output root is reproposed ### Description Withdrawal transactions may never be executed if the L2 output root for the block, for which the withdrawal was proven, is challenged and reproposed. ### Impact Legitimate withdrawal transactions will never be finalized if 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
false
false
## Medium: LendingTerm.sol `_partialRepay()` A user cannot partial repay a loan with `0` interest ### Description A user is allowed to partial repay a loan via the `_partialRepay()` function. It has a `debtToRepay` parameter which determines how much of the loan debt will be repaid. The `debtToRepay` amount should rep...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unlocked Pragma ### Description **Update** The solidity version has been locked to `0.8.15`. **File(s) affected:**`UserProxy.sol` **Description:** Every Solidity file specifies in the header a version number of the format `pragma solidity (^)0.8.*`. The caret (`^`) before the version number implies an unlock...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Usage Of Direct Approve Calls ### Description In order to allow for the transfer of tokens from one address, the protocol calls the `approve` function using the IERC20 interface in several places. This approach might be problematic for a few reasons: * Some tokens, to protect against approval race conditions,...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
false
## Low: Context Signer Correction ### Description ## CpiContext::new_with_signer Method The `CpiContext::new_with_signer` method is used to create the context for cross-program invocation. This method is typically used when a program expects a signed invocation, and it includes the account's seeds for signature verif...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `permit()` Can Approve a Blacklisted Spender (Missing Blacklist Check) But approve() Does Not Allow ### Description `RWA` enforces blacklist restrictions in `approve()` / `setApprovalForAll()` by reverting when the target operator/spender is blacklisted. However, the gasless approval path `permit()` does **no...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
true
false
## Medium: There is no function to claim Aave Incentives ### Description Aave provides **Incentives** (e.g., staking rewards or liquidity mining rewards, seeing here: ) to users who supply assets to the protocol. These incentives are typically distributed in the form of additional tokens (e.g., AAVE or other governanc...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
signature
false
false
## Medium: Reuse of Guardian Signatures for Pausing Deposits ### Description The issue is identified within the [pauseDeposits](https://github.com/lidofinance/core/blob/fafa232a7b3522fdee5600c345b5186b4bcb7ada/contracts/0.8.9/DepositSecurityModule.sol#L384) function of the `DepositSecurityModule` contract. This 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
oracle
true
false
## Low: decimals variable name collision in BAMM.sol ### Description BAMM gets decimals from the `priceAggregator` and stores its value in a local variable `decimals`. This name is already being used by a storage variable, and thus results in a name collision. ### Recommendation Consider changing the variable name 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
liquidation
true
false
## Low: Liquidation Due To Incorrect Error Propagation ### Description ## Vulnerability in liquidate_short Function The vulnerability pertains to the handling of errors within `liquidate_short`, particularly how errors propagated from lower-level functions (such as `get_pnl_usd` → `get_leverage` → `check_leverage`) 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
high
other
false
false
## High: USERS CAN CRAFT USING AS INPUT AN NFT THEY DO NOT OWN ### Description In the `CraftingSystem` contract, the `craft()` function is called every time a new craft is started: ### Recommendation **SOLVED**: The `Proof of Play team` added the `GameHelperLibrary._verifyInputOwnership(input, account);` call 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
low
other
true
false
## Low: Require Statement Can Be Removed ### Description **Severity** - Informational **Status** - Resolved The function cancelDuelIfThresholdNotMet has the following checks → Out of these only the second require statement is sufficient which ensures the status to be bootstrapped. The same can be said for the requi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
logic
false
false
## Low: Unclear part of code which burns token after redeem ### Description It's not really clear what is the business logic behind the code-block at https://github.com/CoverProtocol/cover-core-v2/blob/513f5e502a8e8a623729c2c3480fca4e80fdef39/contracts/Cover.sol#L166 as far as I understood it just burns unused tokens ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Lack of events for state variable changes. ### Description **Description** LockToken.sol: there are no events about writing the state variables for functions extendLockDuration(), setFeeParams(), setFeesInUSD(), setCompanyWallet(), setNon Fungible Position Manager(), setV3Migrator(), setNFTContract(), addToke...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
cyfrin_structured
low
other
true
true
## Low: Allowing anyone to finalize any withdrawal can lead to integration problems for smart contract allowed to receive ETH ### Description Current implementation of `swEXIT::finalizeWithdrawal` allows anyone to finalize any withdrawal request which is already processed. However this design decision make the strong ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
dos
true
true
## High: Malicious dao owner can break lz communication ### Description The LayerZeroImpl contract uses the NonBlockingLzApp from the LZ SDK to store all failed messages for future retries: ```solidity function _blockingLzReceive(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload) ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Missing view decorator for read-only functions ### Description `#[view]` decorated functions cannot alter storage; they only read data, providing a safe way to access information without risking state modification. Utilizing the `#[view]` macro to safeguard read-only functions ensures that any attempt to modif...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
other
true
false
## Gas: Cache state variables outside of loop to avoid reading storage on every iteration ### Description Reading from storage should always try to be avoided within loops. In the following instances, we are able to cache state variables outside of the loop to save a `Gwarmaccess (100 gas)` per loop iteration. **Note...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Governance attack on Extraordinary Proposals ### Description The mechanics for Extraordinary proposals are simple and robust for attacks. There is a variable that is called Minimum Threshold (MT). The maximum amount of treasury tokens that can be requested on a proposal is bounded by MT. Basically, you can ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: spec is not followed ### Description The Uniswap mobile wallet automatically imports at most the first 10 wallets associated with a mnemonic. Therefore, if a user has a mnemonic associated with more than 10 wallets, the Uniswap wallet will automatically import only the first 10. BIP44 specifies that wallets 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...
skyward_49k
medium
other
true
false
## Medium: The logic in `_handleVoteOverride` to determine if an account is the transcoder is not consistent with the logic in the `BondManager.sol` ### Description In the current implementation, when voting, the function [\_countVote is triggered](https://github.com/code-423n4/2023-08-livepeer/blob/a3d801fa4690119b6f...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Long lines are not suitable for the ‘Solidity Style Guide’ ### Description It is generally recommended that lines in the source code should not exceed 80-120 characters. Today's screens are much larger, so in some cases it makes sense to expand that. The lines above should be split when they reach that length,...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
initialization
true
false
## Medium: Hardcoded GENESIS_SHNARF Is Incompatible With New Networks ✓ Fixed ### Description In the `initialize` function of the `LineaRollup` contract, the genesis `shnarf`(`GENESIS_SHNARF`) is hard-coded, it cannot work with new networks that has a different genesis `shnarf` without modifying the contract, thus res...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 __gap storage placeholder in upgradeable contracts ### Description **Severity**: Low **Status**: Resolved **Location**: TeaVaultAmbientFactory.sol, TeaVaultAmbient.sol **Description**: The contracts TeaVaultAmbientFactory and TeaVaultAmbient are upgradeable but lack the __gap storage variable, whi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: disableDApp() doesn't clean up dAppSignatories[] ### Description The `disableDApp()` function does not clean up the `dAppSignatories[]` array like the `_removeSignatory()` function does. This oversight could pose a problem if the dApp is enabled again, as the `dAppSignatories[]` array may end up containing 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
flash-loan
true
false
## Low: Ineffective!isContract() Check ### Description The OpenZeppelin library `Addrees.sol` provides the function `isContract()`. This function checks whether an address is a contract by verifying if there is code associated with the address. There are limitations to this function as described in the function docu...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
false
## Low: StrategyManager - Cross-Chain Replay Attacks After Chain Split Due to Hard-Coded DOMAIN_SEPARATOR ### Description A. The `StrategyManager` contract allows stakers to deposit into and withdraw from strategies. A staker can either deposit themself or have someone else do it on their behalf, where the latter requ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Leverage Not Available When Tick Is Negative ### Description The available leverage for a newly minted option is based on the current pool utilization. A check is performed comparing the current tick with the median tick, and the utilization will be set to over 100% if there is too much deviation between 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: Missing check for possible division by zero ### Description The `ratio` calculation in the `addLiquidity()` function of the `StrategyAerodromeGaugeGreen` contract performs two divisions without explictly ensuring that none of the denominators are `0`. This could lead to a division by zero type error. For examp...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Rewards May Remain Locked in `DepositerRewardDistributor` ### Description **Update** While the issue for the case with `extraRewards.length == 0` has been fixed. There is still potential for rewards to remain locked inside the contract. If there are any holders of the staking token which are not within `extraR...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The Permit Functionality in `Lender` Could Not Operate with Smart Contract Multisig Wallets ### Description The `Lender::permit()` function only supports `EOA Signature Verification` and does not support `EIP1271`. Hence `Lender::permit()` is not compatible with `smart contract multisig wallets` such as `Gnosi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [02] Protocol does not enforce `CR` buffer in regards to user's protection ### Description Protocol includes a liquidation logic as can be seen [here](https://github.com/code-423n4/2024-04-dyad/blob/4a987e536576139793a1c04690336d06c93fca90/src/core/VaultManagerV2.sol#L214-L239). However, when getting into a ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
initialization
true
false
## Medium: Exchange Rate can be manipulated if positions are big enough for a long enough time ### Description If exchangeRate can be maniupulated, then this can be used to extract value or grief withdrawals from the `KangarooVault`. From my experimentation, the values to manipulate the share price are very high, mak...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Testnet Addresses Used ### Description **Severity** - Informational **Status** - Partially Resolved **Description** The USDC and wallet addresses used in TokenSale.sol (L88 and L89) are addresses meant for testnet and not for mainnet , these should be corrected before launch. **Recommendation**: Change th...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Old digestIndex Not Released on OIDC Account Update ### Description The [`OidcRecoveryValidator` contract](https://github.com/matter-labs/zksync-sso-clave-contracts/blob/ed21d09add8da99d9c82d0f7c30659625c6636e6/src/validators/OidcRecoveryValidator.sol#L21) uses [a `digestIndex`](https://github.com/matter-labs/...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Deriving deployer keys from a mnemonic loaded from environment variable may compro- mise protocol ### Description The private keys for deployers of all protocol contracts are derived from a mnemonic loaded from an environment variable. Any program or script with access to the process environment can read these...
0