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
high
token
true
false
## High: Incorrect reward calculation due to decimal handling ### Description In the DSRStrategy contract's `getRewards` function, there is a decimal handling error when calculating asset balances and rewards. The function multiplies the token balance by the conversion rate without accounting for decimals, leading 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
high
other
false
false
## High: Incorrect DeleteAll Implementation ### Description ## DeleteAll Implementation in KVStore `DeleteAll` is added to `KVStore` to support deletion of all EVM contract states on contract destruct. However, the original implementation for `cachekv` only clears keys in the `dirtyItems` set, thus misses any other 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
false
## Low: [02] `chain_bytes` is erroneously allowed to be zero length after splitting ### Description https://github.com/code-423n4/2024-08-axelar-network/blob/69c4f2c3fcefb1b8eb2129af9c3685a44ae5b6fe/axelar-amplifier/interchain-token-service/src/state.rs#L67-L83 This is the implementation of `KeyDeserialize` trait 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
other
false
false
## Low: Use constants. ### Description **Description** StakingB.sol Lines 17, 18, 19 StakingB_1.sol Lines 518 If the value of the storage variable can’t be changed it can be set as constant in order to save gas. **Recommendation**: Set offered storage as constant
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: A node exit prevents some other nodes from exiting for some period  Pending ### Description When a node wants to exit, the `nodeExit` function should be called as many times, as there are schains in the node. Each time one schain is getting removed from the node. During every call, all the active schains ar...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
signature
false
false
## Medium: Using one controller for two addresses could risk signature collisions ### Description The DNGMXVaultController is intended to be used as a controller for two separate contracts when interacting with Rage Trade. While individual contracts check for signature collisions, there is no protection in this 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
other
true
false
## Low: 8% of Volt is Not Sent to Treasure Volt as Stated in the Documentation ### Description In the documentation, it states > The “DragonX input” bnb buys VOLT (8% sent to “Treasure Volt, 92% used the next day to buy VYPER) The [whitepaper](https://docs.volt.win/phase-2-the-volt-pillars/the-nexus-buy-wheel) shows...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Possible division by zero depending on `TradingModule.getOraclePrice` return values ### Description Some functions depending on `TradingModule.getOraclePrice` accept non-negative `(int256 answer, int256 decimals)` return values. In case any of those are equal to zero, division depending on `answer` or `deci...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Role Transfer Not Following Two-Step Pattern ### Description **Update** Marked as "Acknowledged" by the client. The client provided the following explanation: > We will likely use this for future versions, but don't expect to be transferring ownership (after an initial transfer from the deployer, before 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
low
other
false
false
## Low: INCOMPLETE NATSPEC DOCUMENTATION ### Description **Natspec** documentation are useful for internal developers that need to work on the project, external developers that need to integrate with the project, auditors that have to review it but also for end users given that many chain explorers have officially int...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
true
false
## Medium: Users could avoid loss by frontrunning to request unstake ### Description **Description:** A loss can occur when a validator is slashed, which is reflected in the `finalizeReport()` function. If the `change` is less than 0, this indicates that a loss has occurred. Consequently, the accounting updates the `r...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
true
false
## Medium: Resolving a frozen investor causes all the pending payouts for the entire time the investor was frozen to be lost ### Description **Description:** When an investor is frozen, they do not receive payouts while the freeze is active. However, once the sanction is lifted, the investor is entitled to receive 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
rounding
true
false
## Low: Loss of protocol fee due to lack of decimal consideration during accrual ### Description _Resolved_ The protocol fee is calculated inside the `_calculateMarketState()` function whenever core protocol actions such as swap, redeem, or mint take place: However, upon further observation of `calculateLinearAccrua...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Bytecode handles 0 address calls different from proxy implementation ### Description One of the changes under review is the `setupProxy` of the `ProxyFactory` contract, which contains hand-rolled assembly to match an EEIP1167 minimal proxy. The two behave differently when invoking a function on the zero 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
medium
initialization
false
false
## Medium: CLOSE FUNCTION CAN BE FRONT-RUN BY LENDER ### Description In the `LineOfCredit` contract, the borrower has two possibilities to pay off the debt: by calling `depositAndRepay()` and then `close()` functions, or by calling a single `depositAndClose()` function. The `close()` function combined with `depositAnd...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `new_total_value` is assumed to be non-negative ### Description When `_calculate_values` is performed, it will calculate `new_total_value` based on the `value_change`, and will return it as `total` where it is converted to `uint256`. ```python @internal @view def _calculate_values(p_o: uint256) -> Liquidit...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Uninitialized variable leads to zero-fees for first transfer in Vader.sol ### Description ## Handle 0xRajeev ## Vulnerability details ## Impact The state variables feeOnTransfer is never initialized which leads to a default uint value of 0. When it is used on L126 in the first call to _transfer(), it will...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: No duplicate prize check in prize pool addition ### Description _Acknowledged_ In the `SpinLottery` contract, the function responsible for adding prizes checks whether the contract currently owns the specified NFT by verifying `nft.ownerOf(_tokenId) != address(this)`. However, it does not include a check to d...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
storage
false
false
## High: Anyone can steal money from other suppliers in TUSD market by creating negative interest rates ### Description **Auditor’s note:** *The bug behind this issue was first privately reported by the ChainSecurity team during their audit of the CToken Refactors. The OpenZeppelin team was later provided access 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
access-control
false
false
## Low: Duplications and Inconsistencies in Referrers List Due to Absence of Validations in `setReferrers()` and `setReferrals()` Functions ### Description **Update** In commit `da6b319`, `setReferrers()` function is removed and `setReferrals()` adds a condition check of `if (referrerOf[referralProgramUnits[i].referra...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
liquidation
false
true
<https://github.com/code-423n4/2023-01-astaria/blob/1bfc58b42109b839528ab1c21dc9803d663df898/src/LienToken.sol#L340> When a lien is initially created, the `liquidationInitialAsk` can be set as any uint256 value >= the amount of underlying borrowed. Later on however, if the position is liquidated, an auction is create...
Code4rena
4
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...
cyfrin_structured
low
logic-error
false
false
## Low: Consider enforcing a `minAmount` to prevent rounding exploits ### Description To protect against potential precision-based exploits or rounding errors, the protocol should consider enforcing a `minAmount` threshold (e.g., equivalent to $1 in token units) across user-facing actions such as trades, liquidity 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...
skyward_49k
low
cross-chain
false
false
## Low: Redundant call with zero`executionPrice` ### Description The `executionPrice` value may be set to zero during non cross-chain calls. However, it still transfers a 0 value to the accountant when `executionPrice` is zero. https://github.com/eywa-protocol/eywa-clp/blob/d68ba027ff19e927d64de123b2b02f15a43f8214/co...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
other
false
false
## Gas: Absence of Event Logs in `Staking.sol` Reduces Contract Transparency and Auditability ### Description The `Staking.sol` smart contract does not emit any events. Events in Solidity provide a way for smart contracts to log specific activities or changes in state that occur during contract execution. These logs 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
oracle
false
false
## Low: Missing address(0) checks ### Description [L-02] Missing address(0) checks Consider adding an address(0) check here: - underlying = underlying_ (contracts/CErc20.sol#36) - pendingAdmin = newPendingAdmin (contracts/CToken.sol#1216) - admin = admin_ (contracts/CEther.sol#34) - admin = newAdmin (contracts...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Direct YToken deposits can lock funds below minimum withdrawal threshold ### Description **Description:** In [`Manager::deposit`](https://github.com/YieldFiLabs/contracts/blob/40caad6c60625d750cc5c3a5a7df92b96a93a2fb/contracts/core/Manager.sol#L134-L155), there is a check enforcing a minimum deposit amount ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
access-control
true
false
## High: Session Role Manipulation ### Description ## Vulnerabilities - Proof of Concept A **n attacker may front-run the `create_session` instruction and modify its role by manipulating the `SessionProof` structure. This structure includes two fields: `parameters` and `signatures`. Before submitting the transaction,...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 proposal and quorum thresholds for voting ### Description `Tribe` tokens are used for governance, with the [`totalSupply`](https://github.com/fei-protocol/fei-protocol-core/blob/29aeefddd97f31c7f2a598fb3dca3ef24dc0beb4/contracts/dao/Tribe.sol#L22) set to 1 billion tokens with [`18 decimals`](https...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
oracle
false
false
## Low: Inconsistent Oracle Configuration [samples] ### Description In the `OracleHelper` contract, when the `tokenOracle` price is already based in the native asset, the [`nativeOracle` is unused](https://github.com/eth-infinitism/account-abstraction/blob/9879c931ce92f0bee1bca1d1b1352eeb98b9a120/contracts/samples/uti...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect Rounding Direction in Withdrawal Share Calculation ### Description The `withdraw()` function uses ceiling rounding when calculating the share ratio through `OperationsLib.getRatio()`. This calculation determines what portion of the user's `aToken` balance should be withdrawn based on the requested sh...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
token
true
true
## Lines of code https://github.com/code-423n4/2022-12-tigris/blob/496e1974ee3838be8759e7b4096dbee1b8795593/contracts/GovNFT.sol#L247 https://github.com/code-423n4/2022-12-tigris/blob/496e1974ee3838be8759e7b4096dbee1b8795593/contracts/BondNFT.sol#L285 ## Vulnerability details Both `BondNFT` and `GovNFT` are an ERC7...
Code4rena
3
Tigris Trade
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
dos
true
false
## Low: Can't remove old assets ### Description There is no way to remove old assets added by calls to `registerAsset()`. A disgruntled admin, before their access is revoked, can add a lot of assets and regularly sprinkle them with dust, so the new admins have to submit multiple calls to `distributeYield()` with diffe...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
token
true
false
## Medium: ```withdrawForETH``` could be used to drain the WETH in ```RubiconRouter.sol``` ### Description _Submitted by dipp, also found by 0x1f8b, csanuragjain, and pedroais_ In the `withdrawForETH` function in `RubiconRouter.sol`, the `targetPool` may be any contract that implements the `IBathToken` interface and ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
dos
true
false
## Medium: Malicious contracts can force excessive memory usage at minimal gas cost, threatening node stability and economic security ### Description Incorrect implementation of WebAssembly memory growth gas metering will cause a resource exhaustion vulnerability for blockchain node operators as attackers will deploy ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Limited withdraw capabilities ### Description ## Juiced Protocol Yield Generation In order to generate yield, the Juiced protocol deposits funds into Mango and Mercurial. However, this means that users can only withdraw up to the amount currently held in the sweeper vault. During periods of large withdrawal, ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `ReaperBaseStrategyv4.harvest()` might revert in an emergency. ### Description `ReaperBaseStrategyv4.harvest()` might revert in an emergency if there is no position on the lending pool. As a result, the funds might be locked inside the strategy. ### Proof of Concept The main problem is that [Aave lending...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: General Proposal Execution Allows Unauthorized Node Additions and Removals ### Description **Update** Marked as "Fixed" by the client. Addressed in: `5c0aa4551987084dbacc797a0678642e9d955068`. The client provided the following explanation: > In the excContractPropose() method, a judgment is made on the 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: Unused variable ### Description **Description** contracts/NetworkRegistry.sol#25 Variable “free” is never used in the contract and should be removed. **Recommendation**: Remove unused variable.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
initialization
true
false
## Medium: Maker order buyer is forced to reimburse the gas cost at any `tx.gasprice` ### Description _Submitted by WatchPug, also found by 0xsanson, and shenwilly_ In the current design/implementation, while the order is executed by the `MATCH_EXECUTOR`, the gas cost will always be paid by the maker order's buyer. ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Invalid orders can be executed, as order invalidation is not permanent ### Description Existing orders are considered invalid when the multisignature wallet’s parameters are changed. This, for example, prevents the execution of orders whose set of signers is different from the current set of signers defined 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
oracle
true
false
## Low: Inconsistent withdrawal control in `DepositPool` vs `UnstakingVault` ### Description _Resolved_ The `completeWithdrawal()` function in `ElytraUnstakingVaultV1` does not respect the global withdrawal controls that exist in `ElytraDepositPoolV1`. When admins disable withdrawals during emergencies, users can sti...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: No incentive to vote early in GaugeController ### Description GaugeController voting offers no incentive to vote early, so late-voting users have a benefit over early voters. Since all the votes are public, users who vote earlier are penalized because their votes are known by the other participants. An atta...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
reentrancy
true
true
## Medium: Vaults can become immune from liquidation by setting `vault.recipient` to a blacklisted quote token address ### Description https://github.com/code-423n4/2024-05-predy/blob/a9246db5f874a91fb71c296aac6a66902289306a/src/PredyPool.sol#L289 ### Impact Vault owners can set `vault.recipient` via the external `P...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
flash-loan
false
false
## Low: The use of tx.origin for smart contract safe list is risky and not generic ### Description ## Handle 0xRajeev ## Vulnerability details ## Impact The addSafeAddress() takes an address and adds it to a “safe list". This is used in eoaOnly() to give exemption to safe addresses that are trusted smart contrac...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
dos
true
false
## Medium: Impossibility to change `safeCollateralRatio` ### Description ### Lines of code ### Impact Because of `vaultType` variable is internal `vaultType` staticcall to vaults from the configurator will revert, so it makes it impossible to change `safeCollateralRatio`. It may be critical when market conditions w...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
reentrancy
true
false
## Medium: NounsDAOLogicV1Fork's quit() performing external calls in-between total supply and balance reads can allow for treasury funds stealing via cross-contract reentrancy ### Description Let's suppose there is an initiative group of nouns holders that performed a fork, claimed, and immediately quit (say for pure ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Forbidden manager never can use pool ### Description If a credit manager was forbidden, then he can't use the pool and nobody can change it: https://github.com/Gearbox-protocol/gearbox-contracts/blob/0ac33ba87212ce056ac6b6357ad74161d417158a/contracts/pool/PoolService.sol#L443 ### Recommendation We recommen...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Open Solidity Pragma ### Description Description All of the Solidity contracts use an open pragma that accepts any version of Solidity. pragma Solidity ^0.8.0; A future version of Solidity could potentially be released that contains a bug that could introduce a vulnerability in these contracts. Recommendations...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unlimited Decimals of Local Token Mints Result in DoS and Potential Overflow ### Description In the `init()` function of the `onft_config`: ```rs require!( ctx.accounts.token_mint.decimals >= params.shared_decimals, ONFTError::InvalidDecimals ); ``` This code should cap the maximum number of decimals ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The absorb function can still be called even if the Absorber is killed ### Description The Absorber module is responsible for being a backstop against unhealthy troves. Similar to the Shrine, the Absorber module can be killed by the admin of the Opus system. When it is killed, providing yin to the Absorber ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: level transfer via call() can fail silently ### Description ## Lines of code https://github.com/code-423n4/2022-03-rolla/blob/a06418c9cc847395f3699bdf684a9ac066651ed7/quant-protocol/contracts/timelock/TimelockController.sol#L414-L415 ## Vulnerability details ## Impact In the `_call()` function in `Timel...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `updateBalancesForAll()` and `updateBalances()` functions are callable when the contract is paused. ### Description **Severity**: Medium **Status**: Resolved **Description** The `updateBalancesForAll()` function within the `TradeFacet.sol` smart contract should only be callable when the contract is not ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
cyfrin_structured
medium
input-validation
true
true
## Medium: Incorrect inclusion of removed nodes in `_requireMinSecondaryAssetClasses` during `forceUpdateNodes` ### Description The function `_requireMinSecondaryAssetClasses` is utilized within the `forceUpdateNodes` process. During execution, if a node is removed in the first iteration, the subsequent iteration stil...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Unused Functions ### Description ## Unused Functions in FCNVault Unused functions in FCNVault should have a function body with an unconditional `revert()` to prevent unintended behaviour. The list of unused functions includes: - `maxDeposit(address)` - `previewDeposit(uint256 assets)` - `deposit(uint256 ass...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Risk Of Fund Withdrawal By Admin ### Description ## Centralization Risk in Current Implementation In the current implementation, there is a possible centralization risk as the Definitive admin has the authority to add themselves as an admin to any trading group. Since there is no restriction on the Definitive...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The winner of a bid can brick the auction house ### Description Whenever an auction is over, `_settleAuction()` is called. We have 2 main flows there - when no one has bid for the auction and when there is a bidder for the auction. We will focus on the latter. One of the lines we have for that flow is this on...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lost assets if `collateralWallet` is zero address in SEuroOffering. ### Description **Description** SEuroOffering.sol - body of transferCollateral(): As this method is triggered by an external call of swap and swapETH. An amount of an asset token is meant to be transferred to collateralWallet in exchange 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
medium
access-control
true
false
## Medium: Fee Rates Can Change on Active Products ### Description When the parties mint a product, they are aware of the fee rate at that point. However, the fee that the minter pays on burning their tokens can be modified between the time when the product is minted and burnt. This could result in a user of the proto...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: SynthVault rewards can be gamed ### Description ## Handle cmichel ## Vulnerability details ## Vulnerability Details The `SynthVault._deposit` function adds `weight` for the user that depends on the spot value of the deposit synth amount in `BASE`. This spot price can be manipulated and the cost of manipu...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The NFT contract allows multiple ways to avoid KYC ### Description The KYC system for NFT minting does not work. Some easy ways: 1) `FantiumNFTV3.batchMintTo()` checks that `msg.sender` is KYCed but allows specifying `to` who will receive the minted NFT. So, the true NFT receiver is not KYCed. - 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
medium
front-running
false
false
## Medium: Private sale spoofing ### Description _Submitted by cmichel_ [NFTMarketPrivateSale.sol#L156](https://github.com/code-423n4/2022-02-foundation/blob/4d8c8931baffae31c7506872bf1100e1598f2754/contracts/mixins/NFTMarketPrivateSale.sol#L156) Similar to [spoofing in finance](https://en.wikipedia.org/wiki/Spoofin...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Multiple zero code length checks are no longer safe ### Description The `DeputyPauseModule` and `OPContractsManager` contracts implement zero code length checks on addresses that will be used for future delegate calls. Due to EIP-7702, these checks are no longer safe. They allow an externally owned account (EO...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `LienToken._payment` function increases users debt ### Description LienToken.\_payment function increases users debt. Every time when user pays not whole lien amount then interests are added to the loan amount, so next time user pays interests based on interests. ### Proof of Concept `LienToken._payment` ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: fetchAllTicketCommentsCount() Is Unoptimized, Overly Complex, and Lacks Untrusted Input Validation ✓ Fixed ### Description The current `fetchAllTicketCommentsCount()` function is overly complex and poorly optimized. For instance, the function unnecessarily exhibits a sequence of “then” promises, which could...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `reduce_margin_by_amount` in `Vault.reduce_position` is wrongly calculated ### Description In `Vault.reduce_position`, some position tokens are sold and debt and margin are reduced. The remaining amount of debt and margin should maintain the same leverage as before. However, the reduced amount is wrongly calc...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Loss of ETH when executing a transaction from the module ### Description Due to adding the `payable` keyword and not implementing a way to pull out the ETH sent, if the call to `sendZkSafeTransaction` carries ETH, then those funds will remain locked within the module. ### Recommendation Remove the `payable...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Anyone can update or delete the app-vault ### Description Without transaction field validation on user interactions, any user can update or delete the app-vault. This means an attacker can update the application and steal the funds from all the associated vaults. When an application transaction is successful...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
front-running
false
false
## High: Anyone can block single signature DKIM recoveries ### Description **Severity** **Impact:** High, as the user won't be able to recover access to his wallet **Likelihood:** High, as anyone can execute this attack by front-running a recovery **Description** In `DKIMRecoverySigValidator` there is a mechanism ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Nonconforming EIP-712 typehash ### Description Incorrect strings used in computing the EIP-712 typehash. 1. The strings contain space(s) after comma(s) which is not standard EIP-712 behavior. 2. ActionInfo is not used in typehash. There will be a mismatch when comparing to hashes produced by JS libraries or So...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect loop starting index in propagate_reward_errors ### Description In the Absorber contract, reward tokens are stored in a mapping based on their reward ID, starting at 1. Most instances where the set of reward tokens is iterated over properly start the loop at 1, but in the `propagate_reward_errors` fun...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
overflow
false
false
## Medium: Possible integer overflow allows invalid SecurityParams ### Description When checking `QuorumThreshold` and `AdversaryThreshold`, there's an unsafe addition which could overflow and be abused. These are both `uint8` types, so it is easy to overflow. For example, if `QuorumThreshold` is 5 and `AdversaryThres...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
Validation
true
false
## Severity: High Risk **Context:** Home.sol#L332, Queue.sol#L119-L130 **Description:** Upon calling `xcall()`, a message is dispatched via Nomad. A hash of this message is inserted into the merkle tree and the new root will be added at the end of the queue. Whenever the updater of `Home.sol` commits to a new root,...
Spearbit
4
Connext
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
cyfrin_structured
low
other
true
false
## Low: Cache array length outside of loops and consider unchecked loop incrementing.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing zero address checks ### Description In several places in the code, addresses are passed as parameters to functions. In many of these instances, the functions do not validate that the passed address is not the address `0`. In the `Controller` contract, this happens in functions [`configureController`...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unordered Nonces open up to further MEV risks ### Description While a great effort was made to mitigate out of order nonce execution, the reality is that since `PermitC` allows unordered nonces, then nonces could be executed out of order. This opens up more problems than the original Permit Exploit. The ori...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Block number deadline is chain dependent and unreliable across L2s ### Description **Description:** The `SecuritizeOnRamp::subscribe` uses `block.number` as a deadline mechanism to prevent stale transactions: The protocol is intended to be deployed in this chains as evidenced by the `hardhat.config.ts: Blo...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `Rewarder` Ignores Accumulated Rewards of a Farm ### Description **Update** Marked as "Fixed" by the client. Addressed in: `42b5b031e08849fab983589eb609e2d7ae42a452`. The client provided the following explanation: > Implemented changes as recommended. Using farm.getRewardBalance(token) instead of token.bal...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
solodit_api
high
dos
false
true
_Submitted by nathaniel, also found by WatchPug, leastwood, and pauliax_ #### Impact The timelocks for any *beneficiary* are unbounded, and can be vested by someone who is not the *beneficiary*. When the array becomes significantly big enough, the vestments will no longer be claimable for the *beneficiary*. The `ves...
Code4rena
5
Boot Finance
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
logic
false
false
## High: Buying limits can be broken with a significant impact ### Description **Severity**: High **Status**: Acknowledged **Description** dpnm_sc.sol - In method getMaxDailyBuy a user can break the limits significantly by applying a certain pattern of buys and sells within a 2-day window. It is understood though t...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: Erroneous comment ### Description [`ParticlePositionManager::_closePosition`](https://github.com/code-423n4/2023-12-particle/blob/main/contracts/protocol/ParticlePositionManager.sol#L422): `borrower` is not correct here, liquidity is added back to the lender/liquidity provider. **[wukong-particle (sponsor) ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
initialization
false
false
## High: Incorrect update to validator accumulators on syscall_epoch_change ### Description (Issue found in commit hash `1a7f9476081abc734fc6fa359698c3b8f9806576`). In `syscall_epoch_change`, we attempt to update all the accumulators of validators present in the snapshot view at the beginning of a new epoch. This is...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
signature
false
false
## Low: _erc1271CallerIsSafe() is unused ### Description In the `SmartSessionERC7739` contract, the `_erc1271CallerIsSafe()` function is internal and currently unused. The function relates to ERC-7739 and allows certain callers to "skip" the rehashing scheme if they are already known to be safe from signature replay, ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Failure to Update Multiplier ### Description ## Issue with Multiplier Functions in Godmode The `add_multiplier` and `remove_multiplier` functions in Godmode do not call `update_points`. This may result in situations where the user’s `last_claimed` timestamp is not updated correctly when multipliers are add...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Small ETH dust amount will be left in `PoolGovernance` ### Description In `PoolGovernance::proposeEpoch` the math for calculating how much each operator gets from the `epoch.fee` is `uint256 operatorShare = epoch.fee / operatorsLen;`. Because of how Solidity and EVM executes divisions, it is quite possible 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
medium
initialization
false
false
## Medium: INCORRECT TOKEN PRICE CONVERSION PREVENTS WITHDRAWAL ### Description The `RequestWithdraw` instruction allows users to initiate withdrawal and close their positions. The instruction calculates, among other calculations also the current price of JLP tokens in USDC tokens based on the price of JLP and USDC 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
token
false
false
## Low: Unsafe transferFrom() Function ### Description The function `createWithdrawRequest()` in `swEXIT` uses the unsafe ERC-20 operation `transferFrom()`. The ERC-20 functions may not behave as expected and could return values that are not always meaningful, particularly for tokens that do not closely follow the ERC...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
high
other
true
true
## High: `GlobalConfiguration::removeCollateralFromLiquidationPriority` corrupts the collateral priority order resulting in incorrect order of collateral liquidation ### Description `GlobalConfiguration` [uses](https://github.com/zaros-labs/zaros-core-audit/blob/de09d030c780942b70f1bebcb2d245214144acd2/src/perpetuals/...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Require messages are too short and unclear ### Description The correct and clear error description explains to the user why the function reverts, but the error descriptions below in the project are not self-explanatory. These error descriptions are very important in the debug features of DApps like Tenderly. 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...
cyfrin_structured
critical
dos
true
false
## Critical: Critical DOS in queue processing if async cancellations are allowed ### Description The `cancelRedeemRequest()` function can be used to DOS the queue processing (ie. `processUpToShares()` and `processUpToRequestID()` can be made to revert). This is the attack path : - `cancelRedeemRequest()` marks `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
high
other
false
false
## High: Using the underlying price instead of the perp price can cause problems ### Description **Description:** Currently, we use the perp price only for buy/sell operations and for funding rate calculations. However, when calculating the perp value we rely on the underlying price: Scenerio with perp withdrawal: 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
token
false
false
## Low: Compromised Governor can steal whitelisted tokens from Infrared ### Description `Infrared.recoverERC20()` is meant to recover ERC20 tokens that were accidentally sent to the contract or were not whitelisted. However, the recovery logic does not enforce exclusion of whitelisted tokens which include `ibgt`, `ire...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
dos
false
false
## Low: OPEN TODOs ### Description Open To-dos can point to architecture or programming issues that still need to be resolved. Often these kinds of comments indicate areas of complexity or confusion for developers. This provides value and insight to an attacker who aims to cause damage to the protocol. Code Location ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Possible function selector clashing ### Description The upgradeability system implemented in the codebase does not manage function clashing between the proxy contract and the implementation contract. Clashing can happen among functions with different names. Every function that is part of a contract’s public ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Contract fails to handle `address(0)` as a native asset for it's zero balance left invariant ### Description **Impact:** High, as all transactions that use native assets will revert **Likelihood:** High, as it is well expected that native assets will be used as a `paymentToken` often **Description** The `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
low
oracle
false
false
## Low: Potential violated oracle handling procedure. ### Description **Description** Aggregator Oracle.sol: canUpdate(), performUpdate(). There is pretty high risk of the violation of one or several of aggregated Oracles (due to the hack of that oracle, or mistake in calculations, or pool draining, or corrupted dat...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
cyfrin_structured
low
integer-overflow
false
false
## Low: Unused custom error should removed if not required ### Description `AngstromL2` defines the `NegationOverflow()` custom error; however, it is not currently used and so should be removed unless actually required.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: wallet endpoint description is incorrect ### Description The wallet RPC endpoint description indicates: - Creates, signs, and submits onchain ETH transaction. - This description is the same as the withdraw endpoint. ### Recommendation Fix the description of the wallet endpoint to indicate that it returns 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...
solodit_api
medium
Check Return Value
true
false
Source: https://github.com/sherlock-audit/2022-09-notional-judging/issues/118 ## Found by ctf\_sec ## Summary stakingContext.auraRewardPool.withdrawAndUnwrap boolean return value not handled in Boosted3TokenPoolUtils.sol and TwoTokenPoolUtils.sol ## Vulnerability Detail When calling function _unstakeAndExitPool,...
Sherlock
3
Notional
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
liquidation
false
false
## Low: Incorrect Debt Amount in BorrowerLiquidated Event in StabilityPool::liquidateBorrower ### Description The `liquidateBorrower` function is responsible for liquidating a borrower by repaying their debt in the `LendingPool`. However, the **`BorrowerLiquidated`** event emits the **scaled debt (`scaledUserDebt`)**...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
liquidation
false
false
## Low: Discrepancies between code and specification Status: Resolved ### Description While reviewing the Perpetual Protocol contracts, we compared the implementation against the provided specification. We noted some minor discrepancies between the two. In the “Account Specs” section of the specification, account valu...
0