prompt
listlengths
2
2
source
stringclasses
3 values
severity
stringclasses
5 values
category
stringclasses
186 values
has_code
bool
2 classes
has_poc
bool
2 classes
reference_response
stringlengths
23
5k
firm
stringclasses
26 values
quality_score
float64
0
5
protocol
stringclasses
398 values
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: Remove commented out code ### Description *There is 1 instance of this issue:* https://github.com/code-423n4/2022-05-sturdy/blob/78f51a7a74ebe8adfd055bdbaedfddc05632566f/smart-contracts/GeneralVault.sol#L144-L148
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
overflow
true
false
## Medium: `boostedValue` should be added to `permanentTotalSupply` for permanently locked tokens ### Description Unlocking tokens from the permanent locking can be DoSed. ### Proof of Concept In the `VotingEscrowUpgradeableV2._processLockChange` function, `boostedValue` is added to the token's locked amount at L465...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
overflow
false
false
## Low: Phantom transactions artificially pollute Escrow contract state ### Description The `createTransaction()` function in the `Escrow` contract allows the creation of transactions with zero and uncapped amounts, zero addresses for `receiver` and `serverOwner`, and empty `challengeIds`. These phantom and invalid 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...
cyfrin_structured
low
signature
true
false
## Low: Incorrectly named return variable `AutoRedemption::calculateUSDsToTargetPrice` ### Description `AutoRedemption::calculateUSDsToTargetPrice` has the following signature: ```solidity function calculateUSDsToTargetPrice() private view returns (uint256 _usdc) ``` However, the named return variable is semanticall...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Offsets should only be calculated once per loop ### Description `i * 2` is calculated twice per loop, wasting gas *There is 1 instance of this issue:* https://github.com/code-423n4/2022-05-cally/blob/1849f9ee12434038aa80753266ce6a2f2b082c59/contracts/src/CallyNft.sol#L244-L247
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
overflow
true
false
## Medium: `MIPS` - Incorrect implementation of SRAV instruction ### Description Incorrect dispute game resolution - it will make `True` root claim to be `False`. ### Proof of Concept [MIPS-ISA](https://www.cs.cmu.edu/afs/cs/academic/class/15740-f97/public/doc/mips-isa.pdf): Page 153(A-141) `SRAV` instruction does ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `Funding.initialize()`: should use memory instead of storage variable ### Description See `@audit` tag:
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing validation in contract initialization function ### Description The `initialize` function in the `AdharmaSmartWalletImplementation` contract is missing address validation for the key parameter, as highlighted in Figure 5.1. ``` // Keep the initializer function on the contract in case a smart wallet has...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
other
false
false
## Gas: Remove ternary operator in order to use unchecked and `>=` instead of `<` ### Description Estimated saving: | Method call or Contract deployment | Before | After | After - Before | (After - Before) / Before | | :- | :-: | :-: | :-: | :-: | | `LiquidityMiningPath` | 1540432 | 1535906 | -4526 | -0.29% | There 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
true
false
## Low: Savings: Inefficient Method of Validating Ethereum Addresses ### Description **Update** Marked as "Fixed" by the client. Addressed in: `ac18a664e0f1e3a09d9fdfc7221c6a30fcc69701`. The client provided the following explanation: > Fixed, thanks! The recommendation was applied. **File(s) affected:**`TokenVestin...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
front-running
false
false
## Low: standard compliance. ### Description This section details the compliance with the ERC20 Standard [1] and adds any additional ERC20-related notes. Non-compliance with the ERC20 standard does not pose any security risk; however, it may cause issues with third-party applications which expect the standard. The **...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Solidity compiler optimizations can be problematic ### Description The GSquared Protocol contracts have enabled optional compiler optimizations in Solidity. There have been several optimization bugs with security implications. Moreover, optimizations are actively being developed. Solidity compiler optimization...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Adversary can permanently break reward distribution for percentage tier bounties by funding bounty then refunding after competition closes ### Description When closeCompetition is called for TieredPercentageBountyV1 it takes a snapshot of the current token balance. Afterwards it uses this number to 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
low
other
false
false
## Low: State variable “hash” could have a better name ### Description It is customary for a mapping’s name to describe the *value\_s associated to its keys. In the case of the `hash` state variable defined in line 15, the name describes the mapping’s \_keys* instead. Since the purpose is to map hashes to the amount o...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Remove commented code ### Description Commented code just adds clutter for the reader and creates unncessary confusion. Remove [the commented `allocateBountyAndEcosystemTokens` function](https://github.com/ArcadeCity/ac-token/blob/dd4207e1538f96eb3cbbf9e714eb38015bfe7c5a/contracts/ARCToken.sol#L296-L308). (edi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect transfer of ERC-20 tokens to non-compatible contract ### Description - https://gitlab.ubertech.dev/blockchainlaboratory/eywa-dao/-/blob/29465033f28c8d3f09cbc6722e08e44f443bd3b2/contracts/EscrowVoteManagerV1.sol#L136 It was discovered that the `s_emissionManager` contract does not handle ERC20 token...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Redundant Instruction Attributes in `Initialize` and `Vest` Instructions ### Description **Description:** In `xbelo` program's `Initialize` and `Vest` account structs, `#[instruction()]` and `#[instruction(amount: u64, vest_duration: i64)]` attributes are provided respectively. This attribute declares instruct...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
liquidation
true
false
## High: Vaults can avoid liquidations by not letting their vault account be settled ### Description Vault liquidations will leave un-matured accounts with cash holdings which are then used to offset account debt during vault account settlements. As it stands, any excess cash received via interest accrual will be tran...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
oracle
false
false
## Low: Unborrowed Nfts and Bids Have No Expiry Time ### Description **Update** Marked as "Acknowledged" by the client. The client provided the following explanation: > This is interesting proposal. We default to indefinite because expiration will be another parameter, want to start with a simple protocol for users 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
access-control
false
false
## Low: Potential Locked Funds in Case of an Absent `CYAN_ROLE` ### Description **Update** Marked as "Acknowledged" by the client. The client provided the following explanation: "Acknowledged the finding, but decided not to add a function to reject BNPL from the user side since the protocol should be responsible in 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: Implement SSL Pinning ### Description ## Security Vulnerability: Lack of SSL Pinning The application does not implement SSL pinning, leaving it vulnerable to certain types of network routing manipulation, such as BGP hijacking. With SSL pinning, the client (e.g., a mobile app) is configured to trust only a 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: Spelling errors and incorrect NatSpec ### Description The following spelling errors and incorrect NatSpec were identified: * `cancelOrder` is [documented](https://github.com/crispymangoes/uniswap-v3-limit-orders/blob/83f5db9cb90926c11ee6ce872dc165b7f600f3d8/src/LimitOrderRegistry.sol#L657) to send all swap fee...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Validation When Updating Maximum Failed Execution Tries ### Description The [`L2ScrollMessenger contract`](https://github.com/scroll-tech/scroll/blob/3bc8a3f5c6ac816ddffadca41024331dcf4d3064/contracts/src/L2/L2ScrollMessenger.sol) provides a mechanism to limit the number of failed execution tries that ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Token fees are not accounted for ### Description In [`Escrow.sol`](https://github.com/swapnet-protocol/swapnet-lite/blob/66ce8f3e529410a5272b7a57c8391fcb80a375fd/packages/contracts/contracts/Escrow.sol), within the [`deposit`](https://github.com/swapnet-protocol/swapnet-lite/blob/66ce8f3e529410a5272b7a57c8391f...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Using `block.number` instead of `block.timestamp` as an expiration check to execute signature ### Description Description: On `TransactionRelayer::executeByInvestorWithBlockLimit()`, the 3rd value in the `params` array is compared against the `block.number`, the purpose is to prevent executing old signatures. ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of Anti-Debugging Mechanisms ### Description The absence of anti-debugging mechanisms in an application represents a significant security vulnerability. Anti-debugging techniques are employed to detect or prevent the use of debugging tools, such as Frida, GDB, LLDB, or other dynamic analysis tools, by att...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Wrong accounting enables attackers to prevent users from withdrawing their funds ### Description One of the key features of Opal is liquidity rebalancing, which enables Opal's funds to be distributed among several Aura pools based on a set of preconfigured weights for each pool. When depositing into Opal, the...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
liquidation
true
false
## Medium: Adversary can game the liquidation flow by transfering a dust amount of the payment token to ClearingHouse contract to settle the auction if no one buy the auctioned NFT ### Description The function ClearingHouse#safeTransferFrom is meant to settle the auction but the function severely lack of access contro...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Avoid hardcoding data in BridgedERC1155 ### Description [Link](https://github.com/code-423n4/2024-03-taiko/blob/f58384f44dbf4c6535264a472322322705133b11/packages/protocol/contracts/tokenvault/BridgedERC1155.sol#L52) Instead of hardcoding the data, place it in a constant variable and assign the variables here ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
access-control
true
false
## Severity **Impact:** High **Likelihood:** High ## Description `Burve::uniswapV3MintCallback` is an external function with no access control. This function takes three parameters: `amount0Owed`, `amount1Owed`, and `data`. It then decodes `data` to get an address and transfers tokens from that address to the liqui...
Pashov Audit Group
3.5
Burve_2025-01-29
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Users Will Not Be Able To Vote On The Epoch Time Itself ### Description When `vote()` in VotingDistributor.sol is called, the function checks the current epoch time and calls `veToken.getPastTokenSupply()`. On the current epoch time itself, if a user calls `vote()`, the function will revert with the `ERC5805F...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
reentrancy
false
false
## Medium: WithdrawFacet's `withdraw` calls native `payable.transfer`, which can be unusable for DiamondStorage owner contract ### Description _Submitted by hyh, also found by Dravee, JMukesh, Jujic, peritoflores, shw, sorrynotsorry, and wuwe1_ When `withdraw` function is used with native token it is being handled wi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Silent Error Handling in `clean_generic` Introduces Multiple Risks ### Description **Description:** The `clean_generic()` function in `ClientPrimaryState` implements silent error handling for account parsing using `if let Ok(header)`, which introduces three potential issues that can lead to incorrect 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
front-running
true
false
## Low: `convertedBtcAmountToBeSwappedToEth` value setting allowed ### Description In the `Gateway` contract, the owner has the ability to set the amount of converted BTC that will be swapped to `wETH` via the `Gateway::setConvertedBtcToBeSwappedToEth` function. The swapped `wETH` is then sent to the recipient. The `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
flash-loan
false
false
## Medium: Front run `distributeRewards()` can steal the newly added rewards ### Description A surge of pointsPerShare on each `distributeRewards()` call can be used by the attacker to steal part of the newly added rewards. ### Impact While the existence of the `MIN_LOCK_DURATION` prevented the usage of flashloan, 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
medium
other
false
false
## Medium: Slippage Higher than Expected in `CurveAdapter.executeSwapExactInput()` and `FeeDistributionBranch._performMultiDexSwap()` Multi-Hop Swaps ### Description Multi-hop swaps in `CurveAdapter.executeSwapExactInput()` and `FeeDistributionBranch._performMultiDexSwap()` may result in higher than expected slippage ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: It is possible to go beyond the boundaries of the array ### Description At the line https://github.com/iearn-finance/yoracle.link/blob/faf1309cbe7a05f70b338351315039eb8e5b9c09/contracts/Keep3rV1Oracle.sol#L685 the `sample` function does not check for a valid `observations[pair]` array element number. On lin...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Miscellaneous General Comments ### Description This section details miscellaneous findings discovered by the testing team that do not have direct security implications: 1. **Relay configuration input validation.** The `Eth2NearRelay::init()` function accepts a `Config` struct containing several user-speci...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Misleading variable names ### Description There are some instances where possibly code has been duplicated without proper renaming. For example, in GMXAdapter, _getMaxPrice() is implemented as: Another example is the function`_getPendingIncreaseCollateralDelta()` which actually returns the **amountIn** vari...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
oracle
false
false
## Low: Additional Fields For Events In Oracle ### Description Whenever a value in `OracleParams` changes, the `OracleParamChangeEvent` event emits. However, the event fails to specify the coin name for which it changes the parameters. Add the `coin_name` as a field in `OracleParamChangeEvent` to specify the coin fo...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: MasterAccounts are not able to buy vaults. ### Description **Severity**: Medium **Status**: Acknowledged **Description** When `NodeSale.sol` is deployed 2 calls to `createMasterAccount` are executed within the contract constructor. These calls creates 2 accounts without the need of a referred. The addre...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Compatibility issues with `transferFrom()` in ERC20 ### Description _Resolved_ The `Marketplace` contract uses the `transferFrom` method to handle payments in the `acceptedCurrency`: While the project currently states that only `USDC` is used, the implementation does not account for potential compatibility ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `_decrementWeightUntilFree()` has a possible infinite loop ### Description ### Proof of Concept In the loop of the `_decrementWeightUntilFree()` method, the position of `i++` is wrong, which may lead to an infinite loop. In the above code, when `userGaugeWeight == 0`, `i` is not incremented, resulting 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
rounding
true
false
## Medium: There is a large precision error in sqrt calculation of lp ### Description Compared with div, there is a larger precision error in calculating lp through sqrt, so there should be a way to check whether there are excess tokens left when adding liquidity. ### Proof of Concept When reserve\[0] is larger rel...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: AddEngine Accepts Zero Address For Engine ### Description ## ClearingHouse Contract Issue In the `ClearingHouse` contract, `addEngine` is not checking that the given engine address is not a zero address. ## Code Snippet ## Issue Description Since adding a new engine is blocked by the condition of ‘current...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Optimization issue ### Description The codebase is huge, and there are still a lot of places where these complications and gas efficiency can be improved. ### Recommendation Optimize and simplify the code.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Denial of Service Attacks on Router Permit Functions ### Description The functions in `Router.sol` are the two `depositWithPermit2()` functions and the `repayWithPermit2()` function. These functions with the exception of one `depositWithPermit2()` proceeds in 2 steps: 1. Transferring the user-specified amo...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
Business Logic
true
true
## Severity: Medium Risk ## Context `PublicVault.sol#L143` ## Description `redeemFutureEpoch` transfers the vault shares from the `msg.sender` to the vault instead of from the owner. ## Recommendation The 1st parameter passed to the `ERC20(address(this)).safeTransferFrom` needs to be the owner: ```solidity - ERC20(...
Spearbit
5
Astaria
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inaccurate value representation by the `locked` function after the `owner` revocation ### Description https://github.com/banteg/yearn-vesting-escrow/blob/945b5ca09d8bb2d2ad9132df7368cb4992496f6a/contracts/VestingEscrowSimple.vy#L127 A vulnerability was discovered in the internal `_locked` function. If the `own...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `INTERVAL_TIME` is Off By 1 Second ### Description The interval time is set to 5 minutes but it can only be called after 5 minutes and 1 second to set the next interval. This issue only exists if the interval is called between 5min - 10min. At 10 mins, the protocol calculates 2 intervals but at 5 minute, 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
oracle
false
false
## Low: Short-duration logic can be manipulated by miners. ### Description **Severity** : Informational **Status** : Resolved **Description** : block.timestamp is utilized in several crucial operations, notably in the calculatePenalty and calculatePenaltyFee functions, which determine the penalty amount based on 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
high
token
false
false
## High: Missing check for successful transfer in ApeMexMargin autoOpen function ### Description **Description** In contract Apex MexMargin, function autoOpen, at line 462, there is no check to see if the transfer have been done successfully, there are some implementations of popular rc20 tokens that are using no req...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of Validation for the Zero Address ### Description Historically, some wallets and applications default to using the `0x0` address if an address parameter is omitted when interacting with smart contracts. This has led to cases of inadvertent fund transfers to the `0x0` address. One mitigation strategy (tha...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Interfaces missing certain functions ### Description Some interfaces are missing function declarations for functions/variables that exist in the actual implementation. The list of missing function declarations is: ### Recommendation Add the missing function declarations to these interfaces.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
overflow
true
false
## High: Borrowers can brick the commitment group pool ### Description Borrowers can [setRepaymentListenerForBid](https://github.com/sherlock-audit/2024-04-teller-finance/blob/main/teller-protocol-v2-audit-2024/packages/contracts/contracts/TellerV2.sol#L1248) after directly borrowing from `TellerV2`. Upon repayment, `...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
true
## Low: `pUSDeVault::maxDeposit` doesn't account for deposit pausing, in violation of EIP-4626 which can break protocols integrating with `pUSDeVault` ### Description [EIP-4626](https://eips.ethereum.org/EIPS/eip-4626) states on `maxDeposit`: > MUST factor in both global and user-specific limits, like if deposits are ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
true
false
## Medium: Bounty manager can set `maxRewardPerVote` to 1 after votes are locked, stealing free votes ### Description When the amount to pay for a `claim` is calculated, we use the minimum value of `bias * rewardPerVote` and `bias * maxRewardPerVote`. Since `maxRewardPerVote` is a value that managers can edit at any...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Return value of low-level .call() not checked ### Description The low-level primitive `.call()` doesn't revert in the caller's context when the callee reverts. If its return value is not checked, it can lead the caller to falsely believe that the call was successful. The `Receiver.sol` contract uses `.call()`...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Missing getDeviceInfo command in TypeScript interface ### Description The TypeScript library includes the `getAppInfo` command but not the `getDeviceInfo` command. Because these commands appear in the generic Rust interface, developers may expect both of them to be included in the TypeScript library. ```types...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
signature
false
false
## Low: Variables shadowing functions with the same name in MiningCalculation.sol ### Description **Severity**: Informational **Status**: Resolved **Description** In the library MiningCalculation.sol there are multiple cases of function shadowing because of variables with the same name. The shadowing cases can be f...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
dos
true
false
## High: Incorrect index handling in checkpoint creation leads to incorrect initial checkpoint retrieval and potential DoS ### Description In the current implementation of [`ProtectedListings::_createCheckpoint()`](https://github.com/sherlock-audit/2024-08-flayer/blob/main/flayer/src/contracts/ProtectedListings.sol#L5...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: RocketMinipoolStatus - DAO Membership changes can result in votes getting stuck ✓ Fixed ### Description Changes in the DAO’s trusted node members are reflected in the `RocketDAONodeTrusted.getMemberCount()` function. When compared with the vote on consensus threshold, a DAO-driven decision is made, e.g., wh...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
other
false
false
## Gas: Remove deprecated `SubmissionDataV2::dataParentHash` and `SupportingSubmissionDataV2::dataParentHash` from `ILineaRollup.sol` ### Description **Description:** Remove deprecated `SubmissionDataV2::dataParentHash` and `SupportingSubmissionDataV2::dataParentHash` from `ILineaRollup.sol`. These are hangovers from...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Deleveraging can result in a zero borrowed amount while maintaining the leveraged position ### Description Positions borrow the leverage amount from the pool and pay a borrowing fee for doing so. If the token price changes between the leverage update requests, an account can end up having leverage without any...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Treasury receives staking rewards due to fees being taken in form of beHYPE ### Description _Acknowledged_ During instant withdrawals, the withdrawal fee is collected in beHYPE tokens and transferred to the protocol treasury. Since beHYPE tokens are share tokens that accrue staking rewards through an increasi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
front-running
false
false
## Low: ERC20 approve is vulnerable to the front-running ### Description ## Handle pauliax ## Vulnerability details ## Impact function approve is vulnerable to the front-running. This issue is described here: https://blog.smartdec.net/erc20-approve-issue-in-simple-words-a41aaf47bca6 A malicious delegate can scout ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Max integer ### Description **Description** contracts/Cohort.sol:48 Easy to make a mistake with the number of ‘f’. Also not readable. **Recommendation**: Use type(uin256).max
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Centralization can lead to unfair changes without user’s notice ### Description **Severity**: Medium **Status**: Acknowledged **Location**: Airdrop.sol and AirdropFactory.sol **Description** It is possible that the admin makes critical state changes to the code such as the `setFeeAmount()` function can ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: eth_getRestorationProof API exposure possible DoS vector ### Description The `eth_getRestorationProof` API can be computationally intensive. There is no way to prevent queries that set the `TargetEpoch` to 0, as this may be valid in some settings. The longer the chain is around, the more work responding to ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
cross-chain
false
false
## Low: Incompatibility risk for EVM versions in different chains ### Description From Solidity versions `0.8.20` through `0.8.24`, the default target EVM version is set to `Shanghai`, which results in the generation of bytecode that includes `PUSH0` opcodes. Starting with version `0.8.25`, the default EVM version shi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Residual ETH not sent back when `batchBalanceAndTradeAction` executed ### Description Residual ETH was not sent back when `batchBalanceAndTradeAction` function was executed, resulting in a loss of assets. ### Impact Loss of assets as the residual ETH is not sent to the users. ### Recommendation If the under...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: HatsSignerGate + MultiHatsSignerGate: more than maxSignatures can be claimed which leads to DOS in reconcileSignerCount ### Description The `HatsSignerGate.claimSigner` and `MultiHatsSignerGate.claimSigner` functions allow users to become signers. It is important that both functions do not allow that there e...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
front-running
false
false
## Medium: An attacker can front-run `deployVault` to deploy at the same address ### Description Vaults are created from the factory via `CREATE1`. An attacker can front-run `deployVault` to deploy at the same address, but with different config. If the deployed chain reorg, a different vault might also be deployed at ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Min and maxAnswer never checked for oracle price feed ### Description Chainlink aggregators have a built-in circuit breaker if the price of an asset goes outside of a predetermined price band. The result is that if an asset experiences a huge drop in value (i.e. LUNA crash) the price of the oracle will cont...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
false
false
## High: Adversary can brick bounty payouts by calling fundBountyToken but funding it with an ERC721 token instead ### Description recieveFunds is only meant to be called with an ERC20 token but _receiveERC20 is generic enough to work with an ERC721 token. An adversary could call this with an ERC721 token to add it as...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
access-control
false
false
## Medium: Factory.sol - lack of checks in setAuctionDecrement will cause reverts in Auction::settleAuction() ### Description ## Handle GalloDaSballo ## Vulnerability details ## Impact `setAuctionDecrement` doesn't check for a min nor a max amount This means we can change `auctionDecrement` which would allow `owne...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `ratiosX96Value` rounds in favor of user and not vault ### Description `ratiosX96Value` is rounded down instead of up, causing withdrawals to favor users. This can slowly decrease the value in our vault, potentially leading to insolvency. ### Impact The vault may become insolvent or lose small amounts of f...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
overflow
false
false
## High: Incorrect Computation of NEGATIVE_ONE Constant in fq.rs ### Description In the `fq.rs` file, the constant [`NEGATIVE_ONE`](https://github.com/matter-labs/zksync-crypto/blob/3b518637a3a36a0e9e7a294e308b5675f85b15cd/crates/pairing/src/bn256/fq.rs#L200), which is supposed to represent (−((2256)mod  q)mod  q)(-((...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Agents with Healing Opportunity Will Be Terminated Directly if The `escape` Reduces activeAgents to the Number of `NUMBER_OF_SECONDARY_PRIZE_POOL_WINNERS` or Fewer ### Description Source: https://github.com/sherlock-audit/2023-10-looksrare-judging/issues/43 ## Found by Krace, SilentDefendersOfDeFi, detec...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect updateGlobalExchangeRate implementation ### Description ## Handle xYrYuYx ## Vulnerability details ## Impact UpdateGlobalExchangeRate has incorrect implementation when `totalGlobalShares` is zero. If any user didn't start stake, `totalGlobalShares` is 0, and every stake it will increase. but ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: API keys exposure in client-side code enables API abuse ### Description The API keys are exposed in client-side code, allowing malicious users to extract and abuse them. The API keys are used to create a Pimlico client for bundling transactions and to get on-chain information using Alchemy. However, the API k...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
true
## Low: Remove Test inheritance ### Description SolverBase inherits from Test contract: ```solidity contract SolverBase is Test { ``` This increases the contract size and may expose any unsafe functionality. ### Recommendation Remove Test inheritance.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: In OracleLess.createOrder() feeBips value validation is missing ### Description The max value of `feeBips` should be *** 10000 will revert in `execute()` method. A malicious user can create 100s of such orders which never execute even if the price conditions are met. It can use `USDC` as tokenIn and blackli...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
overflow
true
false
## Medium: JalaPair potential permanent DoS due to overflow ### Description In the `JalaPair::_update` function, overflow is intentionally desired in the calculations for `timeElapsed` and `priceCumulative`. This is forked from the UniswapV2 source code, and it’s meant and known to overflow. UniswapV2 was developed us...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Dust limit attack on `forceUpdateNodes` allows DoS of rebalancing and potential vault insolvency ### Description **Description:** An attacker can exploit the `forceUpdateNodes()` function with minimal `limitStake` values to force all validator nodes into a pending update state. By exploiting precision loss in...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
reentrancy
false
false
## Low: Relayed event is emitted before the action is executed ### Description The `relay` function of the `Marmo` contract [emits a](https://github.com/ripio/marmo-contracts/blob/d3fb5922a4f01e47d585343d08cccfad659b3584/contracts/Marmo.sol#L112) [Relayed](https://github.com/ripio/marmo-contracts/blob/d3fb5922a4f01e47...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Identifying publications using its ID makes the protocol vulnerable to blockchain re-orgs ### Description In the protocol, publications are uniquely identified through the publisher's profile ID and the publication's ID. For example, when a user calls `act()`, the publication being acted on is determined by...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
true
false
## Medium: `RuniverseLand.sol#mint()` can be bricked ### Description [contracts/RuniverseLand.sol#L77](https://github.com/code-423n4/2022-12-forgotten-runiverse/blob/dcad1802bf258bf294900a08a03ca0d26d2304f4/contracts/RuniverseLand.sol#L77) [contracts/RuniverseLand.sol#L101](https://github.com/code-423n4/2022-12-forgot...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The creation of the incentive with zero rewards blocks the pool's incentive system ### Description It's possible to create an incentive with 0 rewards using `AlgebraEternalFarming.createEternalFarming()`: https://github.com/cryptoalgebra/Algebra/blob/7290fad656bfa89db3743c52af631154f6a8a2d5/src/tokenomics/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
gas
other
true
false
## Gas: Simplify `_end` function ### Description Also in OpenEdition.sol we can remove unnecessary struct cache in `finalize()` function. `test_Cancel() (gas: -304 (-0.135%))` In FixedPrice.sol refactor `_end` function save 21 gas. `test_Cancel() (gas: -21 (-0.008%))`
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Cache array length outside of loops and consider unchecked loop incrementing ### Description **Description:** Cache array length outside of loops and consider using `unchecked {++i;}` if not compiling with `solc --ir-optimized --optimize`: File: `DepositManager.sol` File: `NodeOperatorRegistry.sol` File: ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The withdrawal of Multi strategies vault could be DoSed while asset deposits remain unaffected ### Description ### Finding description and impact The `MultiStrategy# _deallocateAssets()` function will be DoSed if `IStrategy# undeploy(0)` is called. ### Proof of Concept When withdrawing user assets from a...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
initialization
true
false
## Low: Users can send PAX to supplyController ### Description While there are checks to ensure a user cannot transfer PAX to a frozen or 0x0 address, there is no check to ensure a user cannot send PAX to the `supplyController`. ```solidity function transfer(address _to, uint256 _value) public whenNotPaused returns (...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: hard to clear balance ### Description _Submitted by jonah1005_ The contract does not allow users to transfer by share. Therefore, It is hard for users to clear out all the shares. There will be users using this token with Metamask and it is likely the `pricePerShare` would increase after the user sends tra...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: Incorrect Recipient Data Type in the `redeem()` Function ### Description The `redeem()` function in the `BeraBitcoin` contract incorrectly defines the recipient parameter as a string type when it should logically be an address type. This design flaw exists despite the parameter name clearly indicating it shoul...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
signature
false
false
## High: Malicious user can prevent other users from unbonding due to missing input validation ### Description One of the staking-api-service's responsibilities lies in receiving and handling unbonding requests via the API. Any user may send such a request if they want to unbond a previously submitted staking transact...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Event fields are missing `indexed` attribute ### Description Indexed event fields make the data more quickly accessible to off-chain tools that parse events, and adds them to a special data structure known as [“topics”](https://docs.soliditylang.org/en/v0.8.24/abi-spec.html#abi-events) instead of the data 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...
cyfrin_structured
low
access-control
true
false
## Low: Unnecessarily complex `ProxyAdmin` ownership setup ### Description The `ProxyAdmin` contract is created in the `MembershipFactory` constructor: ```solidity constructor(address _currencyManager, address _owpWallet, string memory _baseURI, address _membershipImplementation) { // ... proxyAdmin = new Pro...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
Sandwich Attack
false
true
Source: https://github.com/sherlock-audit/2023-03-olympus-judging/issues/1 ## Found by 0x52 ## Summary BLVaultLido added a mechanism to siphon off all wstETH obtained from mismatched pool and oracle prices. This was implemented to fix the problem that the vault could be manipulated to the attackers gain. This miti...
Sherlock
5
Olympus Update
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Chainlink price feed is `deprecated`, not sufficiently validated and can return `stale` prices. ### Description The function `_createActionInfo()` uses Chainlink's deprecated latestAnswer function, this function also does not guarantee that the price returned by the Chainlink price feed is not stale and the...
0