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 | high | access-control | true | false | ## High: Missing access control on critical `FeeController` setters
### Description
**Description:** `FeeController.setFunctionFeeConfig()`, `setTokenGetter()`, and `setGlobalTokenGetter()` are declared `external` but have **no modifier** restricting the caller. Any account can freely (re)configure fee percentages, to... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | oracle | true | false | ## Medium: Finalisation share rate sanity check does not take postponed share burning into account
### Description
**Severity:** Medium
**Path:** Lido.sol:_handleOracleReport#L1187-L1298
**Description:**
When an oracle report with a withdrawal request finalisation comes in, the corresponding ETH is sent to the With... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Bringing a position from unsafe to safe by liquidation partially
### Description
The CDPVault's liquidation mechanism allows partial liquidations to temporarily bring unsafe positions back to a safe state. This can delay necessary liquidations if collateral prices continue to fall, potentially leading to in... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Wrong event emission
### Description
When rtokens are burned during withdrawal amount scaled should be returned and emitted correctly but this is not done correctly.
### Impact
Wrong event emission | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Multiple Usages of Obsolete safeApprove
### Description
In the [`executeBatchDeposit`](https://github.com/scroll-tech/scroll/blob/84f73c76d2cfd0b07640315fc85e7e43eef98498/contracts/src/batch-bridge/L1BatchBridgeGateway.sol#L298-L299) function of `L1BatchBridgeGateway`, the function `safeApprove` is used to app... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | initialization | true | false | ## Low: Don't initialize to default values in Solidity
### Description
Don't initialize to default values in Solidity:
* `Deposit-Registry`:
```solidity
ComplianceChecker.sol
44: for (uint i = 0; i < complianceOptions.length; i++) {
58: uint optionIndex = 0;
65: uint sbtIndex = 0;
Com... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | overflow | false | false | ## Low: Inconsistent Data Types for carry and borrow Parameters
### Description
The arithmetic carry (for addition) and borrow (for subtraction) parameters are defined as the `Limb` type in the [`adc`](https://github.com/OpenZeppelin/rust-contracts-stylus/blob/a67ab7068ac94a5a1ad48ae632050c8d28f9ab25/lib/crypto/src/ar... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | oracle | false | false | ## Medium: Fixed hearbeat used for price validation is too stale for some tokens
### Description
### Impact
The stale period `86400 + 60 seconds` used for the oracle price validation is too short for some tokens like `ezETH` for example on Arbitrum. This could lead to the protocol consuming stale prices on Arbitrum.
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unsafe Call to `decimals()`
### Description
The `decimals()` function is optional in the initial ERC20 and might fail for old tokens that do not implement it.
### Recommendation
Here is how to fix the issue by leveraging [BoringSolidity's](https://github.com/boringcrypto/BoringSolidity/blob/c73ed73afa9273fbce... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: AFiBase contracts can never be inactive once activated
### Description
**Severity**: Low
**Status**: Resolved
**Description**
In Contract AFiStorage.sol, the mapping isAFIActive can only be set true for any aFiBase contract. Since this can be set false once activated, all the `require statements` checking ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | token | true | false | ## Medium: Overriding fees can't be switched back once set
### Description
A fee is charged when buying a PropertyToken via the TokenBank. The system allows for charging a personalized fee on a per-token basis or a baseFee for all tokens.
If the variable `overrideFees` is set as true, the TokenBank will charge the bas... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | front-running | false | false | ## Medium: Pool Manager can frontrun fees to 100% and use it to steal the value from users
### Description
_Submitted by pedroais_
Pool Manager can front-run entry fee to 100% and users could lose all their deposits.
#### Proof of Concept
Considering:
The pool manager is the creator of the pool.
Anyone can create 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 | other | false | false | ## Low: Specifying a pragma version with the caret symbol (^) upfront which tells the compiler to use any version of solidity bigger than specified considered not a good practice. Since there could be major changes between versions that would make your code unstable. The latest known versions with bugs are 0.8.3 and 0.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Structs can be packed into fewer storage slots
### Description
Each slot saved can avoid an extra Gsset (**20000 gas**) for the first setting of the struct. Subsequent reads as well as writes have smaller gas savings.
*There is 1 instance of this issue:*
https://github.com/reserve-protocol/protocol/blob/df7... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | other | true | true |
A very important logic of `update_market()` is to update `accCantoPerShare`.
When updating, if it crosses the epoch boundary, it needs to use the corresponding epoch's `cantoPerBlock[epoch]`.
For example:
cantoPerBlock\[100000] = 100
cantoPerBlock\[200000] = 0 (No reward)
lastRewardBlock = 199999
block.number ... | Code4rena | 5 | Canto |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | true | true | ## Medium: Protocol operator can disable settlement for market with open positions, making it impossible for traders to close their open positions but still subjecting them to potential liquidation
### Description
`GlobalConfiguration::updateSettlementConfiguration` allows the protocol operator to disable settlement f... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | oracle | true | false | ## High: `StableOracleDAI` calculates `getPriceUSD` with inverted base/rate tokens for Chainlink price
### Description
`StableOracleDAI::getPriceUSD()` calculates the average price between the Uniswap pool price for a pair and the Chainlink feed as part of its result.
The problem is that it uses `WETH/DAI` as the bas... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | false | false | ## Gas: Stack variable used as a cheaper cache for a state variable is only used once
### Description
If the variable is only accessed once, it's cheaper to use the state variable directly that one time, and save the **3 gas** the extra stack assignment would spend.
*There are 3 instances of this issue.*
**[Alex 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 | oracle | true | false | ## High: Requested oracle versions, which have expired, must return this oracle version as invalid, but they return it as a normal version with previous version's price instead
### Description
Each market action requests a new oracle version which must be commited by the keepers. However, if keepers are unable to comm... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | ## Low: Max mint will be slightly different than OP token
### Description
Due to the upgrade to OpenZeppelin 5, the maximum total supply for the Mode Token can be a `uint224`. Differential fuzzing revealed this; here's an example repro:
```solidity
function test_op_governanceToken_mint_() public {
op_governanceToke... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: ECDSA incorrect size provided for calldata in the static call
### Description
#### Resolution
Remediated as per the 1inch team in [1inch/[email protected]`cfdc889`](https://github.com/1inch/solidity-utils/commit/cfdc889a5cf7ea4acd29d5b8f0dff3f63f4b6e4d) by passing the correct data size.
The ECDSA librar... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Funds can be redirected to the idle market by reaching the MetaMorpho supply cap using a flash loan
### Description
The public allocator allows users to move funds in a permissionless manner. However, to prevent undesired states in the MM portfolio, FlowCaps are configured, placing limitations on users' capa... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Uniswap V3 pool cardinality should not be hardcoded to 60 in MemeFactory._createUniswap- Pair()
### Description
In `MemeFactory._createUniswapPair()`, whenever a new Uniswap V3 pool is created, `increaseObservationCardinalityNext()` is called with a hardcoded value of 60:
```solidity
// Increase observatio... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Redundant updateReward invocation
### Description
**Severity**: Low
**Status**: Resolved
**Description**
In TradingVaultV2.sol - deposit(uint,address)/withdraw(uint) invokes updateReward(), also in the body of the method the harvest(address) invokes that method. This updates the storage twice and might lead... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Null check in `pricePerShare`
### Description
_Submitted by hack3r-0m, also found by defsec_
oracle can `0` as a price of the share, in that case, 0 will be the denominator in some calculations which can cause reverts from SafeMath (for e.g here: [`WrappedIbbtc.sol` L148](https://github.com/code-423n4/202... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | front-running | false | false | ## High: NodeRegistry Front-running attack on convict() ✓ Fixed
### Description
`convict(uint _blockNumber, bytes32 _hash)` and `revealConvict()` are designed to prevent front-running and they do so for the purpose they are designed for. However, if the malicious node, is still sending out the wrong blockhash for 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 | other | true | false | ## High: Missing Snapshot Mechanism In Staking Module
### Description
## Staking Voting Power Integrity Issues
In staking, where voting power is derived from locked tokens, the absence of a snapshot mechanism to record past voting powers may result in critical issues affecting the integrity of voting processes. When ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | integer-overflow | true | false | ## Medium: No precision scaling or minimum received amount check when subtracting `relayerFeeAmount` can revert due to underflow or return less tokens to user than specified
### Description
`PorticoFinish::payOut` L376 attempts to subtract the `relayerFeeAmount` from the final post-bridge and post-swap token balance:
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: TRST-M-4 DCA strategies may not be effective at averaging spot prices
### Description
**Description:**
The DCA strategies periodically set off CoW Swap orders, according to the specified interval. The order TTL is fixed at 2 hours. When interval is not an order of magnitude larger than TTL, the strategy 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 | low | access-control | false | false | ## Low: Discrepancy In Role Assignment
### Description
## Current Session Role Discrepancy
Currently, when an admin recovery session is created, the `session.role` is hard coded to `Recovery`, implying that the session will always be categorized as a recovery session. Although the `session.options.role` may be specif... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | reentrancy | false | false | ## High: Reentrancy Guard Conflict in `_processVaultRewards` Private Function
### Description
**Severity**: High
**Status**: Resolved
**Location**: CorePool.sol
**Description**
The private function `_processVaultRewards` in `CorePool.sol` is equipped with a `nonReentrant` modifier. This function is called by both ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | true | false | ## High: Eligibility of cancelled proposals makes it possible for `proposalEligibilityQuorumBps` controlling actor to create multiple eligible proposals, stealing rewards from all others
### Description
Actor controlling more than `proposalEligibilityQuorumBps` can spam eligible proposals via creation, voting and canc... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The bonding curve implementation can not be fully changed
### Description
**Severity**
**Impact:** High
**Likelihood:** Medium
**Description**
The `BondingERC20TokenFactory.updateBondingCurve` function should update the bonding curve implementation, but it does not change the `getOutputPrice` function, wh... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | false | false | ## Low: Owner can renounce ownership
### Description
**Severity**: Low
**Status**: Unresolved
**Description**
The Ownable contracts includes a function named renounceOwnership() which can be used to remove the ownership of the contract.
If this function is called on the TokenEmissionsStrategy contract, it will 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 | high | rounding | true | false | ## High: Incorrect Fee Scaling in `spot_lp`
### Description
**Description:** The fee calculation in the `spot_lp` instruction uses an incorrect decimal factor when converting `last_px` to a human-readable price when trying to determine how much money is needed to purchase the minimum quantity of an asset. The code div... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 the 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 ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | overflow | true | false | ## Medium: Removal of pool from reward zone does not allow gulping emissions which were already distributed in the past
### Description
### Finding description and impact
The [`BackstopContract::distribute`](https://github.com/code-423n4/2025-02-blend/blob/f23b3260763488f365ef6a95bfb139c95b0ed0f9/blend-contracts-v2/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 | low | other | true | false | ## Low: Missing Owners Length Check
### Description
## Documentation on `set_owners` Instruction
The `set_owners` instruction does not validate the length of the `owners` parameter. This can cause the program to panic if the length is larger than `max_owners`, as specified during the creation of the smart wallet.
##... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Reward tokens may be frozen in `FarmingPool`
### Description
https://github.com/1inch/farming/blob/7a007ec7784cca2899889e99e46cf06d5788a7d9/contracts/accounting/FarmAccounting.sol#L19
Farmed tokens amount is calculated when a farm duration > 0, so if the distributor starts farming with duration 0, nobody will... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | true | false | ## Low: Delay.cancelExecution should revert on a non-existent script id ✓ Addressed
### Description
`cancelExecution` makes no existence check on the passed-in script ID, clearing its storage slot and emitting an event:
**code/delay-app/contracts/Delay.sol:L102-L110**
```
/\*\*
\* @notice Cancel script execution 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... | cyfrin_structured | low | access-control | false | false | ## Low: Enforce minimum transaction amounts in `StakingVault`
### Description
Some elaborate vault hacks have involved performing vault transactions using very small amounts such as 1 wei in order to manipulate the vault via rounding.
Normal users will never perform transactions using such small amounts; hence consid... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | signature | false | false | ## Low: Missing implementation to cast fractional vote with signature
### Description
On SpokeVoteAggregator, there is no function to sign a voting message with fractional voting params. While a user can cast nominal votes via signature, there is no provision to cast fractional votes via signature.
### Recommendation... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The BigBang contract take more fees than it should
### Description
The repay function in the BigBang contract is used for users to repay their loans. The mechanics of the function are simple:
* 1. Update the exchange rate
* 2. Accrue the fees generated
* 3. Call internal function \_repay
The internal ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Decoding an IPFS hash using a fixed hash function and length of the hash
### Description
[L-02] Decoding an IPFS hash using a fixed hash function and length of the hash
An IPFS hash specifies the hash function and length of the hash in the first two bytes of the hash. The first two bytes are 0x1220, where 12 d... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | token | false | false | ## Low: Unnecessary usage of safe calculations
### Description
In the following function simple substraction can be used to save gas:
https://github.com/CreamFi/compound-protocol/blob/23a4ae93adc70334553f5a83429a4e967c1eefaa/contracts/CCollateralCapErc20.sol#L353
https://github.com/CreamFi/compound-protocol/blob/23a4a... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | other | false | true | ## Low: Race Condition in `updatePrizes` Leading to Unexpected Prizes
### Description
The `updatePrizes` function allows modifying the list of available prizes. However, it does not consider ongoing participations where the randomness request has not yet been fulfilled, leaving some participants without an assigned pr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | cross-chain | true | false | ## Medium: Incorrect parsing of VAA payload . . . . . . . . . . . . . . .
### Description
## VAA Payloads Compliance Audit
VAA payloads have specific formats that need to be strictly followed by all contract implementations on different blockchains. We found that the NEAR contract had several places where it was 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 | other | true | false | ## Low: Use safecast
### Description
**Severity**: Informational
**Status**: Resolved
**Description**
In Contract GlmRebalance, in the method `getLatestRebalInfo(...)` casts `uint256(totalAssets)` to `int256(totalAssets)` without the following check:
**Recommendation**:
Use safe cast. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Sometimes all exception types are handled
### Description
Swift and Kotlin code sometimes handle all exception types, but only the exceptions expected to be thrown should be caught. Catching all exception types can silence important errors and state corruption.
### Recommendation
- **Short term:** Rethink and... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: Add constructor initializers
### Description
[L-01] Add constructor initializers
As per OpenZeppelin’s (OZ) recommendation, “The guidelines are now to make it impossible for anyone to run initialize on an implementation contract, by adding an empty constructor with the initializer modifier. So the implementati... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | rounding | true | false | ## Medium: Exchange rate rounding allows users to get more shares more than intended
### Description
The Opal pool employs a similar system to an ERC4626 vault. It allows for depositing and withdrawing of assets to gain shares in the vault. To calculate the exchange rate between shares and the underlying assets, which... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: No Support for Withdrawing Native Buffer
### Description
**Update**
The team fixed the issue as recommended in the commit `98d608e`.
**File(s) affected:**`vault/vault-native.fc`, `vault/handlers.fc`
**Description:** In `vault-native.fc`, when receiving a message with op code `op::withdraw_buffer`, it 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 | low | other | false | false | ## Low: Lack of Return Value Verification in `_claimWithdrawal` Function
### Description
An issue has been discovered in the `_claimWithdrawal` function of the `EnjoyoorsVaultWithdrawals` contract.
The function is currently not verifying the return value of the `canClaimWithdrawal()` function. As a result, the 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 | storage | false | false | ## Low: External functions of AxelarBridgedGovernor contract are missing onlyProxy modifier
### Description
All the external functions of `LZBridgedGovernor` have the `onlyProxy` modifier which prevents direct access to those functions on the implementation contract. However, the `execute` and `ownerChain` functions of... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Insu�ficient Logging
### Description
When system parameters such as withdrawal delays and bucket parameters are updated, these functions can be updated silently and do not alert users to updated values. When the governance DAO updates the `withdrawalDelay` timeframe, it saves it to a local state variable:
```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 | other | false | false | ## Low: Floating Pragma
### Description
Pragma directives should be fixed to clearly identify the Solidity version with which the contracts will be compiled.
Throughout the codebase, multiple instances of floating pragma directives were identified:
* `Arbitrum_CustomGasToken_Adapter.sol` has the [`solidity ^0.8.0`](... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | ## Low: getAssetPrice assumes that the quote token decimals and oracle precisions match
### Description
In this context we have:
```solidity
(uint80 roundId, int256 price, uint256 startedAt, uint256 timestamp,) =
IChainlinkAggregator(source).latestRoundData();
```
It is important to note that the quote currency's deci... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | dos | true | false | ## High: DoS `KintoWallet` contract
### Description
- https://github.com/KintoXYZ/kinto-core/blob/f7dd98f66b9dfba1f73758703b808051196e740b/src/wallet/KintoWallet.sol#L235
`_resetSigners` does not take into account the current `SignerPolicy` in any way. A user can accidentally call `resetSigners` with an array 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 | low | overflow | false | false | ## Low: Not using SafeMath functions
### Description
Although most of the codebase employs SafeMath methods where appropriate, there are still a few instances of regular Solidity arithmetic operators being used. *Some* examples are:
* On [line 81 of `RiskFramework.sol`](https://github.com/notional-finance/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 | medium | access-control | false | false | ## Medium: Missing blacklist management for `onlyNotBlacklisted()` modifier
### Description
**Description:**
The `buy()` function uses the `onlyNotBlacklisted` modifier to prevent blacklisted addresses from purchasing `saleToken`. However, there is no implementation provided to add or manage blacklisted addresses, ev... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: PackageJsonMismatchedDependency (contracts/package.json: 10)
### Description
**Severity**: Low
**Status**: Acknowledged
**Recommendation**:
Install the missing @openzeppelin/contracts package using npm install @openzeppelin/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 | high | liquidation | true | false | ## High: Perpetual - liquidateFrom should not have public visibility Pending
### Description
`Perpetual.liquidate` is used to liquidate an account that is “unsafe,” determined by the relative sizes of `marginBalanceWithPrice` and `maintenanceMarginWithPrice`:
**code/contracts/perpetual/Perpetual.sol:L248-L253**
`... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `removePriceImpactOpenInterest()` fails to account for expired OI
### Description
**Severity**
**Impact:** Medium
**Likelihood:** Medium
**Description**
`removePriceImpactOpenInterest()` will ensure that it does not remove more OI than required by deducting the actual removed OI from `expiredOiUsd` when... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect BoostCalculator::endTime expectations cause DOS which attackers can use to manipulate key votes
### Description
This vulnerability introduces a denial-of-service (DoS) condition that prevents users from locking their RAACTokens for veRAAC during a specific time frame due to an inconsistent period ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | initialization | true | false | ## High: Unfair Penalty Fees in Pipeline Convert
### Description
The Pipeline Convert will penalize users contributing towards the peg before the conversion capacity is fully reached. This happens because:
In `LibConvert`, the `cumulativePenalty` for the Well uses the current `cappedReservesDeltaB` value, which is re... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | oracle | true | false | ## Low: Constant variables should be marked as private
### Description
**Severity:** Informational
**Path:** src/vault/ManagedVault.sol#L27-L30, src/oracle/LogarithmOracle.sol#L18
**Description:** In the following locations, there are constant variables that are declared `public`. However, setting these constants to... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Code is lacking technical documentation
### Description
In multiple places throughout the code there is a need for technical documentation as dev assumptions are not clear and some math formulas are used but it is not clear why. One example for this is `CoreBase::_applyOdds` - consider adding technical documen... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The Guardian Cannot Re-Prove Invalid Transitions - Phase 1
### Description
The highest proof tier is the guardian tier, allowing a [guardian address](https://github.com/taikoxyz/taiko-mono/blob/b47fc34cb0e7fe9b7ebd9416b3051a067483b860/packages/protocol/contracts/verifiers/GuardianVerifier.sol#L31-L33) contr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | true | Source: https://github.com/sherlock-audit/2022-11-float-capital-judging/issues/33
## Found by
obront
## Summary
According to the docs, the Funding Rate is intended to correspond to the gap between long and short positions that the Float Pool is required to make up. However, as its implemented, the `totalFunding` i... | Sherlock | 4 | Float Capital |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Use of incorrect index leads to incorrect updation of funding rates
### Description
_Submitted by 0xRajeev_
The `updateFundingRate()` function updates the funding rate and insurance funding rate. While the instant/new funding rates are calculated correctly, the cumulative funding rate calculation is incorrec... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Budget allocation will break in case of a fee on transfer ERC 20 token
### Description
[Docs ](https://audits.sherlock.xyz/contests/426?filter=questions) mention that the protocol should work with all kinds of weird tokens but a fee on transfer token won't be allocated to the budget since the allocate 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 | high | rounding | false | false | ## High: Early depositors to BufferBinaryPool can manipulate exchange rates to steal funds from later depositors
### Description
To calculate the exchange rate for shares in BufferBinaryPool it divides the total supply of shares by the totalTokenXBalance of the vault. The first deposit can mint a very small number of ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Improvements and cleanup recommendations
### Description
This issue outlines a couple of small improvements that may be applied to the codebase.
### Recommendation
Consider applying the recommendations listed below. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | liquidation | false | false | ## Medium: Witch can’t give back vault after 2x grab
### Description
## Handle
gpersoon
## Vulnerability details
## Impact
The witch.sol contract gets access to a vault via the grab function, in case of liquidation.
If the witch.sol contract can't sell the debt within a certain amount of time, a second grab can oc... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Typos in the code
### Description
Various typos in the code should be fixed:
`payrill` -> `payroll`
`claimbles` -> `claimables`
`AlowanceModule` -> `AllowanceModule` | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [FIXED] Outdated typing in `FixedSpreadLiquidationStrategy`
### Description
In the `FixedSpreadLiquidationStrategy` contract, the `flashLendingEnabled` variable is incorrectly defined as `uint256` instead of the appropriate `bool` type.
The same issue exists in the [`setFlashLendingEnabled`](https://github.co... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: Missing slippage parameter on Uniswap `addLiquidity()` function
### Description
The Uniswap `addLiquidity()` function expects the slippage params `amountAMin`, and `amountBMin` to be passed.
The `reLP()` sets those values as `0`, which in other terms, means that the contract is ok with receiveing less amou... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Ownership Can Be Renounced
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation:
> _We use a multisig wallet for all owner addresses. Therefore it will be a two-step pattern such as:_
>
>
> 1. _Create a proposal_
> 2. _Approve the proposal_
> 3. ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [13] Use a more recent version of solidity
### Description
Use a solidity version of at least 0.8.0 to get overflow protection without `SafeMath`
Use a solidity version of at least 0.8.2 to get simple compiler automatic inlining
Use a solidity version of at least 0.8.3 to get better struct packing and cheaper ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [4] Missing zero-address check in the setter functions and initiliazers
### Description
Missing checks for zero-addresses may lead to infunctional protocol, if the variable addresses are updated incorrectly.
### Proof of Concept
Navigate to the following contracts.
https://github.com/code-423n4/2022-06-illu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: CRLens contract considerations and improvements
### Description
## Context: CRLens.sol
## Description/Recommendation:
The CRLens contract is a utility contract that allows external entities to query the CDP Manager.
1. **Create an ICRLens Interface**:
Create an `ICRLens` interface that will be inherited... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | storage | true | false | ## High: claimWinning() function can be abused to alter the lottery results
### Description
The `PrizePool` contract implements the function `claimWinning()`. This function is an external function that can be called by anyone every time a draw cycle is completed. It is used by the stakers to claim the rewards of the d... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Use 2-step ownership transfers
### Description
**Severity**: Low
**Status**: Acknowledged
**Description**
Contract Voting.sol and Contract VotingEscrow.sol have several setters which transfers important ownerships in one step.
function setGovernor(address _governor);
function setEmergencyCouncil(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 | low | initialization | true | false | ## Low: `ParticlePositionManager` can be initialized with bad params
### Description
`ParticlePositionManager` has some parameters that are used to control fees, liquidation rewards and loan terms. If these params are incorrect they can cause severe problems with the contract. Therefore, when updating them, [they are ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | Validation | false | true | ## Lines of code
https://github.com/code-423n4/2022-11-stakehouse/blob/4b6828e9c807f2f7c569e6d721ca1289f7cf7112/contracts/liquid-staking/ETHPoolLPFactory.sol#L76
## Vulnerability details
## Impact
It is possible to rotate `LPTokens` to a banned BLS public key. This is not a safe action, because it can result in in... | Code4rena | 4 | Stakehouse Protocol |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | other | true | false | ## Low: Simplify `LSSVMPair::_calculateBuyInfoAndUpdatePoolParams` and `LSSVMPair::_calculateSellInfoAndUpdatePoolParams` conditionals | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Duplicate code in transfer and transferFrom functions
### Description
The [`transfer`](https://github.com/pjsimpkins/ArroERC20Code/blob/1ca1cc85f2e7e046070c187031b75b3335ef57c3/Solidity#L149) and [`transferFrom`](https://github.com/pjsimpkins/ArroERC20Code/blob/1ca1cc85f2e7e046070c187031b75b3335ef57c3/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 | other | true | false | ## Low: NatSpec is incomplete in the pausing functions
### Description
In the both pause and unpause functions a comment is made, that the purpose of this functions is to pause or unpause the minting functionality. This NatSpec isn't full as it not only applies on the minting, but on the redeeming as well. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: Missing `_disableInitializer()` implementation
### Description
**Severity**: Low
**Status**: Resolved
**Description**
The following contracts inherit the Intializable.sol and implement the initialize(...) method with the initializer modifier without disabling the initializers for the implementation 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... | cyfrin_structured | medium | token | true | false | ## Medium: Configuring compose option will prevent users from receiving TGLD on the destination chain
### Description
Users are able to send their TGLD by calling `send` function of TempleGold contract.
Since `SendParam` struct is passed from users, they can add any field including compose data into the message.
Howev... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: VAULTS NEED TO ENABLE OUSD REBASES
### Description
By default, any EOA holding any `OUSD` balance will be automatically enrolled in the token's rebase feature, meaning that their balance will be increased whenever the token is rebased without having to perform any additional action.
However, this is not true ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Amount != 0 checks are missing
### Description
No check for parameter `_amount` zero is done at some places.
### Impact
Users will be able to run the functions successfully and no there would be unnecessary gas cost. And also state update will cost 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 | high | token | true | false | ## High: Vulnerability in Compounder Contract Allowing Compromised EOA to Trigger Self-Destruction
### Description
The compounder contract in the given system possesses a critical vulnerability that could lead to its self-destruction if the externally owned account (EOA) is compromised. This vulnerability is primarily... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | false | false | ## Gas: Functions with access control cheaper if payable
### Description
A function with access control marked as payable will lbe cheaper for legitimate callers: the compiler removes checks for `msg.value`, saving approximately `20` gas per function call.
### Proof of Concept
36 instances:
#### Swivel.sol
[functi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: [11] Inefficient and potentially risky gas price cache update
### Description
The `updateGasPriceFromCache` method calculates the average gas price based on cached gas prices to update the global gas price used in transaction fees. However, the method incorporates an overly simplistic mean calculation without ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Price limits array should be checked for equal length
### Description
In the `_validateAndCalculateBatch()` function, we check the `credIds_` and `amounts_` arrays to be of equal length but this is not done for `priceLimits_` as well.
*** | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [05] Allowance remains when removing `Strategy` from MultiStrategyVault
### Description
### Finding description and impact
The allowance for removed strategies remains at maximum value.
### Proof of Concept
When calling `MultiStrategy.removeStrategy` to remove a Strategy, the asset token’s allowance given 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 | high | Fund Lock | true | false | ## Security Report
## Severity
**High Risk**
## Context
`Executor.sol#L293-L316`
## Description
If `executeWithToken()` reverts, then the transaction can be retried, possibly with additional gas.
See Axelar recovery. However, there is no option to return the tokens or send them elsewhere. This means that tokens wo... | Spearbit | 5 | LI.FI |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | true | false | ## High: Invalid Price Selection
### Description
## Vulnerability Report: Hub's ProcessRepay and ProcessWithdrawal
Hub’s implementations of `processRepay` and `processWithdrawal` contain issues where price selection is performed from incorrect chains.
## ProcessRepay Issue
In `processRepay`, the repay amount is in... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Expensive clone() calls
### Description
**Description**
At:
src/processor.rs:96
src/processor.rs:120
src/processor.rs:208
src/processor.rs:246
... everywhere in invoke ...
Also here
src/processor.rs:150
You clone structures, but it’s expensive operation and they are not likely to be changed inside
the call.
... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.