prompt listlengths 2 2 | source stringclasses 3
values | severity stringclasses 5
values | category stringclasses 186
values | has_code bool 2
classes | has_poc bool 2
classes | reference_response stringlengths 23 5k | firm stringclasses 26
values | quality_score float64 0 5 | protocol stringclasses 398
values |
|---|---|---|---|---|---|---|---|---|---|
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | oracle | true | true | ## Medium: CAP price uses maximum of oracle and collateral ratio instead of minimum
### Description
The `getCAPPrice()` function in `PolicyManager.sol` determines the collateral-aware peg (CAP) price by using `Math.max(oraclePrice, cr)` during undercollateralized conditions (CR < 1.0).
In situations where the 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 | storage | false | false | ## Low: Use a more recent version of solidity
### Description
Use a solidity version of at least 0.8.4 to get bytes.concat() instead of abi.encodePacked(,)
Use a solidity version of at least 0.8.12 to get string.concat() instead of abi.encodePacked(,)
Use a solidity version of at least 0.8.13 to get the ability to use... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inefficient Logic in Stake Processing
### Description
The logic in the `stake` function includes two inefficiencies:
1. **Redundant Balance Comparison**: The function calculates `stakingAmount` by comparing the contract’s token balance before and after the transfer. This approach is unnecessary and gas-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 | token | true | true | ## Medium: Adversary can emit any event that needs the EMITTER role without restrictions
### Description
The `Emitter` contract has two functions that grant an `EMITTER` role to the DAO proxies. This role is granted to every DAO created via `createERC20DAO()` or `createERC721DAO()` in the factory contract.
```solidit... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unauthorized Global and Oracle State Initialization
### Description
The `InitializeGlobalState` instruction allows any user to initialize both a `global_state` and `oracle` account using arbitrary values for `super_admin` and `admin`. The instruction lacks necessary access controls:
```rust
#[derive(Accoun... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Manipulation of the floating debt by updating `floatingBackupBorrowed`
### Description
An attacker can update the variable `floatingBackupBorrowed` without updating the floating debt. This will change the utilization rate of the market without accruing the past floating debt, thus manipulating the unrealize... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | false | true | Source: https://github.com/sherlock-audit/2022-11-opyn-judging/issues/148
## Found by
indijanc, rotcivegaf, hyh, chainNue, rvierdiiev, Met, 0x52, KingNFT, Jeiwan, adriro, yixxas
## Summary
When a user dequeues a withdraw or deposit it leaves a blank entry in the withdraw/deposit. This entry must be read from memor... | Sherlock | 3 | Opyn Crab Netting |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Stale Governance Parameters in `make_action()` Allow Outdated Proposals
### Description
**Update**
The team implemented the recommendation. In the `master` contract, if the total supply is updated via mints or burns, the success percentage is changed, or a code upgrade occurs, all pending proposals are inva... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | false | false | ## Medium: Incorrect de-structuring of parse_intent()'s return value will trigger unexpected operations
### Description
The wrong de-structuring of [`parse_intent()`](https://github.com/sherlock-audit/2025-04-zetachain-cross-chain/blob/main/protocol-contracts-ton/contracts/gateway.fc#L223) when the TON Gateway contrac... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Vaults May Not Deliver Full Payouts
### Description
**Update**
Marked as "Fixed" by the client. The contract now tracks any unpaid rewards a user is owed to pay them at a later date. However, given that there is no guarantee that the contract will reacquire the necessary liquidity to pay out rewards, we have 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 | high | initialization | false | false | ## High: TransactionManager - User might steal router’s locked funds ✓ Fixed
### Description
`TransactionManager.removeLiquidity` is intended to be restricted for routers only, but in practice, it’s callable by users that had deposited funds to the contract using `TransactionManager.prepare`. A user may initiate a `pr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | access-control | false | false | ## High: React Keychain Weak Access Control
### Description
## Pontem Keychain Access Control
Pontem uses the `setGenericPassword` function from the `react-native-keychain` library to store the user’s password and address on the device. This function has different options, one being `Keychain.ACCESS_CONTROL`, which p... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | signature | true | false | ## Low: EditionMaxMinterV2 overrides totalPrice() with identical function
### Description
In `BaseMinterV2.sol`, the `totalPrice()` function is implemented as follows:
In most of the V2 inheriting contracts (`MerkleDropMinterV2.sol`, `FixedPriceSignatureMinterV2.sol`, `RangeEditionMinterV2.sol`), the `totalPrice()` ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `burn()` function doesn't have slippage control
### Description
**Severity**
Impact: Medium. User receives less collateral than expects.
Likelihood: Medium. Price must go down after submitting transaction to mempool.
**Description**
Currently there is no mechanism for user to specify accepted price on 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 | true | false | ## Low: No need to bound the fee override in `FeeOverrideHooklet::setFeeOverride` as it is clamped in `HookletLib::beforeSwap`
### Description
**Description:** `FeeOverrideHooklet::setFeeOverride` bounds the overridden fees to prevent them from exceeding `SWAP_FEE_BASE`:
Assuming L-01 is correctly mitigated as sugge... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inadequate checks to confirm the correct status of the sequence/`sequencerUptimeFeed` in `PriceFeed.getPrice()` contract
### Description
The `PriceFeed` contract has `sequencerUptimeFeed` checks in place to assert if the sequencer on an L2 is running but these checks are not implemented correctly. The [chai... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Claim failure for blacklisted addresses in `claimPendingPayout` and `claimPendingWithdrawal`
### Description
The `Staking.claimPendingPayout()` function is designed to allow winners to claim their rewards if the transfer failed during `transferPayout()`, a reason for the failure could be that the winner's addr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Optional input could lead to failure in execution
### Description
The `execute_dispatch_rewards`function from **basset\_inj\_rewards\_dispatcher** contract executes the following call to the `UpdateGlobalIndex`entry point of the **basset\_inj\_reward** contract:
/superLiquidation`: Add 0 value check to prevent division by 0 in `liquidation`
### Description
Consider adding a check to ensure that `borrowed` amount is greater than 0 before allowing for `liquidation()/superLiquidation` to prevent division by zero error. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | oracle | false | false | ## High: First Depositor Issue
### Description
**Severity**: High
**Status**: Resolved
**Description**
Contract AssetVault is implementing the standard ERC4626, thanks to their design these types of vaults are subject to a share price manipulation attack that allows an attacker to steal underlying tokens from other... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `AmpleEarn.setMerkleRoots` can set incorrect `merkle` root
### Description
`AmpleEarn.setMerkleRoots` sets the `designatedRecipientsRoot` and it contains the claim amount.
In `AmplePayoutLib.claimPayout`:
```solidity
uint256 payoutAmount = designatedRecipientLeaf.payoutAmount;
bytes32 leaf = keccak256(
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Absence of reserves length check during pump initialization can lead to storage corruption.
### Description
During an update, several checks are performed:
- `capReserves` asserts that the length of the reserve is 2.
- `_getSlotsOffset`, also called in `_init`, assert the length is not 0 (otherwise, it revert... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Redundant state variables in ParticipantAdditionProxy
### Description
For both the sale and presale participants, the [ParticipantAdditionProxy](https://github.com/unikoingold/UnikoinGold-UKG-Contract/blob/65e2f6a461aee01ef23d2a99abc9b0ca00be5a7d/contracts/ParticipantAdditionProxy.sol) keeps track of whether 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: Inefficient payout transfer check in `payOff()`
### Description
The `payOff` function of `OperationalTreasury.sol` calculates the net profit (`netAmount`) by subtracting fees (`feesUSD`) from the gross profit (`pnl`). However, the final transfer of this net profit to the user is conditional on the gross profit... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect Construction of stakedPhantomToken
### Description
In the constructor code of `ConvexV1BaseRewardPoolAdapter`, the `stakedPhantomToken` is created with the pool’s staking token passed in as the first parameter, instead of the pool address itself. As such, the phantom token will not return correct ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Simplify conditional execution
### Description
The current implementation uses an explicit comparison with `false` and an `if` statement to check if the account has already been deployed and initializes it if necessary. While this approach is correct and readable, it can be simplified further by leveraging the... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Hard-coded indices into account data
### Description
The implementations for both **PerpMarketMap** and **SpotMarketMap** use hard-coded indices into the accounts data in order to retrieve the `marked_index` property without having to deserialize all the data.
```rust
// market index 1160 bytes from front of ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | liquidation | true | false | ## Low: Stake function shouldn't be accessible, when the status is paused or frozen
### Description
The function `stake` in StRSR.sol is used by users to stake a RSR amount on the corresponding RToken to earn yield and over-collateralize the system. If the contract is in paused or frozen status, some of the main funct... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: os.Create() used without checking for an existing file
### Description
Prysm uses `os.Create()` in several locations without checking for the presence of an existing file. If a file is already present when `os.Create()` is called, the original file will be truncated. The affected code sections use `os.Create()`... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: MultiSigWallet can call invalid contracts
### Description
Transactions are added to the MultiSig wallet via `submitTransaction`. Except for a zero check, there is currently no mechanism to verify that the destination address corresponds to a valid contract.

Impacted Function: `createMarket`.
1. Ow... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | front-running | true | false | ## High: It is possible to frontrun liquidations with self liquidation with high strain value to clear warning and keep unhealthy positions from liquidation
### Description
Source: https://github.com/sherlock-audit/2023-10-aloe-judging/issues/29
## Found by
panprog, rvierdiiev
Account liquidation involving asset 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 | liquidation | false | false | ## Low: Semantic overload
### Description
[Throughout the codebase](https://github.com/holdefi/Holdefi/tree/f4df394d7cf6df347b1f1e9af8e2676c5933c2c9/contracts), there are cases in which a single variable has two purposes, and, based on which its value is, the code can perform differently. For example:
In [the `Holde... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Internal functions that are not called by the contract should be removed to save deployment gas
### Description
Internal functions in Solidity are only intended to be invoked within the contract or by other internal functions. If an internal function is not called anywhere within the contract, it serves no pur... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Future stakers are paid with rewards that have been accrued from the past due to miscalculation in userRewardPerTokenPaid and _perTokenReward.
### Description
Furure stakers are always vested rewards using the total `rewardPerToken` without deducting how much `rewardPerToken` has already been accumulated befo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Curve part is not reduced by negative variable interest growth when closing longs
### Description
When closing longs during a period of negative interest, the trader's proceeds are reduced proportionally to the negative growth. However, this is only done on the `shareProceeds` variable which represents both... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Eliminate Unnecessary Variable
### Description
## Process Pending Stake Requests
The `actions::process_pending_stake_requests` function has a process for minting AFSUI and passing the amount to be minted through the `afsui_amount` variable when calling `mint_afsui`. Then, the amount of the minted AFSUI is fet... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Shared/hexToBytes - Incorrect Hex String Handling ✓ Fixed
### Description
The function `hexToBytes` aims to convert a hex string into a `Uint8Array`. It splits the string into parts of two characters each and then tries to parse each part into an integer.
However, the function fails to validate that the prov... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Swaps performed in pools with zero liquidity can cause a complete DoS of `FullRangeHook`
### Description
**Description:** The `FullRangeHook` is characterized by rebalancing after every swap executed in the pool:
It first removes all the liquidity deposited to the pool for later price adjusting; however, th... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | front-running | true | false | ## Low: Platform flat fee can be set to any value with no cap
### Description
The platform fee that Sound collects is charged in two portions:
- The platform fee is a percentage of the total sale price
- The platform flat fee is a flat price per NFT minted paid to the platform
When the platform fee is set, there is ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | true | false | ## Low: Incorrect boundary check for lowTick and highTick
### Description
The Edge.setRange() function allows the owner to initialize the lowTick and highTick parameters:
Before assigning these values, the function enforces boundary checks:
These checks ensure that:
- `lowTick` is strictly greater than `MIN_NARRO... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inconsistency in LibMath comments
### Description
There is inconsistent use of `x` in comments and `a` in code within the `nthRoot` and `sqrt` [functions](https://github.com/BeanstalkFarms/Wells/blob/e5441fc78f0fd4b77a898812d0fd22cb43a0af55/src/libraries/LibMath.sol#L41-L138) of `LibMath`.
**Beanstalk:** Fixe... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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**
The client provided documentation for this risk in a markdown file `7f8812cf5884e0ecb5d840f664b9b7e7d4232f0d`.
**File(s) affected:**`IFFixedSale.sol`
**Description:** All privileged permissions should be clearly documented for users. The privileged pe... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Misleading method GoDoc `calculateWithExactInput`
### Description
GoDoc paramater of `soldTokenDenom` on `swap:calculateWithExactInput` is not a function parameter, however there is a boughtTokenDenom parameter (which would be an inversion of the GoDoc description).
### Recommended Mitigation | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `if (ard.assertionHash != args.claimId) {` Potentially Redundant Check Between assertionHash and claimId in `layerZeroTypeSpecificChecks()` function
### Description
There is no possibility that values are different. ``args.claimId`` value only assigned to ``ard.assertionHash`` when creating ``ard`` variable .
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | token | true | false | ## High: DCA ownership transfers can be abused to steal tokens
### Description
DCA ownership is transferred without the consent of the new owner, which means that DCA ownership transfers can be abused to steal users’ tokens. The recipient of a DCA swap is stored in the swap parameter `ISwapRouter.ExactInputSingleParam... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 `liquidatedCollateralUsdX18` variable from `LiquidationBranch::liquidateAccounts`
### Description
**Description:** The `liquidatedCollateralUsdX18` variable is used to store the return value of `TradingAccount::deductAccountMargin`, then the only other use is to assign it to `ctx.liquidatedCollat... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Native token recovery in failSafe implant
### Description
`failSafeImplant` doesn't have functionality for the native token recovery. But according to `borgCore.checkTransaction()`, the native token support is assumed.
### Recommendation
We recommend making improvements from the 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 | medium | token | true | false | ## Medium: Using the index for rewardTokens could result in incorrect reward token transfers inRewardForwarder
### Description
In the `RewardForwarder` contract, rewards are distributed based on an index of reward tokens retrieved by the `RewardsController` as shown below:
```solidity
function claimRewardsFor(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 | high | liquidation | false | false | ## High: Liquidation Can Be Avoided Due to Unbounded Position List
### Description
Each account in the Panoptic Pool has a `positionIdList` associated with it, containing all active positions. This list is used to validate the input holdings via the positionHash, calculate collateral requirements as well as compute th... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: `public` functions not called by the contract should be declared `external` instead
### Description
Contracts [are allowed](https://docs.soliditylang.org/en/latest/contracts.html#function-overriding) to override their parents' functions and change the visibility from `external` to `public`.
*There are 3 insta... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Redundant Contract Size
### Description
**Update**
The client provided the following explanation:
> _We acknowledge the recommendation; however, transitioning to interfaces from our current implementation using libraries such as Solmate would require considerable effort and would only minimally impact the 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... | skyward_49k | gas | other | true | false | ## Gas: MigratorZap._v2ToV3Vault should limit the amount of VTokenV2 that is swapped
### Description
In `MigratorZap._v2ToV3Vault`, unused VTokenV2s are swapped for ETH. Even if there is only 1 wei of VTokenV2, this may result in the user paying more in gas than the ETH swapped.
```solidity
vTokenV2Balance = vTokenV2... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | cross-chain | false | false | ## High: Teleporter Fee Is Minted Out of Thin Air - Phase 2
### Description
When a user wants to bridge tokens from a `TokenSpoke` on chain B back to a `TokenHub` on chain A, they have to pay a Teleporter message fee. This fee is used to incentivize relayers for passing the message from chain B to chain A. Users are 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 | storage | false | false | ## Low: Unnecessary complexity
### Description
The `Comet` contract [delegates](https://github.com/compound-finance/comet/blob/0f1221967149115f50a09681eea9580879ee7720/contracts/Comet.sol#L1351) some feature implementations into the [`CometExt`](https://github.com/compound-finance/comet/blob/0f1221967149115f50a09681ee... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Some tokens will be stuck in the protocol forever
### Description
**Description:** Due to the shares donated by the first depositor, some tokens will never be able to be withdrawn but will instead be stuck in the protocol forever.
**Impact:** Some tokens will be permanently stuck in the protocol.
**Recommend... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | dos | false | false | ## High: Repeatedly exceeding nuisance gas limit
### Description
Transactions are provided a [nuisance gas budget](https://github.com/ben-chain/contracts-v2/blob/a935e276f5620b40802b52721e3474232e458f72/contracts/optimistic-ethereum/OVM/execution/OVM_ExecutionManager.sol#L1836) to limit the amount of overhead that cou... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [6] `internal` functions only called once can be inlined to save gas
### Description
Not inlining costs **20 to 40 gas** because of two extra `JUMP` instructions and additional stack operations needed for function calls.
*There is 1 instance of this issue:* | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | token | true | false | ## High: Winning pods can be frontrun with large deposits
### Description
`Pod.depositTo()` grants users shares of the pod pool in exchange for `tokenAmount` of `token`.
**code/pods-v3-contracts/contracts/Pod.sol:L266-L288**
```
function depositTo(address to, uint256 tokenAmount)
external
override
returns (u... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Tokens Can Be Locked if Channel Creators Lose Their Keys
### Description
In the event that a channel becomes stale and cannot update/progress its state (for example, the supermajority cannot be reached, or more than 1/3 lose their keys or fail to participate), the tokens can only be withdrawn once the channel ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | access-control | false | false | ## High: `addStrategy()` Is Publicly Accessible
### Description
**Update**
The issue has been fixed by adding the `onlyOwner` modifier to the `addStrategy()`.
**File(s) affected:**`credit/CreditCaller.sol`
**Description:** The `addStrategy()` function associates a strategy with a `GMXDepositor` contract. This strate... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Divide loop in `_commitBatchesWithSystemContractsUpgrade()` to avoid redundant `if`
### Description
**File:** `Executor.sol`
[File: code/contracts/ethereum/contracts/state-transition/chain-deps/facets/Executor.sol](https://github.com/code-423n4/2024-03-zksync/blob/main/code/contracts/ethereum/contracts/state-... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Extra tokens rescue, but not Ether.
### Description
**Description**
Rescuable.sol
The contract has functionality to rescue extra token sent by mistake to the FiatToken contract. Though there is no "mirror" functionality for Ether sent by mistake.
**Recommendation**
Consider adding Eth rescue functionality ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lombard transfer can include UTXOs with very small amounts of BTC that make them eco- nomically unspendable
### Description
Lombard transfer MFA requests are validated by the approver in the `validateLombardTransferRequest()` function. The transaction outputs are validated by `validateStakingOutputs()`, 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 | low | other | true | false | ## Low: Set explicit visibility for storage parameters
### Description
`priviledgedUsers` is defined as:
```solidity
mapping (address => bool) priviledgedUsers;
```
The compiler implicitly assumes that this storage parameter has a public visibility.
### Recommendation
It would best to have explicit visibility for sto... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: [11] Use a more recent version of solidity
### Description
Use a solidity version of at least 0.8.4 to get `bytes.concat()` instead of `abi.encodePacked(,)`
Use a solidity version of at least 0.8.12 to get `string.concat()` instead of `abi.encodePacked(,)`
*There are 2 instances of this issue:*
https://gith... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Optimize Deployment Size by Fine-tuning IPFS Hash
### Description
The Solidity compiler appends 53 bytes of metadata to the smart contract code, incurring an extra cost of 10,600 gas. This additional expense arises from 200 gas per bytecode, plus calldata cost, which amounts to 16 gas for non-zero bytes and 4 ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Custom Selectors could facilitate proxy selector clashing attack
### Description
ink! has a feature that allows developers to hardcode the selector for a given function. This capability enables function name-changing while maintaining the same selector and also facilitates the creation of language-agnostic 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 | liquidation | true | false | ## Low: Combined short record might exceed the maximum collateral ratio (CRATIO_MAX)
### Description
The combined short record might exceed the maximum collateral ratio (CRATIO_MAX).
### Impact
A short record formed via the merging of other short records might result in a CR that surpasses the CRATIO_MAX limit. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Non-mintable assets can be created with no initial supply
### Description
The assets pallet’s register extrinsic allows users to create assets that have an initial supply of zero—that is, non-mintable assets that cannot be used. The Polkaswap.io wallet code includes a check that mitigates this issue; however, ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Triggering liquidations ahead of expected time leads to loss and lock of funds
### Description
Triggering liquidations for a collateral after one of its liens has expired but before the auction window (default 2 days) at epoch end leads to loss and lock of funds.
### Impact
If liquidations are triggered befo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Improper Reward Distribution
### Description
## Delegation Pool and Add Stake Fees
The `delegation_pool` transfers the `add_stake_fees` to the `NULL_SHAREHOLDER` and later returns them to the pool at the end of the epoch. This process occurs because the delegation pool does not distinguish between active and ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: Deployer Can Set Excessive Fees to Drain Funds From Unsuspecting users
### Description
**Severity**: Low
**Status**: Acknowledged
**Description**:
In the initialize() function of the TeaVaultAmbient contract, the deployer can set the FEE_CAP parameter to a value just below FEE_MULTIPLIER (which is set to 1,... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | access-control | true | false | ## High: Unsigned Fee Parameters Let Any Signature Holder Drain Funds
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `f36f3e8a1e00c7227db86f45ba2bff2df440d1ca`although the main fix is in commit `bfc4459`. The client provided the following explanation:
> Fixed in two parts:
>
>
> 1. CRITI... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Prefer unwrap() over unwrap_or_default() for cases where the default value would be incor- rect
### Description
In the mentioned code, the default value is a specific `0` instance. However, using the default value would result in a minimal funding rate. At this point in the function, it is known that the snaps... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | dos | true | false | ## Gas: stETH and wstETH addresses can be saved on implementation to save gas
### Description
The `LidoSplitFactory` contract holds two immutable values for the addresses of the `stETH` and `wstETH` tokens.
When new clones are deployed, these values are encoded as immutable args. This adds the values to the 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 | medium | other | true | false | ## Medium: Fee Update Delay Bypass
### Description
## Fee Update Mechanism
Certain fees (StakeWithdrawal, SolWithdrawal, Epoch) can only be updated in the next epoch, as shown in the snippets below.
## Code Snippets
**program/src/processor.rs**
**program/src/state.rs**
In the current implementation, the manager... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [04] Handling of Zero Timestamps
### Description
**Contract Name:** `OracleManager.sol`
**Function Name:** `generatePerformance`
**Description:**
The function does not explicitly validate or handle cases where an oracle returns a zero timestamp, which could indicate invalid or stale data, potentially affecti... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | medium | Validation | false | true |
The `GiantPoolBase.withdrawLPTokens` function (<https://github.com/code-423n4/2022-11-stakehouse/blob/4b6828e9c807f2f7c569e6d721ca1289f7cf7112/contracts/liquid-staking/GiantPoolBase.sol#L69>) allows to withdraw LP tokens from a GiantPool by burning an equal amount of GiantLP.
This allows a user to handle the LP token... | Code4rena | 4 | Stakehouse Protocol |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | token | true | true | ## Medium: Potential asset misdirection due to race condition in token transfer
### Description
When a token has sold all of its tokens, the token is paused and marked as "completed" (TokenFactory#L388-393). This allows the assets to be moved to a `Uniswap Pool` using the `TokenFactory::moveToAMM` function:
```solidi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Paused Liquidation of the `VAI` Token May Be Bypassed
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation:
> We wouldn’t change anything here, to avoid duplication of checks.
**File(s) affected:**`Liquidator.sol`
**Description:** The function `_ch... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | rounding | true | false | ## High: Frequency-dependent `TaxCalculator.sol::calculateCompoundedFactor` leads to interest loss either for users or for protocol
### Description
[TaxCalculator.sol::calculateCompoundedFactor](https://github.com/sherlock-audit/2024-08-flayer/blob/main/flayer/src/contracts/TaxCalculator.sol#L90) uses discrete formula... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 for ERC165 Check in the `EnjoyoorsWithdrawalApprover`
### Description
An issue has been detected within the `_changeWithdrawalApprover` function of the `Setup` contract. The call to change the `EnjoyoorsWithdrawalApprover` contract address does not currently have an ERC165 check to ensure that the new 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 | other | false | false | ## Low: Enable Android Verify Apps
### Description
Magma does not check that Android's "Verify Apps" mechanism is enabled on the device. Verify Apps checks for Potentially Harmful Apps (aka malware) on the device. It will review each App during installation and monitor App behavior afterward to block harmful activity.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Avoid abi.encodePacked() With Dynamic Types for Hashing ✓ Fixed
### Description
The contract uses `abi.encodePacked()` with dynamic types in hashing operations. This pattern is discouraged because `abi.encodePacked()` does not include length information for dynamic types, making it vulnerable to hash collision... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Use namespaced storage layout for upgradeable contracts or immutables when possible
### Description
AuthNoOwner is initializable with the `_authority` and uses regular storage slot layout. All other inherited contracts of CornOFT use ERC7201 namespaced storage layout. Care should be taken that during an upgrad... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | medium | other | true | true | ## Medium: `GovPool::revoteDelegated()` doesn't support multiple tiers of delegation resulting in delegated votes not flowing through to the primary voter
### Description
When a proposal has `delegatedVotingAllowed == false` such that automatic delegation re-voting will occur in [`GovPoolVote::revoteDelegated()`](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 | high | initialization | true | false | ## High: Early user can break addLiquidity
### Description
## Handle
WatchPug
## Vulnerability details
https://github.com/code-423n4/2021-11-vader/blob/429970427b4dc65e37808d7116b9de27e395ce0c/contracts/dex/pool/BasePool.sol#L161-L163
In the current implementation, the first `liquidity` takes the `nativeDeposit`... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | access-control | false | false | ## Medium: Privileged Roles and Ownership
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation:
> By design, Ethena has admin privileges. However more detailed documentation will be
**File(s) affected:**`EthenaMinting.sol`, `StakedUSDeV2.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 | initialization | false | false | ## Low: Accounting Errors with Deflationary Tokens
### Description
The current implementation of the **OrderManager** contract may lead to accounting errors when dealing with deflationary tokens. When placing a swap order using a deflationary token, the **executeSwapOrder()** function attempts to swap the same 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 | gas | initialization | true | false | ## Gas: It costs more gas to initialize variables to zero than to let the default of zero be applied
### Description
*There are 5 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 | low | other | false | false | ## Low: BE - DEPENDENCIES SHOULD BE PINNED TO EXACT VERSIONS
### Description
The application contained multiple dependencies that were not pinned to an exact version, but they were set to a supported version (ˆx.x.x). This could potentially allow dependency attacks, as seen with the flow of events package with Copay B... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Unused Parameter `_longStopDate` in `createMetaVesT` Function
### Description
This issue has been identified in the `createMetaVest` function of the [MetaVesTController](https://github.com/MetaLex-Tech/MetaVesT/blob/b614405e60bce8b852e46d06c03fd47b04d86dde/src/MetaVesTController.sol#L221) contract.
The `_longS... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Previously created markets can be overwritten
### Description
_Submitted by 0xRajeev, also found by 0xsanson, cmichel, gpersoon, itsmeSTYJ, and pauliax_.
#### Impact
The `createMarket` function allows accidental overwriting of previously created markets for the same combination of underlying and maturity ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `calculatePrice` linear model causes yield token pricing errors
### Description
The `calculatePrice` function determines the current swap price using a linear interest model based on the base price, per-second interest rate, and time elapsed.
However, this approach does not reflect the compounding nature of... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | oracle-manipulation | true | false | ## Low: Confusing timestamp naming in `ChainlinkOracle`
### Description
In `ChainlinkOracle`, the timestamp variables are named in a confusing way. `currentTimeStamp` actually stores the last update time, and `lastUpdateTimeStamp` stores the previous update time. [`ChainlinkOracle::update`](https://github.com/Licredit... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Usage of blockchain.info API
### Description
blockchain.info has had problems in the past, and [as the COSMOS team mentions on this note](https://gist.github.com/mappum/428dc46afba73b2bf8c38f65272704d2#notes), their nodes don’t recognize OP\_RETURN outputs as standard. Consider running your own nodes of [in... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.