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 | rounding | true | false | ## Low: Small dust thresholds in rebalancing loop can cause token loss
### Description
The VaultRebalancer contract uses fixed dust thresholds `1e3` to determine when to break out of the rebalancing loop, without accounting for token decimals. This creates an issue that leads to token loss.
For tokens with high decim... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | medium | oracle | false | false | ## Security Report
## Severity
**Medium Risk**
## Context
`TickMath.sol#L2`
## Description
UniswapV3’s `TickMath` library was changed to allow compilations for solidity version 0.8. However, adjustments to account for the implicit overflow behavior that the contract relies upon were not performed. The `UniswapV3xPYT... | Spearbit | 5 | Timeless |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: L09] Slightly biased inflation lottery
### Description
###### Low
The `Inflation` contract achieves inflation by pseudo-randomly distributing the funds among token holders in proportion to their holdings (at the previous generation in the balance store).
To achieve this, it first allows anyone to [register... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `NFTVault.borrow()`: `totalDebtPortion` should get cached
### Description
See `@audit` tags: | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Define MAX_UINT_151 as 2**151 - 1
### Description
It would be more readable to define `MAX_UINT_151` as `2**151 - 1` for clarity. It'll be computed at compile time.
### Recommendation
Define `MAX_UINT_151` as `2**151 - 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 | gas | overflow | false | false | ## Gas: Use assembly for math (add, sub, mul, div)
### Description
Use assembly for math instead of Solidity. You can check for overflow/underflow in assembly to ensure safety. If using Solidity versions < 0.8.0 and you are using Safemath, you can gain significant gas savings by using assembly to calculate values and ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | false | false | ## Medium: Admin can prevent raffle winner from claiming their reward
### Description
By whitelisting their address and sending a WINNER_DRAWN CCIP message to PrizeManager, Admin can steal the raffle prize, which breaks the invariant from README:
> Winnables admins cannot do anything to prevent a winner from withdraw... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Discrepancy in Default Account Behavior
### Description
Reverts in default account fallback function (when custom accounts delegate calls to a default account) may introduce security risks as protocols might not anticipate these reverts, resulting in vulnerabilities.
### Proof of Concept
As stated in 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... | cyfrin_structured | critical | token | true | false | ## Critical: Vaults can be made erroneously liquidatable due to incorrect swap path
### Description
When auto redemption is executed, the `Quoter::quoteExactOutput` and `Quoter::quoteExactInput` functions of the [Uniswap v3 view-only quoter](https://github.com/Uniswap/view-quoter-v3/tree/master) are invoked for legacy... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | reentrancy | false | false | ## High: `RewardDistributor#claim` will revert for tokens with expired locks leading to loss of rewards
### Description
**Details**
[RewardsDistributor.sol#L277-L287](https://github.com/hyperstable/contracts/blob/35db5f2d3c8c1adac30758357fbbcfe55f0144a3/src/governance/RewardsDistributor.sol#L277-L287)
function cla... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 event emission for security module weight updates
### Description
The `BalancerValidatorManager::_updateSecurityModuleWeight` function performs critical state changes that affect the core value proposition of progressive decentralization of weights, but does not emit any events.
This creates an observ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | false | ## Gas: State variables can be packed into fewer storage slots (1 instances)
### Description
Deployment Gas Saved: **99 511**
`forge snapshot --diff`: **1 080** Gas Saved
* [src/auction/Auction.sol](https://github.com/code-423n4/2022-09-nouns-builder/blob/main/src/auction/Auction.sol)
Storage:
Fix: | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | overflow | false | false | ## Low: [03] Inflation attack protection is not really sufficient
### Description
The Mantra DEX attempts to protect against first depositor attacks by implementing a minimum liquidity mechanism, similar to that of Uniswap.
Before going further we can have an overview of the bug case here:
*
*
And we know that 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 | rounding | false | false | ## Medium: Precision Loss Issue In Weighted Math
### Description
## Vulnerability in `calc_in_given_out_internal`
The math module calculates the amount taken in during a swap based on the amount given out, the balances in the pool, and the weights of the assets.
`calc_in_given_out_internal` is responsible for 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... | cyfrin_structured | low | initialization | true | false | ## Low: Cache storage variables to avoid multiple identical storage reads
### Description
Cache storage variables to avoid multiple identical storage reads:
File: `TokenBridge.sol`
```solidity
// @audit use `_initializationData.sourceChainId` instead of `sourceChainId`
147: nativeToBridgedToken[sourceChainId][... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `x += y/x -= y` costs more gas than `x = x + y/x = x - y` for state variables
### Description
Total Instances: 13
Gas Savings: `13 * 20 = 260`
https://github.com/code-423n4/2023-03-neotokyo/blob/main/contracts/staking/NeoTokyoStaker.sol#L875-L987
https://github.com/code-423n4/2023-03-neotokyo/blob/main/con... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Unused functions
### Description
The two `sendTxToL2()` functions in the `L1ArbitrumMessenger` contract are unused and can safely be removed.
The `L1TokenGateway.createOutboundTxCustomRefund()` function calls the `L1ArbitrumMessenger.sendTxToL2CustomRefund()` with `custom L2GasParams` type as one of the argum... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | Approve Max | false | false | ## Handle
hickuphh3
## Vulnerability details
### Impact
In the `_approve` function, if the allowance passed in is `type(uint256).max`, nothing happens (ie. allowance will still remain at previous value). Contract integrations (DEXes for example) tend to hardcode this value to set maximum allowance initially, but t... | Code4rena | 5 | Spartan Protocol |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Not revoking `USDT` approval when `permit2 == address(0)`
### Description
_Resolved_
In the `SafeERC20Permit2Lib` library, the `revokeApprovalWithPermit2()` function is responsible for revoking token allowances when a vault's cap is set to zero (typically in preparation for removing a vault, possibly due to 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 | low | other | false | false | ## Low: FAIR is not ERC-777 compliant ✓ Fixed
### Description
A comment at the top of `FAIR.vy` describes it as an “ERC-777 and ERC-20 compliant token”.
But by the code’s own acknowledgement, it is not *fully* ERC-777 compliant in its current state.
### Recommendation
fixed by removing ERC-777 support | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | reentrancy | true | false | ## High: Missing xGorplesToken decrement in finalizeRedeemFor()
### Description
In the `xGorplesToken` contract, the function `finalizeRedeemFor` is responsible for finalizing the redeeming process for a user by transferring the appropriate amount of `GorplesCoin` tokens and burning the excess. However, unlike the `fi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | initialization | true | false | ## High: Incorrect inside fees calculation for uninitialized uniswap ticks causes positions funds being stuck in the contract and allows to steal all taker collateral and collected fees
### Description
`PoolLib.getInsideFees` calculates inside fees when current price is inside the position range as:
```solidity
(, ,... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 zero address validation for _feeTo.
### Description
**Description**
Missing zero address validation of_feeTo.
Location:
- ./core/contracts/AdaswapFactory.sol #43
**Recommendation**
Add zero address validation for `_feeTo` parameter.
**Re-audit comment**
Acknowledged | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Runtime message listeners created by dappRequestListener function are never removed
### Description
The `dappRequestListener` function is an event listener handler for messages (Figure 17.1). The function creates a new instance of the `chrome.runtime.onMessage` listener (Figure 17.2), but the listener is never... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Strengthen Domain Transfer Protection for Critical Domains
### Description
## Domain Hijacking Risk Assessment
**Severity:** Low Risk
**Description:**
Domain hijacking remains a critical risk, even with strong account security. Standard transfer locks (`clientTransferProhibited`) prevent unauthorized trans... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | false | false | ## High: Rebasable as reward tokens breaks logic
### Description
With rebasable reward tokens, the calculation of farmed rewards will be incorrect because it relies on a strict amount of distributed tokens while the underlying reward balance will float.
https://github.com/1inch/farming/blob/7a007ec7784cca2899889e99e4... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Modifier `onlyNotGameOver()` does not check for Domination Victory
### Description
Some functions have the `onlyNotGameOver()` modifiers like selling points or buying overrides. `onlyNotGameOver()` checks the game deadline and winner to check for game over:
```solidity
modifier _onlyNotGameOver() {
req... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Large multiples of ten should use scientific notation
### Description
Use a scientific notation rather than decimal literals (e.g. `1e6` instead of `1000000`), for better code readability.
*There are 7 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 | low | other | false | false | ## Low: Malicious user can submit json injection in `uri()`
### Description
Function `uri()` currently builds JSON from tokenId Metadata. However Attacker can submit malicious Metadata with JSON injection on your website where you render Metadata.
Consider implementing preventative measures on your Frontend. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unchecking arithmetics operations that can't underflow/overflow
### Description
Solidity version 0.8+ comes with implicit overflow and underflow checks on unsigned integers. When an overflow or an underflow isn't possible (as an example, when a comparison is made before the arithmetic operation), some gas can ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Non-updatable State Variable Not Declared immutable.
### Description
**Severity**: Informational
**Status**: Resolved
**Description**
PROPCStakingV2.sol: propcToken.
The `propcToken` state variable is set during contract deployment and is not intended to be updated thereafter. However, the variable is curre... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Use low level `call()` to prevent gas griefing attacks when returned data not required
### Description
**Description:** Using `call()` when the returned data is not required unnecessarily exposes to gas griefing attacks from huge returned data payload. For example:
Is the same as writing:
In both cases 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: Inconsistent spacing in comments
### Description
Some lines use `// x` and some use `//x`. The instances below point out the usages that don't follow the majority, within each file
*There are 80 instances of this issue. For details, see the warden's [full report](https://github.com/code-423n4/2022-05-aura-fin... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | true | ## Low: `HubGovernor` lacks validation on `HubProposalExtender` ownership
### Description
The `HubGovernor` contract accepts a `HubProposalExtender` address as an immutable parameter in its constructor. However, it does not verify that this extender is owned by the `timelock` contract.
This oversight allows for the d... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | oracle | false | false | ## Medium: No check for sequencer uptime can lead to dutch auctions failing or executing at bad prices
### Description
The `AuctionHouse` contract implements a Dutch auction mechanism to recover debt from collateral. However, there is no check for sequencer uptime, which could lead to auctions failing or executing at ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Users can modify a cancelled order, withdrawing the same tokens twice
### Description
In Bracket, OracleLess and StopLimit a user can modify a canceled order, allowing them to withdraw the order tokens twice.
### Impact
Bracket, OracleLess and StopLimit can be drained.
### Recommendation
Make sure that a ca... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Empty require() Statements Partially Addressed
### Description
In the `L1Resolver` contract and in the `PohRegistrationManager` contract, there are empty `require()` statements without providing reason strings or custom errors in Solidity. Using reason strings or custom errors in `require()` statements helps ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: BlockhashRegistry - recreateBlockheaders() should use the evm provided blockhash when applicable Pending
### Description
There are different levels of trust attached to blockhashes stored in the BlockhashRegistry. On one side there are blockhashes which data-source is the evm ( `blockhash(blocknumber)`) and 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 | false | false | ## Low: The `sender_address` May Benefit From Workchain Validation
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `a7ad647f920c55f7a16423954bffbd70c07fb0fd`.
**File(s) affected:**`admin_multisig.fc`
**Description:** When receiving an internal message in `admin_multisig`, there is no valida... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: Potential replay attacks due to static DOMAIN_SEPARATOR
### Description
The DOMAIN_SEPARATOR is set only once during initialization and includes `block.chainid`. This could theoretically enable cross-chain replay attacks in the event of a hard fork.
Although the contract implements a nonce system (`mapping(str... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Method should emit event
### Description
**Description**
PontoonToken.sol, setGovernance()
It is recommended to emit events for the governance (or any other access control value)
change.
**Recommendation**:
Emit event for the governance change. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Add check for numItems == 0
### Description
Functions `getBuyInfo()` and `getSellInfo()` in `LinearCurve.sol` check that `numItems != 0`. However, the same `getBuyInfo()` and `getSellInfo()` functions in `ExponentialCurve.sol` do not perform this check.
```solidity
contract LinearCurve is ICurve, CurveErrorCo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Malicious/Compromised organiser can reclaw all funds, stealing work from supporters
### Description
The contest details state that 'If a contest is created and funded, there is no way to refund. All the funds belong to the persons who wants to help solve the problem, we call them "supporters".' (see More 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: increaseQueryGas can be called even if the contracts are in a frozen state
### Description
The `increaseQueryGas` function in the `AxiomV2Query` contract allows users to increase the gas allocation for their queries by paying an additional fee. However, this function can currently be called even when the contr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | front-running | false | false | ## Low: Inadequate blacklisting mechanism fails to support contracts
### Description
The implemented blacklisting mechanism only supports public keys. As a result, it will only be able to blacklist EOAs.
Since contracts can be malicious (e.g. MEV bots), it won't be possible to blacklist them.
Consequently, a malevol... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Public functions can be marked external
### Description
Some functions in the `StrategyAerodromeGaugeGreen` contract are currently defined with the `public` visibility modifier, even though the functions are not called from within the contract, resulting in higher gas costs than necessary. Instances of this is... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | dos | true | false | ## Low: The `LibWeth` hardcodes the `WETH` address which makes it incompatible on the to-deploy L2 chain
### Description
The `LibWeth` library hardcodes the `WETH` address, which makes all the wrapping/unwrapping functionality it entails to be unavailable/incompatible with the L2 chain where Beanstalk will be deployed... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | reentrancy | false | false | ## High: Malicious pair can re-enter `VeryFastRouter` to drain original caller's funds
### Description
**Description:**
[`VeryFastRouter::swap`](https://github.com/sudoswap/lssvm2/blob/78d38753b2042d7813132f26e5573c6699b605ef/src/VeryFastRouter.sol#L266) is the main entry point for a user to perform a batch of sell an... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Invalid Reward Pool
### Description
## Validation Warning for rewardToken
There is no validation to verify that the `rewardToken` is registered before creating a pool in `getOrCreatePoolId`. Without validation, if a pool is created with a non-existent `rewardToken`, the pool may be created with an invalid `re... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | medium | front-running | true | true | ## Medium: Attackers can prevent users creating an offer by frontrunning
### Description
The protocol allows anyone to create offers with an offer ID provided by the user. While this design gives users the flexibility to choose their offer ID, it also introduces a problem.
The `createOffer` function checks if an offe... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `initialize()` lacks asset and oracle length check
### Description
In initialize(), oracle is added for the asset through for-loop. However, it doesn't check/require asset.length to be equals oracles.length:
Ensure both assets and oracles are of the same length, otherwise, it will be an out-of-bond error. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Calling `Position._marketBuy` and `Position._marketSell` functions that calculate `_fee` by dividing by `10000` can cause incorrect calculations
### Description
Calling the following `Position._marketBuy` function executes `uint256 _fee = _maxFill.mul(rubiconMarket.getFeeBPS()).div(10000)`, and calling 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: Ineffective Vesting Transfer Mechanism
### Description
The DIMOVesting contract expects transfers to be made before creating a vesting schedule using `createVestingSchedule()`. As a result, there are checks to ensure that funds are sufficient. However, if a user accidentally transfers funds to the vesting cont... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | access-control | true | false | ## Low: `ComplianceChecker::isCompliant` incorrectly returns `true` if compliance options have no required soul bound tokens
### Description
`ComplianceChecker::isCompliant` contains a logic flaw that allows universal bypass of all compliance requirements. When a compliance option exists with an empty `requiredSBTs` 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: Using block numbers to specify start and end
### Description
The sale uses block numbers to specify [when it starts and when it ends](https://github.com/MercuryProtocol/global-messaging-token-contracts/blob/d0765cbd0732453832455dae0e2cf892da1ab572/contracts/Tokens/GMToken.sol#L40-L41). The current recommendati... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: OWASP recommended security headers not present
### Description
**Description:** The application does not enforce key HTTP security headers (e.g., Content-Security-Policy, X-Frame-Options, X-Content-Type-Options, Referrer-Policy) at the lowest level. These headers are critical to mitigating cross-site scriptin... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | front-running | false | false | ## Low: Validators Can Steal Refunds of EOA Users When Claiming Messages
### Description
When a message with empty calldata and an EOA as a recipient is claimed on L1, part of the fees is [reimbursed](https://github.com/Consensys/linea-contracts/blob/f08c1906855198e2dc0413a47dcb38291b7087e5/contracts/messageService/l1... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Maximum and minimum fee checks are less strict than expected
### Description
The fee validation logic uses different rounding strategies (down for maximum checks, up for minimum checks) to enforce fee constraints. This approach might intuitively seem to make the validation stricter, but the effect of rounding ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | false | ## High: Recoveries of type `SigMode.OnlySecond` can be endlessly replayed
### Description
**Severity**
**Impact:**
High, as it can result in a loss of wallet access
**Likelihood:**
Medium, as it requires specific conditions but they can happen even after years of using the wallet
**Description**
The `recoveries` ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Entropy / Signature Handling & Hardening ✓ Fixed
### Description
The functions `getBaseEntropy` and `getSignIdentity` lack validation for the correct type of arguments or the presence of control characters that may allow context breaks (newline).
For example, in the `SNAP_METHODS.public.identity.requestLi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `revert` operator should be in the code as early as reasonably possible (3 instances)
### Description
Deployment Gas Saved: **200**
Method Call Gas Saved: **1 559+**
* src/modules/INSTR.sol:[43-48](https://github.com/code-423n4/2022-08-olympus/blob/2a0b515012b4a40076f6eac487f7816aafb8724a/src/modules/INSTR.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 | initialization | true | false | ## Low: NO NEED TO INITIALIZE QUORUMADJUSTED WITH FALSE
### Description
boolean variable are initialized to a default value of false per [Solidity](https://docs.soliditylang.org/en/latest/control-structures.html#default-value) docs. Setting a variable to the default value is unnecessary.
Code Location
-------------
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | oracle | false | false | ## Low: FUNCTION COULD BE DEFINED AS EXTERNAL
### Description
The `getLatestPrice()` function could be declared as `external`.
Code Location
-------------
[`ChainlinkClient.sol,` #18](https://github.com/DecentralizedAssetManagement/lmcv/blob/f5861988508a5bb291a3a7f2863693cd9762dee7/contracts/lmcv/ChainlinkClient.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 | true | false | ## Low: [14] Use a daily or monthly basis
### Description
This checks the minimum stay for long-term rent in `execute.rs#setreservationforlongterm()`:
We can assume the `token.longterm_rental.minimum_stay` is a daily basis. But on the other side, we have `price_per_month` which is a monthly basis; this could confuse... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Permission Bypass
### Description
## Handling Permissions Using Hostname
The code handles all permissions utilizing the message sender’s hostname:
Utilizing only the hostname for permissions is not ideal, as two different origins may share the same hostname (for example, `http://example.com/` and `https:... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | liquidation | true | false | ## High: Can steal gOhm by calling Clearinghouse.claimDefaulted on loans not made by Clearinghouse
### Description
Source: https://github.com/sherlock-audit/2023-08-cooler-judging/issues/28
## Found by
detectiveking, jkoppel, mert\_eren
`Clearinghouse.claimDefaulted` assumes that all loans passed in were originate... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 an enum for the "step" types in `ArbitrumSwaps`
### Description
Currently the step types are handled by constants that have an integer value and are not sequential (numbers 7 to 11 are missing). This is a great use case for an enum, where you will have sequential numbering and proper naming. Remove the con... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | initialization | true | false | ## Medium: Missing contract existence check may cause unexpected behavior
### Description
`OuterSet` determines the current set of validators by calling its `innerSet`’s `getValidators` function. The lack of a contract existence check allows calls to an invalid address to return successfully instead of throwing an err... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect equality check in do_liquidate
### Description
The `do_liquidate` function, which executes the privileged operation of liquidating a strategy, should be callable only by vault managers. However, because of a typo in the function, it checks that the caller is *not* a vault manager. The incorrect equa... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Possible denial-of-service vector through pre-deployed contract storage writes
### Description
Blast tracks share prices and counts for each account address using pre-deployed contracts that are set within the chain’s genesis block. As the EVM executes a transaction, it uses Blast’s **GasTracker** provider to ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: Inadequate data validation in price libraries could result in unexpected reverts
### Description
The validation of parameters in the price libraries is insufficient. The parameters for the auction price can be validated using `validateAuctionPriceParameters`.
```solidity
function validateAuctionPriceParame... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | reentrancy | true | true | ## High: `FarmFacet` functions are susceptible to the draining of intermediate value sent by the caller via reentrancy when execution is handed off to an untrusted external contract
### Description
The `FarmFacet` enables multiple Beanstalk functions to be called in a single transaction using Farm calls. Any function ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | true | false | ## Low: Optimization and Code Efficiency Improvements
### Description
Several gas optimization and code efficiency issues have been identified across multiple functions and contracts. These primarily affect gas usage and code clarity without compromising security or core functionality:
1. **`nativeWrapper` Before Sha... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Funding Phase Validation in `DaosLive`
### Description
The `onlyFundingPhase()` modifier in `DaosLive` has a logical error in its condition. The current implementation only reverts when both conditions are true (`block.timestamp > endTime && !goalReached`), which means the modifier will NOT revert ev... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Liveness is erroneously reset for all owners when livenessguard is upgraded or replaced
### Description
As a means of initializing the `lastLive` mapping, the constructor of `LivenessGuard` iterates through the Safe's owners and sets `lastLive` for each one to `block.timestamp`. However, this only makes sen... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Unused variables should be used or removed
### Description
**Description:** There following variables are declared but unused throughout the codebase:
* [`MembershipDAOStructs::UINT64_MAX`](https://github.com/OneWpOrg/smart-contracts-blockchain-1wp/blob/416630e46ea6f0e9bd9bdd0aea6a48119d0b515a/contracts/dao/l... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | true | false | ## Low: Ineffective Initialization Check
### Description
## OpenPosition Instruction Review
In the OpenPosition instruction, the program will initialize the protocol position if it does not already exist. If the bump field is zero, it assumes the protocol position is uninitialized. The issue is that an initialized 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 | low | storage | false | false | ## Low: Inconsistent Vault Fee Charging during Loan Liquidation via WithdrawProxy
### Description
In the smart contract code of `PublicVault`, there is an inconsistency related to the charging of fees when a loan is liquidated at epoch's roll and the lien is sent to `WithdrawProxy`. The `PublicVault.owner` is supposed... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: permit functions use deployment-time instead of execution-time chain ID
### Description
The contracts `Base`, `MSD`, and `MSDS` each have an [EIP-2612](https://eips.ethereum.org/EIPS/eip-2612)-style `permit` function that supports approvals with [EIP-712](https://eips.ethereum.org/EIPS/eip-712) signatures. We ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | access-control | true | false | ## Medium: `DEFAULT_ADMIN_ROLE` of `BribeVault` can steal tokens from users' wallets
### Description
_Submitted by WatchPug, also found by danb, Dravee, Alex the Entreprenerd, gzeon, IllIllI, jayjonah8, kenzo, pauliax, cmichel, csanuragjain, and z3s_
The current design/implementation allows the `DEFAULT_ADMIN_ROLE` 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... | solodit_api | medium | Merkle Tree | true | true | _Submitted by cmichel, also found by frangio and Spearbit_
[CriteriaResolution.sol#L157](https://github.com/code-423n4/2022-05-opensea-seaport/blob/4140473b1f85d0df602548ad260b1739ddd734a5/contracts/lib/CriteriaResolution.sol#L157)<br>
The protocol allows specifying several tokenIds to accept for a single offer.<br>
... | Code4rena | 5 | OpenSea |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unclear behavior
### Description
**Description**
IgnitionCore.sol, recover_token().
There is no documentation or explanation of what token is recovered (is it a pool token or
payment token etc). And since that, there is no clarity if pool’s tokenTotalAmount should be
increased (in case pool token is recovere... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Issuer can process commitments even if it is revokable
### Description
Currently, there is no restriction in the `processCommitment` function to prevent the issuer from processing revokable commitments. The commitment process guarantees the user that commitments will not be processed after `commitmentHalfLi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Node Operator Can Revert processWithdrawal()
### Description
This is related to RP-36. If `RocketMinipoolDelegate.payout()` were adjusted to allow accounts other than the node operator to call it, the operator could still make execution fail by reverting `RocketNetworkWithdrawal.processWithdrawal()`.
If the n... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | medium | other | true | true | ## Medium: Same wallet can be added multiple times to an investor, artificially increasing their wallet count causing adding new wallets to revert
### Description
`GlobalRegistryService::_updateInvestor` calls `_addWallet` when the wallet being added is already registered to this investor:
```solidity
for (uint8 i = 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 | liquidation | true | false | ## Low: Closedown condition is inconsistent with the stated documentation of majority agreement
### Description
**Severity:** Low
**Description:** [Documentation](https://hackmd.io/CPINxScvSE2vo-t8mwY_Og#Risks) states the following:
_"Closing the Contract: If the majority of the pets agree, they can vote to close 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 | liquidation | false | false | ## Low: Missing Input Validation
### Description
**Update**
**Quantstamp:** The Sperax team implemented validation of the `_asset` variable for `AaveStrategy._withdraw()`and `StargateStrategy._withdraw()` functions. The `CollateralManager.constructor()`now validates the `VAULT` parameter. Each strategy is also validat... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Undocumented Magic Constants
### Description
**Update**
Fixed in: `808adb600dbb2b2e19860d7a368621071f92e4ff`.
The client provided the following explanation:
> _Documented magic constants_
**File(s) affected:**`PriceRouter.sol`, `Fund.sol`, `AaveV3ATokenManagerAdaptor.sol`, `AggregatorBaseAdaptor.sol`
**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 | medium | liquidation | true | false | ## Medium: Gibber can take any amount from safes
### Description
_Submitted by gzeon_
Although Gibber is supposed to behind governance timelock, there are still significant "rug risk" when such privillaged user can remove all fund from a vault unconditionally.
### Proof of Concept
[TurboSafe.sol#L335](https://githu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | true | false | ## Low: Authorization Required For Token Transfer
### Description
## Soroswap Pools and User Authorization
Soroswap pools necessitate user authorization to transfer tokens from the user to the pair. In `swap_exact_tokens_for_tokens`, `require_auth` is invoked to validate and authorize token transfers during a swap.
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: NodeRegistry code simplification
### Description
In the NodeRegistry contract, there is a separate variable for each registry: node, factory, router, quoter, and rebalancer. These variables can be grouped into a single variable using an enum.
For example, we can create an enum with:
```solidity
NODE = 1,
FACT... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | Share Inflation | true | true | _Submitted by cmichel, also found by 0xliumin, CertoraInc, Picodes, and Ruhum_
> The docs/video say `ERC4626.sol` is in scope as its part of `TurboSafe`
The `ERC4626.mint` function mints `amount` instead of `shares`.
This will lead to issues when the `asset <> shares` are not 1-to-1 as will be the case for most vault... | Code4rena | 4 | Tribe |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: (HAL-08) Redundant Use of SafeMath
### Description
The `SHToken` contract imports and uses OpenZeppelin's `SafeMath` library. However, since Solidity 0.8 and later versions have built-in overflow and underflow protection, the use of `SafeMath` is redundant:
```
* NOTE: `SafeMath` is generally not needed start... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: OwnableSmartWallet: Multiple approvals can lead to unwanted ownership transfers
### Description
The `OwnableSmartWallet` contract employs a mechanism for the owner to approve addresses that can then claim ownership () of the contract.
The source code has a comment included which states that "Approval is re... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: name, symbol, and decimals functions can change during the lifetime of yToken
### Description
The yToken contract allows users to update the values used by ERC20 functions (such as `name`, `symbol`, and `decimals`), which can produce unexpected behavior in Yearn vaults and third-party contracts.
The yToke... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | overflow | false | false | ## Medium: Incorrectly setting `s_referrerConfig.basisPoints` will lead to the lock of funds
### Description
If `_referrerConfig.basisPoints` is greater than `_clientConfig.basisPoints` https://github.com/p2p-org/eth-staking-fee-distributor-contracts/blob/30a7ff78e8285f2eae4ae552efb390aa4453a083/contracts/feeDistribut... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | liquidation | true | false | ## Medium: Debt can be repaid with a depegged underlyingToken, which can be exploited by arbitrageurs and drives the market price of alToken to match the worst depegged underlyingToken
### Description
_Submitted by WatchPug_
[AlchemistV2.sol#L1679-L1682](https://github.com/code-423n4/2022-05-alchemix/blob/de65c34c7b6... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: MultiSigDeleGator: Miscellaneous Minor Points
### Description
#### A. There should be a comment to clearly state the invariant:
#### B. Struct definition should be preceded by the NatSpec annotation:
**DeleGator/src/MultiSigDeleGator.sol:L11\-L15**
Cf. [ERC\-7201](https://eips.ethereum.org/EIPS/eip-7201)... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `cancelSig` will not completely cancel signatures due to malleability vulnerabilities
### Description
The current version of openzeppelin contracts has a high risk of vulnerability about signature malleability attack: .
So if the signer only cancel one signature, the malicious proposer can still extend a f... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Placeholder recipient constants in `Ignite` should be updated before deployment
### Description
**Description:** While it is understood that the [`FEE_RECIPIENT`](https://github.com/Benqi-fi/ignite-contracts/blob/bbca0ddb399225f378c1d774fb70a7486e655eea/src/Ignite.sol#L43) and [`SLASHED_TOKEN_RECIPIENT`](https... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.