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: UNUSED ARGUMENTS
### Description
Some function arguments, such as the data argument in the `mintNFT` function of the `PNFT` contract are not used in the code.
### Recommendation
**SOLVED**: The \client team fixed the issue by using the arguments for production environment in commit [3329572c](https://gitlab.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... | cyfrin_structured | low | logic-error | false | false | ## Low: Unnecessary libraries in `CoreProperties` contract can be removed
### Description
`CoreProperties` includes the following unnecessary libraries that are not being called in the contract logic:
- `Math`
- `AddressSetHelper`
- `EnumerableSet`
- `Paginator`
### Impact
Libraries needlessly increase the contr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 indexed parameters in events
### Description
[Throughout the Holdefi’s codebase](https://github.com/holdefi/Holdefi/tree/f4df394d7cf6df347b1f1e9af8e2676c5933c2c9/contracts), none of the parameters in the events defined in the contracts are indexed.
Consider [indexing event parameters](https://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 | low | other | true | false | ## Low: Inconsistent Voting Power Usage
### Description
In **BoostController.sol,** there is a critical inconsistency between how voting power is calculated in internal vs external functions, leading to different boost values for the same user.
### Impact
1. **Calculation Discrepancy**
```solidity
function demonstra... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [08] Incorrect asset decimal handling in transaction processing
### Description
The function `GetTxInItem` processes transaction logs to extract and record transaction details into `txInItem`. However, there is a critical oversight in how asset decimals are handled during the conversion of transaction amounts.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [05] Contracts without receive/fallback function may not be able to receive leftovers from `swapAndMint`, `swapAndIncreaseLiquidity` functions
### Description
If a non-zero amount of ETH is sent during `swapAndMint` or `swapAndIncreaseLiquidity` calls, the protocol will unwrap leftover WETH tokens and send 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 | high | reentrancy | false | false | ## High: Contract funds can be drained out
### Description
**Description:**
User can call the setT[radeOer and pl](https://github.com/Crelde/IOTA-Heroes-Contracts/blob/3e345747f723637c0a1ce884d1ae0e1584015e98/contracts/TradingPost.sol#L86)ace the trade.
For this, the contract will receive the fund msg.value to the c... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | front-running | false | false | ## Medium: GiantPool `batchRotateLPTokens` function: Minimum balance for rotating LP Tokens should by dynamically calculated
### Description
The `GiantSavETHVaultPool` and `GiantMevAndFeesPool` both have a `batchRotateLPTokens` function that allows to move staked ETH to another key. Both functions require that the Gia... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Bull can `transferPosition()` to `address(0)` and the original order can be matched again
### Description
Using `bulls[uint(orderHash)] == address(0)` to check whether the order is matched is insufficient, the bull can `transferPosition` to `address(0)` and the order can be matched again.
### Impact
Attacker... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [20] Contract name does not match its filename
### Description
According to the [Solidity Style Guide](https://docs.soliditylang.org/en/latest/style-guide.html#contract-and-library-names), contract and library names should also match their filenames.
UniswapOracleLibrary.sol ([21](https://github.com/code-423n... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Oracle - Unchecked oracle response timestamp and integer over/underflow ✓ Fixed
### Description
The external Chainlink oracle, which provides index price information to the system, introduces risk inherent to any dependency on third-party data sources. For example, the oracle could fall behind or otherwise ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: WIchiFarm will break after second deposit of LP
### Description
WIchiFarm.sol makes the incorrect assumption that IchiVaultLP doesn't reduce allowance when using the transferFrom if allowance is set to type(uint256).max. Looking at a currently deployed [IchiVault](https://etherscan.io/token/0x683f081dbc729d... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Bonding curve logic can be exploited to pay less for buying votes
### Description
Source: https://github.com/sherlock-audit/2024-11-ethos-network-ii-judging/issues/167
## Found by
Al-Qa-qa, LeFy, MohammadX2049, X12, ami, bughuntoor, future2\_22, newspacexyz, t0x1c, tobi0x18, zxriptor
## Description & Impac... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The `getPricePerFullShare` method returns a wrong value when `totalSupply` is 0
### Description
**Proof of Concept**
The `getPricePerFullShare` method currently computes the result by the following formula:
The problem is that when the underlying token used is with less or more than 18 decimals and the `tot... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | false | false | ## High: RubiconRouter _swap does not pass whole amount to RubiconMarket
### Description
_Submitted by kenzo, also found by IllIllI, PP1004, blackscale, and hansfriese_
When swapping amongst multiple pairs in RubiconRouter's `_swap`, the fee is wrongly accounted for.
### Impact
Not all of the user's funds would be ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Prevent duplicate `boxId` inputs to `MysteryBox::claimMysteryBoxes()`
### Description
**Description:** Consider preventing duplicate `boxId` inputs to [`MysteryBox::claimMysteryBoxes()`](https://github.com/Earnft/smart-contracts/blob/43d3a8305dd6c7325339ed35d188fe82070ee5c9/contracts/MysteryBox.sol#L271) as 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: Improper Downcasting in `DragonXVoltInput.getDailyDragonXAllocation()`
### Description
The `DragonXVoltInput.getDailyDragonXAllocation()` function has an input parameter of uint32.
```solidity
function getDailyDragonXAllocation(uint32 t) public view returns (uint256 dailyWadAllocation) {
uint256 STARTING_AL... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | access-control | false | false | ## Medium: Lack of Upgradeability and Pausable Functionality
### Description
The issue is identified within the [`LOB`](https://github.com/longgammalabs/hanji-contracts/blob/09b6188e028650b9c1758010846080c5f8c80f8e/src/OnchainLOB.sol) contract.
There is an issue due to the lack of upgradeability and pausable function... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: Stalk rewards don't get burned for large partial withdrawals due to unsafe downcast
### Description
When calling `SiloFacet::withdrawDeposit`, it is possible that Stalk rewards are not burned for large partial withdrawals as `LibSilo::stalkReward` will return 0 due to an [unsafe downcast](https://github.com/Be... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | false | false | ## Low: All permissions are equivalent, so the PermissionsManager system isn't needed
### Description
The PermissionsManager enforces three types of permissions: MOVE, WITHDRAW, and REDEEM.
However, there is no need for such a system, because all three permissions are equivalent:
- A user with MOVE permissions can m... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | flash-loan | true | false | ## Medium: Asset is not approved to the zero first
### Description
**Severity**: Medium
**Status**: Resolved
**Description**
Some ERC20 tokens (like USDT) do not work when changing the allowance from an existing non-zero allowance value. For example, Tether (USDT)'s `approve()` function will revert if the 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: Delayed slashing window and lack of transparency for pending slashes could lead to loss of funds
### Description
Stakers can provide liquidity by choosing an operator and vault to deposit their assets with. In return, they receive shares based on their deposited amount relative to the total assets in the va... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: Incorrect Interest Calculation Due to Performance Fee Rate Change
### Description
The *accruedPeriodInterest()* function applies the *performanceFeeRate* to the entire period's accrued interest, instead of considering when the fee rate was changed. This results in inaccurate fee calculations, potentially le... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Potential griefing with DoS by front-running vault creation with same vaultID
### Description
## Handle
0xRajeev
## Vulnerability details
## Impact
The vaultID for a new vault being built is required to be specified by the user building a vault via the build() function (instead of being assigned by the... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | dos | true | false | ## Medium: Removing token from the whitelist may cause DoS due to limited USDC amount
### Description
Users won’t be able to withdraw `USDC` tokens from `asdUSDC`.
### Proof of Concept
Consider a situation where we have two whitelisted `USDC` versions 1 and 2:
After some time, `asdUSDC` owner removes `usdc2` 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 | dos | true | false | ## High: `price()` in `AfEth.sol` doesn't take afEth held for pending withdrawals into account
### Description
In `AfEth.sol`, the `price()` function returns the current price of afEth:
[AfEth.sol#L133-L141](https://github.com/code-423n4/2023-09-asymmetry/blob/main/contracts/AfEth.sol#L133-L141)
As seen from above,... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | liquidation | true | false | ## Low: Assumptions May Break Intended PPTSA Protections
### Description
Several critical assumptions are made by the PPTSA contract about the v2-core dependencies, which may be broken through various means. This may cause serious unintended outcomes such as allowing trades that should not be allowed, or preventing 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 | high | token | true | false | ## High: Attacker can steal victim's oTAP position contents via `MagnetarMarketModule#_exitPositionAndRemoveCollateral()`
### Description
NOTE: This vulnerability relies on the team implementing an `onERC721Received()` function in Magnetar. As is currently written, attempts to exit oTAP positions via Magnetar will alw... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Excess tokens that are not accounted in the token premium portion stuck in the `ParticlePositionManager`
### Description
Excess tokens from margins provided by traders when opening position could become stuck inside the `ParticlePositionManager` due to precision loss when calculating the token premium porti... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Underlying tokens could get stuck
### Description
The [`Incentivizer` contract](https://github.com/emptysetsquad/emptyset/blob/bf9753ef9cd5b17236036257f290e0d0b850a029/protocol/contracts/src/incentivizer/Incentivizer.sol#L35) allows users to receive reward tokens when [staking underlying assets](https://git... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | signature | false | false | ## Low: Reliance on `fxRootTunnel` to Be Working as Expected
### Description
**Update**
A check was added to `_registerClaimProceeded()` to confirm that the `batchId` has not been previously processed.
**File(s) affected:**`ClayManager.sol`
**Description:** The `ClayManager` contract is responsible for completing 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 | medium | other | false | false | ## Medium: Rewards per locked token are calculated incorrectly
### Description
Rewards per locked token are calculated incorrectly as they are calculated, when at the allocation time, but should be calculated at the end of rebalancing period.
### Impact
Rewards per locked token are calculated incorrectly.
### Recomm... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Fee on transfer tokens are treated different in the moveIn and moveOut functions
### Description
The current implementation of the `moveOut` function computes the actual received amount by measuring the payer's token balance before and after the transfer, accommodating fee on transfer tokens accurately. In 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 | medium | other | true | false | ## Medium: Lenders can prevent each other from earning interest
### Description
A lender can prevent another lender's position from earning interest by opting out of their position and then updating their position's rate after the loan is repaid. A lender can prevent their position from being borrowed in any future le... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | storage | true | false | ## High: `PublicVault.processEpoch` calculates `withdrawReserve` incorrectly; Users can lose funds
### Description
PublicVault.processEpoch calculates withdrawReserve incorrectly. As result user can receive less funds when totalAssets()
solidity
function processEpoch() public {
// check to make sure epoch is 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 | token | false | false | ## Low: Unchecked Return Values
### Description
**Update**
The issue was resolved by the client in commit `cb00d914af29ec0c4b01988c70572d25d6591691`.
The mentioned transfers now use `SafeERC20`.
**File(s) affected:**`ERC20Rewarder.sol`, `Sleeves.sol`
**Description:** To ensure correct behavior it is advised always ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The Furnace#melt() is vulnerable to sandwich attacks
### Description
## Lines of code
https://github.com/reserve-protocol/protocol/blob/df7ecadc2bae74244ace5e8b39e94bc992903158/contracts/p1/Furnace.sol#L70-L84
## Vulnerability details
## Impact
Malicious users can get more of the RToken appreciation 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: Bypassable password lockout due to reliance on the phone's clock for time comparisons
### Description
The password lockout feature relies on the `Date.now` function to calculate the time left until a user can attempt to enter a password again. The `Date.now` function uses the system’s clock, so an attacker 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 | low | other | false | false | ## Low: Hardcoded localhost server name
### Description
## Context
rollup.rs#L350
## Description/Recommendation
Consider not hardcoding the localhost server name and instead allow configuration at project level or via flag.
## Layer N
Acknowledged. This field is used for TLS authentication which is not used. "localh... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `Stake.timeUntilUnstake()` does not check if the user has staked any tokens
### Description
`Stake.timeUntilUnstake()` returns how long a user must wait before they can unstake their tokens. The function returns 0 if the user can unstake their tokens immediately. However, it is not checked if the user has stak... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Locker owners can leverage low liquidity pools to bypass the tax mechanism
### Description
Locker owners can match their SUP tokens with ETH and deploy liquidity into uniswapv3 pools, after doing this for 6 months they will get their SUP without paying tax, otherwise this tax can get up to 80%. The problem ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Some LpWrapper invariants
### Description
The `info.owner` will be just `address(this)` in this context. During the lifetime of the LpWrapper contract, the owner parameter remains the same as the contract.
In fact, during the lifetime of LpWrapper, the following remain constant for any position ID of the Cor... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack Of Support For Non-EVM Data Pricing
### Description
**FeeOracleV1.feeFor()** does not support rollups that use blobs as opposed to EVM calldata to post data, and hence will overprice the fee for data availability. Since the Ethereum Cancun upgrade, most rollups that previously used Ethereum calldata 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 | low | initialization | false | false | ## Low: Misleading Function Names and Variable
### Description
The `getPendingYieldAmount` function name of `SelfPeggingAsset` contract suggests it returns only “pending yield,” but it actually provides updated balances and a new invariant value.
Additionally, the `totalSupply` variable of the `SelfPeggingAsset` 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 | low | token | false | false | ## Low: Incomplete Token Standard Support When Unwinding Payment Plan
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `842142a13dae638c61c2164aa7ec6f6b0ebf51ed`.
The client provided the following explanation: "Added support for ERC1155 and CryptoPunks when early unwinding from Cyan case. Fix... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Variables lack validation.
### Description
**Description**
LockedStaking.sol: function addReward().
Time-dependent parameters should be validated. It is a common practice to verify that
time-dependent parameters are greater than the current block’s timestamp and that the
“end” parameter is greater than t... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | false | false | ## Medium: slippage between ETH based requests between request and fulfillment
### Description
**Severity**: Medium
**Status**: Acknowledged
**Description**
ETH is a very volatile asset and there is a concern if an asset like ETH is compatible with what the project is trying to achieve. A high level overview of the... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | initialization | true | false | ## Medium: gloopStakersWallet set to the wrong address
### Description
Upon deployment, `LendingPool`'s constructor sets to `gloopStakersWallet` to `msg.sender`:
```
constructor() Auth(Auth(msg.sender).owner(), Auth(msg.sender).authority()) {
// Retrieve the name from the factory contract.
name = LendingPoolFa... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Through Small Order Spamming
### Description
**Update**
The issue has been mitigated by modifying the `cancelOrder()` function to be callable by the contract owner. This will allow the Talentir team to cancel problematic orders. Note that this also adds an element of centralization, namely... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: LIQUIDATOR FEE IS NOT SENT
### Description
The `execute_liquidation` function in the **krp-cdp-contracts/liquidation\_queue** and **krp-market-contracts/liquidation\_queue** contracts is responsible for executing the liquidation of the debt using the previously deposited bids.
There is an error in the code 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 | storage | true | false | ## Low: One-off error when evaluating deposits to process with the ring buffer size
### Description
[Link](https://github.com/code-423n4/2024-03-taiko/blob/f58384f44dbf4c6535264a472322322705133b11/packages/protocol/contracts/L1/libs/LibDepositing.sol#L141)
When calculating the deposits to process, we do not want to 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 | access-control | false | false | ## Low: [Across] Permit2 Witness Is Not Fully Compliant With EIP-712
### Description
The [`ERC7683Permit2Lib`](https://github.com/across-protocol/contracts-v3/blob/95c4f923932d597d3e63449718bba5c674b084eb/contracts/erc7683/ERC7683Across.sol#L27) library contains EIP\-712 typehashes of various types and helper function... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Income is erroneously calculated using accumulated income
### Description
When calculating a note’s floating income value, an accounting error can lead to a user receiving too much income. When a user redeems their non-fungible note position, the note’s total income is calculated. The total income consists of... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | signature | true | false | ## Low: Hardcoded 6-decimal Stablecoin Assumptions Brick Protocol on 18-decimal Deployments
### Description
Note: this issue is valid if the protocol deploys in chains like BSC
1. In the BSC chain, a stable coin with $8B in circulation has 18 decimals: [address](https://bscscan.com/token/0x55d398326f99059ff7754852469... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing Input Validation
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `554ebed847ed8d25a7dae0696d2c339458c5aa0a`.
**File(s) affected:**`StandardFunding.sol`, `ExtraordinaryFunding.sol`
**Description:** It is important to validate inputs, even if they only come from trusted addres... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Incorrect interface check for market maker contract
### Description
This issue has been identified within the [_changeMarketMakerAddress](https://github.com/longgammalabs/hanji-contracts/blob/70b15ec4d9e7578248141604503843716a67d875/src/HanjiLOB.sol#L1088) function of the `HanjiLOB` contract.
The function cha... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: AdvancedDistributorInitializable sets claim data to empty, making claims fail
### Description
AdvancedDistributorInitializable.claim overrides the passed-in data with new bytes(0). This data is needed by both PerAddressTrancheVestingMerkleDistributor and PerAddressContinuousVestingMerkleDistributor for clai... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Not updating `MINT_COUNT_CID` and `BURN_COUNT_CID`
### Description
The `GameItems` contract provides the `mintBatch` and `burnBatch` functions for batch minting and burning of game items.
```solidity
function mintBatch(
address to,
uint256[] memory ids,
uint256[] memory amounts,
bytes memory data
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: No protection implemented against listing clone NFTs
### Description
Any malicious seller can copy the name, symbol and decription of any previously listed asset and list it at a 1 wei lower price. In the case of this NFT being selected to be purchased by the system, this malicious seller will guarantee 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... | cyfrin_structured | low | other | false | false | ## Low: Not possible to rehash `DOMAIN_SEPARATOR` in `MultiSigWallet` to update chainId if is ever required
### Description
`MultiSigWallet` does not have a function to rehash the `DOMAIN_SEPARATOR` in case it is required to update the chainId, which was used for the initial DOMAIN_SEPARATOR when the contract was depl... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | storage | true | false | ## Medium: Redundant State Updates in `fill` Function Cause Issues
### Description
**Description:** The `fill` function contains **redundant state updates** to `last_asset_tokens` and `last_crncy_tokens` that are already properly handled by `write_last_tokens`. This redundancy causes data loss, incorrect accumulation,... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: M07] Ticket Registration emits the incorrect ticket number
### Description
###### Medium
In the `registerFor` function of the `Inflation` contract, the registrant is [assigned a ticket immediately after the contract emits the corresponding event](https://github.com/BeamNetwork/currency/blob/51b65c5c7af455... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `usdcReceiver` is immutable
### Description
Whenever someone mints, their `USDC` payment is sent to the address `usdcReciver`.
[`ousgInstantManager::_mint`](https://github.com/code-423n4/2024-03-ondo-finance/blob/main/contracts/ousg/ousgInstantManager.sol#L319):
The issue is that `usdcReceiver` is [immutabl... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Attackers will steal the reserve from the `Vault` by receiving `ra` in `FlashSwapRouter::__swapDsforRa()`
### Description
[FlashSwapRouter::__swapDsforRa()](https://github.com/sherlock-audit/2024-08-cork-protocol/blob/main/Depeg-swap/contracts/core/flash-swaps/FlashSwapRouter.sol#L288) is called as part 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 | low | initialization | true | false | ## Low: Lack of zero address checks in Deployer constructor
### Description
The Deployer contract’s constructor initializes 19 contract addresses but does not check any of those addresses against the zero address. (Note that 13 of the addresses are contained in the `implementations_` input variable object shown in fig... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | false | false | ## Medium: Missing Log Aggregation ✓ Fixed
### Description
There is no centralized system that gathers operational events of AWS stack components. This includes S3 server access logs, configuration changes, as well as Cloudfront-related logging.
### Recommendation
CloudFrond and CloudTrail have been enabled. These 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... | cyfrin_structured | medium | access-control | true | false | ## Medium: Collector can add `CreatorStory`, corrupting the provenance of an artwork
### Description
The purpose of the `IStory` interface is to allow 3 different entities (Admin, Creator and Collectors) to add "Stories" about a given artwork (NFT) which [describes the provenance of the artwork](https://docs.transient... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | false | false | ## Medium: Incorrect work with decimals
### Description
`DistributionEvent.totalTournamentEarnings` and `DistributionEvent.totalOtherEarnings` are stored for the current token's decimals (https://github.com/FantiumAG/smart-contracts/blob/c622b4c35132167bacc22cf76656d80715edb5fd/contracts/claiming/FantiumClaimingV1.sol... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | rounding | true | false | ## Low: Bypass Instant Unstake Fee
### Description
## MeeStaking Fee Structure
Once a user stakes coins to the pool, 15 days of lockup must pass before they are allowed to claim back their coins. However, this procedure can be skipped in exchange for a fee, representing 15%.
The fee is calculated as follows:
This... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | initialization | false | false | ## Medium: Insufficient Input Validation for Vesting Schedule
### Description
The input arguments of the [`constructor`](https://github.com/oceanprotocol/vw-cli/blob/0397c74da60ae50db5c6414307849120b899af6e/contracts/VestingWalletHalving.sol#L38-L52) are not sufficiently validated. Some problematic scenarios will aris... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Canceling requests
### Description
It might make sense from the requester's perspective to be able to cancel requests.
### Recommendation
The canceling request feature can be added, but care needs to be taken into consideration. If a mech has already started working on a request, it should be able to be compe... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | oracle-manipulation | false | true | ## Medium: Inadequate systemic risk-controls to support cross-asset collateralization across a wide range of assets
### Description
Current Dolomite Margin risk controls can be classified into two categories:
- Account-level risk controls
- Systemic risk controls
Dolomite incorporates a robust risk monitoring archi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: If TSS Nodes Fall Below Quorum Size No TSS Decisions Can Be Made
### Description
If too many TSS nodes are removed from the signing group due to bad behavior, it may become impossible to reach a quorum with the remaining nodes. This would lead to the TSS nodes no longer being able to sign any messages, such 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 | gas | overflow | false | false | ## Gas: `++i`/`i++` should be `unchecked{++i}`/`unchecked{i++}` when it is not possible for them to overflow, as is the case when used in `for`- and `while`-loops
### Description
The `unchecked` keyword is new in solidity version 0.8.0, so this only applies to that version or higher, which these instances are. This sa... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Delegate Call to Force a Self-Destruct
### Description
The LendingPool makes a delegatecall to the LendingPoolCollateralManager when liquidating a user's balance. The address of the LendingPoolCollateralManager is retrieved from the LendingPoolAddressesProvider, which is passed to LendingPool during initializa... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | false | false | ## Medium: `PostTxProcessing` can revert user transactions not interacting with Turnstile
### Description
### Impact
Any transaction, even those that don't interact with the Turnstile contract, can be reverted by the `PostTxProcessing` hook if there was a CSR specific error. Thus, the CSR module can impair the behavi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | liquidation | false | false | ## Medium: Lack of Incentives to Liquidate Small Positions
### Description
There are currently no checks in place to regulate the size of the collateral that users can utilize to open positions. Consequently, users might open positions with collateral that is too small to be profitably liquidated in different vaults. ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Price is fixed for any ERC1155 amount
### Description
**Severity**: Medium
**Status**: Resolved
**Description**
CPortModule.sol - In the scenario of listing ERC1155 via protocol ERC1155_FILL_PARTIAL, the taker pays the same price for any requestedAmount they demand of a given tokenId.
This is because 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 | token | false | false | ## Low: Return values of `approve` not checked
### Description
Not all `IERC20` implementations (e.g. USDT, KNC) `revert` when there's a failure in `approve`. The function signature has a boolean return value and they indicate errors that way instead.
By not checking the return value, operations that should have mark... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: No need to read `tokenId` second time
### Description
https://github.com/code-423n4/2022-07-golom/blob/7bbb55fca61e6bae29e57133c1e45806cbb17aa4/contracts/vote-escrow/VoteEscrowCore.sol#L948
### Mitigation
Change it to `uint256 _tokenId = ++tokenId;` and `92 gas is saved this way`
### Recommendation
Change 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 | low | other | false | false | ## Low: [16] Simplify assert statements
### Description
Some assert statements are being unnecessarily complicated, there are overloads that support all cases for comparison of native types. Using the correct APIs increases the readability and expressiveness of code. There are many instances where assert calls can be ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | other | false | false | ## Low: Judge can designate arbitrary winner who is neither maker nor taker
### Description
When calling `Bet::resolve`, the nominated judge can designate an arbitrary winner to receive the winnings.
### Impact
The judge can send the winnings to themselves or to any other non-related party who didn't participate in t... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | initialization | true | false | ## Medium: `ERC1155Fuse`: `_transfer` does not revert when sent to the old owner
### Description
The `safeTransferFrom` does not comply with the ERC1155 standard when the token is sent to the old owner.
### Proof of Concept
According to the EIP-1155 standard for the `safeTransferFrom`:
> MUST revert if balance of h... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | cross-chain | true | false | ## Medium: Depositing gas through `depositGasAnycallConfig` should not withdraw the `nativeToken`
### Description
### Lines of code
### Impact
`DepositGasAnycallConfig` can deposit the gas fee externally, but it should not withdraw the `nativeToken`. This prevents gas from being deposited.
### Proof of Concept
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Overpayment to Bidder in Slash Function Due to Incorrect Amount Transfer
### Description
The `slash` function in `ProviderRegistry` contains a critical bug where it sends the full `amt` to bidders instead of the calculated `residualAmt` (amount after decay). While the contract correctly calculates:
```
resid... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Use of uninitialized variable `lastFundingTime` leads to incorrect calcualtions
### Description
`lastFundingTime` is used in order to calculate the fundingFeePerUnit but it is not initialized to any value before it is used meaning it is going to be equal to 0 for the first user interacting with the contract 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 | low | overflow | true | false | ## Low: Unchecked arithmetic
### Description
## Unchecked Arithmetic in Dex's Initialize Account Instruction
We found many instances of unchecked arithmetic which, while not posing a security risk, lead to unexpected behavior. For example, Dex's `initialize_account` instruction uses unchecked arithmetic when calculat... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | oracle | true | false | ## Low: Sanity Check Oracle Hash Size
### Description
## Hashes for Packet Sizes
Hashes for the packet sizes are usually 32 bytes, so it’s worth asserting packet size while submitting the packet.
## Remediation
Assert the hash size in the `oracle_submit` function.
**File:** `sources/app/oracle.move`
## Patch
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 | medium | liquidation | true | false | ## Medium: Users will be unfairly liquidated if collateral value drops after initiating withdraw request
### Description
-
### Impact
High. Loss of funds as shown in the scenario above. A portion of his position's funds is lost to the liquidator.
### Recommendation
_No response_ | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Miscellaneous General Comments
### Description
This section details miscellaneous findings discovered by the testing team that do not have direct security implications:
1. **No Deposit/Withdrawal Amount Check on `strategyDeposit()` and `strategyWithdrawal()`**
**Related Asset(s):** StakingPool.sol
Bot... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Slippage protection fails during partial liquidation
### Description
_Resolved_
The liquidation function uses maxUSGToBurn and minUSGOut parameters to protect the liquidator from excessive slippage. However, these protections can become ineffective if another partial liquidation occurs before the caller’s 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 | signature | false | false | ## Low: LiquidityPool does not conform to ERC4626
### Description
- The `previewDeposit()` function works on the user's average `state.depositPrice`, but the `deposit()` function will always fail since the user should call `requestDeposit()` before calling the actual `deposit()` function.
- This effectively leads to t... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | true | false | ## Low: PirexERC4626's implmentation is not fully up to EIP-4626's specification
### Description
Must return the maximum amount of shares mint would allow to be deposited to receiver and not cause a revert, which must not be higher than the actual maximum that would be accepted (it should underestimate if necessary).... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | rounding | false | false | ## Low: Using Precise Invariant For Assertion
### Description
## compute_invariant_weights_u64
`compute_invariant_weights_u64` is used in the math module to calculate an invariant and assert that it is non-decreasing after the swap. In this function, the calculated invariant is rounded down before returning it, which... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: EMI calculation is flawed
### Description
Taking min when calculating EMI repayment amount is flawed
### Impact
Incorrectly lowered payments in case of EMI repayments
### Recommendation
Dont take the min. Instead use
```solidity
((_bid.terms.paymentCycleAmount * owedTime) ) /
_paymentCycleDuration
`... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: OpenZeppelin standard contracts were modified
### Description
Additionally to copying OpenZeppelin’s contracts instead of installing them via NPM, some of them were modified.
Fee management was added directly to [`BasicToken`](https://github.com/tetherto/ether-contracts/blob/9718de4da7b571c1acf822bfde1f5300... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: Missing Input Validation
### Description
**Update**
Fixed in commit `fb4801b`.
**File(s) affected:**`governance/CrocPolicy.sol`, `lens/CrocImpact.sol`, `lens/CrocQuery.sol`, `periphery/CrocLpErc20.sol`, `vendor/compound/Timelock.sol`
**Description:** It is important to validate inputs, even if they only come... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: User can lose extra rewards
### Description
_Submitted by csanuragjain_
rewardManager can at anytime delete the extra Rewards. This impacts the extra rewards earned by existing staker. The existing staker will have no way to claim these extra rewards. Since these extra rewards have been staked for all user... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | liquidation | true | false | ## Low: Perpetual - beginGlobalSettlement can be called multiple times Acknowledged
### Description
The system can be put into emergency mode by an admin calling `beginGlobalSettlement` and providing a fixed `settlementPrice`. The method can be invoked even when the contract is already in `SETTLING` (emergency) mode,... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `transfer` method is used instead of `call`
### Description
This issue has been identified in Ether-sending functions like `payInitialFee` and `_sendFeeByTransfer` (within **CryptoLegacyBasePlugin** / **LibCryptoLegacy**).
Using `transfer` forwards only 2300 gas. This fixed limit is often insufficient for rec... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.