prompt listlengths 2 2 | source stringclasses 3
values | severity stringclasses 5
values | category stringclasses 186
values | has_code bool 2
classes | has_poc bool 2
classes | reference_response stringlengths 23 5k | firm stringclasses 26
values | quality_score float64 0 5 | protocol stringclasses 398
values |
|---|---|---|---|---|---|---|---|---|---|
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | liquidation | true | false | ## Low: Liquidation bonus incorrectly inflates ```repayBorrowAmount``` instead of ```seizeUnderlyingCollateralAmount``` leading to wrong liquidations.
### Description
Report type: Smart Contract
Target: https://testnet.snowtrace.io/address/0xc1FBF54B25816B60ADF322d8A1eaCA37D9A50317
Impacts:
- Protocol insolvency
#... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Wrong amount of gas will be used in a certain case
### Description
Wrong amount of gas will be used in a certain case
### Impact
Incorrect gas consumption.
### Recommendation
Have an array of indices with the lowest gas report value and use the lowest gas value for each of them. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Griefing an account from getting votes delegated to it
### Description
Report type: Smart Contract
Target: https://github.com/alchemix-finance/alchemix-v2-dao/blob/main/src/VotingEscrow.sol
Impacts:
- Griefing (e.g. no profit motive for an attacker, but damage to the users or the protocol)
## Descriptio... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Kubernetes security controls risk container escape
### Description
The Kubernetes deployment configuration in `charts/templates/deployment.yaml` lacks essential security controls, creating multiple attack vectors that enable container escape, lateral movement within the cluster, and resource abuse. 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 | other | false | false | ## Low: Missing Check that PrimePoolId Is a Valid poolId
### Description
A valid `poolId` for a token must be less than the length of the `poolInfos` array for a particular `rewardToken` . A prime `poolId` should also match a pre-existing `poolId`, so this condition should also be true for Prime pools. However, 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 | reentrancy | false | false | ## Medium: `_depositAmount` requires to be updated to contract balance increase
### Description
_Submitted by MaratCerby, also found by berndartmueller, cccz, CertoraInc, IllIllI, and reassor_
[AaveV3YieldSource.sol#L231-L242](https://github.com/pooltogether/aave-v3-yield-source/blob/e63d1b0e396a5bce89f093630c282ca1c... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Donation fees are sandwichable in one transaction
### Description
Doesn't matters if MEV is openly possible in the chain, when eevr a user does actions like `liquidateProtectedListing`, `cancelListing`, `modifyListings`, `fillListings`, `Reserve` and `Relist`. They can sandwich the fees donation to make profi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Slashing during `LSTCalculatorBase.sol` deployment can show bad apr for months
### Description
Source: https://github.com/sherlock-audit/2023-06-tokemak-judging/issues/824
## Found by
carrotsmuggler, saidam017, xiaoming90
Slashing during `LSTCalculatorBase.sol` deployment can show bad apr for months
##... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | ## High: Payers exploit `reentrantSettle` to bypass payments with self-transfers
### Description
The `reentrantSettle` function in RFTLib contains a vulnerability that allows malicious contracts to implement the `IRFTPayer` interface to completely avoid payment obligations. The vulnerability is from how the function 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 | false | false | ## Low: Missing Docstrings
### Description
Within the scope, there are two instances where docstrings are missing:
* The `_previousBlockTimestamp` parameter is not documented for the [`_verifyBlockTimestamp` function](https://github.com/matter-labs/zksync-2-contracts/blob/661a11ca86e56fa6f7e237511fb5adfe456aa00b/eth... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Signature is replayable
### Description
**Severity**: Medium
**Status**: Resolved
**Description**
WalletAccount.sol - Function `validateUserOp()` (i.e. in BaseAccount.sol) is susceptible to replay attacks. A rogue caller is able because of this vulnerability to reuse an already executed signature to auth... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Potential Lost Funds when Depositing ETH and Converting to sDAI Principal
### Description
**Update**
Marked as "Fixed" by the client. The relevant flow is now reverting. Addressed in: `04fdedacc1e7037a77ac58a934680b3bc32e9cfa`.
**File(s) affected:**`SophonFarming.sol`
**Description:** With the `depositEth()... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Changing the Reward Pool Ratios Can Lead to Locked Funds
### Description
**Update**
The team has fixed the issue by following the recommendation to update both ratios in the functions.
**File(s) affected:**`rewards/VaultRewardDistributor.sol`
**Description:**`distribute()` assumes that `supplyRewardPoolRa... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [02] Unnecessary check in `RuniverseLand.forwardERC20s`
### Description
The check `address(msg.sender) != address(0)` in `forwardERC20s` is not necessary because this function is only callble by the owner and `msg.sender` cannot be `address(0)` (or it could be in theory, but no one has the private key for `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 | high | initialization | false | false | ## High: partial_sha256_var_start With Message Sizes Not Multiple of BLOCK_SIZE Gives Same h State for Different Data
### Description
The `partial_sha256_var_start` function is designed to hash the initial part of a message and return a hash state `h`. This hash state can then be used with `partial_sha256_var_intersti... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: TRST-L-1 when using fee-on-transfer tokens in VaultV3, capacity is limited below underlyingCap
### Description
**Description:**
Vault V3 documentation states it accounts properly for fee-on-transfer tokens. It calculates
actual transferred amount as below:
A small issue is that underlyingCap is compared to t... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | rounding | false | false | ## Low: Unused events
### Description
The `UnifiedRouterV2` contract includes an unused event, `PoolAdapterSet`, which is not emitted when the operator sets the pool adapter.
https://github.com/eywa-protocol/eywa-clp/blob/d68ba027ff19e927d64de123b2b02f15a43f8214/contracts/UnifiedRouterV2.sol#L12
In the `DifferentDec... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Solidity compiler optimizations can be problematic
### Description
Protocol has enabled optional compiler optimizations in Solidity.
There have been several optimization bugs with security implications. Moreover, optimizations are actively being developed. Solidity compiler optimizations are disabled by defau... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: State Inaccuracies During External Calls in `ProtocolShareReserve.releaseFunds()`
### Description
**Update**
The client has acknowledged the issue and commented: "Right now destination contracts don't read the state of the ProtocolShareReserve in the updateAssetState function".
**File(s) affected:**`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 | low | access-control | false | false | ## Low: Excessive linux permissions on directories
### Description
There are unnecessary write permissions given to `+g` and `+o`.
### Recommendation
Reduce directory permissions from `777` to `755` to avoid other users writing onto those directories. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unbound RLP Length Encoding
### Description
The [`RLPEncoder` library](https://github.com/matter-labs/system-contracts/blob/4ad1f26ae205d5a973216d141833e0ac37d72ec8/contracts/libraries/RLPEncoder.sol) allows the encoding of bytes and list-type values. These dynamic types need to be prefixed to indicate the ty... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | liquidation | true | false | ## Low: Aave incentives will be locked
### Description
Aave provides **Incentives** (e.g., staking rewards or liquidity mining rewards, seeing here: ) to users who supply assets to the protocol. These incentives are typically distributed in the form of additional tokens (e.g., AAVE or other governance tokens) and can ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | access-control | true | false | ## Medium: `VaultController()` Missing call `DeploymentController.nominateNewDependencyOwner()`
### Description
Unable to switch to a new deploymentController.
### Proof of Concept
The current protocol supports the replacement of the new DeploymentController, which can be switched by `VaultController.setDeploymentCo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Contracts Pause Feature Missing
### Description
It was identified that no high-privileged user can pause any of the scoped contracts. In the event of a security incident, the owner would not be able to stop any plausible malicious actions. Pausing the contract can also lead to more considered decisions.
### 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 | low | liquidation | true | false | ## Low: No Possibility to Close Liquidated Trade
### Description
When a trade is liquidated, GMX doesn't send any callback. The position in Pear is still visible as open, however, no action can be done for it, because of checks for `0` positions. The position can't be increased, because the fee calculated based on 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 | access-control | false | false | ## Low: Redundant Modifier Invocation in Withdraw Functions
### Description
**Severity**: Informational
**Status**: Resolved
**Description**
The `onlyOwner` modifier is invoked twice in `withdrawBalance` and `withdraw` functions, leading to inefficiency in the smart contract. Both functions perform a similar check ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Caching In Simapp Setting
### Description
## Issue Summary
The issue pertains to the caching mechanism used in `getOnChainPrice` within the `DeltaCurrencyPairStrategy`. This caching mechanism leads to inconsistencies between the validator and non-validator nodes due to the order in which prices a... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: Global userData definition inconveniences parsing and decoding
### Description
Severity: Low Risk
Context: IBatchRouter.sol#L47
Description: userData is defined as a global parameter, but it could be necessary to specify different userData
for each SwapPathStep , e.g: data that's parsed by pool hooks.
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 | initialization | true | false | ## High: JIT Compiler Divergence
### Description
## Syscall Instruction Handling in the Interpreter and JIT Compiler
When the interpreter encounters a syscall instruction, it will first create a mutable local variable initialized to `Ok(0)`. Once this is done, it will then load the start address of the requested syst... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Misleading comments
### Description
Comments are meant to be helpful and describe the intent of the code block. However, in multiple parts of the codebase, comments are not consistent with the code that is written or do not add any value to the reader. These are some examples:
* The function `_deposit` in bo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Mandatory checks for extra safety in the setters
### Description
In the folowing functions below, there are some checks that can be made in order to achieve more safe and efficient code.
Address zero check can be added in the functions `setClaimSignerAddress`, `setRabbitHoleReceiptContract` to ensure the new ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing pause mechanism prevents intended halting of core bridging functionality
### Description
The `GorplesCoin` contract inherits from OpenZeppelin's `PausableUpgradeable` contract and implements the `whenNotPaused` modifier in the `redeem()` and `bridge()` functions. However, the contract does not include ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [05] `redeemCustom` allows the use of the zero basket
### Description
The basket with nonce `#0` is an empty basket, `redeemCustom` allows to specify that basket for redemption, which will result in a loss for the redeemer. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: executeswapborrowratemode miss the natspec documentation of the new user parameter
### Description
The `executeSwapBorrowRateMode` function is missing the Natspec documentation for the new user parameter.
### Recommendation
Add the Natspec documentation for the new user parameter. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: DOS for removal of delegates
### Description
The delegation system on `vePeg.sol` has the feature that `MAX_DELEGATES` is a hardcoded value
On the other hand, users can create locks with only 1 wei LP because `_create_lock()` only has this check `require(_value > 0);`
Now, take this scenario:
Alice owns ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [N-02]
### Description
Use `uint8` for `decimals` in [QTokenStringUtils.sol#L142](https://github.com/code-423n4/2022-03-rolla/blob/efe4a3c1af8d77c5dfb5ba110c3507e67a061bdd/quant-protocol/contracts/options/QTokenStringUtils.sol#L142)
**[0xca11 (Rolla) confirmed, resolved, and commented](https://github.com/code... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Incorrect Condition in Function `currentAPY`
### Description
The issue was identified within the [`currentAPY`](https://github.com/dforce-network/OFT/blob/2ff5d7a8f9a509006557bf5de72fabf40d1138a5/src/USR.sol#L196-L199) function of the `USR` contract.
The condition checking if `block.timestamp` falls within th... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | logic | false | false | ## High: Improper Bid Trie Reference Causing Reserve Overstatement
### Description
This issue has been identified within the `_claimOrder` function of the `ProxyLOB` contract.
When `isAsk = false` (a bid), the final bit of the `orderId` indicates the relevant on-chain trie (bid trie expects a zero-ending bit). Howev... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: DisputeCrowdsourcer contract does not allow for the purchase of overload tokens once its size is filled
### Description
The `DisputeCrowdsourcer`‘s [`contribute`](https://github.com/AugurProject/augur/blob/9a33c3269e812d0cb66d49b61a72db58e32e4749/packages/augur-core/source/contracts/reporting/DisputeCrowdsour... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: State variables should be cached in stack variables rather than re-reading them from storage
### Description
The instances below point to the second+ access of a state variable within a function. Caching of a state variable replace each Gwarmaccess (**100 gas**) with a much cheaper stack read. Other less obvio... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Vault_Synths.sol code does not consider protocol exchange fee when evaluating the Collateral worth
### Description
Vault_Synths.sol code does not consider protocol fee.
### Impact
The collateral may be overvalued because the exchange does not count when evaluating the Collateral worth and result in bad deb... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Redeemer.setFee function will always revert
### Description
`Redeemer.setFee` function will always revert and will not give ability to change `feenominator`.
### Impact
Fee can't be changed.
### Recommendation
Add same functions as in `Lender`.
https://github.com/sherlock-audit/2022-10-illuminate/blob/mai... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect total supply calculated during admin fee withdrawal
### Description
In the LT contract, when the `withdraw_admin_fees` function is called, the `_calculate_values` function is executed to recalculate all liquidity values. During this calculation, the total supply can be reduced due to a token reduc... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Missing event for critical parameter change
### Description
*There are 13 instances of this issue:*
[See original submission](https://github.com/code-423n4/2022-05-rubicon-findings/issues/203) for details. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Transfer
### Description
**Severity** - Low
**Status** - Resolved
**Description**
The `rescue()` functionality is used to rescue mistakenly transferred funds to the contract and this function transfers the token to the owner, but the transfer used here is an unsafe one, i.e. the transfer returns a bo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | overflow | true | false | ## Gas: Unnecessary arithmetic validation within `AngstromL2::withdrawProtocolRevenue` can be removed
### Description
**Description:** `AngstromL2::withdrawProtocolRevenue` first validates whether `unclaimedProtocolRevenueInEther` is sufficient to cover a withdrawal of `amount` by the owner; however, this is not neces... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unexpected token divisibility issues on non-evm chains
### Description
The OrbitProxyOFT1_2 contract, which inherits from BaseOFTV2, uses a `_sharedDecimals` parameter in its constructor. However, this value is not explicitly set to accommodate potential differences in decimal places across various blockcha... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 bounds check in Read*Point functions
### Description
If `n` is an index, it should reject values equal to `g.SRSOrder`.
### Recommendation
Change `>` to `>=` in condition. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of input checks (withrawal penalties should always be greater than 0)
### Description
_Submitted by pedroais_
If penalties are set to 0 the protocol would be vulnerable to price manipulations like the one described in the contest documentation.
#### Proof of Concept
The protocol uses economic penalt... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: SPDX-License-Identifier isn’t used
### Description
**Description**
Contracts don’t have SPDX-License-Identifier
**Recommendation**:
Need to add SPDX-License-Identifier which you need. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | signature | false | false | ## High: Broken `NonceVoter` Allows Observer to Halt the Chain
### Description
As it is, `NonceVoter` does not count votes or perform any similar operations. A single observer can use it to change chain nonces. Although there is a comment pointing this function is deprecated, it critically influences the system with i... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | dos | false | false | ## Low: Potential Denial of Service and Gas Optimization
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `216bdbf94c1a0475bcf37b5c8937306614048d79`. The client provided the following explanation:
> Moved the PRIME transfer outside of the for loop
**File(s) affected:**`src/caching/PrimeCachi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: TRST-M-1 markLiquidationStatus() may cause the liquidator to lose premium
### Description
**Description:**
When the **debtRatioE18** of a position is greater than 1 and less than 1.03 (unmark), the
liquidator can call `markLiquidationStatus()` to accumulate **timeDiscountMultiplierE18** by
making **pos.st... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Upgradeability Concerns ✓ Fixed
### Description
**1- Using Standard Interfaces and Libraries instead of Upgradeable ones.**
**contracts/TokenBridge.sol:L5-L10**
```
import { IERC20Permit } from "@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol";
import { IERC20Metadata } from "@openzep... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: convictionless mapping is not used
### Description
## Handle
pauliax
## Vulnerability details
## Impact
convictionless can be set via function setConvictionless, however, it is not used anywhere across the system, thus making it useless. Based on the comment above this variable, I expect to see it used 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 | other | false | false | ## Low: Checks for curveAdjustmentFactor
### Description
Setting `curveAdjustmentFactor` does not have any checks. In case of very high numbers, it can cause free wearable purchases without fees.
Consider setting min and max limits for `curveAdjustmentFactor`. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | ## High: Uniswap v3 NFT flash claims may lead to undercollateralization
### Description
Flash claims enable users with collateralized NFTs to assume ownership of the underlying asset for the duration of a single transaction, with the condition that the NFT be returned at the end of the transaction. When used with typic... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Positions can not get liquidated when protocol is paused.
### Description
**Severity**: Medium
**Status**: Resolved
**Description**
When a position becomes unhealthy a user can call `increasePosition()` within the `TradeFacet.sol`smart contract to pay the debt. However, this `increasePosition()` calls 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 | false | false | ## Low: Forwarding the `entityId` to the (Un-)Installation Callbacks
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation:
> Acknowledged. We’ll keep the current interface as is for ecosystem alignment and since there may not be a single entity ID to pass 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 | liquidation | true | false | ## Low: Accumulated fee may be lost
### Description
In the function `_takeFee()`, when the interest is 0, it is reset directly.
```solidity
function _takeFee(IPocket pocket, address user, uint96 pocketId) internal {
uint256 interest = outstandingInterestOf(user, pocketId);
uint256 collateral = collateralOf(user,... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | cross-chain | false | false | ## Low: Users can use transfer and bridging to evade having their tokens frozen via the blocklist
### Description
**Description:** One unconventional application of regular transfers or cross-chain transfers via CCIP / LayerZero bridging is to evade the blocklist:
* user sees operator call to `MToken::addToBlockedList... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | false | ## Low: Flash loan (`flash()`) reverts when requested amount exceeds available token balances
### Description
In the flash loan function, the transaction will revert if the requested amount of token0 or token1 exceeds the available balance held by the contract.
https://github.com/code-423n4/2024-10-ramses-exchange/... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: callRestricted is disabled by default
### Description
The `_call` function is used to call other contracts on behalf of the Controller. The function’s `onlyWhitelistedCallee` modifier prevents it from calling contracts not meant to be called:
```solidity
function _call(Actions.CallArgs memory _args)
inte... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Weak signature validation in account activation
### Description
**Description:** The `WorldLibertyFinancialV2::activateAccount` function uses a simple hash of the account address for signature validation instead of following EIP-712 standards.
While the contract initializes EIP-712 infrastructure during setup... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: No way of removing Fraudulent Roots
### Description
## Severity: High Risk
**Context:** RootManager.sol#L1
**Description:** Fraudulent Roots cannot be removed once fraud is detected by the Watcher. This means that Fraud Roots will be propagated to each chain.
**Recommendation:** Create a new method (callab... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Duplication of Balance
### Description
It is possible to duplicate currently held `ink` or `art` within a Cauldron, thereby breaking the contract's accounting system and minting units out of thin air.
The `stir` function of the `Cauldron`, which can be invoked via a `Ladle` operation, caches balances in memo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Router's `complexPath` percentagePaths don't work as expected
### Description
_Submitted by cmichel_
The `TridentRouter.complexPath` function allows splitting a trade result into several buckets and trade them in a different pool each.
The distribution is defined by the `params.percentagePath[i].balancePer... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | false | false | ## Medium: EXECUTOR has a full write access to the wallet storage
### Description
EXECUTOR has a write access to any storage slots vie the executeShortcut function and delegatecall to a specially crafted library. This allows to trigger
transfer/renounce of the OWNER address and other unintended actions.
https://github... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 lows for mocks
### Description
The `WStETHMock.wrap` function should return `wstETHAmount`, but returns a received `stETHAmount_` variable. This inconsistency with the original function can cause issues with test improvements.
### Impact
Inconsistency with the original function case issues with test improve... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | storage | false | false | ## Gas: Structs can be packed to use fewer storage slots
### Description
The EVM works with 32 byte words. Variables less than 32 bytes can be declared next to each other in storage and this will pack the values together into a single 32 byte storage slot (if values combined are <= 32 bytes). If the variables packed t... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: Timestamp Logic Flaws in Snap’s Caching Mechanism ✓ Fixed
### Description
The Snap employs a custom wrapper around its storage, incorporating a caching mechanism to optimize performance by updating the Snap’s storage only when necessary. This caching strategy uses a timestamp-based method, maintaining recor... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Empty Leaf Nodes Map to Non-Zero Commitments
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation:
> It is theoretically possible to construct pre-image that gives hash(0), since hash(0) will be publicly known. How are we saved when we introduce hash... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Non-EIP-712 compliant message signing in the adapters
### Description
The USDC Bridge Adapters use a non-EIP-712 compliant method for message signing. The current implementation hashes the message data directly and then applies the Ethereum signed message hash, rather than using the structured data hashing def... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: In contract BaseToken, gov address has too much power and controls most critical functions such as setting handler, adding and removing admins, toggling private mode, and setting token info.
### Description
**Severity** : Low
**Status**: Unresolved
**Recommendation**:
It is recommended that the gov addres... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Incorrect JWT Payload
### Description
## JWT Payload Vulnerability
The vulnerability is related to a potential issue in parsing JSON-like content within the JWT’s payload. Specifically, it arises from the fact that the `ExtendedClaimParser` template does not perform full JSON validation, including checking 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 | dos | false | false | ## Low: Prizes need upper bound to prevent `configureRarity` going OOG
### Description
_Resolved_
Prizes for a rarity pool can be added using `addPrize()` and currently there is no upper limit to the prizes that can be added for a rarity pool , due to this the function `configureRarity()` might go out of gas when it ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | cross-chain | true | false | ## Low: Inconsistent error handling for empty data
### Description
**Description:** In `_getSelector()`, when data is empty, it returns `0xEEEEEEEE` which is not a standard practice.
**Impact:** Potentially unexpected return values confusing functions interacting with the `_getSelector` function.
**Recommended Miti... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | dos | false | false | ## High: Malicious Backend candidate can exploit submitted url for phishing or denial of service.
### Description
An incorrect update schema allows attackers to temporarily steal the Backend url destination, leading to denial of service for phishing campaigns. `getBackendUrl` returns the URL of Backend’s website, as s... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Some assets may be locked in the contract if treasury is address(0)
### Description
_Resolved_
When we end one round, we will calculate the fee. And based on current logic, we will transfer the treasury fee to the treasury address if the treasury address is not address(0).
The problem here is that if the tr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | high | other | false | false | ## High: Using the underlying price instead of the perp price can cause problems
### 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:
The mark price is 1... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | overflow | false | false | ## Low: Desirable underflow / overflow in `BaseV1Pair`
### Description
* [BaseV1-core.sol:160-161](https://github.com/Plex-Engineer/lending-market-v2/blob/443a8c0fed3c5018e95f3881a31b81a555c42b2d/contracts/Stableswap/BaseV1-core.sol#L160-L161)
* [BaseV1-core.sol:186-187](https://github.com/Plex-Engineer/lending-mark... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | storage | true | false | ## Medium: Incorrect check inside `CLGauge.claimFees`
### Description
Inside `CLGauge.claimFees`, it will call `pool.collectFees` and if returned `claimed0` and `claimed1` is greater than 0, it will consider it as fees.
```solidity
function _claimFees() internal returns (uint claimed0, uint claimed1) {
if (!isFor... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 a gas check in the wrap operation handler
### Description
The lack of a gas check in the wrap operation handler of the SYMinter contract allows users to send just enough gas to increase the `total_supply` but not increase the receiver’s SY token balance by triggering an out-of-gas error in the SYWallet... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | upgrade | true | false | ## Low: In `tokenURI` avoid copying entire `_tokenURIs[tokenId]` from `storage` into `memory`
### Description
`tokenURI` only uses the "pinned" URI index so there's no reason to copy both token URIs from `storage` to `memory`. Simply use a `storage` reference like this:
```diff
function tokenURI(uint256 tokenId)
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Admin Can Set Arbitrary Withdrawal Fee Rate
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation:
> We will mitigate this issue in next update by setting a hard limit (possibly like 5%).
**File(s) affected:**`/programs/restaking/src/modules/fund/upd... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | Reentrancy | true | true | ## Handle
cmichel
## Vulnerability details
Note that the `Basket` contract approved the `Auction` contract with all tokens and the `settleAuction` function allows the auction bonder to transfer all funds out of the basket to themselves.
The only limiting factor is the check afterwards that needs to be abided by. It... | Code4rena | 5 | Kuiper |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Vault.settle(account=coordinator) will lose profitShares
### Description
`Vault.settle()` turns a portion of the profit into `profitShares` for `coordinator`.
Use method `_credit()` to save `profitShares` to `storage`. But it doesn't update the memory variable `context.local.shares`.
It doesn't take into ac... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: INADEQUATE TRACKING OF SWAPPED AMOUNTS
### Description
The `swap_denom` function in the **swap-extension/swap\_sparrow** contract updates the values of `swap_info.total_amount_in` and `swap_info.total_amount_out` variables whenever there is a swap operation. However, those values have a mix of both coins in... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | dos | true | false | ## Medium: `activeWorkerIds` have no size limit, can grow unbounded and gas-grief / cause OOG errors
### Description
The function `register` in `WorkerRegistration.sol` contract adds a new element to the `activeWorkerIds` array whenever a new worker is registered. There are no checks for registered `peerId`s, so anyon... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | input-validation | true | false | ## Low: Validation is missing for tokenA in `SwapExchange::calculateMultiSwap()`
### Description
The protocol supports claiming a chain of swaps and the function `SwapExchange::calculateMultiSwap()` is used to do some calculations including the amount of tokenA that can be received for a given amount of tokenB.
Lookin... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: LayerZero misconfiguration could lead to sent value being in limbo with no obvious recovery methods for end-user
### Description
If LayerZero settings are not configured correctly for a target chain, the on-chain source will still accept the transaction and any associated value sent. However, the transaction wi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | true | false | ## High: Mistake using primary price for `customSaleWithPermit()`
### Description
**Severity**
**Impact:** High
**Likelihood:** High
**Description**
ToyBox uses `customSale()` and `customSaleWithPermit()` for non-primary sales, and these functions should not use data from the primary sales.
But customSaleWithPermi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: (HAL-04) USING TRANSFER INSTEAD OF SAFETRANSFER
### Description
It was identified that the `pullTokens()` and `pushTokens()` functions in the `TokenUtils` contract use the `IERC20Upgradeable` interface to interact with the `_token`parameter to transfer currencies between the contract and the target wallet. The... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Events parameters not indexed
### Description
**Severity**: Informational
**Status**: Resolved
**Description**
In Contract VaultETH_V2, none of the events has `indexed` parameters to ease out the filter of event logs. Indexing seller and buyer parameters in the Sell and Buy events, respectively, is advised.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Redundant Parameters in Function \_getAssetIndex
### Description
The `_getAssetIndex` function in the `AaveDistributionManager` contract currently takes four parameters: `currentIndex`, `assetConfig`, `lastUpdateTimestamp`, and `totalBalance`. However, `assetConfig` already contains the `lastUpdateTimestamp` 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 | dos | true | false | ## Low: Transfer Instead of Call
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `be978d0b4c53340e8ffb881b80efc180941b308c`. The client provided the following explanation: transfer was changed to low level call
**File(s) affected:**`Teleportation.sol`
**Description:** The `withdrawNativeBOB... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [04] Users currently need to approve tokens to the Gates instead of the Abbot
### Description
According to the [documentation](https://demo-35.gitbook.io/untitled/smart-contracts/gate-module):
> As the Gate is an internal-facing module, users will not be able to, and are **not expected to**, interact with 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 | false | false | ## Medium: Index not checked
### Description
Index `i` must be less than `N_COINS`:
https://github.com/Gearbox-protocol/gearbox-contracts/blob/0ac33ba87212ce056ac6b6357ad74161d417158a/contracts/adapters/CurveV1.sol#L40
https://github.com/Gearbox-protocol/gearbox-contracts/blob/0ac33ba87212ce056ac6b6357ad74161d417158a/... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: RampA Logic Not Handling Very Low `initialA`
### Description
This issue has been identified within the `rampA` function of the `RampAController` contract.
If `initialA` is extremely low (e.g., set to `1`), the code’s checks may cause the function to revert due to the ratio constraints. This leads to an inabi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: No way to update unbonding and claim periods
### Description
The **FundFlowController** contract has hardcoded values for unbonding and claim periods, while **Chainlink** can update these periods in their contracts via setters. This mismatch leads to discrepancies in timing, potentially causing issues with fun... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.