prompt
listlengths
2
2
source
stringclasses
3 values
severity
stringclasses
5 values
category
stringclasses
186 values
has_code
bool
2 classes
has_poc
bool
2 classes
reference_response
stringlengths
23
5k
firm
stringclasses
26 values
quality_score
float64
0
5
protocol
stringclasses
398 values
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: [08] Inaccurate use of inequality operator ### Description In the `getArtPieceById` function within the `VerbsToken` smart contract, the condition require`(verbId <= _currentVerbId, "Invalid piece ID")` should ideally use `<` instead of `<=`. This is because `_currentVerbId` is post-incremented in the `_mintTo...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Excessively using Console.log ### Description **Severity**: Informational **Status**: Resolved **Description** Contracts are still including console.log statements which is pointless on deployment. **Recommendation** Remove console.log lines. **Fixed**: Issue fixed in commit a72e06b
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Pool Name Length Constraint ### Description ## AddPool Functionality `AddPool` initializes a new pool, and the `params.name` field represents the pool’s name and is one of the seeds that create the pool’s program derived address. If the length of `params.name` exceeds 32 bytes, it may result in collisions wit...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Add preconditions to important functions ### Description Some functions could use more precondition checking. This helps prevent critical bugs coming from programming or user input handling errors. For example, [the function getAddress in line 20 of bitcoin.js of fundraiser-lib](https://github.com/cosmos/fu...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: User's LsETH might be locked due to out-of-gas error during recursive calls ### Description Let `W0, W1, ... W7` represent the withdrawal events in the withdrawal stack. Let `R0, R1, R2` represent the users' redeem requests in the redeem queue. Assume that Alice is the owner of `R1`. When Alice called 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
rounding
false
false
## Low: Generate perfect code headers every time ### Description **Description:** I recommend using header for Solidity code layout and readability https://github.com/transmissions11/headers **[kirk-baird (judge) commented](https://github.com/code-423n4/2022-12-Stealth-Project-findings/issues/40#issuecomment-140947...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Multiple use of block.timestamp, block.timestamp can be manipulated by miners with up to900ms. ### Description **Recommendation**: Use block.number instead of block.timestamp and calculate time based on mined blocks, 1 block is mined every 15 secs so 1 minute = 4 blocks and so on... **Partner response for...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Missing Zero Check Validation in setMaxNegativePnlOnOpenP Function ### Description **Severity**: Low **Status**: Resolved **Description**: The setMaxNegativePnlOnOpenP function in the PairInfos contract sets the maximum negative profit and loss percentage that can be incurred on opening a trade. However, 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...
cyfrin_structured
low
other
true
false
## Low: Confusing variable naming in fee manager contracts ### Description The fee manager contracts use confusing variable names for fee percentage values. In `MbpsFeeManager`, the variable `fee` represents a fee percentage in MBPS (milli basis points), not an actual fee amount. The comment even clarifies "Fee expres...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `_sendToRecipient(...)` is unnecessary if the `receiver` is passed as the `receipient` of the swap parameter. ### Description There are 2 instances of this - https://github.com/code-423n4/2024-01-decent/blob/07ef78215e3d246d47a410651906287c6acec3ef/src/swappers/UniSwapper.sol#L130C13-L140C68 - https://github.c...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
front-running
true
false
## High: ERC4626Cloned deposit and mint logic differ on first deposit ### Description The `ERC4626Cloned` contract is an implementation of the ERC4626 used for vaults. The standard contains a `deposit` function to deposit a specific amount of the underlying asset, and a `mint` function that will calculate the amount n...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
overflow
true
false
## Gas: Assembly Optimization in `mulDiv` Function ### Description [Math.sol](https://github.com/code-423n4/2023-11-panoptic/blob/main/contracts/libraries/Math.sol#L197) The `mulDiv` function can be optimized by using inline assembly for certain arithmetic operations. ### Original Code ### Optimized Code Using ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Consider Defining Commission Scaling Factor as a Constant ### Description The [`commission_scaling_factor`](https://github.com/longgammalabs/hanji-contracts/blob/09b6188e028650b9c1758010846080c5f8c80f8e/src/OnchainLOB.sol#L51) is set as an `immutable` variable, but it is typically a constant value (e.g., `1e6`...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
low
other
true
false
## Low: Typos in Interfaces ### Description Two typographical errors were found in the interfaces used by the project. While they may not be introduced by the team, they have been listed for the sake of completeness: * In `IEarn.sol`: ``` // Amount of CORE the user recieves ... // Amount of CORE the protocol rec...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `public` functions not called by the contract should be declared `external` instead ### Description Contracts [are allowed](https://docs.soliditylang.org/en/latest/contracts.html#function-overriding) to override their parents' functions and change the visibility from `external` to `public` and can save gas by ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Front-Running in delegateBtc Function ### Description The `delegateBtc` function, intended for users to delegate Bitcoin (BTC) to the Core blockchain, lacks mechanisms to prevent front-running attacks. This vulnerability arises from the function's design, which does not account for the potential for malicio...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
cyfrin_structured
high
other
true
true
## High: Blacklisted implementation versions are accessible through migrations ### Description The `VaultFactory` contract implements a blacklisting mechanism to prevent the use of vulnerable or deprecated contract versions. However, the blacklisting check is only applied when creating new vaults through the create fu...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `updateProjectHash` does not check project address ### Description _Submitted by MEP, also found by byndooa, Haipls, and minhquanym_ [Project.sol#L162](https://github.com/code-423n4/2022-08-rigor/blob/5ab7ea84a1516cb726421ef690af5bc41029f88f/contracts/Project.sol#L162) In Project.sol, function `updateProj...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 sanity checks for argumentData instruction ### Description The `argumentData` instruction is missing sanity checks in certain cases. In most cases, `argumentData` is checked to ensure it does not contain any unexpected and unwanted bits, as is done in the `executeCrossModuleCall` function. ```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
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.8 ### 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
true
false
## Low: Slightly imprecise tax calculation ### Description The tax amount is calculated as `amount * DENOM / DENOM + tax_rate` instead of `amount * tax_rate / DENOM`, which means the tax percentage isn’t as precise (less tax is actually charged). We see this in the test case: ```rust // normal tax assert_eq!( dedu...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Ineffective whitelisting in `OmoRouter` contract functions ### Description - The `OmoRouter.deposit()` function restricts depositing in the vault to whitelisted users only, where these users are whitelisted by the router owner, however, the `receiver` address is not subjected to the same whitelist check, **all...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
true
true
## Medium: Wrong parameter order leads to unusable function ### Description DSClock allows for scheduling and executing actions. Due to an incorrect parameter order, the `wire` function, which schedules an action, cannot be executed. The function `wire(target, value, data)` (located at clock.sol#L89-L98) is meant to ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
access-control
true
false
## Medium: Unsafe Role Removal ### Description I n `acl::remove_role`, utilizing the subtraction operation for role removal may produce unexpected results. The current implementation fails to check if the role to be removed is set, allowing attempts to remove an unset role, which may result in other roles being added ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Prevent Partial Deployment of Wrapped Assets ### Description ## Handling Non-Native Tokens with Wormhole’s Token Bridge In order to handle non-native tokens (i.e. tokens that belong to other chains), Wormhole’s token bridge deploys a “wrapped coin” which acts as a proxy for the remote coin. ## Wrapped Asset ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Possible lock ups with SafeMath multiplication  Acknowledged ### Description In some cases using SafeMath can lead to a situation where a contract is locked up due to an unavoidable overflow. It is theoretically possible that both the `internalSubmitVote()` and `internalCancelVote()` functions could become u...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Potential Out-of-Gas Error when Adding a Market ### Description **Update** The client acknowledged the issue and provided the following explanation: > It will go out of gas only when there are a large number of markets but currently, we only have around 30 markets in the core pool. So, this error will not occ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Rate limits are not applied ### Description The `_inflow()` function is designed to reduce the `amountInFlight` by the `_amount` passed to it (`inflowAmount`), with a lower bound of zero: However, let's imagine the following two scenarios: - `RateLimiter.RateLimitConfig(1337, 1000, 100);` **Scenario 1** -...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Could use delete keyword ### Description **Severity**: Informational **Status**: Resolved **Description** The removeWalletListFromVesting() function of ERC20Vesting is intended to remove the user's vestings by setting each element of _vestingToUser[vestingId] to the default value. However, it could use 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
liquidation
true
false
## Low: Inconsistent Use of `shrink()` and `expand()` ### Description **Update** The client acknowledged the issue and provided the following explanation: > Generally we manage inputs and event outputs in uin256 and internally use uin64, so its an expected behaviour. Added natspec comments. **File(s) affected:**`SSV...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing Funds Validation ### Description ## Manager Contract Vulnerability The manager contract fails to validate the provision of ether. An adversary may exploit this to deplete ether. When creating orders, users must pay execution fees, which cover Pyth price feed update fees. However, the protocol fails t...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Solidity compiler optimizations can be problematic ### Description Opyn has enabled optional compiler optimizations in Solidity. There have been several bugs with security implications related to optimizations. Moreover, optimizations are actively being developed. Solidity compiler optimizations are disabled 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
logic
true
false
## High: Incorrect Calculation Of minterCollateral ### Description Following discussions with the development team, it was established that the calculation of `minterCollateral` within the function `_mint()` is incorrect. This will in turn produce incorrect calculations of trading fees and of the permitted collateral ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 a more recent version of solidity ### Description Use a solidity version of at least 0.8.4 to get `bytes.concat()` instead of `abi.encodePacked(,)` Use a solidity version of at least 0.8.12 to get `string.concat()` instead of `abi.encodePacked(,)` *There is 1 instance of this issue:*
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
true
true
## High: Wrong calculation of supply/debt balance of a position, disrupting core system functionalities ### Description There is an error in the calculation of the supply/debt balance of a position, impacting a wide range of operations across the system, including core lending features. ### Impact Since these functio...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Misleading Function Name ### Description **Update** Marked as "Acknowledged" by the client. The client provided the following explanation: > To maintain the backward compatibility. Maybe third parties are calling the public view rewardTokenAmountsPerBlock, so we want to maintain it in the contract **File(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
overflow
false
false
## Low: Arithmetic operations ### Description **Severity**: Informational **Status**: Resolved **Description** The SafeMath library is used for arithmetic operations in this contract. However, as of Solidity version 0.8 and later, SafeMath is no longer required for preventing arithmetic overflow/underflow issues. 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
high
access-control
true
false
## High: Incorrect Priviliges setOperatorAddresses  Acknowledged ### Description The function `setOperatorAddresses` instead of allowing the **Operator** to update its own, as well as the **Fee Recipient** address, incorrectly provides the privileges to the Fee Recipient. As a result, the Fee Recipient can modify 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: `public` functions not called by the contract should be declared `external` instead ### Description Contracts [are allowed](https://docs.soliditylang.org/en/latest/contracts.html#function-overriding) to override their parents' functions and change the visibility from `external` to `public`. *There are 10 inst...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
oracle
false
false
## Low: No Cap on Oracle Price Feed Timeout ### Description **Update** Acknowledged. The client's response: "We acknowledged the issue and deciced to fix in the next version." **File(s) affected:**`LevelOracle.sol` **Description:** The `configToken()` function takes in a `chainlinkTimeout` value that is later used t...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
true
false
## Medium: Owner of a cancelled Sablier stream will be elegible for a full amount reward claim, due to a revert in `FjordStaking::onStreamCanceled(...)` ### Description The `Fjord` protocol team allows for users to stake their Sablier streams and make additional gains on their Sablier NFTs. However, whenever a Sablier...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Application does not exclude keychain items from iCloud and iTunes backups ### Description The Uniswap mobile wallet does not prohibit its keychain items from being saved to an iTunes backup or uploaded to iCloud. Both Apple, Inc. and any attacker with access to a user’s iTunes or iCloud backup will have acce...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Predictable Calls to `payFunding()` Reduce the Effectiveness of Price Alignments ### Description **Update** Positions can no longer be opened or closed in a block after `payFunding()` is called. **File(s) affected:**`ClearingHouse.sol` **Description:**`ClearingHouse.payFunding()` triggers the price alignment...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: ControllerFactory.set_admin() does not have two-step ownership transferring ### Description Admin can transfer ownership to anyone, even if it is a wrong address or zero-value address. - https://github.com/curvefi/curve-stablecoin/blob/0d9265cc2dbd221b0f27f880fac1c590e1f12d28/contracts/ControllerFactory.vy#L2...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: Floating pragma ### Description Contracts should be deployed with the same compiler version and flags that they have been tested with thoroughly. Locking the pragma helps to ensure that contracts do not accidentally get deployed using, for example, an outdated compiler version that might introduce bugs that af...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
cross-chain
true
true
## Low: Vulnerability to withdrawal of stuck funds in certain contracts ### Description There is a vulnerability in the router, bridge, and synthesis contracts that allows for the withdrawal of stuck funds using specifically crafted parameters. **Router** For example, a malicious actor could withdraw Ether from the ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
other
true
false
## Gas: We can save an entire SLOAD (2100 Gas) by short circuiting the operations ### Description https://github.com/code-423n4/2023-10-ethena/blob/ee67d9b542642c9757a6b826c82d0cae60256509/contracts/EthenaMinting.sol#L413-L433 The if statement has two checks `!_supportedAssets.contains(asset)` and `asset == NATIVE_T...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
access-control
false
false
## Low: Consider Validating the `authority` of the `taker_src_ata` Account ### Description **Update** Marked as "Acknowledged" by the client. The client provided the following explanation: > While the validation you suggest could help prevent resolver mistakes when filling orders, we prefer not to add it. This would ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: An incorrect expression inside `require` leads to a revert ### Description There is a `closeDistribution` function - https://github.com/FantiumAG/smart-contracts/blob/a2d126453c1105028f12277b8f342d2cdbf01a77/contracts/claiming/FantiumClaimingV1.sol#L624. It is used by the protocol manager to close a distribut...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
oracle
false
false
## Low: Suggested Next Steps ### Description **Executive Summary** During the review I went through all of the code at least 2 times I did give a lot less priority to view functions (HintHelpers | MultiTrovegetter) and have not done a thorough additional pass on SortedTroves I spent the vast majority of my time rea...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inconsistent behavior for canary claims in the `claimer` ### Description ### Proof of Concept Whenever a `claimer` claims prizes they compute fees per `claim` without considering canary claims. [src/Claimer.sol#L76](https://github.com/GenerationSoftware/pt-v5-claimer/blob/57a381aef690a27c9198f4340747155a...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Protocol can be repeatedly gas griefed in `AutoRange` external call ### Description Revert controlled `AutoRange` bot can be gas griefed and `execute()` reverted by malicious `onERC721Received` implementation ### Vulnerability Details The initiator of a transaction pays the transaction gas; in the case 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
signature
true
false
## Low: MagicSpend.withdraw() calls are exposed to frontrun attacks ### Description The protocol supports the `magicSpend.withdraw()` permission call. ```solidity } else if (selector == MagicSpend.withdraw.selector) { // check call target is MagicSpend if (call.target != magicSpend) revert CallErrors.TargetNotAll...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Vault Fees Can Total To More Than `1e18` ### Description Currently in `Vault.sol` there are four different fee types: 1. Deposit 2. Withdrawal 3. Management 4. Performance There is a proper check to make sure that individually none of them are `>= 1e18`. However, they can total to more than `1e18` 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
high
storage
true
false
## High: UniProxy.depositSwap - Tokens are not approved before calling Router.exactInput ✓ Fixed ### Description the call to `Router.exactInput`requires the sender to pre-approve the tokens. We could not find any reference for that, thus we assume that a call to `UniProxy.depositSwap` will always revert. ### 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
high
other
true
false
## High: Improper implementation of `arbitraryCall()` allows protocol gov to steal funds from users' wallets ### Description _Submitted by WatchPug, also found by Jujic and hack3r-0m_ When an incentiveToken is claimed after `endStream`, `incentives[who]` will be `0` for that `incentiveToken`. If the protocol gov is...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Same value is calculated in every loop iteration ### Description Value of `decWant` is persistent during each iteration of loops at https://github.com/tonkers-kuma/strategy-ssb/blob/e49d07a64ea0eb4f5a199c2bf9ea4c8aee2b313f/contracts/Strategy.sol#L276 and at https://github.com/tonkers-kuma/strategy-ssb/blob/e49...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Duplicated newProposalId calculation ### Description In lines [187](https://github.com/AudiusProject/audius-protocol/blob/6f3b31562b9d4c43cef91af0a011986a2580fba2/eth-contracts/contracts/Governance.sol#L187) and [213](https://github.com/AudiusProject/audius-protocol/blob/6f3b31562b9d4c43cef91af0a011986a2580fba...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `fulfillQuery()` `gasUsed` calculation misses L1 rollup fee ### Description The `gasUsed` of `fulfillQuery` is designed to always consume the full execution gas. The issue here is that the gas paid by the user is always equal to the execution gas fee, but when ZKPay is used on Ethereum L2, the L1 data fee 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...
skyward_49k
high
reentrancy
true
false
## High: Stealing ETH using reentrancy in minting pass ### Description **Severity:** Critical **Path:** BabylonCore.sol:participate (L89-114) **Description:** In `BabylonCore.sol:participate` a user can buy tickets, which are minting pass NFTs and minted to the user. The minting pass contracts uses `_safeMint`, whic...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
Cross Chain
true
true
### Relevant GitHub Links <a data-meta="codehawks-github-link" href="https://github.com/Cyfrin/2023-12-stake-link/blob/main/contracts/core/sdlPool/SDLPoolPrimary.sol#L172-L199">https://github.com/Cyfrin/2023-12-stake-link/blob/main/contracts/core/sdlPool/SDLPoolPrimary.sol#L172-L199</a> <a data-meta="codehawks-github-...
Codehawks
5
stake.link
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Whitelist Modifiers Check msg.sender Rather Than User ### Description The [`onlyWhitelistedLender`](https://github.com/Ion-Protocol/ion-protocol/blob/98e282514ac5827196b49f688938e1e44709505a/src/IonPool.sol#L104-L108) and [`onlyWhitelistedBorrowers`](https://github.com/Ion-Protocol/ion-protocol/blob/98e2825...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Arbitrary l2Logs length can lead to unprovable blocks and log inclusion ### Description In the `ExecutorFacet` contract, the [layer 2 logs are processed](https://github.com/matter-labs/zksync-2-dev/blob/534dc37c7b86753803a31b836f78896d18372e7e/contracts/ethereum/contracts/zksync/facets/Executor.sol#L83) as ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Duplicating sanity check ### Description Sanity check `maxSlippage != 0` at https://github.com/yearn/hardhat-monorepo/blob/ecc0b5147992b34c315e08af170ceb4a5fe071ee/packages/yswaps/contracts/TradeFactory/TradeFactoryExecutor.sol#L81 duplicates sanity check at https://github.com/yearn/hardhat-monorepo/blob/ecc0b...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: | Cannot Withdraw Max Amount ### Description **Description** In the `withdraw` function the `require` statement specifies a value `<` the contract balance, meanwhile it may be intended to remove a value equal to the contract balance. **Recommendation** Confirm whether or not the exact contract balance shoul...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Outdated Prices May Cause Incorrect Swap Outputs or Lp Token Calculations ### Description **Update** Marked as "Acknowledged" by the client. The client provided the following explanation: > We've made the decision not to stop pools when the oracle data is outdated because in case of serious oracle outage u...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: Update to funding rate parameters retrospectively impacts accrued funding rates ### Description On centralized perpetuals protocols funding rates are typically settled every 8 hours however on Zaros they "accrue" and are settled when the trader interacts with their position. The protocol owner also has the ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
access-control
false
false
## Medium: Invalidated Token Symbol Leading to Cross-Site Scripting (XSS) Vulnerability ### Description **Severity** - Medium **Status** - Resolved **Description** The FlashDuels contract allows users to create duels and specify token symbols, particularly in functions like createCryptoDuel. If the contract 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
low
front-running
false
false
## Low: `AMM.exchange()` has no deadline ### Description The `AMM.exchange()` and `AMM.exchange_dy()` functions have slippage checks for output tokens; however, they do not have a deadline check for the transaction: ``` def exchange(i, j, in_amount, min_amount, _for) ... def exchange_dy(i, j, out_amount, max_amount, ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
cross-chain
true
false
## Medium: Relayer Will Not Receive Any Fee If `execute` Reverts ### Description _Submitted by xiaoming90_ Connext relies on the relayer to trigger the `BridgeFacet.execute` function on the destination domain to initiate the token transfer and calldata execution processes. Relayers pay for the gas cost to trigger 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: Genesis Value Balance Incorrectly Updated ### Description **Update** Fixed by setting the balance of the reserve fund after calling `_updateTotalSupplies()`. Addressed in: `7df1b02e127463a21b479985ddea0b1efa1bbd08`. **File(s) affected:**`GenesisValueVault.sol` **Description:** In `GenesisValueVault._updateBa...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unvalidated user input in the `_getAddLiquidityOneCoinCallData` function ### Description The `_getAddLiquidityOneCoinCallData` function utilizes variable `i`, which is an arbitrary value passed by the user, without any validation from the `add_liquidity_one_coin` function. If this value is outside the valid ra...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
front-running
true
false
## High: The first disputer might lose funds although his dispute is valid ### Description Users can dispute the current tree using `disputeTree()` and the governor refunds the dispute funds if the dispute is valid in `resolveDispute()`. But `disputeTree()` can be called again by another disputer although there is 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
other
false
false
## Medium: Server lacks OCSP stapling ### Description The affected servers do not return its SSL certificate’s revocation status via **OCSP Stapling**. This feature provides clients with the ability to detect whether the server’s SSL certificate has been revoked. Apple recommends that OCSP Stapling should be implement...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
true
false
## Medium: Factory::create() is vulnerable to reorg attacks ### Description Take a look at We can see that this function uses the `create()` logic and depends on the `tx.origin`, now Blast is suspicious of a reorg attack and protocol would be deployed on here. Where as one can assume that the tx.origin should be 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
medium
other
false
false
## Medium: Use Ownable instead of an immutable beneficiary in vesting.sol ### Description **Severity** : Medium **Status** : Resolved **Description** : In the current implementation of the VestingWallet, the beneficiary is set at contract deployment and cannot be altered. This design choice limits the ability to 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
liquidation
true
false
## Medium: Missing cds deposit amount in swapCollateralForUSDT ### Description swapCollateralForUSDT() will help to convert the remaining Ether to USDT. This part of upside collateral will be taken as the cds owner's profit. But we miss update the cds deposit amount. This will cause that cds owners fail to withdraw. ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: USAGE OF DOTENV TO STORE SECRETS ### Description During the assessment, a risk has been identified to the security of the bridge, where in the bridge repository where sensitive information, such as blockchain bridge secrets, are stored in a `.env` file. While using environment variables is generally a good ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Undistributed rewards are not rolled over when additional rewards are announced in an epoch ### Description `CLGauge._notifyRewardAmount()` allows notifying rewards multiple times in an epoch. However, undistributed rewards are not rolled over during additional reward notifications: 1. When notifying rewards...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing NatSpec `@dev` from modifier declaration ### Description Some modifiers have an incomplete NatSpec: add a `@dev` notation to describe the modifier to improve the code documentation. *There is 1 instance of this issue.* [[169](https://github.com/code-423n4/2024-04-panoptic/blob/6908144756ef0cce2ede6d...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
cross-chain
true
false
## Low: Implementing `renounceOwnership()` is dangerous ### Description `OfframpRegistry.sol` inherits `Ownable2Step`, and renouncing ownership via `renounceOwnership()` is possible since the function is not overridden. Leaving the contract without an owner would prevent offramps from being added/removed, as well as 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...
cyfrin_structured
low
other
false
false
## Low: Missing event for important state changes ### Description The following calls doesn't emit any events: * [`LandFactory::updateLockAmount`](https://github.com/Polkamarkets/polkamarkets-js/blob/24f1394be94d27433d2e3a7370442126e1c1e5ba/contracts/LandFactory.sol#L205-L210) * [`PredictionMarketV3_4::withdraw`](http...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
cyfrin_structured
low
initialization
false
false
## Low: Remove unnecessary imports and inheritance ### Description Remove unnecessary imports and inheritance: * `BurnStateManager` should only import and inherit from `Initializable`
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Comment required ### Description It's not intuitive what is happening here - https://github.com/nucypher/nucypher/blob/main/nucypher/blockchain/eth/sol/source/contracts/staking_contracts/PoolingStakingContractV2.sol#L116 - https://github.com/nucypher/nucypher/blob/main/nucypher/blockchain/eth/sol/source/contra...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
token
true
false
## High: Bridge with Axelar can be stolen with malicious external call ### Description The Executor contract allows users to build an arbitrary payload external call to any address except `address(erc20Proxy)`. `erc20Proxy` is not the only dangerous address to call. By building a malicious external call to the Axelar ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
dos
false
false
## Medium: Possible DoS Attack on Swapping via Permit2 ### Description The [`SwapProxy` contract](https://github.com/across-protocol/contracts/blob/b84dbfae35030e0f2caa5509b632c10106a32330/contracts/SpokePoolPeriphery.sol#L26) contains the [`performSwap` function](https://github.com/across-protocol/contracts/blob/b84d...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Controller does not raise an error when there’s insufficient liquidity ### Description ## Handle jonah1005 ## Vulnerability details ## Impact When a user tries to withdraw the token from the vault, the vault would withdraw the token from the controller if there's insufficient liquidity in the vault. 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
signature
true
false
## Low: Unused return value can be removed ### Description **Description:** The `IRedeemableLegacy::autoRedemption` function signature is as follows: Within `SmartVaultV4Legact::autoRedemption`, the `_amountOut` return value is bubbled-up by `SmartVaultManagerV6::vaultAutoRedemption`: However, it is never actually...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: OPEN TO-DOS ### Description Open To-dos can point to architecture or programming issues that still need to be resolved. Often these kinds of comments indicate areas of complexity or confusion for developers. This provides value and insight to an attacker who aims to cause damage to the protocol. Code Location...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [02] Tax rate updates bypass `Timestamp` refresh, distorting Schnibble calculations for invalid plots ### Description The `updateTaxRate` function fails to update the `lastUpdated` timestamp when changing a landlord's tax rate. This can lead to incorrect Schnibble calculations in the `_farmPlots` function. 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
initialization
false
false
## Low: 3 `OfferStatus` are never used, and code seems to have contradicting intentions ### Description ## Summary 📌 There are several issues and inconsistenies that arise from the way the protocol uses the `OfferStatus` enum. Due to lack of answers from devs, incomplete documentation that contradicts the code some...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Duplicate assignments ### Description There are duplicate lines: * https://github.com/metaxu-art/fantium-smart-contracts/blob/cb2d97bc30c40321991fe5ab8fc798babba1610f/contracts/FantiumNFTV1.sol#L281 * https://github.com/metaxu-art/fantium-smart-contracts/blob/cb2d97bc30c40321991fe5ab8fc798babba1610f/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
initialization
true
false
## Medium: 0x exchange wrapper cannot increase approval for relay fees ### Description The `ZeroExExchangeWrapper` transfers the `_zeroExToken` balance in the event of 0x exchange order relay fees. However, there is no method to later increase this approval, resulting in a finite amount of transfers which could eventu...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [08] Fallback oracles should be implemented in the `CDPVault` ### Description https://github.com/code-423n4/2024-07-loopfi/blob/57871f64bdea450c1f04c9a53dc1a78223719164/src/CDPVault.sol#L52-L53 Now whenever any pricing logic is to be implemented, [this function](https://github.com/code-423n4/2024-07-loopfi/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
false
false
## Low: Incorrect Bound Checking in `Factory.add_market()` ### Description In `Factory.vy:add_market()`: ```python i: uint256 = self.market_count if i ### Recommendation We recommend checking `self.market_count < MAX_MARKETS`. ---
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incomplete Docstrings ### Description Throughout the [codebase](https://github.com/Consensys/linea-contracts-audit/tree/29e6798eb85074253145c4688acfa540f37a220f/), the event parameters are not documented. Consider thoroughly documenting all events and their parameters. When writing docstrings, consider 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
low
other
false
false
## Low: Missing vault registration check enables duplicate vault registrations ### Description The `PositionManager.registerVault()` function does not verify if a vault is already registered before adding it to the `vaults` mapping. This allows the same vault address to be registered multiple times with potentially di...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Basis Point Fee Misleading ### Description **Update** The Fabric team fixed the issue in commit `f1d9552` by implementing our recommendation and calculating the `feeAllocation` using the following formula: **Description:** The way the yield fee is calculated is by increasing the total contribution by add...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
true
false
## Medium: zBanc - DynamicLiquidTokenConverter frontrunner can grief owner when calling reduceWeight  Acknowledged ### Description The owner of the converter is allowed to reduce the converters weights once the marketcap surpasses a configured threshhold. The thresshold is configured on first deployment. The marketcap...
0