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 | initialization | true | false | ## High: Cash-out from a successful buyout allows an attacker to drain Ether from the `Buyout` contract
### Description
_Submitted by berndartmueller, also found by 0xA5DF, 0xsanson, 0xSky, cccz, cryptphi, ElKu, hansfriese, jonatascm, kenzo, Kumpa, minhquanym, s3cunda, shenwilly, smiling_heretic, Treasure-Seeker, ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `public` functions to `external`
### Description
External call cost is less expensive than of public functions.
Contracts [are allowed](https://docs.soliditylang.org/en/latest/contracts.html#function-overriding) to override their parents’ functions and change the visibility from `external` to `public`.
The fol... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Strategists can take more rewards than they should using the function strategistBootyClaim().
### Description
_Submitted by hansfriese, also found by oyc_109, xiaoming90, kenzo, Kumpa, unforgiven, MiloTruck, and pauliax_
Strategists can take more rewards than they should using the function strategistBootyC... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `bEth` Rewards May Be Depleted By Flashloans or Whales
### Description
Rewards are dispersed to users as a percentage of the user's balance vs total balance (of `bEth`). Rewards are accumulated each time a user calls `execute_decrease_balance()`, `execute_increase_balance()` or `execute_claim_rewards()` 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... | solodit_api | high | access-control | true | true | Source: https://github.com/sherlock-audit/2024-01-telcoin-judging/issues/16
## Found by
Aamirusmani1552, Arz, DMoore, IvanFitro, VAD37, fibonacci, ggg\_ttt\_hhh, ravikiran.web3, sakshamguruji, zzykxx
## Summary
The `StakingRewardsManager::topUp(...)` contract exhibits an issue where the specified `StakingRewards` c... | Sherlock | 5 | Telcoin Platform Audit |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Confusing naming for chains with non-ETH native currency
### Description
In code you use function `_weth()` to get address of wrapped ERC20 of native currency. Also functions like `_swapExactEthForTokensV_X()` and `_swapExactTokensForEthV_X()`.
Problem is that protocol is supposed to deploy on different chain... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: A comment about the node operator count
### Description
There is a comment about the node operator count but there is no functionality related to it at the line:
https://github.com/lidofinance/lido-dao/blob/801d3e854efb33ff33a59fe51187e187047a6be2/contracts/0.4.24/nos/NodeOperatorsRegistry.sol#L23
Only manual ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Solidity Coding Style Guideline Violations ✓ Fixed
### Description
Following the [Solidity Style Guide](https://docs.soliditylang.org/en/latest/style-guide.html) wherever possible is advisable, especially when it comes to [variable name conventions](https://docs.soliditylang.org/en/latest/style-guide.html#loca... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | Denial-Of-Service | false | true | _Submitted by kirk-baird, also found by hyh and Ruhum_
When the value of `currentWindow` is raised sufficiently high `Splitter.claimForAllWindows()` will not be able to be called due to the block gas limit.
`currentWindow` can only ever be incremented and thus will always increase. This value will naturally increase ... | Code4rena | 4 | Joyn |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Oracle Updates Are Vulnerable to Sandwich Attacks
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `3afeff0f397341e6746941897be228378090cbc3`. The client provided the following explanation:
> The cooldown period enforces a minimum time between deposit and withdrawal,\npreventing 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 | low | access-control | true | false | ## Low: Vesting Parameters Can Be Changed After Vesting Starts
### Description
The `setTime()` function only validates that the new `_startTime` is in the future, but does not check whether vesting has already commenced with the current stored `startTime`. This allows the owner to modify vesting parameters after users... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | overflow | false | false | ## High: Over Claim Due To Uncapped Periods Passed
### Description
## Keeper::calculateClaimableFunds
`keeper::calculateClaimableFunds` calculates and distributes funds to a recipient based on a budget, which is divided into several tranches, each with a specific period. Each tranche represents an allocation of funds... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [6] Two Steps Verification before Transferring Ownership
### Description
The following contracts have a function that allows them an admin to change it to a different address. If the admin accidentally uses an invalid address for which they do not have the private key, then the system gets locked.
It is impor... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Makers can sign (or be tricked into signing) collection of orders (using the merkle tree mechanism) that cannot be entirely canceled.
### Description
All user-facing order execution endpoints of the protocol check whether the order hash is included in the merkle tree data provided by the caller. If it is, the ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Unused legacy function `LibTokenSilo::calculateStalkFromStemAndBdv` can be removed
### Description
As [stated](https://github.com/BeanstalkFarms/Beanstalk/blob/c7a20e56a0a6659c09314a877b440198eff0cd81/protocol/contracts/beanstalk/silo/ConvertFacet.sol#L205-L207) in `ConvertFacet::_depositTokensForConvert`, 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 | liquidation | false | false | ## Low: Compound Empty Market Vulnerability
### Description
**Update**
The client acknowledged the issue and provided the following explanation:
> As we usually do mintBehalf immediately after we call _supportMarket. To provide initial liquidity to the new markets and make sure the similar scenario is not hit.
**Des... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: Misleading Comments [core and samples]
### Description
The following misleading comments were identified:
* [This comment](https://github.com/eth-infinitism/account-abstraction/blob/9879c931ce92f0bee1bca1d1b1352eeb98b9a120/contracts/interfaces/IStakeManager.sol#L40) is incorrect now that deposits occupy 256 ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 can drain the protocol tokens
### Description
There is no verification of the `pool` address passed by makers. This allows users to pass malicious `pool` address to the newMaker() function, and steal all the tokens present in the contract via calling the `uniswapV3MintCallback` function. This causes... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unsorted Steps in SteppedRate Can Lead to Incorrect Fee Calculation
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `139ee12335f61851d7cbf540a4b56c80622c911f`.
**File(s) affected:**`daml/splice-amulet/daml/Splice/Fees.daml`
**Description:** The `SteppedRate` struct and its associate... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: WrappedVault share transfers results in stuck funds
### Description
Only the `wrappedVault` is allowed to lend and withdraw assets to/from the Dahlia lending contract. Users can interact with `wrappedVault` through its deposit and withdraw functions. When a user deposits assets into `wrappedVault`, they are 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 | liquidation | false | false | ## Medium: A liquidator can gain not only collateral, but also can reduce his own debt!
### Description
A liquidator can gain not only collateral, but also can reduce his own debt.
This is achieved by taking advantage of the following vulnerability of the ``liquidate()``:
it has a rounding down precision error and 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 | high | front-running | false | false | ## High: Insufficient Block Size Check
### Description
## MEV Lane and Block Size Limits
When checking transaction sizes against block size limits, the MEV lane does not consider that bundled transactions will be unpacked in `prepareProposal` and included twice in the block proposal. Thus, it underestimates the total... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Zero Address and ERC165 Interface Checks in Initializer
### Description
The `initialize` function does not perform zero address validation or check for ERC165 interface compliance for the provided contract addresses (`_usdc`, `_weth`, `_uniswapRouter`, `_priceFeed`). This omission can lead to the initi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Test Case Implementation
### Description
## Audit Findings
Over the course of the audit, several instances were identified where functions failed to update an object, or conditions that consistently evaluated to false. Additionally, multiple cases were found concerning missing verifications and a lack of chec... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | reentrancy | true | false | ## High: Reentrancy issue with the `withdraw` method of USDC. All tokens could be drained.
### Description
### Impact
High: All USDC tokens could be drained from the protocol.
### Proof of Concept
There is a reentrancy issue with the 'withdraw' methods of USDC.
A user could call either of the external withdraw fun... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Missing Validation of receiver in AggregatedSwapRouter ✓ Fixed
### Description
In the following functions:
* `swap`
* `defiSwap`
* `defiSwapForEth`
* `swapForEth`
* `defiSwapFromEth`
* `swapFromEth`
there is no validation to ensure that the `receiver` address is not the zero address, the `_CallSwapTool` ad... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: Nuisance gas proportional to code size is charged unnecessarily when changing an account
### Description
Within the `_checkAccountChange` function of the `OVM_ExecutionManager` contract, nuisance gas is [charged proportional to the code size of the account](https://github.com/ben-chain/contracts-v2/blob/a935e2... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Spec mismatch for ERC20Permit string name
### Description
The `name` is used in ERC4626, ERC20, and ERC20Permit, out of which its function override solves for ERC4626 and ERC20. However, in the EIP712 contract, the name is immutable.
From the EIP712 specification:
> `string name` - the user-readable name 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 | high | storage | true | false | ## High: Anyone can sell other users' tokens as `fromToken`, and get the `toToken`'s themselves due to `decodeData.payer` is never checked.
### Description
Anyone can sell other users' tokens as `fromToken`, and get the `toToken`'s themselves due to `decodeData.payer` is never checked.
### Impact
An attacker can sell... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | true | true | ## Low: Overwriting an existing attestation by an expired one may be possible under certain cir- cumstances
### Description
According to the comments in the AttestationIndexer contract, attestations should not be overwritten by expired or revoked ones. As per EAS, an attestation that expires at `block.timestamp` is de... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Deposit cap validation could cause unnecessary reverts
### Description
The `_executeDeposit`function in the `ExecuteDepositUtils` library calls the `MarketUtils.validatePoolAmountForDeposit` function if `priceImpactUsd`is greater than zero. However, if the pool's long token is near its deposit cap while 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 | other | true | false | ## Medium: No slippage control
### Description
-
### Impact
Loss of funds for the victims, as demonstrated in the report.
### 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... | cyfrin_structured | low | logic-error | true | false | ## Low: Upgradeable contracts missing _disableInitializers() in constructors
### Description
The following contracts are upgradeable but do not call `_disableInitializers()` in their constructors:
- `MintingAssetProvider`
- `AllowanceAssetProvider`
- `SecuritizeOnRamp`
- `MbpsFeeManager`
- `SecuritizeOffRamp`
- `Allow... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | true | false | ## High: static_validate_system_transaction missing EIP-155 chain ID validation
### Description
The function `static_validate_system_transaction` is missing chain ID validation. The only validation for `static_validate_system_transaction` is present in the following code block:
```rust
fn static_validate_system_trans... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Potential Markdown Injection in snap_notify ✓ Fixed
### Description
It should be noted that the `snap_notify` message is not protected against markdown injection. This vulnerability means that token names could potentially be used to inject malicious characters into the prompt. Since token names are currently ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing check in the `updateValset` function
### Description
[Gravity.sol#L276-L358](https://github.com/code-423n4/2022-05-cudos/blob/de39cf3cd1f1e1cf211819b06d4acf6a043acda0/solidity/contracts/Gravity.sol#L276-L358)
The `updateValset` function don't check that the sum of the powers of the new validators i... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | high | Wrong Math | true | false | ## Severity: High Risk
## Context
- `LienToken.sol#L376-L381`
- `AstariaRouter.sol#L516`
## Description
`params.lien.details.liquidationInitialAsk` (`Lnew`) is only compared to `params.amount` (`Anew`) whereas in `_appendStack` `newStack[j].lien.details.liquidationInitialAsk` (`Lj`) is compared to `potentialDebt`.
... | Spearbit | 5 | Astaria |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | oracle | true | false | ## Low: Some parts of the codebase contain unreachable code
### Description
Some branches are hard-coded with constants: for example, in the following case `SLOW_ORACLE_UNISWAP_MODE` is hardcoded to false, so the first part of the branch can never execute.
*There is 1 instance of this issue.*
[[914-L930](https://gi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | true | false | ## Low: [19] Some errors from `contract.rs#L21-L41` are abandoned
### Description
https://github.com/code-423n4/2024-08-axelar-network/blob/69c4f2c3fcefb1b8eb2129af9c3685a44ae5b6fe/axelar-amplifier/interchain-token-service/src/contract.rs#L21-L41
These errors are used to propagate several wrong cases across the [Rus... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 events for critical actions
### Description
There are functions that don’t emit events.
### Impact
External users, frontend, or blockchain monitoring won’t announce for these critical functions. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Remove Sensitive Data On LocalStorage
### Description
## Sensitive Data Storage Concerns
The application stores sensitive data, such as `tensor.UserProfileToken.1` inside `LocalStorage`. However, this is not recommended as `LocalStorage` provides no data protection. Additionally, any JavaScript code on the we... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | DOS | true | false | ## Severity: Medium Risk
## Context
- OrderBook.sol#L791-L798
- OrderBook.sol#L804-L805
## Description
The `collectFees` function delivers the `quoteToken` part of fees as well as the `baseToken` part of fees atomically and simultaneously to both the DAO and the host. In case a single address is blacklisted (e.g., v... | Spearbit | 5 | CLOBER |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Making constant variables private will save gas during deployment
### Description
When constants are marked public, extra getter functions are created, increasing the deployment cost. Marking these functions private will decrease gas cost. One can still read these variables through the source code. If they nee... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Use custom errors rather than `revert()`/`require()` strings to save deployment gas
### Description
1. File: royalty-vault/contracts/RoyaltyVault.sol (Various lines throughout the [file](https://github.com/code-423n4/2022-03-joyn/blob/c9297ccd925ebb2c44dbc6eaa3effd8db5d2368a/royalty-vault/contracts/RoyaltyVau... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Remove unused functions
### Description
In current version of smart contract there are some functions which are not currently used.
https://github.com/CreamFi/compound-protocol/blob/23a4ae93adc70334553f5a83429a4e967c1eefaa/contracts/Comptroller.sol#L273
https://github.com/CreamFi/compound-protocol/blob/23a4ae9... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | ## Low: Miscellaneous Rocket Pool Contract Issues — Round Two
### Description
This section details miscellaneous findings discovered by the testing team in the subsequent round of testing that do not have direct security implications:
- The contract compilation process does not include an optimisation step. That is, ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: Missing address(0) checks
### Description
There are no checks for `address(0)` in the constructor of the Transfer contract, nor in the functions:
- `setSweeper()`
- `sweepETH()`
- `sweepETHAmount()`
- `sweepToken()`
- `sweepTokenAmount()`
of the Sweepable contract. Adding these checks could prevent misconfigu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: wrong amount of `sUSD` is used to open a short position in synthetix
### Description
per [OP `sUSD](https://optimistic.etherscan.io/token/0x8c6f28f2f1a3c87f0f938b96d27520d9751ec8d9#readContract) contract, the `sUSD` has 18 decimals
In the `liquidationType2()` the `amount` variable is the amount of ETH used... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Code Refactoring
### Description
## FillOrder Implementation Risks
In the current implementation of **FillOrder**, since the maker’s authority is delegated to a single **Baron Program Derived Address (PDA)**, there is a risk of utilizing the incorrect token account when the maker has multiple active orders. I... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | high | other | false | false | In the `LimitOrderHook` [contract](https://github.com/OpenZeppelin/uniswap-hooks/blob/087974776fb7285ec844ca090eab860bd8430a11/src/general/LimitOrderHook.sol), a limit order is [one](https://github.com/OpenZeppelin/uniswap-hooks/blob/087974776fb7285ec844ca090eab860bd8430a11/src/general/LimitOrderHook.sol#L228) `tickSpa... | OpenZeppelin | 5 | OpenZeppelin Uniswap Hooks v1.1.0 RC 1 Audit |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | token | true | false | ## Low: Difference between emitted events
### Description
`ERC20DAO::mintToken()` and `ERC20DAO::mintGTToAddress()` are both very identical in terms of their purpose. The first one mints governance tokens to a specified address while the latter mints governance tokens to multiple addresses. Thus, these functions are 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 | high | front-running | true | false | ## High: Decrease allowance when it is already set a non-zero value
### Description
Non-standard tokens like USDT will revert the transaction when a contract or a user tries to approve an allowance when the spender allowance is already set to a non-zero value. For that reason, the previous allowance should be decrease... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: First depositor can break minting of shares
### Description
**Severity**: High
**Status**: Resolved
**Description**
The first depositor of an TradingVaultV2 can maliciously manipulate the share price by depositing the lowest possible amount of liquidity and then artificially inflating the currentBalanceUSD... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unnecessary complexity around setup and use of the CSPRNG
### Description
The current codebase uses multiple CSPRNGs that subclass Bouncy Castle’s DRBG implementation and implement a custom re-seeding mechanism. The rationale for this is to have different security domains per CSPRNG and generate randomness suc... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 comment
### Description
**Description:**
The definition for `_uriSux`is mentioned incorrectly as `@param _uriSux The prefix string`
**Recommendations:** Change the comment as shown below:
`@param _uriSux The prefix string`
=> `@param _uriSux The sux string`. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | false | false | ## High: The owner will be able to remove the token in the case when the liquidity is not zero and when the owner will try to call the adminWithdraw() for the deleted token it would be impossible to withdraw that token from the contract balance.
### Description
**Re-audit**
The issue related to removing the supporte... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Replace Panics With Descriptive Errors
### Description
## Unwrapping Issue in Codebase
The codebase contains multiple instances of unwrapping, which may cause panics that are difficult for users to understand. For example, `token_add_bank` may cause a panic when invoked while the maximum number of banks have ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Avoid multiple divisions when calculating operatorRewards
### Description
## Severity: Medium Risk
## Context
River.1.sol#L277
## Description/Recommendation
In `_onEarnings`, we calculate the `sharesToMint` and `operatorRewards` by dividing two numbers. We can reduce the number of divisions to one and als... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | access-control | true | false | ## Low: `MbpsFeeManager::setFeePercentageMBPS` allows setting fee greater than max
### Description
`MbpsFeeManager::setFeePercentageMBPS` allows setting fee greater than max; recommend enforcing a maximum fee percentage eg:
```diff
contract MbpsFeeManager is IFeeManager, BaseContract {
uint256 public constant FEE_... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | true | false | ## High: Burning does not update reserves
### Description
_Submitted by cmichel, also found by 0xsanson, broccoli, and pauliax_
The `ConcentratedLiquidityPool.burn` function sends out `amount0`/`amount1` tokens but only updates the reserves by decreasing it by the **fees of these amounts**.
This leads to the pool 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 | high | liquidation | false | false | ## High: Changing USDE Gas Compensation Causes Discrepancy Between Trove ICRs and TCR
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `6c74c1716105a6b9bf25db1b19c35a6fc8a6a243`. The client provided the following explanation:
> GasPool mint or burn when USDE_GAS_COMPENSATION be updated.
**Fi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: RocketTokenRPL.swapTokens gas savings
### Description
Redundant checks in `swapToken` can lead to increased gas costs for the function call. Although these checks provide more user-friendly error messages, many are performed as part of the base `rplFixedSupplyContract`, making them redundant since they are 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 | low | initialization | true | false | ## Low: Pool initialization is unprotected
### Description
The Yield Pool contract implements a simple initialization system that can be abused by any user. The Pool contract needs to be initialized using an `init` function:
```solidity
/// @dev Mint initial liquidity tokens.
/// The liquidity provider needs to have ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: Unused variables
### Description
Some errors and constants aren't used in the codebase.
```solidity
File: Errors.sol
11: error InvalidParameter(string parameter, string reason);
38: error OnlyForwarder(address sender, address forwarder);
79: error InvalidLiquidationReward(uint128 liquidationFeeUsd... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Don't cache `calldata` array length
### Description
**Description:** When looping through an array passed as `calldata`, it is more [efficient](https://x.com/DevDacian/status/1791490921881903468) to not cache the array length.
**Bima:**
Fixed in commits [4b3ae20](https://github.com/Bima-Labs/bima-v1-core/comm... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Emission rewards will keep accruing even the yield strategy is empty
### Description
When there are no depositors in the yield strategy, emission rewards should stop accruing. However, the current implementation incorrectly assumes that effectiveSupply will never be zero its minimum value is hardcoded to 1e... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: No incentive to liquidate when `CR <= 1` as asset received `<` dyad burned
### Description
Right now there are no incentives to liquidate a position with a `CR If the `CR Looks like a systematic risk. If CR drops below 100 before it gets liquidated, there is a much bigger problem.
**[Infect3d (warden) com... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The available values in premiumOptions[] & strikeOptions[] are too restrictive
### Description
To reduce gas and storage, the protocol has currently designed to store the index of the premiumOptions[] & strikeOptions[] in the Vault structure.
### Impact
This is too restrictive and may not be future proof.
##... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Permission checks will unnecessarily consume Limited uses
### Description
When a permission check is done with [`ado_contract/permissioning.rs::is_permissioned()`](https://github.com/sherlock-audit/2024-05-andromeda-ado/blob/main/andromeda-core/packages/std/src/ado_contract/permissioning.rs#L43-L91) on a Li... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Use of hard-coded addresses may cause errors
### Description
Each contract needs contract addresses in order to be integrated into other protocols and systems. These addresses are currently hard-coded, which may cause errors and result in the codebase’s deployment with an incorrect asset.
```solidity
address ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | oracle | false | false | ## High: Redemption value of synths can be manipulated to drain VaderPool of all native assets
### Description
## Handle
TomFrench
## Vulnerability details
## Impact
Draining of funds from `VaderPool`
## Proof of Concept
See the `VaderPool.mintSynth` function:
https://github.com/code-423n4/2021-11-vader/blob/60... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: self-lending does not work with paired tokens that have a transfer tax because addLiquidityV2 does not account for fee-on-transfer on the PAIRED_LP_TOKEN
### Description
`addLiquidityV2` transfers PAIRED_LP_TOKEN and pTKN from the address that wants to add liquidity. The issue, however, is that the PAIRED_L... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Division by zero is possible
### Description
At the lines below division by zero is possible:
- https://github.com/sushiswap/bentobox/blob/c2e150b16b8764ebfe2e1e6e267ae14e10738065/contracts/LendingPair.sol#L227, the variable `_totalBorrow.fraction` can be equal to zero.
- https://github.com/sushiswap/bent... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: rpc::token_withdraw() cannot be executed due to insufficient valid_arg_keys
### Description
In the function `rpc::token_withdraw()`, the required arguments, validated with `assign_arguments`, are `address` and `amount` (refer to line 168 of `rpc.rs`). However, the code also accesses the keys `receiver` and `toke... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Introduction of Global Referrer Fees Leads to Unexpected Reverts And Inability to Create Certain Positions
### Description
The vulnerability is located in the `openPositions()` function, where the introduction of global referrer fees leads to incorrect fee calculations and unexpected behaviors. The 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 | medium | initialization | true | false | ## Medium: BondBaseSDA.setDefaults doesn't validate inputs
### Description
BondBaseSDA.setDefaults doesn't validate inputs which can lead to initializing new markets incorrectly
### Impact
Can't create new market or market logic will be not working as designed.
### Recommendation
Add input validation. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `DEPOSITOR_ROLE` can manipulate `b.amount` value
### Description
_Submitted by rfa, also found by Omik_
[BribeVault.sol#L187](https://github.com/code-423n4/2022-02-redacted-cartel/blob/main/contracts/BribeVault.sol#L187)
Malicious `DEPOSITOR_ROLE` can doing self transfer and manipulate `b.amount`
### 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 | access-control | false | false | ## Low: Privileged Roles and Ownership
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation:
> The governor privileges of SolvVaultGuardian will be determined through a multi-signature or voting process, followed by a Timelock, and then the Guardian's 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 | other | false | false | ## Low: Incorrect event name breaks ERC7572 compliance
### Description
ERC-7572 states that the `ContractURIUpdated()` event SHOULD be emitted on updates to the contract metadata for off-chain indexers to query the contract.
However, the event name is incorrectly named `ContractURISet()` which also incorrectly includ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Function transferJoinEvent Permits Transfer-to-Self
### Description
Though the error code indicates the opposite intent, this check will permit transfer-to-self (`||` used instead of `&&`).
### Recommendation
Use `&&` instead 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 | high | initialization | true | false | ## High: Initial pool deposit can be stolen
### Description
_Submitted by cmichel, also found by WatchPug_
Note that the `PoolTemplate.initialize` function, called when creating a market with `Factory.createMarket`, calls a vault function to transfer an initial deposit amount (`conditions[1]`) *from* the initial depo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Fee-on-Transfer tokens cause problems in multiple places
### Description
The protocol is designed to ensure it is compatible with fee-on-transfer tokens (Fee-on-transfer is in scope). For example, the `erc20TransferInLiquidity()` function checks the balance before and after, and calculates the difference 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 | token | false | false | ## Low: Lack of solhint To Ignore Warnings
### Description
Context: [OwnerProxy.sol#L21-L36](https://github.com/code-423n4/2022-06-nested/blob/main/contracts/governance/OwnerProxy.sol#L21-L36), [OperatorScripts.sol#L58-L60](https://github.com/code-423n4/2022-06-nested/blob/main/contracts/governance/scripts/OperatorScr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | token | true | false | ## Low: Use named mappings
### Description
Use named mappings to explicity indicate purpose of index => value:
```solidity
MTokenMessager.sol
16: mapping(uint64 => mapping(address => bool)) public allowedPeer;
// mapping(uint64 chainSelector => mapping(address messager => bool allowed)) public allowedPeer;
MTo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Limit Clarification
### Description
## Withdraw Single Deposit to L2
In the `NatSpec` for `withdrawSingleDepositToL2`, the comment regarding `minGasLimit` should clarify that this parameter sets the minimum gas limit for each withdrawal transaction. This ensures that every withdrawal has sufficient gas to exe... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | token | true | false | ## Low: Deposit limit bypass due to not accounting for strategy allocations
### Description
_Resolved_
The `getAssetCurrentLimit()` function in the `ElytraDepositPoolV1` contract is intended to enforce a maximum deposit limit for each asset by returning the remaining capacity for new deposits. However, the current im... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | signature | true | false | ## Medium: The gracePeriod_ parameter in the requestLoan function of the LoanManager can be set indefinitely allowing the attacker to protect themselves from defaults if funded
### Description
**Severity**: Low
**Status**: Acknowledged
**Location**: LoanManager.sol#requestLoan
**Description**:
The requestLoan fun... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | signature | true | false | ## Low: Unused code/features
### Description
The Arkis smart contracts contain several unused functions and features that should be removed from the project.
1. The nonce logic used in `AccountFactoryRepository`, shown in Figure 13.1, is unused and can be safely removed.
```solidity
function getAndIncrementNonce(... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: | Same Short and Long Token
### Description
**Description**
When creating a new market, nothing prevents the long token from being set to the same address as the short token.
In such a case, deposits would double count the funds you are sending to the pool. Since the creation of markets will eventually 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 | true | false | ## Low: USE OF `BYTES.CONCAT()` INSTEAD OF ABI.ENCODEPACKED()
### Description
Since version 0.8.4 for appending bytes, [bytes.concat()](https://docs.soliditylang.org/en/v0.8.19/types.html#bytes-concat) can be used instead of `abi.encodePacked()`.
### 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 | false | false | ## High: Adversary can break any bounty they wish by depositing an NFT then refunding it
### Description
Refunding an NFT doesn't remove the nftDeposit so the contract will try to payout an NFT it doesn't have if the NFT has been refunded.
### Impact
Adversary can permanently break payouts on any bounty
### 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 | high | token | true | false | ## High: There is no refund mechanism in `ChakraSettlement.processCrossChainCallback` or `ChakraSettlementHandler.receive_cross_chain_callback` function
### Description
### Impact
Because there is no refund mechanism in the `ChakraSettlement.processCrossChainCallback` or `ChakraSettlementHandler.receive_cross_chain_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 | access-control | false | false | ## Low: Missing Validation for Execution Function in `SessionKeyPermissionsPlugin` Hooks
### Description
**Update**
A selector check has been added as recommended. Fixed in commits `540b0e3884d1f3a315c4f9046c3af25b5d21fd76` and `617677a0703da3107e5980c89162eb510254ae16`.
**Update**
For the second part of our recomme... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Uncalled public functions
### Description
**Severity**: Informational
**Status**: Resolved
**Description**
Public functions that are never called from within the contract should be marked as external.
NarwhalPool.setTokenWhitelisted
NarwhalPool.setWithdrawTimelockEnabled
NarwhalPool.getUserTokenBalance
Narw... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | cross-chain | false | false | ## High: Malicious Owner Can Mint Wrapped BTC From Arbitrary Bitcoin Transactions
### Description
To submit a PEG-IN transaction, a user needs to call the bridge's off-chain component to create a PEG-IN request. For valid requests, the bridge server will return a unique Bitcoin address that represents a multisig addre... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: WstEth.wrap expects stETH amount instead of ETH amount
### Description
The *ethToWstEth* function passes in the ETH amount instead of the stETH amount into the *stethToWstEth* function. This could result in an incorrect amount in the unlikely event that stETH depegs from ETH.
```solidity
function _ethToWsteth... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | dos | false | false | ## Medium: TRST-M-5 Freezing of repaid debts can cause DoS when borrowing
### Description
**Description:**
When a debt is repaid, the repaid amount gets frozen via
`freezeBuckets.addToFreezeBuckets()`. In most scenarios, the repaid amount won’t be frozen
by the mint freezing mechanism since the amount of time that h... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: Events Are Not Emitted when State Is Changed
### Description
**Update**
Marked as "Fixed" by the client. More event emits are added following the recommendation. Addressed in: `014ca09fe06e4ba7607e4901b2e1a9a4a722ae50`.
**File(s) affected:**`contracts/registry/Registry.sol`, `contracts/fundlock/Fundlock.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 | other | false | false | ## Low: Image URL Not Validated
### Description
## handleImageUpdateEvent Vulnerability Overview
`handleImageUpdateEvent` updates the database with information from an event emitted on-chain. However, this information, such as the image URL, is not checked for validity. This lack of validation allows attackers to ins... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Face initialize can be called several times
### Description
It is not logical and potentially can cause misunderstanding and mistakes: https://github.com/pie-dao/ExperiPie/blob/0.0.2/contracts/facets/ERC20/ERC20Facet.sol#L16
### Recommendation
We suggest adding the following check:
```
require(!finalized, ... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.