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
false
false
## Low: `maxDepositsPerCard` Can Be Updated to Have a Value Less than the Current Deposited Amount. ### Description **Update** The issue was resolved by the client in commit `4e2c73e731e057fa3bf2522fcc6ca3dbbf56e7a4`. `adminSetMaxDepositsPerCard()` now obtains the current deposit amount and reverts if the new max dep...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
cyfrin_structured
low
logic-error
true
false
## Low: Incorrect Amount Logged in `PerpWithdrawReport` ### Description The `perp_withdraw` function logs the requested amount (`data.amount`) instead of the actual withdrawn amount (`amount`) in the `PerpWithdrawReport` event. This creates a discrepancy between the logged amount and the actual funds transferred, part...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of The Expiry Parameter ### Description The issue arises within the [`placeOrder`](https://github.com/longgammalabs/hanji-contracts/blob/09b6188e028650b9c1758010846080c5f8c80f8e/src/OnchainLOB.sol#L199) function of the `LOB` contract. There is an issue due to the absence of an expiration parameter 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
medium
oracle
true
false
## Medium: Protocol mechanics incorrectly assume 1 USDC will always be worth 1 USD ### Description The protocol mechanics assume 1 USDC == 1 USD. This is incorrect, and could lead to a loss of funds for users in case USDC depegs. ### Impact As demonstrated in the attack path, incorrectly considering that 1 USDC is al...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
token
true
false
## Medium: Internal accounting of vault balance may diverge from actual token balance in lending pool  Won't Fix ### Description It is possible that the vault balance for a given bAsset is greater than the corresponding balance in the lending pool. This violates one of the correctness properties stated in the audit br...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: No `address(0)` validation for `roleManager` ### Description **Severity**: Low **Status**: Acknowledged **Description** Across the protocol, several contracts set the role manager address in the `initialize ()` method. It is not validated if `roleManagerAddress` is `address(0)` or not. If `roleManager` is 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
medium
token
true
false
## Medium: Orders may not be fillable due to missing approvals ### Description Not all `IERC20` implementations `revert()` when there's a failure in `approve()`. If one of these tokens returns false, there is no check for whether this has happened during the order listing validation, so it will only be detected when 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: Users can create streams before the vesting period starts ### Description The `createStream()` function of `StreamingNFT` does not check that `block.number >= vestingStartBlock`. However, the same check is presented in a similar function, `createBatchStream()`. Without this check, users can create streams and ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
logic
false
false
## Low: Unnecessary Use of public Instead of external in Functions ### Description The contract currently declares functions as `public` when they should be `external`. In Solidity, a public function can be called both internally (from within the contract) and externally (by external accounts or contracts). However, i...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
false
false
## Medium: Total amount of affiliate fees not decreased after withdrawal ### Description The [`withdrawAffiliateFees` function](https://github.com/AugurProject/augur/blob/67c0fec95e65fca8d27751f28a6c06e5247978c6/packages/augur-core/source/contracts/reporting/Market.sol#L390) of the `Market` contract allows anyone 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
low
other
true
false
## Low: Use a more recent version of solidity ### Description Use a solidity version of at least 0.8.12 to get `string.concat()` to be used instead of `abi.encodePacked(,)` 1. File: contracts/ManagedIndex.sol (line [3](https://github.com/code-423n4/2022-04-phuture/blob/594459d0865fb6603ba388b53f3f01648f5bb6fb/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
medium
other
false
false
## Medium: Rewards can possibly be left stuck in contract ### Description **Description** Currently in `TopliaLpStaking::setRewards` we have this comment: > // This must be called AFTER some LP are staked (or ensure at least 1 LP position is staked before the start timestamp) While the issue is pointed out here, it...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
initialization
true
false
## Gas: Refactor functions such that all checks are performed before assigning values to state variables ### Description ### 2 Instances 1. ### Refactor the `constructor` of `Depository` contract such that all the checks on the arguments are performed before assigning the values to state variables. - 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
low
other
false
false
## Low: Spelling mistake ### Description There is a spelling mistake in the comment ("be" is used instead of "been"). ### Recommendation Correct the spelling mistake: - `/// @notice Number of OP tokens which have be released to the beneficiary.` + `/// @notice Number of OP tokens which have been released to the benef...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: mint() , initiateRedeem() , and redeem() lack access control ### Description The issue lies in the fact that any caller of the `mint()`, `initiateRedeem()`, or `redeem()` function can set the `order.benefactor` to an arbitrary address. This enables an attacker to set `order.benefactor` to any address that hol...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Token guardian protection doesn't account for approved operators in `approve()` ### Description According to the [README](https://github.com/code-423n4/2023-07-lens/tree/main#definition-of-words-and-terms-in-lens-codebase), when an address has token guardian enabled, approvals should not work for the tokens...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
access-control
true
false
## Low: Consider emitting an event when changing the frozen state of the contract ✓ Fixed ### Description The function `freeze` allows the owner to freeze and unfreeze the contract. **src/Loihi.sol:L144-L146** ``` function freeze (bool \_freeze) public onlyOwner { frozen = \_freeze; } ``` The common pattern whe...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: Wrong function declaration in IBaseRewardPool interface ### Description The `withdraw` function declaration is missing the `bool` return value. https://github.com/code-423n4/2023-05-xeth/blob/main/src/interfaces/IBaseRewardPool.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
low
other
true
false
## Low: No function to remove a tick ### Description In the `GeVault.sol` it is impossible to remove a `tick` once it is added to the `ticks[]`. ### Impact It won't allow removing faulty added ticks, being the only solution to override them to 0 and move them to the left, to avoid breaking other functions.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
access-control
true
false
## High: Swaps are not possible on pools registered with Bunni due to incorrect access control in `ValkyrieHooklet::afterSwap` ### Description **Description:** `ValkyrieHooklet::afterSwap` has the `onlyBunniHub` modifier applied; however, this hook is invoked from `BunniHook` (using the `BunniHookLogic` library) and 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
high
signature
true
false
## High: Exchange - CancelOrder has no effect  Pending ### Description The exchange provides means for the `trader` or `broker` to cancel the order. The `cancelOrder` method, however, only stores the hash of the canceled order in mapping but the mapping is never checked. It is therefore effectively impossible for a tr...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
access-control
false
false
## Low: Privileged Roles and Ownership ### Description **Update** Marked as "Fixed" by the client. Addressed in: `9511c9715c1375b6554a3ff6648d7c0bbf0f50e1`. The client provided the following explanation: killed prevent renaissance **File(s) affected:**`DoomsdaySettlers.sol` **Description:** Smart contracts will ofte...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
other
false
false
## High: Wrong Order of Operations Leads to Exponentiation of rewardPerTokenStored ### Description The `Unipool.sol` contract was updated in commit `4feb1cb`. The updated `rewardPerToken()` function was modified from: ``` rewardPerToken = rewardPerTokenStored + lastTimeRewardApplicable() − lastUpdateTime totalSupply...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect Chainlink Integration ### Description **Update** The Blex team has replaced the use of the deprecated `latestAnswer()` and `latestRound()` function calls with calls to `latestRoundData()` in commit [e025a21](https://github.com/blex-dex/contracts/commit/e025a21b13546f2f75c21663a83e35cee5d072e1). H...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [05] `addManagedNFT` and constructor should include a check for duplicate NFTs ### Description ### Lines of code https://github.com/code-423n4/2024-02-althea-liquid-infrastructure/blob/bd6ee47162368e1999a0a5b8b17b701347cf9a7d/liquid-infrastructure/contracts/LiquidInfrastructureERC20.sol#L394C1-L403C6 https://...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inconsistent Hooklet data provisioning for rebalancing operations ### Description **Description:** Bunni utilizes Hooklets to enable pool deployers to inject custom logic into various pool operations, allowing for the implementation of advanced strategies, customized behavior, and integration with external ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Input arrays with mismatched length will make addManyUsers throw ### Description The [`addManyUsers`](https://github.com/jeualvarez/Token-Airdrop/blob/d96202acf6fb5d0305368bac36aa960d455cbffe/contracts/Airdrop.sol#L45) function in the `AirDrop` contract, in charge of registering the `_recipients` of the air...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Lack of Event Emission For Critical Functions ### Description Several functions update critical parameters that are missing event emission. These should be performed to ensure tracking of changes of such critical parameters. ### Recommendation Add events to functions that change critical parameters.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Attackers can call UToken.redeem() and drain the funds in assetManager ### Description Attackers can call ``UToken.redeem()`` and drain the funds in assetManager, taking advantage of the following vulnerability: due to round error, it is possible that ``uTokenAmount = 0``; the ``redeem()``function does not...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
signature
true
false
## Medium: Insecure Signature-Based Authorization ### Description ## Vulnerability Analysis of getObjectsFromStorage When `getObjectsFromStorage` is called, it iterates through the files stored in the Arweave network and verifies the signature of the registry file. However, two problems in this signature verification...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Add `unchecked {}` for subtractions where the operands cannot underflow because of a previous `require()` or `if`-statement ### Description `require(a `require(a <= b); unchecked { x = b - a }` *There are 3 instances of this issue:* https://github.com/code-423n4/2022-08-frax/blob/c4189a3a98b38c8c962c5ea72f1...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Validate Channel Origin ### Description ## Validate Sender Origin on Channels To further mitigate an attacker site from accessing critical channels. ## Remediation File: `src/chrome/background.js` ## Patch Resolved in commit `bc83390`. --- © 2022 OtterSec LLC. All Rights Reserved. ### Recommendation F...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
token
true
false
## Low: Function supportsInterface can be restricted to pure ✓ Fixed ### Description The function `supportsInterface` returns a `bool` stating that the contract supports one of the defined interfaces. **src/Loihi.sol:L140-L142** ``` function supportsInterface (bytes4 interfaceID) public returns (bool) { return 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
low
other
false
false
## Low: [17] Missing unit tests ### Description The derivative contracts don't have all functions and branches covered. It is crucial to write tests with possibly 100% coverage for smart contracts. It is recommended to write tests for all possible code flows.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Miscellaneous General Comments ### Description This section details miscellaneous findings of interest: 1. **Minting vaults when paused**: Consider adding the `whenNotPaused` modifier to `VaultController.mintVault()` as a precautionary measure. Generally, it is desirable for pause functionality to block as mu...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: AUCTIONS AND BIDS COULD BE STUCK PERMANENTLY IN THE AUCTIONUPGRADEABLE CONTRACT IF A BID IS PLACED BY A BLACKLISTED USDC/USDT USER ### Description The `AuctionUpgradeable` contract allows creating different auctions through the `createAuction()` function: ### Recommendation **SOLVED:** The `Irrigation Protoc...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Fee calculation is different when converting token to rsToken and back ### Description When converting wToken to rsToken, the fee is calculated as such: The total amount deducts the bridging fee and then the new amount deducts the staking fee. When unstaking, the bridging fee and unstaking fee are calculate...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 `calldata` instead of `memory` ### Description When a function with a `memory` array is called externally, the `abi.decode()` step has to use a for-loop to copy each index of the `calldata` to the `memory`index. Each iteration of this for-loop costs at least 60 gas (i.e. `60 * .length`). Using `calldata` 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
high
signature
true
false
## High: LGO is Vulnerable to Replay Attacks ### Description **Update** Fixed. However, the team still has to upgrade the contract and set the domain initializer. The client's response: "Fixed via level-fi/level-core-contracts#58ad470a1921f0f54d4a923aef03eec69f8cbfa0" **File(s) affected:**`LevelGovernance.sol` **Des...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Deficient validation in `updatePriceOracleForValidated` ### Description _Resolved_ The goal of `updatePriceOracleForValidated` in `ElytraOracleV1` is to update the oracle for a supported asset, but, also perform validations checks for it, as we can see here : However, the checks are incorrect and deficient ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Collateral setters for Morpho / Aave can end up in a deadlock ### Description One can end up in a deadlock where changing the Aave pool or Morpho collateral state is not possible anymore because it can happen that Aave automatically turns the collateral asset off (for example, when withdrawing everything / ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inconsistent Naming ### Description The `setswapSlippage` function name does not follow standard `camelCase` naming conventions, which can reduce code readability and consistency. This inconsistency may lead to confusion when interacting with the function programmatically or reviewing the codebase. ### Recomm...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
flash-loan
false
false
## Low: Whitepaper issues ### Description The commit audited includes the Aave protocol whitepaper in the [`docs` folder](https://gitlab.com/aave-tech/dlp/contracts/tree/1f8e5e65a99a887a5a13ad9af6486ebf93f57d02/docs). Following we include a list of issues related to the whitepaper that must be addressed: * Throughou...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: sumColumns not properly looped ### Description **Severity**: Medium **Status**: Resolved **Description** Solarray.sol - In sumColumns(int256[5][4] memory _array), the first for-loop which is supposed to loop on the first dimension of _array through i, is including 4 iterations (i.e. since _array.length 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
reentrancy
true
false
## High: The `_applyPlatformFeeCloseErc20Gmx()` Function Misses to Implement `GmxFactory.tokenTransferPlatformLogic()` ### Description The `GmxFactory.closePositions()` function creates a position order to close an existing position. The platform fees also are included in this order at `Line:396` as below: File: [src...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Input addresse to `_safeTransferETH()` should be payable ### Description While it doesn't affect any contract operation, it adds a degree of type safety during compilation, and is done by ``OpenZeppelin``(https://github.com/code-423n4/2022-11-paraspace/blob/c6820a279c64a299a783955749fdc977de8f0449/paraspace-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
token
false
false
## Low: Unused import ### Description In the `InceptionBridge.sol` file, OpenZeppelin's `IERC20Metada.sol` is imported but not used in the contract. ### Recommendation Remove the unused import statement. Remediation Plan ---------------- **SOLVED:** The **Tagus Labs team** has addressed the finding in commit `a98d3...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Code Maturity ### Description ## Withdrawal Pool Improvements ## Summary of Changes 1. In `withdraw_pool`, upcast the multiplication (`mul`) operation to avoid potential overflow issues and ensure correctness. 2. In `withdraw_pool`, the burn operation should be authenticated by the withdrawer user account. S...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: **Unexpected words order** ### Description **Description** In `SecondaryPoolBWT.sol` file, there are 11 occurrences of the `...should be not...` expression, example: `"WHITE token address should be not null"`. The correct word order is `...should not be...`. **Recommendation**: Replace **"...should be not ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
signature
true
false
## Low: Redundant `vault_authority_signer` passed to `BurnChecked` in `redeem` and `liquidate` ### Description **Description:** Both `redeem_handler` and `liquidate_handler` build their burn CPI like this: The SPL-Token program requires **only the `authority` account to sign**. Here the authority is the operator/liq...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Dao.sol: Unbounded Iterations in claimAllForMember() ### Description ## Handle hickuphh3 ## Vulnerability details ### Impact The `claimAllForMember()` function iterates through the full list of `listedAssets`. Should `listedAssets` become too large, as more assets are listed, calling this function will ru...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Calls to sellCompleteSets function in FillOrder contract can be unexpectedly reverted ### Description In the [`CompleteSets`](https://github.com/AugurProject/augur/blob/9a33c3269e812d0cb66d49b61a72db58e32e4749/packages/augur-core/source/contracts/trading/CompleteSets.sol) [contract](https://github.com/Augur...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inconsistent file naming ### Description In Solidity development, it is a common convention that contracts, interfaces and library names should also match their filenames. However, the `Injector.sol` file does not follow this convention and contains a contract called `InjectorContextHolder` instead. ### Recom...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Realloc Account Overflow ### Description ## Vulnerability in Solana Program's Realloc Implementation The `solana-program`’s realloc implementation for account data is missing a size check. It fails to check the new size against `MAX_PERMITTED_DATA_INCREASE` before resizing the buffer. As Anchor allow...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
false
false
## Medium: Anyone can set the Holdefi contract’s address in the CollateralsWallet contract ### Description The [`CollateralsWallet` contract](https://github.com/holdefi/Holdefi/blob/f4df394d7cf6df347b1f1e9af8e2676c5933c2c9/contracts/CollateralsWallet.sol) is in charge of letting the [`Holdefi` contract](https://github...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inadequate expiration time check in ThorSwapFacet ### Description ## Vulnerability Report **Severity:** Low Risk **Context:** ThorSwapFacet.sol#L108 **Description:** According to Thorchain, the expiration time for certain operations should be set to +60 minutes. However, there is currently no check in ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
front-running
false
false
## High: No slippage control when withdrawing a position leads to loss of funds ### Description An attacker can sandwich a user withdrawing funds as there is no way to put slippage protection, which will cause a large loss of funds for the victim. ### Proof of Concept `decr_position_09293696` function was removed en...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: *_create Validation ### Description ## Security Concerns with Parameter Validation Parameters are not properly validated in any of the creation methods. While this does not pose an immediate security concern due to the privileged nature of these creation methods, a lack of checks could introduce unexpected 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
logic
true
false
## Low: The redeem() function reverts on valid values of shares ### Description **Severity**: Informational **Status**: Resolved **Description**: In Pool.sol, the redeem() function does not allow any value of shares as a parameter to be passed other than a value equal to lockedShares. This is because, redeem() fun...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Fee calculation can lead to protocol revenue loss ### Description The `rangeFees` function in the RangeMath library has one issue: 1. **Potential loss of fees for small amounts or low fee rates due to integer division.** The issues occur in the `rangeFees` function: ```solidity function rangeFees( uint...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
access-control
false
false
## Medium: Single-step process for critical ownership transfer ### Description _Submitted by 0xRajeev_ The `Tracer Perpetuals Factory` contract is arguably the most critical contract in the project given that it deploys all the markets. The ownership of this contract is transferred to `_governance address`, i.e. Trac...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: DoS of Bunni pools when raw balance is outside limits but vaults do not accept additional deposits ### Description **Description:** When the `BunniHub` has a `rawBalance` that exceeds `maxRawTokenRatio` it will attempt to make a deposit into the corresponding vault to reach the `targetRawTokenRatio`. To do ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: TRST-M-3 Wrong ERC1155 metadata URI ### Description **Description:** TimeswapV2LiquidityToken and TimeswapV2Token implement the ERC1155 metadata extension, however they incorrectly set the URIs. As per the ERC1155 specification: The URI MUST point to a JSON file that conformsto the "ERC-1155 Metadata URI JS...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of event emission ### Description The following functions do not emit relevant events after executing sensitive actions: * The [`setRewardsTarget` function](https://github.com/OriginProtocol/ousd-governance/blob/2b9761606d4ac4062b69367ebbad88220cea45ce/contracts/RewardsSource.sol#L122) changes the ad...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect accounting of utilization, supply/borrow rates due to vulnerable implementation in `IsolateLogic::executeIsolateLiquidate` ### Description When an isolate loan (borrow against a single nft token) is auctioned and liquidated, the liquidator (caller of `IsolateLogic::executeIsolateLiquidate`) may ne...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: sharesToTokenAmount: Division by zero ### Description ## Lines of code https://github.com/code-423n4/2022-03-biconomy/blob/db8a1fdddd02e8cc209a4c73ffbb3de210e4a81a/contracts/hyphen/LiquidityProviders.sol#L192 ## Vulnerability details ## Impact The public `sharesToTokenAmount` function does not check if ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: ROUND LIMIT CAN BE DEFINED AS GOVERNANCE PARAMETER ### Description During the code review, It has been noticed that **roundLimit** is hardcoded into **claimRewards** function. It is recommended to activate round limit as governance parameter. Code Location ------------- [/contracts/PledgeAgent.sol#L287](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...
skyward_49k
low
reentrancy
false
false
## Low: Authorized `emergencyWithdraw()` Function Is Vulnerable to Reentrancy Attack ### Description **Update** Marked as "Fixed" by the client. Addressed in: `7179ca51941cf5cbe03c1e3bab547db0ec347d73`. **File(s) affected:**`SapienVault.sol` **Description:** The `emergencyWithdraw()` function performs ether transfer...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
storage
false
false
## High: The lower bound for liquidationInitialAsk for new lines needs to be stricter ### Description `params.lien.details.liquidationInitialAsk` (`Lnew`) is only compared to `params.amount` (`Anew`) whereas in `_appendStack` `newStack[j].lien.details.liquidationInitialAsk` (`Lj`) is compared to `potentialDebt`. `po...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Users are not able to verify releases ### Description Celo does not publish the checksums of its [releases](https://github.com/celo-org/celo-monorepo/releases). Moreover, while some releases are signed (for example, [`alfajores-v0.3`](https://github.com/celo-org/celo-monorepo/releases/tag/alfajores-v0.3)), ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
token
false
false
## Low: Careful Usage of Upgradeable contracts ### Description **Severity**: Informational **Status**: Acknowledged **Description** Upgradeable contracts have been used throughout the codebase. For example, In CreditUSD contract, the Upgradeable ERC20 has been used. And in CreditUSDMinter, ERC721HolderUpgradeable ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: Parameter mismatch in `IdEnforcer::beforeHook()` event emission ### Description There's a parameter ordering mismatch in the IdEnforcer contract when emitting the `UsedId` event in the `beforeHook()` function. The event declaration and the actual emission use different parameter orders for the delegator and re...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
storage
true
false
## High: Avoid External Calls To Transient Or Unverified External Contracts ### Description ## High Risk Vulnerability Report ## Severity **High Risk** ## Context - **File:** `PoolManager.sol#L190` - **File:** `PoolManager.sol#L254` - **File:** `PoolManager.sol#L274` ## Situation External calls take plac...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
solodit_api
medium
Missing Check
true
false
Source: https://github.com/sherlock-audit/2023-01-cooler-judging/issues/263 ## Found by tsvetanovv, rvierdiiev, ck, zaskoh, Allarious, Trumpero, Breeje, berndartmueller, jonatascm, Deivitto ## Summary Due to precision issues when repaying a loan with small amounts of debt tokens, the `loan.amount` can be reduced w...
Sherlock
4
Cooler
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Implicit variable visibility for `idInList`. ### Description **Description** Perpetual TokensFarm.sol: `idInList`. PerpetualTokensFarmSDK.sol: `idInList`. TokensFarm.sol: `idInList`. Tokens FarmSDK.sol: `idInList`. For better code readability, it is recommended to explicitly mark visibility for all storage va...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: No additional information via events ### Description These events do not contain all information about the update: - `PlatformUpdated` (https://github.com/metaxu-art/fantium-smart-contracts/blob/cb2d97bc30c40321991fe5ab8fc798babba1610f/contracts/FantiumNFTV1.sol#L90) - `CollectionUpdated` (https://github.com/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
medium
other
false
false
## Medium: Transfer to zero address ### Description `to` can be equal to zero address: https://github.com/Gearbox-protocol/gearbox-contracts/blob/0ac33ba87212ce056ac6b6357ad74161d417158a/contracts/credit/CreditManager.sol#L338 ### Recommendation We recommend adding a check that `to != address(0)`.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: Fee calculation inconsistency in `updateRCParams()` ### Description _Acknowledged_ When updateRCParams() is called, the function updates rcParams[market] before processing pending rewards. As a result, processRewards() uses: -The new harvestFeePercentage, -The old rewardCutPercentage (from lastRewardCuts[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
medium
other
true
false
## Medium: Unchecking the ownership of `mph` in function `distributeFundingRewards` could cause several critical functions to revert ### Description In contract `MPHMinter`, the function `distributeFundingRewards` does not check whether the contract itself is the owner of `mph`. If the contract is not the owner of `mp...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
storage
true
false
## Medium: RocketNodeDistributor - Missing extcodesize check in dynamic proxy  Won't Fix ### Description `RocketNodeDistributor` dynamically retrieves the currently set delegate from the centralized `RocketStorage` contract. The target contract (delegate) is resolved inside the fallback function. It may return `addres...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
cyfrin_structured
low
input-validation
true
false
## Low: Missing zero output validation in `SecuritizeAmmNavProvider` quote and buy functions ### Description `SecuritizeAmmNavProvider::quoteBuyBase, quoteSellBase, executeBuyBase, executeSellBase` lack validation that output values are non-zero. Apart from issues already mentioned where rounding down to zero can occu...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
true
false
## Low: MISSING SUCCESS CHECK ON LOW LEVEL CALLS ### Description In Solidity, the use of low-level calls could cause unexpected behavior if the call fails or an attacker provokes the call to fail. Then, it is a good practice not to use low-level calls to avoid a potentially exploitable behaviour. If the return value 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
initialization
true
false
## Low: No validation applied on the constructor arguments ### Description **Severity**: Low **Status**: Resolved **Description** No require statements to validate inputs of constructor during deployment. **Recommendation**: Add require statements similar to the following:
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Secondary Fee Address Can Deny Pool Upkeeps by Reverting Upon Callback ### Description Pool keepers will perform upkeeps on each given update interval, ensuring that pools use the most up-to-date pricing for rebalance events. Upon upkeep, a fee is charged on the pool’s short and long balances, used to alloc...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
initialization
false
false
## Gas: Variables only set once in `constructor` of non-upgradeable contracts should be declared `immutable` ### Description **Description:** Variables only set once in `constructor` of non-upgradeable contracts should be declared `immutable`: * `CompliantDepositRegistry::complianceChecker` * `Minter::baseAsset, hilBT...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Function Is Updating the State Without an Event Emission ### Description The `ScrollBridgeReceiver` contract sets the `l2Messenger` variable [during construction](https://github.com/compound-finance/comet/blob/149284098ee0c59654d09b005ce8cae6f6cc9bf0/contracts/bridges/scroll/ScrollBridgeReceiver.sol#L15). Howe...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Remove redundant timestamp check in `Bet::resolve` ### Description **Description:** `Bet::resolve` has this revert check: But the call to `_status(b)` already checks `block.timestamp > b.resolveBy` and returns `EXPIRED` status which triggers the revert, so having the same timestamp check here again is redund...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Event emission before executing the depositIntoStrategy operation ### Description In the depositAssetIntoStrategy() function, the AssetDepositIntoStrategy event is emitted before the actual execution of the depositIntoStrategy operation. According to common rules, events should be emitted after the execution 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
medium
token
false
false
## Medium: Unsafe use of `_mint` instead of `_safeMint` ### Description **Description:** The usage of `_safeMint`guarantees that the receiver `to`address is either a smart contract that implements `IERC721Receiver.onERC721Received`or an EOA. **Recommendations:** According to OpenZeppelin usage of `_mint`is disc...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
dos
true
false
## High: InsertBulkReputerPayload can be DoS ### Description After discovering the `InsertBulkReputerPayload` transaction, the attacker initiates the same call to reduce the number of `Valuebundles` in the array of `msg.ReputerValueBundles` (keep only one), invalidate most of the Reputer's data. ### Impact A DoS atta...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Operator May DoS the Withdrawal or Make It More Expensive ### Description While collecting fees, the operator may: 1. cause DoS for the funds/rewards withdrawal by reverting the call, thus reverting the whole transaction. By doing this, it won’t be receiving any rewards, but so the treasury and withdrawer...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
integer-overflow
true
true
## Low: Casting from `u64` to `i64` causes genuine deposit requests to fail in `deposit` function ### Description The `deposit` function in `deposit.rs` casts the amount value( the amount of tokens trader is willing to deposit) which is of type `u64` to `i64` when `deposit_all` is set to `true`. When token amounts exc...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
signature
true
true
## Gas: getHash code can be simplified ### Description This function can be simplified by not creating the `sender` variable and invoking `userOp.getSender()` in the first parameter of the encoding. Based on testing a similar function, this change would result in a very small bit of gas savings. ### Recommendation Con...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inconsistent Check On Maximum Commitments ### Description ## Vulnerability Report The vulnerability pertains to the potential risk of a dishonest prover creating a crafted proof containing more commitments (bit-lengths) than the maximum permissible limit, resulting in incorrect verification without raising a...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
dos
false
false
## Medium: Incorrect Gas Estimation ### Description ## Vulnerability in Send Transaction The vulnerability in `send` stems from the gas estimation process, particularly when handling transactions without sending data to Celestia (`!isCelestia`). Initially, the gas limit (`candidate.GasLimit`) is set to zero before ad...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: ControllerPeggedAssetV2: `triggerEndEpoch` function can be called even if epoch is null epoch leading to loss of funds ### Description An epoch can be resolved in three ways which correspond to the three functions available in the Controller: `triggerDepeg`, `triggerEndEpoch`, `triggerNullEpoch`. The 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
low
access-control
true
false
## Low: Setting MintCap to a Specific Value Is Prone to Front-Running. ### Description `Dram` stable coin is using the approval-like model to set the minting caps of different operators, thus it is prone to the same front-run issues as the approval mechanism. When using the `setMintCap` function directly operator coul...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Requires don’t give access to mint function at CoiinMinter.sol ### Description **Description** In constructor of CoiinMinter.sol you define variable lastMintAmount equal to 1000000 * 1e18, but in function mint you have requires: // _amount cannot be less than minMintMonthly require(_amount >= coiin.minMintM...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
dos
true
true
<https://github.com/Tapioca-DAO/tapioca-bar-audit/blob/master/contracts/usd0/BaseUSDO.sol#L399> <https://github.com/Tapioca-DAO/tapiocaz-audit/blob/master/contracts/tOFT/BaseTOFT.sol#L442> <https://github.com/Tapioca-DAO/tap-token-audit/blob/main/contracts/tokens/BaseTapOFT.sol#L52> This is an issue that affects ...
Code4rena
5
Tapioca DAO
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: StakingManager.confirmWithdrawal()/batchConfirmWithdrawals() are using .transfer() limiting ### Description Using `.transfer()` to transfer native assets is compiled to a low-level CALL opcode with a gas limitation of 2300 during compilation. In case the recipient is a smart contract with a fallback function t...
0