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 | other | false | false | ## Low: Most of the .sol files in the contract directory are lower case, so are the names of the contracts. It’s preferred that contract names start with capital letters and follow a camelCase style.
### Description
**Recommendation**:
Refactor the contract names and if you wish also rename the .sol files to match 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: Unused _Burn() Function
### Description
**Update**
**Fixed** in `652f456`. Overriden the burn function since it is used in multiple base classes.
**File(s) affected:**`Pet.sol`
**Description:** In the Pet.sol file a `_burn()` function is defined which overrides the burn function of all other contracts it inh... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Failure Of JSON Precompile Functions
### Description
## extractAsBytesList
`extractAsBytesList` interprets the input data as a map of strings to lists of raw JSON messages (`map[string][]gjson.RawMessage`). However, if any of the fields in the input data are unable to be interpreted as a list, `gjson.Unmarsh... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | dos | true | false | ## Medium: Unlimited gauge numbers can DoS user's distribute action
### Description
Report type: Smart Contract
Target: https://github.com/alchemix-finance/alchemix-v2-dao/blob/main/src/Voter.sol
Impacts:
- Temporary freezing of funds for 12 hours
## Description
## Brief/Intro
`Voter#createGauge` allow users crea... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | logic-error | true | false | ## Low: Fail fast without performing unnecessary storage reads
### Description
Fail fast without performing unnecessary storage reads:
* `Allowlist::exchangeAllowed` - don't read `_allowed[to]` from storage if the transaction will fail since `from` is not allowed:
```solidity
function exchangeAllowed(
add... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | overflow | false | false | ## Low: Possibility of overflow inside an unchecked block in `CSBondLock._lock()`
### Description
If [`CSModule.reportELRewardsStealingPenalty()`](https://github.com/lidofinance/community-staking-module/blob/a898d045b63303294752d1a60ad9dfe8d8ba69ca/src/CSModule.sol#L1014) is called by mistake with `amount` parameter c... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | token | true | false | ## Low: `sourceAddress` means two different things in `InterchainTokenService`
### Description
In the function `_execute`, which is the entry point from `AxelarExecutor`, `sourceAddress` means the source for the cross-chain call, i.e the `sourceChain` address of that `InterchainTokenSerivce` contract:
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 | medium | access-control | true | false | ## Medium: Program initializers can be front-run
### Description
The current implementation of the `initialize` instruction in the `gorples-ido` and `gorples-core` programs does not enforce any constraints to ensure that it is signed by a trusted and known address, **such as the program's upgrade authority**.
This la... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Null epochs will freeze rollovers
### Description
When rolling a position it is required that the user didn't payout on the last epoch. The issue with the check is that if a null epoch is triggered then rollovers will break even though the vault didn't make a payout
### Impact
Rollover will halt after null... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Donating gemto DssPocket inflates cut()
### Description
Context: DssLitePsm.sol#L490-L495
Description: The collected protocol fee is returned by DssLitePsm.cut() , which calculates the fees dy-
namically. The dynamic fee calculation is used because there is no fee storage variable that gets updated
during buyGe... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | initialization | false | false | ## Severity: Medium Risk
## Context
Locke.sol#410
## Description
Consider the following scenario:
1. Alice stakes in a stream before the stream starts.
2. Nobody funds the stream.
3. In case of an indefinite stream, Alice loses some of her deposit depending on when she exits the stream.
For a usual stream, Alice wil... | Spearbit | 5 | Locke |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `getLiqPnlThresholdP` could revert
### Description
When liquidation parameters are configured, it is possible for `startLeverage` and `endLeverage` to have the same value. This can be useful for an asset group where a constant liquidation threshold is desired, regardless of leverage.
However, when `getLiqP... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: There is no endpoint for triggering `liquidateExternal` from extension chain to be executed by proof forwarder
### Description
mErcHost has a `liquidateExternal` endpoint for using liquidity coming from other chains to perform a liquidation, but there's no equivalent endpoint in mTokenGateway to trigger 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 | high | flash-loan | false | false | ## High: Cooldown and redeem windows can be rendered useless
### Description
_Submitted by ShippooorDAO_
Cooldown and redeem windows can be rendered useless.
#### Proof of Concept
* Given an account that has not staked sNOTE.
* Account calls sNOTE.startCooldown
* Account waits for the duration of the cooldown pe... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | logic | true | false | ## High: Incorrect output amount calculation for Trader Joe V1 pools
### Description
Output amount is calculated incorrectly for a Trader Joe V1 pool when swapping tokens across multiple pools and some of the pools in the chain are V1 ones. Calculated amounts will always be smaller than expected ones, which will alway... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `NFTEscrow._executeTransfer()`: Cheap Contract Deployment Through Clones
### Description
See `@audit` tag:
There's a way to save a significant amount of gas on deployment using Clones: .
This is a solution that was adopted, as an example, by Porter Finance. They realized that deploying using clones was 10x... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | cross-chain | true | false | ## Medium: Front-running vulnerability in cross-chain loan creation process could lead in funds loss for users
### Description
Report type: Smart Contract
Target: https://testnet.snowtrace.io/address/0x2cAa1315bd676FbecABFC3195000c642f503f1C9
Impacts:
- Direct theft of any user funds, whether at-rest or in-motion, ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Protocol is using an older Solidity version
### Description
The protocol is using Solidity compiler version 0.8.3, while the latest is 0.8.17 - you can get a lot of features and optimisations, for example Custom Errors by upgrading versions | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unrequired method
### Description
Method not necessary since the implemented logic only calls to obtain the current block.
Affected source code:
* [CToken.sol#L201](https://github.com/Plex-Engineer/lending-market-v2/blob/2646a7676b721db8a7754bf5503dcd712eab2f8a/contracts/CToken.sol#L201) | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: SafeMath library is not always used in Gravity
### Description
## Handle
shw
## Vulnerability details
## Impact
SafeMath library functions are not always used in the `Gravity` contract's arithmetic operations, which could cause integer underflow/overflows. Using SafeMath is considered a best practice that... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Centralization Risks
### Description
`TreasuryVesting` contract relies heavily on admin and operator roles for critical functions. Therefore it creates single points of failure if admin/operator keys are compromised.
### Recommendation
It is recommended to implement multi-signature requirements for admin/oper... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [N‑12] 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 2 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 | initialization | true | false | ## Medium: _currentDefaultAdmin Not set in SingleAdminAccessControl
### Description
In StakedUshBase.sol, which imports and inherits AdminControl, the constructor calls:
```solidity
_grantRole(DEFAULT_ADMIN_ROLE, _owner);
```
This sets the default admin role to _owner. However, the contract does not initialize 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 | medium | other | true | false | ## Medium: Users wouldn't cancel their proposals due to the increased `proposalThreshold`.
### Description
When users call `cancel()`, it validates the caller's voting power with `proposalThreshold` which can be changed using `setProposalThreshold()`.
```solidity
function setProposalThreshold(uint256 newProposalThr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unlucky Users Could Waste Gas on Orders that Do Not Get Filled.
### Description
**Update**
The Talentir indicated that this is the intended behavior. They stated:
> We would consider this a feature, not a bug: The user can ensure the transaction isn’t executed if the price changes between submitting the trans... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Enable SafetyNet Attestation API
### Description
The SafetyNet Attestation API is not checked by the Magma Android client. Google Play provides the SafetyNet Attestation API for assessing the safety of the device that apps are running on. The API uses software and hardware information to provide a cryptographi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [Buyout module] Fraction price is not updated when total supply changes
### Description
_Submitted by 0xA5DF_
Lines:
### Vulnerability details
In the buyout module when a buyout starts - the module stores the `fractionPrice`, and when a user wants to buy/sell fractions the `fractionPrice` is loaded fro... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `AggregateStablePrice` can be manipulated
### Description
If there is not enough liquidity in the pools or there are no pools, then `10**18` is returned as the price in `AggregateStablePrice`.
- https://github.com/curvefi/curve-stablecoin/blob/0d9265cc2dbd221b0f27f880fac1c590e1f12d28/contracts/price_oracle... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: ongoing withdrawals from variable side hurts variable earnings
### Description
**Severity**
**Impact:** Medium, as it can be argued that his is part of the risk on the variable side
**Likelihood:** Medium, as it also hurts the one withdrawing
**Description**
When the vault is active, a variable side sta... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | dos | false | false | ## Medium: Bonding mechanism allows malicious user to DOS auctions
### Description
_Submitted by kenzo, also found by goatbug_
A malicious user can listen to the mempool and immediately bond when an auction starts, without aim of settling the auction. As no one can cancel his bond in less than 24h, this will freeze 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 | high | initialization | true | false | ## High: Liquidity Pool Monopolization
### Description
## Vulnerability Analysis: Malicious Liquidity Provider
A malicious early liquidity provider can maliciously raise the LP token ratio, stealing funds from other users who deposit insufficient funds into the pool due to rounding errors.
## Attack Scenario
When 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 | initialization | true | false | ## Medium: If a collection has been shutdown but later re-initialized, it cannot be shutdown again
### Description
If a collection has been shutdown, it can later be re-initialized for use in the protocol again. But any attempts to shut it down again will fail due to a varaible not being reset when the first shutdown ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `GaugeController::distributeRewards` can be called multiple times by anyone, leading to excessive reward distribution
### Description
The `distributeRewards` function in `GaugeController` can be called multiple times by anyone, allowing malicious users to trigger multiple reward distributions to a gauge wit... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | cross-chain | false | false | ## Low: Missing Event Emission After Configuration Change
### Description
The [`setBatchConfig` function](https://github.com/scroll-tech/scroll/blob/84f73c76d2cfd0b07640315fc85e7e43eef98498/contracts/src/batch-bridge/L1BatchBridgeGateway.sol#L242-L251) is used to add or update the batch bridge config for a given token... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Cache `sd59x18(sizeDelta)` in `OrderBranch::simulateTrade` to prevent wrapping the same value 3 additional times
### Description
**Description:** Cache `sd59x18(sizeDelta)` in `OrderBranch::simulateTrade` to prevent wrapping the same value 3 additional times.
**Zaros:** Fixed in commit [d2b2b89](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 | liquidation | true | false | ## Low: Borrow generated interest are removed from ESynth total supply on repay
### Description
If Esynth tokens are borrowed by a User after being allocated to Vault, then upon repaying the borrowed amount plus interest, the `totalSupply` of the ESynth token will reduce more than expected due to the interest amount.
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: Wrong usage of revBp() in deposit() in fee calculation
### Description
In `_deposit()` function code calculates fee like this:
```solidity
// slice the fee from the amount (gas optimized)
if (!exemptionList[_receiver])
claimableAssetFees += _amount.revBp(fees.entry);
```
And the `revBp()` logic 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 | other | false | false | ## Low: Borrow dust bypasses minimum borrow constraint
### Description
_Resolved_
While the protocol enforces a minimum borrow amount (`MIN_BORROW_AMOUNT`) in `_validateBorrow`, borrowers can bypass this constraint by partially repaying their debt and leaving behind a **dust-sized leftover** smaller than the minimum ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | overflow | true | false | ## Medium: Lack of global outbound limit
### Description
The current implementation checks that individual transactions do not exceed the uint64 max value in shared decimals:
```solidity
function _debitFrom(
address _from,
uint16,
bytes32,
uint256 _amount
) internal virtual override returns (uint) {
...... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect logic in a while loop
### Description
**Severity**: High
**Status**: Resolved
**Description**
In the `_removeBurnedBatches()` function, if `batch.amount` is less than `burnAmount`, it means that remaining is greater than `batch.amount` and the function goes to the “else” case.
In the else case, `... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 slippage and deadline protection exposes users to pricing risks
### Description
_Acknowledged_
The `EulerEarn` contract does not provide users with slippage protection or deadline enforcement in the `deposit()`, `mint()`, `withdraw()`, and `redeem()` functions. These functions interact with multiple 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: Mark variables as constant
### Description
Some variables, like **_feeOwnerMax**, are fixed at compile-time. It would be best to mark them
as constant, for code clarity as well as gas savings.
**Team response:**
"Changed several variables to constant or immutable."
**Mitigation review:**
Change applied corr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Vault executes swaps without slippage protection
### Description
The vault executes swaps without slippage protection. That will cause a loss of funds because of sandwich attacks.
### Impact
Swaps will be sandwiched causing a loss of funds for users you withdraw their rewards.
### Recommendation
Slippage pa... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Remove commented out code
### Description
On [lines 29 and 30 of `proxy-utils.ts`](https://github.com/celo-org/celo-monorepo/blob/0e876e5cad0e93f5dd1fff853f4be3c9a0e5c2a7/packages/protocol/lib/proxy-utils.ts#L29-L30), there exists a comment suggesting that line 30 should be un-commented for future use.
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 | high | other | true | false | ## High: refund – Attacker Can Lock Insurance Holder’s Refunds by Calling refund Before a Refund Was Allocated ✓ Fixed
### Description
`addPremium` is used to determine the refund amount that an insurance holder is eligible to claim. The amount is stored in the `refundMap` mapping and can then later be claimed by anyo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: getTokenPrice() returns stale token prices
### Description
`getTokenPrice()` reads from the `assetPrices[tokenAddress].price` mapping which stores the latest price as configured by the protocol admin in `setDirectPrice()`. However, the check for a stale token price will never fallback to other price oracles as... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | initialization | true | false | ## High: TRANSFERING KIBToken TO YOURSELF INCREASES YOUR BALANCE
### Description
Using temporary variables to update balances is a dangerous construction.
If transferred to yourself, it will cause your balance to increase, thus growing the token balance infinitely.
### Proof of Concept
KIBToken overrides `\_transfe... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | token | true | false | ## Medium: Premature zeroing of epoch rewards in `claimUndistributedRewards` can block legitimate claims
### Description
The `claimUndistributedRewards` function allows the `REWARDS_DISTRIBUTOR_ROLE` to collect any rewards for an `epoch` that were not claimed. It includes a check: `if (currentEpoch < epoch + 2) 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 | low | other | false | false | ## Low: Missing Events on Setter Functions
### Description
In the given Solana program, there are functions that modify important program state variables, such as configuration settings or parameters. However, these state-modifying functions do not emit any events to signal the changes made to the program's state.
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 | medium | initialization | true | false | ## Medium: Cached `DOMAIN_SEPARATOR` is incorrect for tranche tokens potentially breaking permit integrations
### Description
Attempts to interact with tranche tokens via `permit` may always revert.
### Proof of Concept
When new tranche tokens are deployed, the initial `DOMAIN_SEPARATOR` is calculated and cached in ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | oracle | true | false | ## Low: LP pricing is exposed to manipulation
### Description
**Severity**
**Impact:** Medium
**Likelihood:** Medium
**Description**
The contract calculates the price of LP tokens based on the value of the reserves, which can be vulnerable to manipulation attacks. This method can be exploited by attackers to manip... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: keep-tecdsa - withdraw should check for zero value transfer ✓ Addressed
### Description
Requesting the withdrawal of zero `ETH` in `KeepBonding.withdraw` should fail as this would allow the method to succeed, calling the user-provided destination even though the sender has no unbonded value.
### Recommendatio... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Broken account must be deleted
### Description
In case if some tokens cannot be transferred from the account, then this account must be deleted:
https://github.com/Gearbox-protocol/gearbox-contracts/blob/0ac33ba87212ce056ac6b6357ad74161d417158a/contracts/credit/CreditManager.sol#L451
### Recommendation
We 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 | other | false | false | ## Medium: Loss of funds with high liquidExitPenalty
### Description
A high `liquidExitPenalty` fee percentage in the TrueFi protocol can result in a loss of user funds. The issue is that only the Sherlock contract owner can set the `yieldStrategy` in use and call `liquidExit` to withdraw funds from TrueFi. A 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 | high | token | true | false | ## High: Collateral NFT deposited to a wrong address, when transferred directly to PaprController
### Description
## Lines of code
https://github.com/with-backed/papr/blob/9528f2711ff0c1522076b9f93fba13f88d5bd5e6/src/PaprController.sol#L159
## Vulnerability details
## Impact
Users will lose collateral NFTs when 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 | medium | other | true | false | ## Medium: Staker Can Extend Expired Locks
### Description
**Severity** - Medium
**Status** - Resolved
**Description**
When a user stakes , his stake gets assigned a weight which is dependent on the length of the stake and the amount staked. A user can also update his stake which updates the deadline (`lockedUntil`... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Caching the value will improve the code
### Description
At the lines https://github.com/aave/governance-crosschain-bridges/blob/7f56e7ae63f30ba8dcd7ced6a11a34c2eb865a1d/contracts/BridgeExecutorBase.sol#L176-L183
the calculation of the same value is used many times. But the value of `targets.length` is easier 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... | cyfrin_structured | low | token | true | false | ## Low: Consolidate unnecessary code duplication in `ConvertFacet::_withdrawTokens` | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Staked funds might get soft-stuck
### Description
The [`FortaStaking` contract](https://github.com/forta-protocol/forta-token/blob/92d7a7ddd6672a7530a4bfc532d0d697e7f12744/contracts/components/staking/FortaStaking.sol#L45) implements the functionality to allow holders to stake their funds (vested or not) 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 | token | true | false | ## Medium: The ````Stream```` contract is designed to receive ETH but not implement function for withdrawal
### Description
The ````Stream```` contract instances can receive ETH but can not withdraw, ETH occasionally sent by users will be stuck in those contracts.
### Impact
See Summary
### Recommendation
Add a ````... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: L18] Use of magic constants
### Description
###### Low
There are three locations where the policy is updated using a `SimplePolicySetter` clone initialized with magic string constants [`"CurrencyGovernance"`](https://github.com/BeamNetwork/currency/blob/51b65c5c7af455391af2bc30d13d761566d8c236/contracts/infl... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | overflow | true | false | ## Medium: rebalance process incase of selling the collateral, could revert because of underflow calculation
### Description
rebalance process, will try to sell the collateral in case of peg-down. However, the process can revert because the calculation can underflow.
### Impact
Rebalance process can revert caused by... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Staked liquidity can be increased in a killed gauge
### Description
`CLGauge.increaseStakedLiquidity()` allows users to increase liquidity in a killed gauge. Unlike `CLGauge.deposit()`, it doesn't check if the gauge is active. This allows users to bypass the gauge liveliness check in `CLGauge.deposit()`:
1. 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 | overflow | true | false | ## Gas: `SafeMath is no longer needed
### Description
*Note: Suggested optimation, save a decent amount of gas without compromising readability.*
`SafeMath` is no longer needed starting with Solidity 0.8. The compiler now has built in overflow checking.
Removing `SafeMath` can save some gas.
Instances include:
[Ma... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The Compressed Block Data Is Not Verified Against Data in the Prover During Data Submission Acknowledged
### Description
When the sequencer submits the batched block data with the `submitData` function, it’s expected to check that the submitted commitment of the compressed block data `keccak(_submissionDat... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Duplicated Elements in Configuration Could Return the Wrong Amount During Swaps
### Description
The `RevenueManagement` contract implements functionality which allows users to [swap](https://github.com/radiant-capital/riz/blob/65ca7bb55550d30388e2b2277fefe5686ab7e4e8/src/RevenueManagement.sol#L224) the tokens... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | false | ## Low: Tick spacing type mismatch in ExactInputSingleParams
### Description
**Description:** V3DexSwap uses the [Ramses V3 Swap Router](https://lineascan.build/address/0x8BE024b5c546B5d45CbB23163e1a4dca8fA5052A#code) to perform WETH to Linea swaps.
However, the ExactInputSingleParams struct definition passed as para... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Expressions for constant values such as a call to `keccak256()`, should use `immutable` rather than `constant`
### Description
See [this](https://github.com/ethereum/solidity/issues/9232) issue for a detail description of the issue
1. File: contracts/BaseIndex.sol (line [25](https://github.com/code-423n4/202... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [05] Many cases of precision loss from multiply-after-divide
### Description
While there wasn’t enough time to explore possible attack vectors for these cases, it’s apparent that there is definite loss in precision while calculating important values in the system.
- From `_checkpoint()` in `VotingEscrow.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: The rebalance requirement check is too sensitive
### Description
Currently, as long as the difference between the current `balances` and the `targetBalances` of assets is not 0, `shouldRebalance` will be set to true.
This will make the rebalance decision too sensitive to balance changes. Consider adding a 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 | other | true | false | ## Medium: Solver bundler doesn't enforce exactly one solverOps
### Description
The function `_verifyAuctioneer()` uses `solverOps[0]`. This will revert when there are no `solverOps`. This situation can happen when `allowsZeroSolvers() == true`.
From our understanding of the Fastlane project, when a solver is also 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... | solodit_api | high | Validation | true | false | ## Severity: Critical Risk
## Context
OperatorsRegistry.1.sol#L403-L454
## Description
This issue is also related to `OperatorsRegistry._getNextValidatorsFromActiveOperators` which should not consider stopped when picking a validator.
Consider a scenario where we have:
### Operators
- **Op at index 0**
- Name: `o... | Spearbit | 5 | Liquid Collective |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `IBCChannelHandshake.channelOpenAck()` Does Not Require Connection to Be Open Before Opening Channel
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `baddaf26340ee0e739373183cbbf1fe1e3751153`.
**File(s) affected:**`IBCChannelHandshake.sol`
**Description:**`IBCChannelHandshake.chann... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | token | false | false | ## High: Staker Balance Rebase Vulnerability in LT Contract
### Description
The LT contract has a vulnerability where stakers can avoid token rebasing by unstaking tokens before positivie value changes are applied. The `balanceOf` state for stakers is not updated until `_calculate_values` is called, creating a race co... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | false | false | ## Gas: 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 86 instances of this issue.*
**[Alex the Entreprenerd (judge) commented](https://github.com/... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Users can silently burn tokens with transfers to 0x0
### Description
The amount of minted tokens is tracked in the BToken contract by the `totalSupply` function. Burning tokens is only possible using an internal operation (called by BPools). However, the `transfer` and `transferFrom` methods do not restrict 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: The System Is Not Robust to Delayed Period Updates
### Description
The major functionalities of the protocol (i.e., voting, reward emission, reward distribution) are synchronized on a per-voting-period basis, making the per-period consistency in bookkeeping and accounting a factor of major importance. However,... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Existing Circuit Breaker Implementation Allow Faster Taker To Extract Payout Tokens From Market
### Description
The current implementation of the circuit breaker is not optimal. Thus, the market maker will lose an excessive amount of payout tokens if a quoted token suddenly loses a large amount of value, 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 | low | signature | true | false | ## Low: Consider addings checks for signature malleability
### Description
Use OpenZeppelin's `ECDSA` contract rather than calling `ecrecover()` directly
*There is 1 instance of this issue:*
https://github.com/code-423n4/2022-07-golom/blob/e5efa8f9d6dda92a90b8b2c4902320acf0c26816/contracts/core/GolomTrader.sol#L176-... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: AaveDIVAWrapper can't receive permissioned long and short tokens
### Description
The `AaveDIVAWrapper` can create a Contingent Pool with such long and short tokens which can be transferred only to `_poolParams.permissionedERC721Token` holders. It means that the long and short tokens can't be redeemed via 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 | overflow | true | false | ## Low: Unsafe downcast in `ValkyrieSubscriber::toInt256` could silently overflow
### Description
**Description:** While it is highly unlikely that liquidity amounts will ever get close to overflowing `int256` for tokens with a reasonable number of decimals, there is an unsafe downcast in `ValkyrieSubscriber::toInt256... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Presale round does not return ETH
### Description
**Description**
CryptoBearWatchClub.sol, presaleMint()
presaleMint() function does not return excess ETH amount like the mint() function does. Thus
ETH may be left stuck on the contract.
**Recommendation**:
Verify the presaleMint() should not return exces... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: All AMMs have to be past nextFundingTime to update
### Description
_Submitted by 0xliumin_
settleFunding calls will revert until all AMMs are ready to be updated.
### Proof of Concept
AMM 1 has a nextFundingTime of now. AMM 2 has a nextFundingTime in 30 minutes. AMM 1 won't be able to be updated until 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 | high | rounding | true | false | ## High: The house fee cap mechanism is flawed
### Description
The `transferPlayerRewards()` function attempts to implement a protection mechanism to prevent abuses from an operator that can access game outcomes and liquidity, participate as a player, place bets without risk, and deplete the reward pool.
The problem ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `WstEth` derivative assumes a `~1=1` peg of stETH to ETH
### Description
The `WstEth` contract implements the ETH derivative for the Lido protocol. The stETH token is the liquid representation of the ETH staked in this protocol.
There are two different places in the codebase that indicate that the implementa... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `UniswapV2TokenAdapter` does not support Sushiswap-only assets
### Description
_Submitted by cmichel_
The `UniswapV2TokenAdapter.supports` function calls its `aboveLiquidity` function which returns the UniswapV2 liquidity if the pair exists.
If this is below `minimumLiquidity`, the `supports` function will... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | reentrancy | true | false | ## Low: Usage of Transfer Instead of Call For Native Funds
### Description
The contract uses Solidity’s `transfer()` when transferring native tokens in `BadDebtProcessor.sol` and `Liquidator.sol`.
This has some notable shortcomings which can render ETH impossible to transfer.
The transfer will inevitably fail if:
- T... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | dos | true | false | ## Medium: A borrower/lender or liquidator will fail to withdraw the collateral assets due to reaching a gas limit
### Description
Within the TellerV2#`submitBid()`, there is no limitation that how many collateral assets a borrower can assign into the `_collateralInfo` array parameter.
This lead to some bad scenarios... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Non-whitelisted addresses can be lenders
### Description
**Severity**
**Impact:** Low
**Likelihood:** High
**Description**
Only users that are on the whitelist are allowed to earn interest from lending the underlying tokens:
However, the transferability of the reward token opens an opportunity for 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 | liquidation | true | false | ## Low: Operator can set his operatorID status to active by transferring 0 Wei
### Description
**Description:** When withdrawing collateral, logic checks if collateral balance is 0 & makes the operator Id inactive.
However while depositing, there is no check on the amount deposited. An operator can deposit 0 Wei 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 | high | access-control | true | false | ## High: Logic flaw in `check_can_edit_short` allows editing short-term rental before finalization enabling theft of users' deposited funds
### Description
The landlord (property owner) invokes `finalizeshorttermrental` on a specific rental to settle the payment. If the rental is canceled after approval or has conclud... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect refund calculation due to exclusion of vault fee in `BunniHubLogic`
### Description
In the `BunniHubLogic` contract, there is a refund mechanism for unused `msg.value`. The refund logic currently considers only the `amount0` and `amount1`, which are the sums of the `raw` and `reserve` amounts. Howeve... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unclear Vault Initialization Process
### Description
[Pull request #939](https://github.com/across-protocol/contracts/pull/939) removes route-enabling functionality in the SVM Spoke, allowing depositors to provide any input token for any destination chain, not only those with the route enabled. Previously, whe... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Superfluous granting of DEFAULT_ADMIN_ROLE in AaveV3YieldManager
### Description
In the constructor of `AaveV3YieldManager`, the `DEFAULT_ADMIN_ROLE` is assigned to the `_admin` account. However, this is already handled in the constructor of the base contract `BaseYieldManager`.
### Recommendation
We recommend... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: LOCK AMOUNT IN GLOBAL STATE IS NOT VALIDATED WHEN CLAIMING
### Description
The `user_claim` function in the **krp-token-contracts/dispatcher** contract does not validate that `global_state.total_user_claimed_lock_amount` is less or equal than `global_state.total_user_lock_amount`. This situation could generate... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | true | ## Critical: Math error in creator payment calculation
### Description
The Tunnl protocol applies 3 kinds of fees.
- **Flat Fee**: The advertiser pays a flat fee and it is charged on acceptance of offers.
- **Advertiser Percentage Fee**: The advertiser percentage fee is the percentage fee that is charged to the advert... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `setClaimable()` Should Not Be Called More than Once for the Same `address`
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `2390ec05d16b77130bb10826754942c0dcc475ad`.
**File(s) affected:**`CircuitTokenClaim.sol`
**Description:** The `CircuitTokenClaim.setClaimable()` function is us... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | liquidation | false | false | ## Medium: Users can liquidate themselves before others, allowing them to take 13% above their borrowers
### Description
The `canLiquidate()` function allows liquidations to take place if either (a) the loan is over and still exists or (b) the caller owns the collateral.
In the second case, due to the liquidation fee... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | true | false | ## Low: RamsesV3PositionManager's liquidity operations can be blocked after period flips
### Description
## Severity: Low Risk
**Context:** Position.sol#L224
**Summary:**
RamsesV3PositionManager's liquidity operations can be blocked with reverting `positionPeriodSecondsInRange()` call right after period flips becaus... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Malicious solvers can grief other solvers by setting _claimant to zero address
### Description
Solvers are expected to set a valid _claimant address in _fulfill() with `fulfilled[intentHash] = _claimant` so that the claimant can withdraw rewards on the source chain after proving intent fulfillment.
A solver, ... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.