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: Missing event emission for PolygonStrategy::setFundFlowController
### Description
**Description:** A crucial strategy parameter ie. the `fundFlowController` can be updated by the owner. However no event emission exists for such an update.
**Recommended Mitigation:** Consider emitting an event for the `setFund... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unchecked return value of low-level `call()/delegatecall()`
### Description
*Note: this finding was reported via the winning [Automated Findings report](https://gist.github.com/code423n4/b979a00ee3ea3f7d36ee39e2a536ba8a). It was declared out of scope for the audit, but is being included here for completenes... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [10] Enhanced reward distribution to safeguard against reserve depletion in auction calculations
### Description
The `rewards` function in the provided `RewardLib` library calculates the rewards for a series of auctions based on a given reserve. A potential issue is that midway through the calculations, the `r... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | false | false | ## Gas: Spelling errors
### Description
There are numerous instances throughout the codebase where spelling errors have been encountered.
### Impact
The prevention of spelling errors prevents confusion and also improves readability. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Using 32-Bit Unsigned Integer for Timestamp
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation:
> This contract won't be in use after 2038, so it won't face any overflow issues
**File(s) affected:**`contacts/vesting.fc`
**Description:** Due to 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 | low | cross-chain | true | false | ## Low: REVERT STRING SIZE OPTIMIZATION
### Description
Shortening revert strings to fit in 32 bytes will decrease deploy time gas and will decrease runtime gas when the revert condition has been met.
Code Location
-------------
```
BtcLightClient.sol::81 => require(INIT_CHAIN_HEIGHT % DIFFICULTY_ADJUSTMENT_INTERV... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: Misleading inline comment in `STBL_LT1_Issuer::withdrawExpired` function
### Description
The `STBL_LT1_Issuer::withdrawExpired` function contains a misleading inline comment that directly contradicts the actual code logic and intended functionality.
```solidity
function withdrawExpired(uint256 _tokenID) exter... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unavailable view function
### Description
_Resolved_
The `cooldown_underlying_amount` and `cooldown_end_time` functions take a `UserCooldown` and return its `underlying_amount` and `cooldown_end` fields.
However, these two view functions are actually unusable because `UserCooldown` is a field within `SdeUSDM... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: shred tile overflow
### Description
Report type: Blockchain/DLT
Target: https://github.com/firedancer-io/firedancer/tree/e60d9a6206efaceac65a5a2c3a9e387a79d1d096
Impacts:
* Any bug leading to loss of funds or acceptance of forged / invalid signatures
## Description
## Brief/Intro
To process incoming ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Code Redundancy
### Description
## Code Review: getPrice Function
In `getPrice`, there is a redundancy in the calculation of the discounted price. The discount calculation, represented by `discountRate * convert(block.timestamp - start)`, is performed twice.
## Code Snippet
> _DutchAuction.sol 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 | initialization | true | false | ## Low: Prevent creating an investor record associated with no address
### Description
**Description:** `InvestorBasedRateLimiter::initializeInvestorStateDefault` is supposed to associate a newly created investor with one or more addresses but the `for` [loop](https://github.com/ondoprotocol/rwa-internal/blob/6747ebad... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | front-running | false | false | ## High: Namespace Access Can Be Backdoored
### Description
The [`WorldRegistrationSystem` contract](https://github.com/latticexyz/mud/blob/12a9eb1afb18a7f7cb43d774cabb2d5af7c74e6b/packages/world/src/modules/core/implementations/WorldRegistrationSystem.sol) takes care of registering namespaces, among other things. A 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... | skyward_49k | medium | liquidation | true | false | ## Medium: Total LP supply & total debt accrual is wrong
### Description
_Submitted by cmichel_
The total debt and total supply only increase when debt/supply is minted to the user when it should increase by the entire new interest amount on each accrual.
The borrow rates (see `borrowRatePerBlock`) are wrong due 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 | low | other | true | false | ## Low: `LensHub` contract cannot be unpaused if emergency admin and governance is the same address
### Description
In `GovernanceLib.sol`, the `setState()` function is used by both the emergency admin and governance to change the state of the contract:
[GovernanceLib.sol#L50-L60](https://github.com/code-423n4/2023-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 | other | false | false | ## Low: Functions _migration and _withdraw have unused statements migrator != address(this) and withdrawer != address(this)
### Description
**Description**
Function _withdraw can be called by functions: _migrate, withdraw(address,address),
withdraw(address, address, uint256), withdraw(address, address, uint256, uint2... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | input-validation | true | false | ## Medium: Missing validation of `msg.value` in the function `SecuritizeSwap::executePreApprovedTransaction()`
### Description
`SecuritizeSwap` allows anyone to execute pre-approved transactions using the function `SecuritizeSwap::executePreApprovedTransaction`. This function validates that the protocol is not paused ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | token | false | false | ## Low: decimals() is optional under the ERC-20 Standard
### Description
Although it is common practice to include the `decimals()` function in an ERC-20 token, the standard does not strictly require it and, in fact, explicitly states:
> **OPTIONAL** - This method can be used to improve usability, but interfaces and ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | true | false | ## Low: Incorrect implementation of edge cases in getY function
### Description
The `getY` function in the Invariant contract deviates from the intended behavior when the value of `R_x` is equivalent to `WAD` and `0`.
```solidity
if (R_x == WAD) return uint256(int256(stk) + inv); // For `ppf(0)` case, because 1 - R_x... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Tokens after delegation should not be unlocked automatically ✓ Addressed
### Description
When some amount of tokens are delegated to a validator when the delegation period ends, these tokens are unlocked. However these tokens should be added to `_purchased` as they were in that state before their delegation.
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | front-running | false | false | ## Medium: The reportBeacon is prone to front-running attacks by oracle members
### Description
## Oracle Front-Running Risk Assessment
**Severity:** Medium Risk
**Context:** Oracle.1.sol#L289
**Description:**
There could be a situation where the oracle members are segmented into two groups, A and B. Members 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 | high | token | true | false | ## High: Incorrect strike price displayed in name/symbol of qToken
### Description
_Submitted by rayn_
`_slice()` in `options/QTokenStringUtils.sol` cut a string into `string[start:end]` However, while fetching bytes, it uses `bytes(_s)[_start+1]` instead of `bytes(_s)[_start+i]`. This causes the return string to be ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | liquidation | true | true | ## Medium: Liquidation wrongly uses assetAmount will lead to losses to lenders
### Description
The calculation of `loanValueUsd` passed to the liquidation check wrongly uses `assetAmount` instead of `repaymentAmount`, leading to systematic losses for lenders because liquidation isn’t triggered until collateral value 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 | front-running | true | false | ## Low: Malicious user holding `HilBTC` tokens can front run blacklisted transaction
### Description
**Description:** When the `blacklister` attempts to blacklist a malicious user holding `HilBTC` tokens, the maliciois user can monitor the memepool and front-run the blacklist tx by quickly redeeming their `HilBTC` 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 | low | token | true | false | ## Low: Conflicting decimals handling
### Description
The `AaveV3YieldManager` contract expects the wrapper's underlying token to have a `decimals` method, while the `WrappedRebasingERC20` contract also supports underlying tokens without a `decimals` method.
### Recommendation
We recommend resolving this conflict in 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 | initialization | false | false | ## Low: Upgradeable contract initialization calls are commented out
### Description
The usage of OpenZeppelin’s upgradeable smart contract library requires that the parent contracts’ `init` functions are called in the child’s `initialize` function. However, this is commented out in the `ShareableRebalancePool` contrac... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: `StakedRWIP` has an empty name and symbol
### Description
In `StakedRWIP.initialize`, the `__ERC20_init` function is never called, so the token's name and symbol will be empty. Consider calling this function when initializing the contract.
**Fix:**
[PR 48: add name and symbol to stRWIP token](https://github.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Lack of a `_poolVote` length check inside `Voter.vote` could cause issues
### Description
User can `vote` an arbitrary amount of pools as long as it is registered inside the `Voter`.
This could cause issues. The lack of a maximum pools length check could result in an out-of-gas error, as many operations loop... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Reduce reads in purchaseMembership method
### Description
## Handle
a_delamo
## Vulnerability details
## Impact
The method `purchaseMembership` in `FSDNetwork` contract contains the code below.
Inside this method, we are constantly reading from the mapping `membership`, so why not use just one read `Membe... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | true | ## Medium: Multiple bundler IDs can point to the same address in BundlerRegistry
### Description
BundlerRegistry stores bundler data in two mappings:
1. Each bundler ID points to an address.
2. Each address points to the data for a bundler.
```solidity
mapping(address bundlerAddress => Bundler bundlerData) public bu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: StakingRewardsMultiGauge.recoverERC20 allows token managers to steal rewards
### Description
The `recoverERC20` function in the `StakingRewardsMultiGauge` contract allows token managers to steal rewards. This violates conventions established by other Frax Solidity contracts in which `recoverERC20` can be 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 | medium | other | true | false | ## Medium: Voters' rewards may be manipulated
### Description
In voter contract, voters vote for different gauges. Voters can gain some rewards from the rebaseReward and votingReward contract according to the actual voting weight. If the voting weight is higher, the voter may gain more rewards.
The problem here is 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... | cyfrin_structured | low | logic-error | true | true | ## Low: Potentially unsafe cast from negative `int96` values
### Description
Where calculations are performed on `int96` values, for example when manipulating stems in [`LibSilo::stalkReward`](https://github.com/BeanstalkFarms/Beanstalk/blob/dfb418d185cd93eef08168ccaffe9de86bc1f062/protocol/contracts/libraries/Silo/Li... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | oracle | false | false | ## Gas: Internal functions only called once can be inlined to save gas
### Description
Not inlining costs 20 to 40 gas because of two extra JUMP instructions and additional stack operations needed for function calls.
`_canMatchOrders`
- [Exchange.sol#L537](https://github.com/code-423n4/2022-11-non-fungible/blob/main/... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | token | false | false | ## Low: `SafeERC20` is not used
### Description
The issue is identified within the contract `Prestaking`. There is an import at [the following line](https://github.com/diadata-org/prestaking-contracts/blob/6ee4beee6cbcdb3b7e7ea1feb9a8b1192bc8c8ba/prestaking/src/Prestaking.sol#L4). But, `SafeERC20` logic is never used,... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | signature | false | false | ## Low: Re-implementing ECDSA signature recovery
### Description
The following functions include implementations of the ECDSA signature recovery function:
* [`castVoteBySig` in the `GovernorAlpha` contract](https://github.com/fei-protocol/fei-protocol-core/blob/29aeefddd97f31c7f2a598fb3dca3ef24dc0beb4/contracts/dao/... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | liquidation | false | false | ## High: Malicious Reward Address Blocking Liquidation
### Description
In `OperatorRewardsCollector._claim()`, the function responsible for finalizing liquidations and transferring ETH to the operator reward address is vulnerable to Denial-of-Service (DoS) attacks. An operator can set a malicious reward address that 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 | high | other | true | false | ## High: Unstake Causes All Users to Lose Their Rewards
### Description
The `StakingVault.unstake()` function should reduce the total amount of shares in the current cycle by the shares that get unstaked by the user. Instead, the total amount of shares from all stakes gets deleted.
### Impact
Since the `claimRewardsT... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Possible filling of already filled order
### Description
User can try to fill already filled order by mistake:
https://github.com/1inch/limit-order-protocol/blob/a14bde6a260458de5083cee117d734221e1cbc05/contracts/LimitOrderProtocol.sol#L294
### Recommendation
We recommend to add the following check:
```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 | medium | oracle | true | true | ## Medium: `strategy` contracts: exercise window ignored in premium calculation
### Description
The protocol currently allows options to be exercised within a **window after the maturity date** (i.e., `exerciseWindowDuration`):
```solidity
function isPayoffAvailable(uint256 positionID, address caller, address /*rec... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Pull Based Oracle may allow for profitable self-liquidations
### Description
**Executive Summary**
Pull based oracle allow using more than one price within the last 5 minutes, this opens up to a myriad of combinations that may allow for self-liquidations
**Description**
The likelihood that a price moves ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Missing rollover mechanism for Gauge
### Description
CLGauge supports rollover mechanism. For instance, if the reward period is passed inactively. Rewards are forwarded for the next notified reward amount.
This mechanism does not exist in Gauge implementation and the inactive rewarding period's reward is loc... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Add sanity limit to header accessor to prevent potential DoS attacks
### Description
The `ReadHeaderRange` function in the core/rawdb package is responsible for retrieving a range of headers from the Core database, starting from a given block number and going backwards towards the genesis block. However, th... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | reentrancy | true | false | ## High: Withdrawal blockage sellForLP Function Due to Price Being Set to Zero in SynthFactory Contract
### Description
The **SynthFactory** smart contract contains a critical vulnerability related to the **sellForLP** function. This function is designed to allow users to sell their synthetic assets (synths) for LP (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 | other | true | false | ## Low: Unused Import and Global State Variable
### Description
During the security assessment of the smart contract, an unused import and an unused global state variable were identified:
* **Unused Import**: The following import is defined in the `StrategyBaseUpgradeable.sol` file, but is not utilized in 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 | low | other | true | false | ## Low: Irreversible emission cap reduction in BaseGauge
### Description
The `setEmission` function in `BaseGauge` contract implements a one-way emission cap reduction that cannot be reversed, potentially leading to permanent protocol constraints as it cannot be adjusted to higher values later on.
### Impact
Once 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 | true | false | ## Low: In `_setStakingCondition()` sums can exceed `REWARD_RATIO_DENOMINATOR`
### Description
_Acknowledged_
`_setStakingCondition()` is used to set the reward ratio numerators and assign delegates.
The issue is that `_baseNumerator + _governanceNumerator + _hybridNodeNumerator` is not checked against `REWARD_RATIO... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | true | false | ## Low: Missing zero address checks
### Description
The `csprUSD` contract lacks address validation both during deployment and within its setter functions.
This oversight allows for the configuration of a zero address, potentially leading to complications during execution.
For instance, passing `Key::Account(Account... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Non-blocking LayerZero cross-chain buy operations can be blocked
### Description
When a cross-chain buy operation is performed, a LayerZero message is sent with a fixed `600_000` gas limit to execute in the destination chain:
```solidity
endpoint.send{value: msg.value}(
_dstChainId,
abi.encodePacked(... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | false | false | ## Medium: Design Flaw in Bridge Contract Suspension Mechanism - Phase 1
### Description
The Bridge contract implements a [`suspendMessages`](https://github.com/taikoxyz/taiko-mono/blob/b47fc34cb0e7fe9b7ebd9416b3051a067483b860/packages/protocol/contracts/bridge/Bridge.sol#L82) function that can be invoked by either 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: Events Can Be Emitted with Empty Arrays
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `6704de9f726d22100eadfaa85f75011318cd5e44`.
**File(s) affected:**`PriceFeed.sol`, `MultiLot.sol`
**Description:** The following functions take arrays as their arguments but do not validate their ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [11] Unsafe Cast
### Description
Use openzeppilin's safeCast in:
### Code instance:
https://github.com/code-423n4/2022-10-paladin/tree/main/contracts/WardenPledge.sol#L665 : unsafe cast uint64(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... | skyward_49k | low | other | false | false | ## Low: Incorrect Check Against autoAllocateThreshold
### Description
The [`_mint` function](https://github.com/OriginProtocol/origin-dollar/blob/eca6ffa74d9d0c5fb467551a30912cb722fab9c2/contracts/contracts/vault/OETHVaultCore.sol#L50-L85) auto\-allocates deposited assets into the configured strategies in case the amo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Borrower can craft a borrow that cannot be liquidated, even by arbiter.
### Description
LineOfCredit manages an array of open credit line identifiers called `ids`. Many interactions with the Line operate on ids\[0], which is presumed to be the oldest borrow which has non zero principal. For example, borrowers... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Berachain POL bribes to Infrared can never be claimed
### Description
Berachain POL bribes to Infrared are stuck in `BribeCollector` and can never be claimed for Payout token in the auction because `claimFees()` will always revert.
### Recommendation
Consider adding a call to `IWBERA(wbera).withdraw(amtInfra... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: After Unlocking Once, User Balances Remain Unlocked Forever ✓ Fixed
### Description
The `unlock()` function is designed to set a timelock parameter for a user, allowing them to unlock their account at a specified future time:
**contracts/src/core/BatcherPaymentService.sol:L124\-L131**
```
function unloc... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 functions about ```permit``` won't work and always revert
### Description
The functions about ```permit``` won't work and always revert
### Impact
We can't remove liquidity by using ```permit```.
### Recommendation
Implement ```permit``` function in ```JalaERC20```. Reference: https://github.com/Unisw... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: First-in price selection method enables oracle collusion Difficulty: Low
### Description
The Apollo Oracle allows any node with sufficient funds to submit asset prices. However, it truncates the array of prices, filtering out prices submitted after a certain number of answers (n, the `max_answers` value) has ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Token Upgradeability May Lead to Denial-of-Service
### Description
The Dimo token uses the EIP-1967 transparent proxy pattern to allow upgradeability, as has been used to upgrade from version 1. While upgradeability adds flexibility, its downside is potential uncertainty: any upgradeable contract can be modifi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing oracle decimal normalization
### Description
The `fetchOracle` function assumes that the oracles used for price feeds have the same decimals, which is not always the case. To ensure accurate price calculations, the function should normalize the decimals of the oracles similarly to how it handles token0... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Attacker can drain all ETH from IPSeed due to malicious `IIPSeedCurve` implementation
### Description
**Severity**
Impact: High. Attacker can drain all ETH.
Likelihood: High. Nothing prevents from exploiting.
**Description**
Currently user can specify arbitrary implementation of `IIPSeedCurve`:
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 | access-control | false | false | ## Medium: Message can be delivered out of order
### Description
Messages can be delivered out of order on the spoke. Anyone can call the permissionless `prove-AndProcess` to process the messages in any order they want. A malicious user can force the spoke to process messages in a way that is beneficial to them (e.g.,... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Misuse Of Request With Optimistic Execution
### Description
## Issue Overview
The issue is related to the use of the `req` pointer from the `RequestProcessProposal` argument within the goroutine of `Execute` in `optimistic_execution`. Since `req` is a pointer provided by `ProcessProposal`, if another part of ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | dos | false | false | ## Medium: ARCHITECTURE - MISSING RATE LIMIT
### Description
The {project} authentication system and API implementation in general were found to lack the rate limit mechanism, which in turn exposes the {project} to brute force and denial of service attacks at the level of the application logic.
### Recommendation
**S... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Lost fees in old community vault during gauge creation
### Description
_Acknowledged_
When `createAlgebraGauge()` creates a new community vault and switches the pool to use it, any fees accumulated in the old vault become permanently trapped and inaccessible.
The impact of this vulnerability is that the old... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Epoch accounting can be gamed
### Description
In the new adaptive fee mechanism, each new epoch will result in the `epochLongOI` and `epochShortOI` values being reset to zero. Users could achieve lower fees by intentionally placing their trades immediately after a new epoch starts. This might be undesirable or... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | medium | Validation | false | false | ## Risk Assessment Report
## Severity: Medium Risk
### Context
AeraVaultV1.sol#L260-L345
### Description
The Aera Vault constructor has the role to handle Balancer’s ManagedPool deployment. The constructor should increase the number of user input validations, and the Gauntlet team should be aware of the possible edge... | Spearbit | 5 | Gauntlet |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unnecessary staking limit decrease
### Description
Is not clear why staking limit should be decreased to index
https://github.com/lidofinance/lido-dao/blob/5b449b740cddfbef5c107505677e6a576e2c2b69/contracts/0.4.24/nos/NodeOperatorsRegistry.sol#L627
If we remove key at index 0 then we will have all keys of... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | liquidation | false | false | ## Medium: Liquidation failure for traders on USDC blacklist
### Description
During the process of liquidating an account, the associated trade is unregistered, and any remaining collateral is returned to the trader. In case liquidation happens, the `tradeValueCollateral` is 0.
function _unregisterTrade(
ITrading... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect comments for wExp(x) and errDelta
### Description
## Code Review Recommendations
## Context
- `MathLib.sol#L27`
- `MathLib.sol#L35`
- `MathLib.sol#L39`
- `SpeedJumpIrm.sol#L125`
## Description/Recommendation
### MathLib.sol#L27
- Current comment:
- `// Revert if x < -(2**255-1) + (ln(2)/2).`
- R... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: Discrepancies in Payload Format And Parsing
### Description
## Vulnerability Overview
The vulnerability in the `VerifyCompactUnlock` instruction arises from an inconsistency in how the hash for verifying the `compact_unlock.items` data is calculated compared to the hash calculated in the `PostUnlock` instr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | storage | false | false | ## Medium: State Variable Shadowing in Factory Contracts Causes Incorrect Fee Application
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `37fe3ecac78ea4ee34ea1802bf5053371801e1a3`. The client provided the following explanation:
> Removed the shadowed variables.
**File(s) affected:**`vestin... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Use the proxy pattern at the early stage of the protocol
### Description
**Severity**: Informational
**Status**: Acknowledged
**Description**
As the protocol evolves, incorporating upgradeability becomes essential for managing potential vulnerabilities, adding new features, and ensuring long-term viability.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | signature | false | false | ## High: Incorrect handling of point doubling can allow signature forgery
### Description
When verifying the sync committee signature, individual public keys are aggregated into an overall public key by repeatedly calling `G1Add` in a tree structure. Due to the mishandling of elliptic curve point doublings, a minority... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unspecified behavior of OVM gas refund for revert flags
### Description
In the `OVM_ExecutionManager` contract, certain [revert flags](https://github.com/ben-chain/contracts-v2/blob/a935e276f5620b40802b52721e3474232e458f72/contracts/optimistic-ethereum/OVM/execution/OVM_ExecutionManager.sol#L1019-L1022) trigge... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Centralized node batching and potential MEV exploitation
### Description
In the current centralized phase of the system, a single node is responsible for batching and processing UserOps from multiple users. While this centralized approach is acceptable for the initial demo phase, it introduces potential risks ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Hardcoded parameters in Governance
### Description
In the [`GovernorAlpha`](https://github.com/emptysetsquad/emptyset/blob/bf9753ef9cd5b17236036257f290e0d0b850a029/protocol/contracts/src/governance/GovernerAlpha.sol#L27) contract, the [`quorumVotes`](https://github.com/emptysetsquad/emptyset/blob/bf9753ef9cd5b... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The calculation of `totalAssets()` could be wrong if `operatorFeeAmount > 0`, this can cause potential loss for the new depositors
### Description
The fee accumulated by operator is stored in `operatorFeeAmount`. The amount is directly recorded based on the number of actual assets accumulated, not the portion... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unbounded loops in `reentrantSettle()` risk out-of-gas errors in calls
### Description
The `reentrantSettle()` function contains multiple unbounded loops that can lead to out-of-gas errors, particularly problematic since this function is designed to be called multiple times in nested/reentrant scenarios within... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Work towards a trustless model for ENS Acknowledged
### Description
The ENS registry itself is owned by a multisig wallet owned by a number of reputable Ethereum community members. That multisig wallet can do just about anything, up to and including directly taking over any existing or future registered na... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | First Depositor Issue | true | false | ## High Risk Severity Report
## Context
- **File:** pool-v2::Pool.sol
- **Line:** #L73
## Description
The first deposit with a `totalSupply` of zero shares will mint shares equal to the deposited amount. This makes it possible to deposit the smallest unit of a token and profit off a rounding issue in the computation ... | Spearbit | 4.666667 | Maple Finance |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | dos | false | false | ## Low: [17] PREIMAGE: If a keccak256 preimage is larger than the max size of an LPP, a valid state referencing it cannot be proven
### Description
Keccak256 hashes of data larger than `136 * MAX_LEAF_COUNT` bytes are possible on L2s with a higher block gas limit.
We think only hashes originated on L1 will need to be... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | false | false | ## Medium: User should be both `keeper` and `owner` to be able to set `to_be_liquidated = true`
### Description
**Severity**: Medium
**Status**: Resolved
**File**: strategy/programs/vaultka/src/lib.rs: 902 and 913
**Description**
In the `request_withdraw` function in the case when "dtv" is greater or equals
to the... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | rounding | true | false | ## Medium: StableMath._calcOutGivenIn may allow free swaps
### Description
The out-given-in function has rounding to calculate swaps, which could enable an attacker to obtain tokens at no cost. StableMath._calcOutGivenIn computes the number of tokens that one user will receive based on the number of tokens sent:
```s... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | cross-chain | false | false | ## Medium: Possible loss of assets
### Description
At the line https://github.com/aave/governance-crosschain-bridges/blob/763ef5da8befff3a129443a3ff4ef7ca4d3bb446/contracts/BridgeExecutorBase.sol#L253, a call is made to the payable functions with the transfer of assets.
But it is not always possible to set the exact 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: USE CUSTOM ERRORS INSTEAD OF REVERT STRINGS TO SAVE GAS
### Description
Custom errors are available from solidity version 0.8.4. Custom errors save ~50 gas each time they’re hit by avoiding having to [allocate and store the revert string](https://blog.soliditylang.org/2021/04/21/custom-errors/#errors-in-depth)... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | reentrancy | false | false | ## Medium: Reentrance in `CreditorNFT`
### Description
**Severity**: Medium
**Status**: Resolved
**Description**
The Checks Effects interactions (CEI) is not being followed in _deposit() of the CreditorNFT contract. This is because the safeTransferFrom is called on line: 182 on the debt token. If the debt token 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: [01] `onlyAuthorized` modifier introduces unnecessary centralization via in `PrelaunchPoints::convertAllETH`
### Description
`PrelaunchPoints::convertAllETH` is protected by the `onlyAuthorized` modifier, restricting access to this function to the protocol owner:
### Impact
The restriction deepens centraliz... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `CDPVault.sol#liquidatePositionBadDebt()` should not set profit `= 0` when calling `pool.repayCreditAccount()`
### Description
### Impact
`CDPVault.sol#liquidatePositionBadDebt()` should not set profit `= 0` when calling `pool.repayCreditAccount()`, as this would cause a loss of funds to lpETH stakers.
### ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Anyone can burn **DecentralizedStableCoin** tokens with `burnFrom` function
### Description
Anyone can burn `DSC` tokens with [`burnFrom`](https://github.com/OpenZeppelin/openzeppelin-contracts/blob/0a25c1940ca220686588c4af3ec526f725fe2582/contracts/token/ERC20/extensions/ERC20Burnable.sol#L35-L38) function... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: Preventing balance updates by adding a new validator in the current block
### Description
The balance of the user's validators can be updated by creating a new snapshot and proving the balance of the validators. If a user doesn't start a new snapshot in time then anyone can start a snapshot for that user 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 | medium | access-control | true | false | ## Medium: Whitelisted Vaults Not Receiving Accumulated Rewards
### Description
When a vault is initially not whitelisted and later becomes whitelisted using `setWhitelistedVault`, any rewards that should have accrued to the vault during the period before whitelisting are lost. The vault does not receive any retroacti... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Fixed token account size causes initialization failures for token accounts whose mints have token 22 extensions are active
### Description
**Description:** The `create_token` function in `token.rs` uses a hardcoded size of 165 bytes when creating SPL token accounts, regardless of whether the mint has 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 | low | other | false | false | ## Low: SafeGuarding Time And Price Inputs From Sequencer
### Description
## Endpoint Contract
In the Endpoint contract, `UpdateTime` and `UpdatePrice` transactions are used to update the price and time. However, there are no checks to ensure the values are safe. The checks that need to be ensured are:
1. Price has ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Broker's Publish, Broadcast & Shutdown are unrealiable for delivery guarantees and prone to vari-
### Description
## ous race panics
**Severity:** Medium Risk
**Context:** mod/async/pkg/broker/broker.go
**Description:**
Publish/Broadcast and shutdown (due to `<- ctx.done()` in start) can happen conc... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The `FullMath` library is unable to handle intermediate overflows due to overflow that's desired but never reached
### Description
The [`FullMath`](https://github.com/sherlock-audit/2023-01-uxd/blob/2f3e8890ba64331be08b690018f93d3b67e82c11/contracts/libraries/FullMath.sol#L10) library doesn't correctly hand... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing Yield Booster Mechanism in CamelotSynthChef Contract
### Description
The current implementation of the `CamelotSynthChef` contract lacks a yield booster mechanism, which is present in the original Camelot protocol. This feature could potentially increase the APR for users and make the yield farming mo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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] `launchTime` and `refundDeadline` can be initialized in the past
### Description
`launchTime` can be set to a value `< block.timestamp`, and so `refundDeadline` as well in `initProject()`. Although, `launchTime` is validated against the `project.end` value in `ILOManager::initILOPool()` and against the v... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | medium | initialization | true | false | Source: https://github.com/sherlock-audit/2023-02-openq-judging/issues/244
## Found by
rvierdiiev, Jeiwan, HonorLt, 0x52, ak1, GimelSec, usmannk, TrungOre, bin2chen, caventa, StErMi, clems4ever, ck, unforgiven, ArcAnya, XKET
## Summary
According to some comments in `setPayoutScheduleFixed`, reducing the number of ... | Sherlock | 5 | OpenQ |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: `DEFAULT_ADMIN_ROLE` can be mistakenly granted to an account when granting permission to call `fallback` on any contract
### Description
`AccessControlManager` is in charge of managing roles and permissions for accounts to determine what users can call on which contracts.
Permissions are granted at the select... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing Update of `lastProposalTime` in `proposeTransaction`
### Description
The issue has been identified within the `proposeTransaction` function of the `daoVetoImplant` contract.
The function fails to update the `lastProposalTime` variable to the current `block.timestamp` after a proposal is created. Thi... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.