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 | liquidation | true | false | ## High: Hedging during liquidation is incorrect
### Description
Hedging will not work as expected, and LiquidityPool will lose funds without expectation.
### Proof of concept
1. When a short position is liquidated in contract Exchange, function `_liquidate` will be triggered. It will burn the power perp tokens and... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Use of outdated libraries
### Description
We used `npm audit` to detect the use of outdated dependencies in the `lisk-token-claim` component, which identified the following vulnerable packages.
| Dependency | Vulnerability | Report | Vulnerability Description |
|-------------------------------------------... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: No check if pool `lpToken` matches market `collateralToken`
### Description
_Resolved_
When intializing the `ConvexCrvLPMarket`, the reward token is extracted from the hardcoded pool address, but `lpToken` and `collateralToken` are never checked against each other, which is a necessary condition for the marke... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Use ‘ethers’ literal
### Description
**Description**
Since the token (by default behaviour) has 18 decimals, there is no need to call inner function
for decimals, since ‘ethers’ literal can be used.
**Recommendation**:
Consider usage of ‘ethers’ for the number of tokens minted. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [L-04]
### Description
[L-04] CNft.sol should implement a 2-step ownership transfer pattern
This contract inherits from OpenZeppelin’s library and the transferOwnership() function is the default one (a one-step process). It’s possible that the onlyOwner role mistakenly transfers ownership to a wrong address, 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 | high | initialization | true | true | ## High: `MagnetTurnPlanets` table is not cleared when the game is reset
### Description
The `resetGame` function in the `ResetSystem` contract resets the game by clearing the necessary tables and setting the initial data.
However, the `MagnetTurnPlanets` table is not cleared when the game is reset. The data of this ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | token | false | false | ## Low: Address Checks
### Description
The addresses are correctly set
address public constant BALANCER_MULTISIG = 0x10A19e7eE7d7F8a52822f6817de8ea18204F2e4f
Confirmed, 6/11 multi
https://etherscan.io/address/0x10A19e7eE7d7F8a52822f6817de8ea18204F2e4f#code
IERC20 public constant AURA = IERC20(0xC0c293ce456fF0ED870A... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Magic hard-coded constants
### Description
There are some magic constants in the middle of the code:
- https://github.com/CoverProtocol/cover-core-v2/blob/513f5e502a8e8a623729c2c3480fca4e80fdef39/contracts/ClaimConfig.sol#L50
- https://github.com/CoverProtocol/cover-core-v2/blob/513f5e502a8e8a623729c2c3480fca4... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Case-Sensitive TDX Module Identity Comparison May Cause Valid Attestations to Fail
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `d15940900350ad5b8170aeaf19b7b94904acbb85`.
**Update:** Note that `tdx_module_identity_id` is made uppercase by `let tdx_module_identity_id = format!(... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 partner can trigger ROC update
### Description
A partner can trigger a rook update if they return rook's current list within an update.
### Recommendation
Consider adding a check if the partner returns `rookPartnerContractAddr` to revert. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | access-control | true | false | ## High: Treasury fee is not collected in `withdrawEthWithInterest()`
### Description
The Particle exchange collects treasury fees from the lender's interests. These interests are accumulated in the `interestAccrued` mapping and are withdrawn using the `_withdrawAccountInterest()` function, which splits the portion 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 | front-running | true | false | ## High: ETHRegistrarController.register is vulnerable to front running ✓ Fixed
### Description
`commit()` and then `register()` appears to serve the purpose of preventing front running. However, because the commitment is not tied to a specific owner, it serves equally well as a commitment for a front-running attacker... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Unsafe fee recipient addresses transition
### Description
The setter functions of fee and developer fee address https://github.com/Layer3Org/spiritswap-core/blob/a23463f87fd3c7633e97fab5e8124b4499e1519e/SPIRITMasterChef.sol#L1360 does not do any check on new address. If a wrong address is accidentally used, th... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Emergency locking mechanism could be improved to improve the exhaustiveness, robustness, and reactivity of the system
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `0450d27f8e987e7ad9bbdd17b293b3dc8f9881f2`.
The client fixed the first item and plans to address the second item later... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: String Literal Exceeds 32 Bytes Limit
### Description
In the [`bootloader` contract](https://github.com/matter-labs/system-contracts/blob/4ad1f26ae205d5a973216d141833e0ac37d72ec8/bootloader/bootloader.yul), the string literal “[Tx data offset is not in correct place](https://github.com/matter-labs/system-co... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Lack Of State-Updating Upgrade Functionality
### Description
The NEAR blockchain allows for redeploying a contract to the same Account ID to modify its code. However, basic redeployment can cause issues if the contract's state requires changes, such as alterations in variable types or the addition or removal o... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Consider Using Named Mappings
### Description
The project is using Solidity version greater than `0.8.18`, which supports named mappings. Using named mappings can improve the readability and maintainability of the code by making the purpose of each mapping clearer. This practice helps developers and auditors u... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: PRECISION LOSS
### Description
**Severity**: Medium
**Status**: Resolved
**Description**
The `lendingAPR()` function which returns the current lendingAPR, calculated as `borrowAPR * utilizationRate * ( 1 - performanceFee)` implements a division before a multiplication in the formula which can lead to ro... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [11] Mistake in documentation - threshold vs. LTV
### Description
According to the [liquidation penalty documentation](https://demo-35.gitbook.io/untitled/smart-contracts/purger-module#liquidation-penalty):
> `s` is a scalar that is introduced to control how quickly the absorption penalty reaches the maximum p... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | oracle | true | false | ## Medium: USD prices dont work for 20 hours per day
### Description
LibUsdOracle will revert for stablecoins for 20 hours per day almost every day expect rare depeg events.
### Impact
Non functioning price feeds , breaks core functionality | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: Missing `poolStatus` check in `bypassQueue`
### Description
The `bypassQueue` function in `PriorityPool.sol` doesn't check the pool's status before depositing tokens directly into the staking pool.
```solidity
function bypassQueue(
address _account,
uint256 _amount,
bytes[] calldata _data
) externa... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | overflow | true | false | ## Low: Denial-of-Service Condition in getETHEigenPodBalance() Due To Overflow
### Description
There is an edge case in `getETHEigenPodBalance()` in `NodeDelegator.sol` where `nativeEthShares` is negative and `-nativeEthShares > stakedButUnverifiedNativeETH`. This would cause an overflow on line [530] and revert. As 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 | gas | token | true | false | ## Gas: Cache external call to avoid re-calling same external function
### Description
Since ` IYieldToken(_yt).decimals()` and `IERC20Metadata(_yt).decimals()` are calling same `decimals()` function on same `_yt` address contract. That means both call will return same result since same function on same contract calle... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | oracle | true | false | ## Gas: Cache storage variables in memory when read multiple times without being changed
### Description
**Description:** As reading from storage is considerably more expensive than reading from memory, cache storage variables in memory when read multiple times without being changed:
File: `NodeOperatorRegistry.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: Unlock date of certain vesting schedules does not meet the requirement
### Description
All vesting schedules should have the unlock date (start + lockDuration) set to **16/10/2024 0:00 GMT+0** post-migration.
The following is the list of vesting schedules whose unlock date does not meet the requirement post-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 | front-running | true | false | ## Medium: TRST-M-11 No slippage protection for cross-chain swaps in StargatePlugin
### Description
**Description:**
The StargatePlugin calls StargateRouter's swap() function to do a cross-chain swap.
It will pass 0 as the minimum amount of tokens to receive. This pattern is vulnerable to
sandwich attacks, where th... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | false | false | ## Low: Wallet Recovery Break Glass Fields & State Updates
### Description
The function `recoverWallet()` contains a number of secret fields such as `salt` and the sender address. Since all transactions on-chain are public and front-runnable, these fields may be known and used by attackers when submitting transactions... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Pending transactions can trigger a DoS
### Description
An unbounded number of pending transactions can cause the `_processSettlements` function to run out of gas while trying to process them. There is no restriction on the length of pending transactions a user might have, and gas-intensive operations are perfo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Uninitialized fee splits cause loss of fee accounting
### Description
_Resolved_
The fee split configurations `poolFeeSplitsBeforeMigration` and `poolFeeSplitsAfterMigration` are never initialized in the `initialize()` function, defaulting to (0,0). When `claimProtocolFees()` executes, it calls `splitFeesColl... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Centralization Risks
### Description
***Note: per discussion with the judge, instead of highlighting only one submission related to centralization risks, all related findings are being compiled together under M-14 to provide a more complete report.***
### [**1. The calculateAuctionPriceMultiplier() functio... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Multiple uses of undefined behavior in tinycbor
### Description
The `tinycbor` library, which is a dependency of the Ledger Filecoin app, invokes undefined behavior in several places when it processes user-controllable transaction data. These appear to be previously undiscovered bugs in the third-party `tinyc... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Input Parameter Validation in DIAOracleV2Guardian
### Description
The `DIAOracleV2Guardian` contract could enhance its input validation for critical parameters:
- Lack of comprehensive bounds checking for `maxDeviationBips`
- Potential for setting extreme or invalid parameter values
Key considerations:
- Ensu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: Missing Signer and New Account Validation for `asset_token_program_acc` in `new_instrument`
### Description
The `new_instrument` instruction lacks validation checks for `asset_token_program_acc` when creating a new asset token account. Unlike `new_base_crncy` which explicitly validates that the program token a... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | logic | true | false | ## Medium: `Mint` function does not update `LiquidityPosition` state of caller before minting LP tokens. This
### Description
### Impact
When a LP mints V2 Pool tokens, `mint` function in [PoolLibrary](https://github.com/code-423n4/2023-01-timeswap/blob/ef4c84fb8535aad8abd6b67cc45d994337ec4514/packages/v2-pool/src/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 | medium | other | true | false | ## Medium: Incorrect management of redeemable funds
### Description
`Overseer._redeemable()` checks if a burn can be redeemed by making sure that the contract has enough balance to cover the burn amount minus already redeemed amounts and pending protocol fees.
```solidity
function _redeemable(uint256 burnId) intern... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Timestamp usage
### Description
There’s a problem with using timestamps and `now` (alias for `block.timestamp`) for contract logic, based on the fact that miners can perform some manipulation. In general, [it’s better not to rely on timestamps for contract logic](https://github.com/ConsenSys/smart-contract-... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Distinction Of Partial/Full Withdrawals Is Not Guaranteed
### Description
The Rocketpool contracts distinguish between a partial and full withdrawal by the amount of ETH sent to the contract. This design has caveats which should be highlighted. There are two extreme cases that are possible, which can cause une... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: A Denial of ervice attack can obstruct Flop auctions
### Description
In order to initiate a Flop auction, the Vow contract requires that it have a zero Dai balance within the Vat. An unprivileged user can send a small amount of Dai to the Vow within the Vat. In doing so, the user prevents the Vow from 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 | gas | other | false | false | ## Gas: Optimize names to save gas
### Description
Contracts most called functions could simply save gas by function ordering via . Calling a function at runtime will be cheaper if the function is positioned earlier in the order (has a relatively lower Method ID) because are added to the cost of a function for every ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Griefer can minimize delegatee's voting power
### Description
Similar to a previous submission, there are no checks preventing against delegating the same lock NFT multiple times. This opens an avenue to an expensive but potentially profitable griefing attack where the malicious user fills the victim's dele... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | access-control | false | false | ## High: Dual transaction nature of composed message transfer allows anyone to steal user funds
### Description
Sending OFTs with a composed message via LayerZero V2 involves 2 transactions on the destination chain (Canto) according to the [documentation](https://docs.layerzero.network/v2/developers/evm/oft/quickstart... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | false | false | ## High: Anyone can call a function.
### Description
**Description**
Line 568. Function notifyStrategyRemoved() is used to remove strategies from the vault,
however there are no restrictions on who is allowed to call this function. This way ,anyone can
remove all the strategies from the vault.
**Recommendation**:
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 | other | false | false | ## Low: Missing parameter validation
### Description
## Handle
@cmichelio
## Vulnerability details
## Vulnerability Details
Missing parameter validation for functions:
- `NFTXEligiblityManager.addModule, updateModule`
- `NFTXFeeDistributor` all `setter` functions (`setTreasuryAddress`, ...)
- `NFTXVaultUpgradeab... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Implement DNSSEC, DMARC and DKIM to enhance DNS Security
### Description
The existing DNS setup for the SatsBridge front-end applications utilizes DigitalOcean nameservers configured with standard TTL settings. The A record (164.92.135.173) is set to a TTL of 3600 seconds, while the nameserver records have a 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... | solodit_api | high | reentrancy | true | false | Source: https://github.com/sherlock-audit/2023-02-notional-judging/issues/12
## Found by
xiaoming90
## Summary
A trade will continue to be executed regardless of how bad the slippage is since the minimum amount returned by the `TwoTokenPoolUtils._getMinExitAmounts` function does not work effectively. Thus, a trade... | Sherlock | 4.999805 | Notional Update #2 |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Consider activating `via-ir` for deploying
### Description
The IR-based code generator was developed to make code generation more performant by enabling optimization passes that can be applied across functions.
It is possible to activate the IR-based code generator through the command line by using the flag `... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Pausable Vault Does Not Override Necessary Pause Methods
### Description
The `Vault` contract inherits Openzeppelin's `ERC20PausableUpgradable`, however it does not override any of the necessary pausing methods, nor does it utilize the bonus functionality. In case of contract emergencies, operations cannot ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Checks In issue() And redeemZero()
### Description
## Severity: Medium Risk
## Context
- `Divider.sol` Lines: 183-231, 279-313
## Situation
The functions `issue()` in `Divider.sol` (Lines 183-231) and `redeemZero()` in `Divider.sol` have extra checks when the flags `level.issueRestricted()` or `level.rede... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: WASM Merkleization is computationally expensive
### Description
A WASM binary with a large global table (e.g., `(table (;0;) 1000000 1000000 externref)`) will require a few seconds of computation to iterate over and hash all table elements (Figure 3.1).
```rust
// Merkleize things if requested
for module 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 | gas | initialization | true | false | ## Gas: [G‑02] State variables only set in the constructor should be declared immutable
### Description
Avoids a Gsset (20000 gas) in the constructor, replaces the first access in each transaction (Gcoldsload - 2100 gas) and each access thereafter (Gwarmacces - 100 gas) with a PUSH32 (3 gas).
INHERITED (address) Stat... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Aragon’s voting does not follow voting best practices
### Description
Curve Dao uses Aragon for voting. Its voting logic is simple, but does not prevent several abuses that can occur with on-chain voting.
In particular, the voting contract has the following issues:
- No mitigation for quick vote and withdra... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: All collateral in Velodrome vault will be permantly locked if either asset in liquidity pair stays outside of min/max price
### Description
The oracles used have a built in safeguard to revert the transaction if the queried asset is outside of a defined price range. The issue with this is that every vault 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 | high | flash-loan | true | false | ## High: When harvesting a strategy and adjusting the debt, all the leftover collateral that is not used to swap the withdrawn collateral from Aave for WETH to repay the flashloan will be locked and lost in the Strategy contract
### Description
### Impact
Collateral can be locked and lost in the Strategy contract.
#... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Shadowing inherited state variables
### Description
**Severity**: Informational
**Status**: Resolved
**Description**
In contract Liquidity.sol, in function lpName, the variable symbol is a shadowing variable with the same name from inherited contract ERC20.
**Recommendation**:
Rename function parameter 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 | medium | token | true | false | ## Medium: `_deductFees()` is incompatible with tokens that revert on zero value transfers
### Description
All main functionality risks reverting with tokens that revert on zero value transfers, via a transfer in `Common._deductFees()`.
### Proof of Concept
In `Common._deductFees()`
if `0 < params.feeX64 * params.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Morpho is vulnerable to attackers sending LTV = 0 collateral tokens, supply/supplyCollateral, borrow and liquidate operations could stop working
### Description
## Severity: Critical Risk
## Context:
- **Morpho related context:**
- PositionsManager.sol#L120-L121
- PositionsManager.sol#L180
- Positions... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Newly created gauge may missed out on its rewards.
### Description
Report type: Smart Contract
Target: https://github.com/alchemix-finance/alchemix-v2-dao/blob/main/src/Voter.sol
Impacts:
- Contract fails to deliver promised returns, but doesn't lose value
## Description
## Brief/Intro
Newly created gauge... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | overflow | true | false | ## High: MinipoolManager: node operator can avoid being slashed
### Description
When staking is done, a Rialto multisig calls `MinipoolManager.recordStakingEnd` ().
If the `avaxTotalRewardAmt` has the value zero, the `MinipoolManager` will slash the node operator's GGP.
The issue is that the amount to slash can be g... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
Custom errors are available from solidity version 0.8.4. The instances below match or exceed that version
*There are 67 instances of this issue.* | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Improper Rent Calculation
### Description
## Price Lock Vulnerability Overview
`price-lock` utilizes `token_account.get_lamports` to determine the rent instead of calculating the proper rent-exemption reserve. If an attacker (maker) deposits a large amount of SOL (more than the rent-exemption reserve) into... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Slashing Does Not Burn Tokens
### Description
The slashing conditions do not enforce any disincentive for creating and destroying invalid names. This issue is exemplified in combination with STE-04 and STE-03. Currently, a user may create an invalid username, wait for someone to submit a transaction to slash 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 | high | oracle | false | false | ## High: Repeatedly resolve proposals
### Description
The `resolveProposal` function of the `Proposer` contract [simply validates](https://github.com/UMAprotocol/protocol/blob/0c4cea3c3d5e48da6f8984b8ba3afdfea4ce47cc/packages/core/contracts/oracle/implementation/Proposer.sol#L78-L81) that the oracle has resolved, but ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Transfer of CELO may unexpectedly fail
### Description
There are several parts of the code which use of the `transfer` Solidity built-in function to transfer CELO from the protocol:
* The [`refundAndFinalize`](https://github.com/celo-org/celo-monorepo/blob/b2f0a58fcc7667d41585123aae5b24c47aa894f6/packages/pr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing PriceProvider Oracle Updates
### Description
The [`PriceProvider`](https://github.com/radiant-capital/v2-core/blob/e8f21f103e17736907b62809d1ad902febc53714/contracts/radiant/oracles/PriceProvider.sol) contract is responsible for providing pricing data to multiple contracts of the protocol. It uses e... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: `Router.execute()` does not need to be payable
### Description
The `execute` method in the `Router` contract is marked as `payable`. However, none of the commands involve the transfer of ether. This could lead to users mistakenly sending ETH with the transaction and losing it, or to confusion about the method'... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Invalid `maxTranches` check can result in `maxTranche` cap to be exceeded
### Description
In `src/lib/loans/MultiSourceLoan.sol`, there's max cap for the number of tranches in a loan as defined as [`getMaxTranches`](https://github.com/code-423n4/2024-04-gondi/blob/b9863d73c08fcdd2337dc80a8b5e0917e18b036c/sr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Breaking gauge creation in lending factories
### Description
Lending factories have public `deploy_gauge()` to deploy a gauge for an chosen vault:
- https://github.com/curvefi/curve-stablecoin/blob/c3f7040960627f023a2098232658c49e74400d03/contracts/lending/OneWayLendingFactory.vy#L326-L343
- 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 | high | initialization | false | false | ## High: Deposited Stakes Can Be Locked in StakeManager if the Validator Is Inactive
### Description
The [`initializeDeposit` function](https://github.com/0xFFoundation/fchain-contracts/blob/11ffd45bc95747b8d2432a2e8bb120d4a1dc19a2/src/StakeManager.sol#L303) is designed to accept licenses and staking amounts as stakes... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | ## Low: deploying message always fails and requires a manual replay to succeed
### Description
The contract `L1OpUSDCFactory` implements the function `deploy()`:
```solidity
function deploy(
address _l1Messenger,
address _l1AdapterOwner,
L2Deployments calldata _l2Deployments
) external returns (address _l1Adapt... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | access-control | true | false | ## High: Unable To Call `emergencyWithdraw` ETH in `NoYield` Contract
### Description
_Submitted by leastwood_
#### Impact
The `emergencyWithdraw` function is implemented in all yield sources to allow the `onlyOwner` role to drain the contract's balance in case of emergency. The contract considers ETH as a zero addr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Single sided strategy cant do trades for ETH pools
### Description
When users deposit the "asset" into the single-sided Curve LP strategy, the asset is sold for the Curve pool’s underlying tokens.
However, there is an edge case when one of the pool’s underlying tokens is **ETH**, in which case the trade 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 | initialization | false | false | ## Low: Incorrect default period duration
### Description
The default periods have a flaw where the period of type `1` expects `Duration` of `3 months`, but instead, it receives a fixed duration of `30 days`.
The definition is wrong:
[https://github.com/piplabs/cosmos-sdk/blob/c553dc6734da1d49fcde55efd825d84... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: Failure in Maintaining Gauge Points
### Description
The defaultGaugePointFunction in the smart contract does not explicitly handle the scenario where the percentage of the Base Deposited Value (BDV) equals the optimal percentage (optimalPercentDepositedBdv), resulting in an unintended reduction of gauge poi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: fillOrder() and exercise() may lock Ether sent to the contract, forever
### Description
## Lines of code
https://github.com/code-423n4/2022-06-putty/blob/3b6b844bc39e897bd0bbb69897f2deff12dc3893/contracts/src/PuttyV2.sol#L324
https://github.com/code-423n4/2022-06-putty/blob/3b6b844bc39e897bd0bbb69897f2deff... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | ## Medium: Auctioneer Cannot Be Removed From The Protocol
### Description
If a vulnerable Auctioneer is being exploited by an attacker, there is no way to remove the vulnerable Auctioneer from the protocol.
### Impact
In the event that a whitelisted Auctioneer is found to be vulnerable and has been actively exploited... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unlocked Pragma
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `afaa7ac941a670d2596767f513479eb1d6ee34f1`.
**File(s) affected:**`All`
**Description:** Every Solidity file specifies in the header a version number of the format `pragma solidity (^)0.8.*`. The caret (`^`) before the v... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | signature | true | false | ## Low: Consider enabling on-behalf-of withdrawals
### Description
`BasisTradeVault`’s withdrawal queue only supports self-initiated requests that always pay the requester (`receiver = msg.sender`). For better ERC-4626 alignment and composability (routers, managers, third party integrations), extend the existing queue... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Swapping logic would be broken for some supported tokens
### Description
First take a look at this excerpt from the README:
From the above we can conclude that tokens like BNB that revert on zero value approvals are to be integrated within protocol.
Now take a look at
This is the general swap functio... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | storage | false | false | ## High: Implementations have full control over the Marmo wallet
### Description
The [`relay`](https://github.com/ripio/marmo-contracts/blob/d3fb5922a4f01e47d585343d08cccfad659b3584/contracts/Marmo.sol#L70) [function of the](https://github.com/ripio/marmo-contracts/blob/d3fb5922a4f01e47d585343d08cccfad659b3584/contrac... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | access-control | false | false | ## Medium: A vault owner can also be the controller and arbitraily set the secondary market royalties
### Description
_Submitted by 0xNineDec, also found by Franfran, neumo, oyc_109, pashov, and Ruhum_
### Impact
The secondary sales of a specific `FERC1155` token can be charged with a certain amount of fees est... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: virtual_acc_active name is not coherent with the other masks defined in reserveconfigu- ration
### Description
VIRTUAL_ACC_ACTIVE should be renamed as VIRTUAL_ACC_ACTIVE_MASK to be coherent with the other masks.
### Recommendation
Rename VIRTUAL_ACC_ACTIVE to VIRTUAL_ACC_ACTIVE_MASK. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Risk of underflow.
### Description
**Description**
StakingB_1.sol Line 579
Each user can use the unstake function even if they have nothing to unstake, so everyone can
decrease the “amountOfUsers” variable that can cause an underflow and won’t allow other
users to unstake.
**Recommendation**:
Check if “use... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Allowing anyone to finalize any withdrawal can lead to integration problems for smart contract allowed to receive ETH
### Description
**Description:** Current implementation of `swEXIT::finalizeWithdrawal` allows anyone to finalize any withdrawal request which is already processed. However this design decision... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Cushion bond markets are opened at wall price rather than current price
### Description
_Submitted by 0x52_
Incorrect initial bond market price.
### Proof of Concept
uint256 initialPrice = range.wall.high.price.mulDiv(bondScale, oracleScale);
uint256 initialPrice = invWallPrice.mulDiv(bondScale, or... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unlocked Pragma Compilers
### Description
The files in scope currently use floating pragma version `^0.8.20`, which means that the code can be compiled by any compiler version that is greater than or equal to `0.8.20`, and less than `0.9.0`. It is recommended that contracts should be deployed with the same 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 | medium | front-running | false | false | ## Medium: exitTempusAMM can be made to fail
### Description
## Handle
cmichel
## Vulnerability details
There's a griefing attack where an attacker can make any user transaction for `TempusController.exitTempusAMM` fail.
In `_exitTempusAMM`, the user exits their LP position and claims back yield and principal shar... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Staking, unstaking and rebalanceToWeight can be sandwiched (Mainly rETH deposit)
### Description
### Impact
rETH derivative can be bought through uniswap if the deposit contract is not open.
While a maxSlippage variable is set, the price of rETH on uniswap is the spot price and is only determined during 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: Check that `_addressToRemove` and `_addressToAdd` are not equal in `_swapMembers()`
### Description
In `_swapMembers()`, consider checking that `_addressToRemove` and `_addressToAdd` are not the same address:
[SecurityCouncilManager.sol#L218-L229](https://github.com/ArbitrumFoundation/governance/blob/c18de538... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | true | ## Low: Security module removal can brick validator removal completion
### Description
Removing a security module via `BalancerValidatorManager::setUpSecurityModule(module, 0)` is allowed as soon as the module’s tracked weight hits zero.
```solidity
// BalancerValidatorManager::_setUpSecurityModule
if (maxWeight == 0)... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Permissions Setting in EnsureIdentity Function
### Description
The EnsureIdentity function sets directory permissions to **0755** using os.MkdirAll. This setting allows the owner to read, write, and execute files, while others can only read and execute.If the directory's contents are sensitive (such as private... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | true | false | ## Low: Missing address validation when configuring contracts
### Description
As part of the post-deployment setup of the Liquity system, several contracts have `setAddresses` functions that initialize links to other system components (Figure 7.1). These functions are each callable only once as the final step of each 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 | overflow | false | false | ## Low: Typos
### Description
* [CToken.sol: "efore" to "before"](https://github.com/Plex-Engineer/lending-market-v2/blob/443a8c0fed3c5018e95f3881a31b81a555c42b2d/contracts/CToken.sol#L291)
* [CNote.sol: "efore" to "before"](https://github.com/Plex-Engineer/lending-market-v2/blob/443a8c0fed3c5018e95f3881a31b81a555c4... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unnecessary balance checks and precision issues in TokenManager::_transfer
### Description
The `TokenManager::_transfer` function performs unnecessary balance checks before and after the transfer. Additionally, it uses exact equality checks for balance differences, which can cause issues with tokens that ha... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Various `distribute()` Functions Lack Access Control
### Description
**Update**
The team has fixed the issue by only allowing admins to call the `distribute()` functions mentioned in the issue.
**File(s) affected:**`rewards/AbstractReward.sol`, `rewards/VaultRewardDistributor.sol`, `rewards/DepositerRewardDis... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: Optimize away call to `EnumerableSet::contains` in `GlobalConfiguration::configureCollateralLiquidationPriority`
### Description
Optimize away call to `EnumerableSet::contains` in `GlobalConfiguration::configureCollateralLiquidationPriority` by using the `bool` result from `EnumerableSet::add`.
### Recommenda... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | front-running | true | false | ## Medium: Check slippage of swaps
### Description
Several bridges check that the output of swaps isn’t 0. However, it could also happen that a swap gives a positive output, but still lower than expected due to slippage, sandwiching, or MEV. Several AMMs will have a mechanism to limit slippage, but it might be useful ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Immutable variables save storage
### Description
If a variable is set in the constructor and never modified afterwards, marking it as `immutable` can save a storage slot - `20,000` gas. This also saves `97` gas on every read access of the variable.
### Proof of Concept
1 instance:
#### Swivel.sol
[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 | dos | true | false | ## High: JSON-RPC `FilterCriteria.Addresses` are unbound and can be used to DoS the RPC
### Description
The `eth_getLogs` ETH JSON-RPC method returns an array of all logs matching a given filter criteria, e.g., a topic list `Topics` and/or a list of addresses (`Addresses`) that restricts matches to events created by s... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: [05]
### Description
In `Auction._handleOutgoingTransfer`, it is not checked if the WETH transfer succeeds (when WETH is used). The commonly used WETH implementation will revert on failure, but this is no requirement of EIP-20, so using another WETH implementation could lead to a problem there. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Bridge contract does not compile due to syntax error
### Description
In Solidity, using the `ether` keyword directly after a number without a space is invalid syntax. The compiler interprets it as an invalid token because `ether` is a keyword for specifying Ether denominations, not part of a numeric literal. T... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.