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 | gas | liquidation | true | false | ## Gas: Optimize away call to `EnumerableSet::contains` in `GlobalConfiguration::configureCollateralLiquidationPriority`
### Description
**Description:** Optimize away call to `EnumerableSet::contains` in `GlobalConfiguration::configureCollateralLiquidationPriority` by using the `bool` result from `EnumerableSet::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 | low | token | true | false | ## Low: (HAL-16) Commented Out Code
### Description
During the security assessment, several instances of commented-out code were found in the `SHProduct` contract. Commented-out code, especially if it is outdated or unused, can clutter the codebase, reduce readability, and make maintenance more difficult. Additionally... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | signature | false | false | ## Low: Use Strong Encryption Algorithm
### Description
## AES-ECB Encryption Vulnerabilities
The current encryption algorithm, **AES-ECB**, encrypts each plaintext block independently, meaning that identical plaintext blocks will always be encrypted to identical ciphertext blocks. This can be exploited by attackers ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Poor Traceability in Error
### Description
The `NotPermittedStaker` error is reused for various scenarios in the `unstake` function, including cases where `_onBehalfOf` is invalid.
This lack of specificity makes debugging and tracing errors more difficult.
Code Location
-------------
Code of `unstak... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Wrong Input Data Length Check For Fill_From_Str
### Description
The `fill_from_str` function is frequently used throughout the codebase to copy string data into 32-byte-sized buffers. However, it requires input data to be less than 32 bytes instead of less than or equal to 32 bytes. As a result, the byte at 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 | access-control | false | false | ## Low: Invalid Reward Tokens Can Brick Reward Claiming
### Description
In order to get a new token added to the list of reward emitting tokens, addresses with the minter role can do so via the `MultiFeeDistribution` contract's [`addReward`](https://github.com/radiant-capital/v2-core/blob/e8f21f103e17736907b62809d1ad9... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | front-running | true | false | ## Low: Frontrunning Vulnerability in ‘updateOfferAmount’ That Allows for Double-Spending the Provider Offer
### Description
The `updateOfferAmount` functionality in both `CollarProviderNFT` and `EscrowNFT` allows for double-spending of the offer amount if a taker frontruns the `updateOfferAmount` transaction. For exa... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Failed transfer with low level call won't revert
### Description
_Submitted by GeekyLumberjack, also found by CertoraInc_
[LibSwap.sol#L42-L46](https://github.com/code-423n4/2022-03-lifinance/blob/main/src/Libraries/LibSwap.sol#L42-L46)
`swap` is used throughout the code via `_executeSwaps` in Swapper.sol... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | dos | true | false | ## Low: SOME RATES COULD BE SET TO VALUES GREATER THAN 1
### Description
The `instantiate` and `update_config` functions in **contracts/martian-field/src/execute.rs** do not restrict that `rates fields` are lesser than 1.
If they are not correctly set, some operations will always panic and won't allow legitimate user... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [10] External queries from `getSqrtPrice()` should be done more accurately
### Description
https://github.com/code-423n4/2024-05-predy/blob/a9246db5f874a91fb71c296aac6a66902289306a/src/PriceFeed.sol#L45-L58
This function returns the square root of the `baseToken` price quoted in `quoteToken`, and this data i... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | liquidation | true | false | ## Medium: Inconsistent token amount in external redemption process of SecuritizeVault's liquidate function
### Description
**Description:** In SecuritizeVault's liquidation process with external redemption, there's likely a mismatch between the actual received stable coins from the redemption contract and the amount ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | dos | false | false | ## Low: [ACKNOWLEDGED] Use of outdated libraries
### Description
The protocol currently employs the following versions of the OpenZeppelin libraries:
```json
"@openzeppelin/contracts": "4.4.1",
"@openzeppelin/contracts-upgradeable": "4.4.1",
```
These versions are considered outdated, with the current version of the O... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | initialization | true | false | ## High: Attacker can manipulate the pricePerShare to profit from future users' deposits
### Description
By manipulating and inflating the pricePerShare to a super high value, the attacker can cause all future depositors to lose a significant portion of their deposits to the attacker due to precision loss.
### Impact... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inefficient PDA Derivation in handle_v3_across_message
### Description
The [`handle_v3_across_message`](https://github.com/across-protocol/contracts/blob/401e24ccca1b3af919dd521e58acd445297b65b6/programs/multicall-handler/src/lib.rs#L17) function within `multicall_handler` relies on `find_program_address` to 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 of send and call
### Description
Use of **send** and **call** primitives is always risky and should be analyzed in detail. One occurrence of call found [in line 91 of Fundraiser.sol](https://github.com/cosmos/fundraiser-lib/blob/693cf3f32e9fd679216372876dda86fa57a3277e/src/truffle/contracts/Fundraiser.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 | gas | other | false | false | ## Gas: No need to cache `fundingSplitRecipient` in memory variable
### Description
`fundingSplitRecipient` is only used once. So it is not beneficial to cache it in a memory variable.
Gas saved: Negligible but code is simplified | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | initialization | false | false | ## Medium: Lack of validation
### Description
Throughout the codebase, there are places where a proper input/output validation is lacking. In particular:
* In the [`Router` contract](https://github.com/forta-protocol/forta-token/blob/92d7a7ddd6672a7530a4bfc532d0d697e7f12744/contracts/components/router/Router.sol#L14... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | false | false | ## Gas: Use named return variables
### Description
**Description:** There are a number of instances where named return variables could be used to avoid unnecessary stack variable assignments, for example in `FeeHandler._tokenDistribution()`. Consider modifying this and other relevant functions to save gas.
**OctoDeFi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: An account can trigger an approval event on behalf of another account
### Description
The [`StabilierToken` contract](https://github.com/emptysetsquad/emptyset/blob/bf9753ef9cd5b17236036257f290e0d0b850a029/protocol/contracts/src/stabilizer/StabilizerToken.sol#L27) implements the functionalities of the `sESD` E... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Queue `fulfilled` Parameter Should be Increased on a `fulfill` Operation
### Description
On line 490 of the `_fulfill()` function, `self.queue.fulfilled` is set to `toFulfill`.
However, it should have been an `addition`, because we actually want to `increase` the `fulfilled` part after a `fulfill` call.
This... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | true | false | ## Low: Round Data Read Limitation Suggestions
### Description
## Round Data Access Control Issue
The public getter functions which return round data should abort if the value `aggregator::limit_reads_to_whitelist` is set to true. In the function `aggregator::latest_round`, there was no check to limit the users even ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | false | false | ## Gas: Require instead of &&
### Description
### IMPACT
Require statements including conditions with the `&&` operator can be broken down in multiple require statements to save gas.
### PROOF OF CONCEPT
Instances include:
#### TopUpAction.sol
TopUpAction:360:
require(
newSwapperSlippage >= _MIN_SWAPPER_SLI... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Staking contract can be inflation attacked
### Description
The staking contract is an ERC4626 contract. The ERC4626 contract has a common flaw, where the initial depositor can `donate` a large number of tokens to the vault to increase the share ratio, and then cause rounding errors on future depositors and ste... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Use custom errors rather than revert()/require() strings to save gas (21 instances)
### Description
* Deployment. Gas Saved: **150 574**
* Minumal Method Call. Gas Saved: **-25**
* Average Method Call. Gas Saved: **-123**
* Maximum Method Call. Gas Saved: **-184**
Custom errors are available from solid... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Events that mark critical parameter changes should contain both the old and the new value
### Description
This should especially be done if the new value is not required to be different from the old value
*There are 2 instances of this issue:*
https://github.com/code-423n4/2023-01-popcorn/blob/d95fc31449c26... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Some functions in the Talos contracts do not allow user to supply `slippage` and `deadline`, which may cause swap revert
### Description
In the following functions, except `TalosBaseStrategy.redeem()`, the minimum `slippage` is still hardcoded to `0`, not allowing the user to specify their own slippage para... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Events not emitting
### Description
In the current version of feed contract after change of some storage variables events not emitting:
https://github.com/lidofinance/steth-price-feed/blob/459495f07c97d04f6e3839e7a3b32acfcade22ad/contracts/StEthPriceFeed.vy#L117
https://github.com/lidofinance/steth-price-feed/... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect interface definition
### Description
In the [`CurveOracle`](https://github.com/AlphaFinanceLab/homora-v2/blob/5efa332f2ecf8e9705c326cffda5305bc6f752f7/contracts/oracle/CurveOracle.sol#L39) and [`CurveSpellV1`](https://github.com/AlphaFinanceLab/homora-v2/blob/5efa332f2ecf8e9705c326cffda5305bc6f752f7/... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Large literal value can improve its readability
### Description
The `INITIAL_TOTAL_SUPPLY` variable in the `Tokenomics.sol` file is a large literal value set to `8888888888000000000000000000`. Managing such large numbers directly can be cumbersome and error-prone. To enhance code readability and reduce potenti... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: In case a gauge weight reduction is performed via `GaugeController::change_gauge_weight`, it is possible that all functions will stop functioning permanently for that gauge
### Description
If the weight of a given gauge has been manually changed using the `GaugeController::change_gauge_weight` function, 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 | low | reentrancy | true | false | ## Low: Redundant check in onERC1155Received()
### Description
In the `WrappedNFT` contract, ERC1155 tokens are transferred in, and an ERC721 token is minted to the user in return. This logic is handled by the `onERC1155Received()` and `onERC1155BatchReceived()` functions which are triggered when the ERC1155 contract ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | liquidation | true | true | ## Low: Missing loan expiration check in repayment logic allows borrower to repay even after expiry
### Description
The `RepaymentController` lacks a check for loan expiration in the repayment logic, allowing borrowers to repay the loan even after the expiration date has passed. This oversight introduces a potential l... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: Attempting to Increase the Performance Fee Rate Will Lock It for Approximately 55 Years
### Description
## Performance Fee Rate Timelock Issue
**Context:**
(No context files were provided by the reviewer)
**Summary:**
Submitting a performance fee rate to the timelock mistakenly adds `block.timestamp` ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Magic constants
### Description
Literal values expressed in scientific notation are used throughout the codebase. For example:
* On line [441 of `BetaBank`](https://github.com/beta-finance/beta-private/blob/9e73eaf40e5118125d6925b29e4fb9ad8bf8e113/contracts/BetaBank.sol#L441), where `1e18` is returned by 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 | reentrancy | true | false | ## Medium: TRST-M-2 Strategy actions could be executed out of order due to lack of reentrancy guard
### Description
**Description:**
The Execute module performs automation of the fetched Executable array on wallet subaccounts.
**Impact:**
Note that there are no uses of reentrancy guards in this function or any above... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Emergency mechanism for replacing malicious strategists is undermined by pre-existing strategist
### Description
Malicious primary strategists have wide latitude to exploit Superform users. The main mitigation for dealing with this scenario is SuperGovernor's `changePrimaryStrategist` function, which allows... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: and newer opcodes might not be supported in all chains
### Description
Solc compiler `version 0.8.20` switches the default target EVM version to Shanghai. The generated bytecode will include **PUSH0** opcodes. The recently released Solc compiler `version 0.8.25` [switches the default target EVM version to 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... | cyfrin_structured | low | token | true | true | ## Low: Use of deprecated library function `safeApprove()`
### Description
`safeApprove()` has been deprecated and the official OpenZeppelin documentation [recommends](https://docs.openzeppelin.com/contracts/4.x/api/token/erc20#SafeERC20-safeApprove-contract-IERC20-address-uint256-) using `safeIncreaseAllowance()` & `... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: distributeYield() calls earningsTrancheuse() with outdated emaSTT & emaJTT while calculating senior & junior tranche yield distributions
### Description
The [distributeYield()](https://github.com/sherlock-audit/2024-03-zivoe/blob/main/zivoe-core-foundry/src/ZivoeYDL.sol#L229-L239) function internally calls ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Users Can Cancel Orders Anytime
### Description
**Update**
A new modifier `ifNotItayosePeriod` was created to protect `LendingMarket.cancelOrder()`. Addressed in: `67e72eeed5023a411dcd5b203c54d5695ac9cc61`.
**File(s) affected:**`OrderActionLogic.sol`, `LendingMarket.sol`, `LendingMarketController.sol`
**Desc... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Decimal mismatch for tokens on HyperEVM and HyperCore
### Description
**Description:** The `transferToCore` function transfers a specified `amount` of the base asset from a pocket to HyperCore. However, it does not account for potential differences in decimal precision between the HyperEVM token and the HyperC... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Add sanity check in constructor that _entryPoint is contract
### Description
The setting of the `entryPoint` variable currently lacks any validation. It could be set to the null address or an EOA while the Paymaster contract gets successfully deployed.
### Recommendation
Adding a sanity check that the `_entry... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | token | true | false | ## Medium: `AssetManager.rebalance()` will revert when the balance of `tokenAddress` in the money market is 0.
### Description
`AssetManager.rebalance()` will revert when the balance of `tokenAddress` in the money market is 0.
### Impact
The money markets can't be rebalanced if there is no balance in at least one mar... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [H-1]
### Description
There are no checks to ensure that the `deposit_token` matches the `allowed_token` in the `solana_vault::deposit` function. This allows an attacker to deposit any tokens and get minted USDC on the other chain. The system assumes that an allowed token is deposited every time and this assu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: No sanity check on pricePerShare might lead to lost value
### Description
## Handle
kenzo
## Vulnerability details
pricePerShare is read either from an oracle or from ibBTC's core.
If one of these is bugged or exploited, there are no safety checks to prevent loss of funds.
## Impact
As pricePerShare i... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | reentrancy | true | false | ## Medium: Atomic fees delivery susceptible to funds lockout
### Description
The `collectFees` function delivers the `quoteToken` part of fees as well as the `baseToken` part of fees atomically and simultaneously to both the DAO and the host. In case a single address is blacklisted (e.g., via USDC blacklist feature) o... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: rebalanceCooldown period runs in pallallel with the rebalanceWindow
### Description
The `rebalanceCooldown` period runs in parallel with the `rebalanceWindow`, which requires care with setting the values and isn't intuitive.
### Recommendation
Consider starting the `rebalanceCooldown` after the `rebalanceWind... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 underscores for number literals
### Description
**Description:**
There are occasions where certain numbers have been hardcoded, either in variable or in the code itself. Large numbers can become hard to read.
**Recommendation:**
Consider using underscores for number literals to improve its readability. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: settleAuction may be impossible if locked at a wrong time.
### Description
_Submitted by jonah1005_
#### Impact
The auction contract decides a new `ibRatio` in the function `settleAuction`. [Auction.sol#L89-L91](https://github.com/code-423n4/2021-09-defiProtocol/blob/main/contracts/contracts/Auction.sol#L... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | liquidation | false | false | ## Low: [ACKNOWLEDGED] Lack of sanity check in `CollateralPoolConfig`
### Description
In the `setStrategy` function of the `CollateralPoolConfig` contract, there is no sanity check call to validate if the provided `strategy` has the correct interface. An incorrect `strategy` address will lead to failed liquidation tra... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Events not emitted
### Description
## Handle
s1m0
## Vulnerability details
## Impact
Events not emitted for important state changes.
https://github.com/code-423n4/2021-04-vader/blob/main/vader-protocol/contracts/Router.sol#L93
https://github.com/code-423n4/2021-04-vader/blob/main/vader-protocol/contracts/R... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | true | false | ## High: TRST-H-7 The protocol might transfer extra SATIN emissions to veSatin holders potentially making SatinVoter.sol insolvent
### Description
**Description:**
The function `_distribute()` in SatinVoter.sol is generally responsible for distributing weekly
emissions to a gauge based on the percentage of total vote... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `accrueInterest` is expected to revert when the rate is higher than the maximum allowed rate, which is possible since the utilization can be more than 1
### Description
accrueInterest is expected to revert when the rate is higher than the maximum allowed rate, which is possible since the utilization can be ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Upgradability
### Description
**Update**
The client acknowledged the issue and provided the following explanation:
> MeowToken upgradability will be removed by renouncing ownership of the ProxyAdmin contract that is the only address allowed to upgrade. We will renounce ownership of this contract which will 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 | initialization | false | false | ## Low: Missing `INVALID` value in enum
### Description
The current default value of the `Status` enum is `INITIALIZED`. This is error-prone as even for a vesting schedule that doesn't exist, when the schedule is a value in a mapping it has default values and its `Status` will be `INITIALIZED`. Make sure to add `INVAL... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Deprecated Markets May Prevent Liquidations When isLiquidateBorrowPaused Is True
### Description
**Severity**: Medium
**Status**: Acknowledged
**Context:**
**Contracts Involved:**
EvoqGovernance.sol
setIsDeprecated(address _poolToken, bool _isDeprecated)
EvoqGovernance.sol
setIsLiquidateBorrowPaused(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 | rounding | true | false | ## Medium: Precision loss in the calculation of the fee amounts and fee shares inside the `_preparePool` function of the `MainHelper` contract
### Description
Low fee amounts and fee shares are calculated in the preparation part due to the precision loss.
### Proof of Concept
Solidity rounds down the result of an 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 | medium | dos | true | false | ## Medium: Improper execution options generated in the _sendMessage function
### Description
The `_sendMessage` function in LayerZeroAdapter.sol is a helper function utilized by both the `sendMessageUsingERC20` and `sendMessageUsingNative` functions to dispatch a message using LayerZero.
This function has two branch... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect ordering tiers in MEME404
### Description
The inclusion of tiers is based on user input, and it only validates the previously added tier. Therefore, it's possible to input parameters that allow duplication of tiers in the same NFT, by using the same `upperId` and `lowerId`.
### Recommendation
Inc... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The `apr` and `fundingFee` percentage values are not constrained
### Description
**Impact:**
High, as this can result in the contract being in a state of DoS or in 0 rewards for users
**Likelihood:**
Low, as it requires a malicious or a compromised owner, or a big mistake on the owner side
**Description**... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | token | true | true | ## Low: Lack of authorization for functions intended to be delegatecall ed
### Description
The protocol often uses module contracts with some functions which are intended to only be executed using `delegatecall` from other contracts in the system. This can lead to unexpected effects when the functions are called direc... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | false | ## Low: minAmountToDeposit Is Independent Of The Deposited Asset
### Description
The `minAmountToDeposit` is the same for each asset that can be deposited. This can cause issues when the assets have a large difference in value per unit (= per wei), which commonly occurs with assets that have different numbers of decim... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: User can steal vault funds by sequencing deposit, rebase, and redeem
### Description
When a user deposits into the protocol, their msg.value is converted into a number of shares in two steps:
- \_eth2dyad() calculates the USD value of the ETH, based on the current oracle.
- \_deposit2Shares() calculates 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 | initialization | true | false | ## Medium: New MarketConfigurationData causes existing orders to fail
### Description
There are three new storage variables (`depthFactor`, `maxExposureFactor`, `maxPSlippage`) in `MarketConfigurationData` that are used to perform slippage and exposure checks in `Market.getPSlippage()`.
The issue that that these new ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | rounding | false | false | ## Low: Rounding Issue While Swapping
### Description
## SpotEngineLp.sol Swap Function Update
The swap function in `SpotEngineLp.sol` currently uses `mathhelper` to calculate the swap amount, which takes base and quote values without decimal precision (not X18). These values are then converted to X18 during calculat... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Owner Check
### Description
## Vulnerability Report: Account Stop Order Ticket Creation
Within the `account`, `create_stop_order_ticket` generates a `StopOrderTicket` and transfers it to a specified recipient. During the creation process, it designates the `user_address` field of the ticket to `tx_co... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | false | false | ## Low: Users Lack Control Over Yield Delegation
### Description
In the current implementation, the Governor role has [full control](https://github.com/OriginProtocol/origin-dollar/blob/44951300cd2bb7eb1d387461465edbfc440f2779/contracts/contracts/token/OUSD.sol#L566-L658) over yield delegations, leading to several pot... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | liquidation | false | false | ## High: Existing user’s locked JPEG could be overwritten by new user, causing permanent loss of JPEG funds
### Description
_Submitted by hickuphh3, also found by 0x1f8b, AuditsAreUS, Foundation, Kthere, Meta0xNull, rayn, and WatchPug_
[NFTVault.sol#L375](https://github.com/code-423n4/2022-04-jpegd/blob/main/contract... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Do not use deprecated library functions
### Description
**Client:**
Fixed in this [PR](https://github.com/stakedotlink/contracts/pull/32).
**Cyfrin:** Verified. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: NEED FUZZING TEST
### Description
We recommend the use of fuzzing tests, especially in finance oriented protocols, due to the complexity and risk involved in handling large amounts of money in these smart contracts. Finance oriented contracts are critical in terms of security and accuracy, as any errors or vul... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 checks in EvoqUtils.sol
### Description
**Severity**: Low
**Status**: Resolved
**Description**:
In EvoqUtils.sol, there are redundant checks as follows:
Redundant check on line: 211 in _supplyAllowed()-
require(marketStatus[_poolToken].isCreated, "market not created");
The same redundant cod... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | false | false | ## Severity: High Risk
## Context
AeraVaultV1.sol
## Description
Balancer offers a liquidity mining rewards distribution for liquidity providers.
Liquidity Mining distributions are available to claim weekly through the `MerkleOrchard` contract. Liquidity Providers can claim tokens from this contract by submitting c... | Spearbit | 5 | Gauntlet |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing Slippage Protection for Locking Liquidity
### Description
When a UniswapV3 position is locked that is not full-range, the liquidity position is removed and redeposited in the [`_convertPositionToFullRange`](https://github.com/uncx-private-repos/liquidity-locker-univ3-contracts/blob/342c621cc93a1388260... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Additional check are required for function addTokenGrant() at CoiinVestingVault.sol
### Description
**Description**
There is no verification for the recipient address.
**Recommendation**:
Add additional check:
require(_recipient != address(0), "Wrong recipient 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 | rounding | false | false | ## Low: Unnecessary uint casting
### Description
Explicit type casting of `DECIMAL_PRECISION` (a `uint256` variable, as inherited from `BaseMath.sol`) to `uint` (which is essentially an alias for `uint256`) is redundant and serves no practical purpose. This adds unnecessary complexity and may potentially confuse devel... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Truncation exploitation of partial transfer system
### Description
The `LendingLedger::sync_ledger` function is meant to permit partial transfers of each user's positions by updating the `amount`, `rewardDebt`, and `secRewardDebt` variables.
In the current system, the partial transfers performed are insecu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | true | false | ## Gas: Use bitwise operators instead of multiplication/division by value of 2 to the power of N
### Description
**Files:** `L2ContractHelper.sol`, `Compressor.sol`, `Executor.sol`, `Merkle.sol`
[File: code/system-contracts/contracts/Compressor.sol](https://github.com/code-423n4/2024-03-zksync/blob/main/code/system-c... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | false | false | ## Medium: Zero Fee in YakSwapCell._swap Causes Revert When Fee Is Enabled
### Description
In the [`_swap` function](https://github.com/tesseract-protocol/smart-contracts/blob/940fc6650d1f48b3b3d028640dffcc9203f8bd76/src/YakSwapCell.sol#L91) of the `YakSwapCell` contract, the `fee` argument passed to `YakRouter.swapNo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | signature | true | false | ## High: Signature replay in `signatureClaim` results in unauthorized claiming of rewards
### Description
Contract `PhiFactory` includes the function [`signatureClaim`](https://github.com/code-423n4/2024-08-phi/blob/8c0985f7a10b231f916a51af5d506dd6b0c54120/src/PhiFactory.sol#L327-L346), which is intended for claiming ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Attackers can grief voting by removing votes just before finalization
### Description
## Handle
0xRajeev
## Vulnerability details
## Impact
Attackers, i.e. malicious DAO members, can grief voting by removing their votes just before finalization and if that takes it below quorum, it forces others to vote 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 | token | true | true | ## Low: Incorrect accounting in _transferCollaterizable
### Description
The `_transferCollaterizable` function mishandles the `collaterizedBalance` and `_isUsedAsCollateral` fields. At a minimum, this means that transferred tokens cannot be used as collateral.
The code for `_transferCollaterizable` appears in Figure... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | false | false | ## Medium: Missing deadline on the swap functions
### Description
**Severity**
**Impact:** Low
**Likelihood:** High
**Description**
Swap functions don't have a deadline parameter. This parameter can provide the user an option to limit the execution of their pending transaction. Without a deadline parameter, users ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Investors will not be able to withdraw tokens after the end of the vesting duration for STAKING, MARKETING and RESERVES in UnmarshalTokenVesting
### Description
**Description**
Array marketingReserveVesting length is equal to 38. If more than 38 months have passed
since the initial time function _calculateAv... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Risk of Suboptimal Delegator Selection Due to First-Match Approach in `chooseOperatorDelegatorForDeposit()`
### Description
Multiple delegators have TVLs (Total Value Locked) below their respective thresholds, the function `chooseOperatorDelegatorForDeposit` will select and return the first delegator that meet... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | initialization | false | false | ## High: Certain identity curve configurations can lead to a loss of pool tokens
### Description
A rounding error in an integer division operation could lead to a loss of pool tokens and the dilution of liquidity provider (LP) tokens. We reimplemented certain of Cowri Labs’s fuzz tests and used Echidna to test the syst... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Marketplace calls unimplemented function
### Description
_Submitted by 0x52_
### Vulnerability details
While safe.sol isn't explicitly listed in scope it is listed as a library for all in scope contracts so I believe it should be in scope
### Impact
mint and mintWithUnderlying won't function.
### Proo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Prevent panic from division by zero in `BabelBase::_requireUserAcceptsFee`
### Description
**Description:** Prevent panic from division by zero in `BabelBase::_requireUserAcceptsFee`:
**Bima:**
Fixed in commit [fe67023](https://github.com/Bima-Labs/bima-v1-core/commit/fe670238f6290cec1d803dc68160d96592fc5346... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inconsistencies in reading the encoded parameters received in the `_sParams` argument in `BranchBridgeAgent::clearTokens()`
### Description
Token addresses could be computed wrong, which could lead to the tokens getting stuck in the root chain.
### Proof of Concept
The function [clearTokens()](https://git... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Bribe.sol::withdraw doesn't update the totalVoting's amount accordingly to the deposited assets amount
### Description
Report type: Smart Contract
Target: https://github.com/alchemix-finance/alchemix-v2-dao/blob/main/src/Bribe.sol
Impacts:
- The totalVoting tracker can be inflated
## Description
## Brief/... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | reentrancy | false | false | ## Low: Redundant Argument in `flashLoan` Function
### Description
This issue has been identified within the [flashLoan](https://github.com/Se7en-Seas/cMETH-boring-vault/blob/d6e2d18f45a3e05d749d34966139fc85fc47f7e6/src/base/Roles/ManagerWithMerkleVerification.sol#175) function of the `ManagerWithMerkleVerification` c... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: Missing Call to Parent Contract
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `57b296fc11cafca50a88b65fa71a3055c66b5804`. The client provided the following explanation: Add call to __ERC721URIStorage_init() in initializer.
**File(s) affected:**`SellerFinancing.sol`
**Description:*... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Misleading comments
### Description
The cumulative amount of rewards accrued to the user since the last claim
[FlywheelCore.sol#L82](https://github.com/fei-protocol/flywheel-v2/blob/77bfadf388db25cf5917d39cd9c0ad920f404aad/src/FlywheelCore.sol#L82) | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Small Amounts Of Tokens Will Be Stuck In The Contract When `Auction.addInitialLiquidity()` Is Called
### Description
In `Auction.addInitialLiquidity()`, the `SHOGUN-KAIZEN` pair is created if not already created, and `_checkPoolValidity()` is called. `_checkPoolValidity()` calls `UniswapV2Pair.skim()` 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 | oracle | false | false | ## Medium: Function calculation result is not processed
### Description
Below there will be a case when the code does not process the result of calling `approve`.
https://github.com/iearn-finance/yoracle.link/blob/faf1309cbe7a05f70b338351315039eb8e5b9c09/contracts/Keep3rV1Oracle.sol#L819
`approve` method may return ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Duplicate code
### Description
The `quote` function is completely repeated here https://github.com/iearn-finance/yoracle.link/faf1309cbe7a05f70b338351315039eb8e5b9c09/master/contracts/Keep3rV1Volatility.sol#L148
and here https://github.com/iearn-finance/yoracle.link/faf1309cbe7a05f70b338351315039eb8e5b9c09/mas... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: EIP-1967 storage slots should use the `eip1967.proxy` prefix
### Description
Using the prefix makes it easier to confirm that you are following the standard, and not altering the behavior in some incompatible way.
*There are 2 instances 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 | medium | other | true | false | ## Medium: max_supply will not be reached as there is an early return that does set ismintingfinished to early
### Description
Currently in the `publicMint()` function in DCT, there is a check that if the `totalSupply()` of tokens plus the minting amount:
```solidity
uint mintingA = pendingA();
```
is bigger than `M... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | overflow | false | false | ## Low: Add openzeppelin’s `safeMath` Library in `StableSwap_V2` and `VaultETH_V2`
### Description
**Severity**: Low
**Status**: Acknowledged
**Description**
Arithmetic operations in this contract does not use openzeppelin safeMath library to perform operations.
**Recommendations**:
Utilize the SafeMath library 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: Redundant Code in UUPSUpgradeable Override
### Description
The contract overrides the `_upgradeTo` function from `UUPSUpgradeable` to add the `onlyOwner` modifier, but it also overrides `_authorizeUpgrade` with the same purpose. This results in redundant code, as both functions are essentially performing the 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 | signature | true | false | ## Low: Adding a node operator does not increase the nonce
### Description
**Severity:** Low
**Path:** NodeOperatorRegistry.sol:addNodeOperator#L302-L322
**Description:**
The function to add a new node operator to the node operator registry does not increase the staking module nonce, even though this nonce should i... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.