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... | solodit_api | medium | oracle | true | false | Source: https://github.com/sherlock-audit/2023-12-notional-update-5-judging/issues/38
## Found by
xiaoming90
## Summary
Due to an incorrect calculation of the max lending amount, external lending can exceed the external withdrawal threshold. If this restriction/threshold is not adhered to, users or various core fun... | Sherlock | 5 | Notional Update #5 |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Uninitialized Implementation Contract
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `cb4bb1729000512353deb34bff478ecea77859a3`.
The affected contracts now call `_disableInitializers()` in the constructor.
**File(s) affected:**`CyanPaymentPlanV2.sol`, `CyanApeCoinPlan.sol`, `CyanAp... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 underscores for number literals
### Description
There is occasions where certain number have been hardcoded, either in variable or in the code itself. Large numbers can become hard to read.
### Recommendation
Consider using underscores for number literals to improve its 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 | high | signature | false | false | ## High: Attacker Can Grief `mintWithSignature` And `mintWithAutomation` Calls
### Description
**Severity** - High
**Status** - Resolved
**Description**
A debtor can accept a creditor’s loan position from the DebtorNFT.sol contract . Aside from the usual mint function (which accepts a loan offer an mints a debtor 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 | rounding | false | false | ## Medium: Wrong price calculation with inverse base and negative interest rates
### Description
To calculate `token0OverToken1` for tokens that accrue value, `swapStorage.perSecondInterestRate` is used to adjust the base price of the asset. Depending on the order of the tokens, this value can be positive or negative.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `grantRole` and `revokeRole` in `elyHYPE` lack admin privileges
### Description
_Resolved_
The `grantRole` and `revokeRole` functions in the `elyHYPE` contract are designed to perform role management calls to the `elytraConfig` contract, but they will always fail due to a fundamental access control issue.
T... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | false | false | ## Low: Everyone can deploy new Comet instances
### Description
Each [`Comet`](https://github.com/compound-finance/comet/blob/0f1221967149115f50a09681eea9580879ee7720/contracts/Comet.sol) contract implementation that the protocol might decide to create is meant to be deployed in the [`Configurator`](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: Multiple Possible 0-1 Knapsack Solutions, but only the First One Gets Accepted
### Description
**Update**
Marked as "Acknowledged" by the client. The Ajna team updated the whitepaper to inform the users about this process. The client provided the following explanation:
> Updated documentation
**File(s) affec... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `CurveLPStaking` Curve's gauge rewards cannot be claimed
### Description
Note: This issue is a part of the extra scope added by Sentiment AFTER the audit contest. This scope was only reviewed by WatchPug and relates to these three PRs:
1. [Lending deposit cap](https://github.com/sentimentxyz/protocol/pull/23... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: setWithdrawalQueue allows for duplicated strategies
### Description
The function to set the order of the withdrawal queue does not check for duplicated strategies, which can force a vault into an invalid state. Once strategies have been added to a vault, they will automatically be included in the withdrawal qu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | other | true | false | ## Low: Add sanity check to `LineaRollup::submitBlobs` to ensure all blobs are validated
### Description
In `LineaRollup::submitBlobs`, if `_blobSubmissionData.length` is smaller than the actual number of attached blobs the code will successfully execute and store an intermediate value to `shnarfFinalBlockNumbers[comp... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | cross-chain | false | false | ## High: Lack of proper integration with Gelato relay
### Description
**Severity**: High
**Status**: Resolved
**Description**
The protocol employs Gelato for gasless transactions, enabling users to send transactions without a native token balance. However, with off-chain relaying, msg.sender no longer denotes 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 | gas | other | false | false | ## Gas: Optimize names to save gas
### Description
Contracts most called functions could simply save gas by function ordering via `Method ID`. Calling a function at runtime will be cheaper if the function is positioned earlier in the order (has a relatively lower Method ID) because `22 gas` are added to the cost of 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... | cyfrin_structured | low | integer-overflow | true | false | ## Low: Consider implementing explicit rounding behaviour instead of default round down
### Description
All functions in `ShareMath.sol` round down to the nearest integer currently. This can be unfavourable in certain instances for the SherpaVault.
For example, the `ShareMath.pricePerShare` function uses integer divi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Loan can be seized during an auction
### Description
Loans can be seized before the end of their auction.
### Impact
If an user who wants to buy a loan is backrunned in a block where the timestamp matches the end of the auction, he can end up buying a loan that gets seized by a malicious actor. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Macro Implementations Missing Adequate Docstrings
### Description
In the `codegen` folder, the files that hold the implementations for each macro are missing proper docstrings. Given the complexity and length of the code, adding detailed docstrings is strongly recommended. This will make it easier for reade... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | token | false | false | ## Gas: Use a temporary variable to cache repetitive complex calculation
### Description
_Submitted by 0xRajeev, also found by gpersoon_
In function `delegatedTransferERC20()`, the complex calculation `keccak256(abi.encodePacked(msg.sender, token))` is performed three times in three different places in the function. ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | oracle | false | false | ## Low: Missing or Incomplete Docstrings
### Description
Throughout the [codebase](https://github.com/Ion-Protocol/ion-protocol/tree/98e282514ac5827196b49f688938e1e44709505a/), many of the contracts have missing or incomplete docstrings. There are also several docstrings that either do not document all arguments, do 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 | gas | other | true | false | ## Gas: Visibility: Public functions to external
### Description
The following functions could be set external to save gas and improve code quality.
External call cost is less expensive than of public functions. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The application supports the concurrent sessions
### Description
**Severity** : Low
**Status** : Resolved
**Description**:
Failsafe application currently permits authentication of a single account multiple times, leading to the possibility of multiple sessions. This also means users cannot invalidate p... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | dos | false | false | ## Medium: Incorrect data location specifier can be abused to cause DoS and fund loss
### Description
## Handle
0xRajeev
## Vulnerability details
## Impact
The withdrawBounty() loops through the _bounties array looking for active bounties and transferring amounts from active ones. However, the data location speci... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: isValidERC6492SignatureNowAllowSideEffects() can differ from reference ERC-6492 implementation
### Description
When deploying a contract using ERC-6492, the following scenario can occur:
- The signer address does not initially have code.
- The deployment call succeeds in deploying the signer.
- The first call... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Missing check for exported symbol during Wasm code validation
### Description
The `validate_export_section` function fails to check that the module does not export the symbol “canister counter_instructions.” When the module is instrumented, a global symbol with that same name is added to it.
```wasm
(module
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Calculations which won't underflow/overflow in `Executor.sol` can be unchecked
### Description
[File: ethereum/contracts/zksync/facets/Executor.sol](https://github.com/code-423n4/2023-10-zksync/blob/1fb4649b612fac7b4ee613df6f6b7d921ddd6b0d/code/contracts/ethereum/contracts/zksync/facets/Executor.sol#L93-L94)
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: User can deposit zero amount and become participant.
### Description
**Description**
TokensFarm.sol: function deposit().
Perpetual TokensFarm.sol: function deposit().
Function has no validation, that deposited amount is greater than zero, thus, any user is able to create an invalid stake and become a partici... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Users can deny the vault from claiming reward tokens
### Description
Users can deny the vault from claiming reward tokens by front-running the `_claimVaultRewards` function.
### Impact
High as this issue is the same [this issue](https://github.com/sherlock-audit/2023-03-notional-judging/issues/200) in the 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 | medium | liquidation | true | false | ## Medium: Magnetar `exitPositionAndRemoveCollateral()` could fail when withdrawing removed assets/collateral
### Description
**Severity**
**Impact:** Medium, as this will cause the function to revert
**Likelihood:** Medium, as this occurs when user wish to withdraw the underlying collateral from YieldBox
**Descript... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | true | false | ## Severity: Medium Risk
## Context
- `BridgeFacet.sol#L299-L304`
- `BridgeFacet.sol#L637`
## Description
The Connext protocol does a cross-chain transfer with the help of the Nomad protocol. In order to use the Nomad protocol, Connext has to convert the adopted token into the local token. For a cross-chain transfer,... | Spearbit | 5 | Connext |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Churn Rate Due To Arbitrage
### Description
The redemption rates are used to price assets. This has shown to not always equal the market price as LSTs can trade both above and below their redemption rate for extended periods of time. This means that the rsETH protocol can be used for arbitrages: a below peg 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 | low | initialization | false | false | ## Low: Missing RateProvider check in the deploy script
### Description
In the PSM3Deploy.sol contract, when the PSM contract is deployed, a RateProvider is passed as a parameter. However, there is a missing check to verify whether the rate provider has been properly initialized.
### Recommendation
Consider adding 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: Uncapped Level Progression
### Description
## Issue Summary
The function `state::calculate_points_for_level` does not properly enforce `MAX_LEVEL`, allowing users to potentially accumulate enough experience points to exceed the intended maximum level. The function only handles the case where `level == MAX_... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 remove existing term without queueing through `setTerms()`
### Description
In `PoolOfferHandler`, new terms require a two-step process for setting (`setTerms()` and `confirmTerms()`). The `setTerm()` function is `onlyOwner`, but the `confirmTerms()` function can be called by anyone. This function... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | flash-loan | true | false | ## Low: Description of flash loan function is inconsistent with code
### Description
The function `flashLoan` in `LendingPool.sol` takes an argument `mode` that specifies the interest rate mode. If the mode is `ReserveLogic.InterestRateMode.NONE` the function call is treated as a flash loan, if not a normal borrow 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 | medium | token | true | false | ## Medium: Cannot use uint256.max to repay the balance of aavev3optimizermigrationbundler
### Description
The `aaveV3OptimizerRepay`'s natspec states the following for the amount parameter:
> The amount of underlying to repay. Pass `type(uint256).max` to repay the bundler's underlying.
Passing `type(uint256).max` to... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: A user can call the `voluntaryExit` function with invalid/non-existent validator pubkeys
### Description
There is an issue at line https://github.com/p2p-org/eth-staking-fee-distributor-contracts/blob/30a7ff78e8285f2eae4ae552efb390aa4453a083/contracts/feeDistributor/BaseFeeDistributor.sol#L151 and https://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 | overflow | true | false | ## Low: `SettlementBranch::_fillOrder` reverts if absolute value of PNL is smaller than sum of order and settlement fees
### Description
**Description:** `SettlementBranch::_fillOrder` calculates the position's PNL as `pnl = unrealizedPnl + accruedFunding + unary(orderFee + settlementFee)`:
If PNL is positive and un... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | rounding | true | false | ## Low: Hard-coded minimum deposit amount ✓ Fixed
### Description
The `deposit` function specifies a minimum amount of 1e12 units of the base token for a deposit:
**code/contracts/Pool.sol:L22**
```
uint256 constant AMOUNT\_PER\_SHARE = 1e18;
```
**code/contracts/Pool.sol:L369-L376**
```
// Anyone can be a sell... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | storage | false | true |
_Submitted by harleythedog_
#### Impact
The `CallFacet.sol` contract has the function `_call` :
function _call(
address _target,
bytes memory _calldata,
uint256 _value
) internal {
require(address(this).balance >= _value, "ETH_BALANCE_TOO_LOW");
(bool success, ) = _target.call{... | Code4rena | 5 | Amun |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Excess functionality.
### Description
**Description**
StakingB_1.sol Line 632
Calling pool.token will cause the same result as the tokenAddress() function.
**Recommendation**:
Delete tokenAddress() 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 | front-running | true | false | ## Medium: The buyer of the ticket could be front-runned by the ticket owner who claims the rewards before the ticket's NFT is traded
### Description
If the ticket owner lists the winning ticket on the secondary market and initiates their own claiming transaction before the trade transaction takes place, the NFT buyer... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Users could overpay fees when buying votes
### Description
The `previewFees` function in `_calculateBuy` is applied to the total `funds` being transferred by the user. This leads to users paying for more funds that they are actually transacting.
### Impact
Medium. As shown in the "Attack Path" section, fees ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | oracle | true | false | ## Medium: Should check return data from Chainlink aggregators
### Description
The `getEtherPrice` function in the contract `FSDNetwork` fetches the ETH price from a Chainlink aggregator using the `latestRoundData` function. However, there are no checks on `roundID` nor `timeStamp`, resulting in stale prices.
Recomme... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: (HAL-05) Use of transfer()
### Description
In the `HaloSocialMining.sol` and `HaloAirdrop.sol` contracts when an emergency withdraw of the native tokens is performed, the solidity build in `transfer()` function is used to handle the native token transfer, it does this by forwarding a fixed amount of 2300 gas. ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The `RFPSimpleStrategy._registerRecipient()` does not work when the strategy was created using the `useRegistryAnchor=true` causing that nobody can register to the pool
### Description
Source: https://github.com/sherlock-audit/2023-09-Gitcoin-judging/issues/245
## Found by
0xMAKEOUTHILL, 0xarno, 0xbepres... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing Asset Whitelisting/Denom Check in FeedPrice Method
### Description
The current implementation of the **FeedPrice** method in the **msgServer** struct lacks an essential security feature: asset whitelisting for the price feeder. This function is designed to update the price of an asset provided by a pri... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | access-control | false | false | ## High: removeSession() doesn't remove data completely from installed policy modules
### Description
When a smart account uninstalls the SmartSession module or removes a session, the `removeSession()` function is called, which is responsible for deleting all associated data from the policy modules, etc., connected wi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | front-running | true | false | ## High: acceptCounterOffer() May Result In Both Orders Being Filled
### Description
## Lines of code
https://github.com/code-423n4/2022-06-putty/blob/3b6b844bc39e897bd0bbb69897f2deff12dc3893/contracts/src/PuttyV2.sol#L573-L584
## Vulnerability details
## Impact
When a user is attempting to accept a counter offer... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Improper Authorization Login in Farming Instructions
### Description
The `add_farm` and `send_farm_tokens` instructions in `exponent_core::market_two` lack sufficient access control checks. Without proper access controls, any user may call these functions, potentially manipulating the farm emissions data, i... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Events Emitted Even if No Update Is Performed
### Description
**Update**
Mitigated as only point 2 was fixed by implementing `_executeTransaction()` and emitting the event inside it. Addressed in: `ffef3207b79ef67b59853f7b0a4559bb74f15832`.
The client provided the following explanation:
> _Fixed only no.2._
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Public functions not called by the contract should be declared external instead
### Description
Contracts are allowed to override their parents' functions and change the visibility from external to public.
Blocklist.sol::33 => function isBlocked(address addr) public view returns (bool) {
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 | high | oracle | true | false | ## High: Using Uniswap spot price is subject to manipulation
### Description
**Severity**
**Impact:** High
**Likelihood:** High
**Description**
The protocol uses the Uniswap V3 quoter contract to get the current value of the supported tokens in terms of the base token (USDC). The values returned by the quoter are ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `EternalVirtualPool._distributeRewards()` has an unnecessary parameter
### Description
Internal function `EternalVirtualPool._distributeRewards()` uses the `currentTimestamp` parameter:
https://github.com/cryptoalgebra/Algebra/blob/7290fad656bfa89db3743c52af631154f6a8a2d5/src/tokenomics/contracts/farmings/Eter... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Absence of the payable modifier for request fees
### Description
The `ApiologyDAOAuctionHouse::requestRandomNumber` function sends ETH as a `requestFee` when calling the `entropy::requestWithCallback` function.
This function is invoked from `ApiologyDAOAuctionHouse::_createAuction`, which can be triggered 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 | high | other | false | false | ## High: Upgradeable contracts can block minipool withdrawals
### Description
At the beginning of this audit, the Rocket Pool team mentioned an important invariant: if a node operator is allowed to withdraw funds from a minipool, the withdrawal should always succeed. This invariant is meant to assure node operators 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 | true | false | ## Low: Debugging Import Included in Production Code
### Description
Most contracts in scope include the following import:
```
import "hardhat/console.sol";
```
The `console.sol` library is a debugging utility from Foundry, typically used for logging during development and testing. Including it in production 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: UNUSED MINTED VARIABLE
### Description
None
Code Location
-------------
### Recommendation
**SOLVED**: Variables were removed from the parameters and the contract storage. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: += and -= are more expensive
### Description
### Relevant GitHub Links
https://github.com/Cyfrin/2023-07-beedle/blob/658e046bda8b010a5b82d2d85e824f3823602d27/src/Staking.sol#L41
https://github.com/Cyfrin/2023-07-beedle/blob/658e046bda8b010a5b82d2d85e824f3823602d27/src/Staking.sol#L48
https://github.com/Cyfri... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 avoid paying borrowing interest after the fyToken matures
### Description
According to the protocol design, users have to pay borrowing interest when repaying the debt with underlying tokens after maturity. However, a user can give his vault to `Witch` and then buy all his collateral using underly... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | false | false | ## Low: Missing notPaused() modifier on functions proposeUSDPrice(), approveUSDPrice(), disapproveUSDPrice()
### Description
Functions [proposeUSDPrice()](https://github.com/code-423n4/2024-05-munchables/blob/57dff486c3cd905f21b330c2157fe23da2a4807d/src/managers/LockManager.sol#L142), [approveUSDPrice()](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 | gas | other | true | false | ## Gas: Generate merkle tree offchain
### Description
Generate merkle tree onchain is expensive espically when you want to include a large set of value. Consider generating it offchain a publish the root when creating a new pool.
[Link to code](https://github.com/code-423n4/2022-12-tessera/blob/f37a11407da2af844bbfe... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | token | true | false | ## Gas: Cache `erc20EntitlementPerUnit` and `distributableERC20s` storage arrays in memory outside of nested for loops to avoid multiple `Gwarmsload` for every `i` value.
### Description
Two `for` loops are nested here, so the internal `for` loop will run `distributableERC20s.length` times for every `i` value. That me... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | DOS | true | true |
### Lines of code
<https://github.com/code-423n4/2023-05-maia/blob/main/src/ulysses-omnichain/RootBridgeAgent.sol#L684><br><https://github.com/code-423n4/2023-05-maia/blob/main/src/ulysses-omnichain/RootBridgeAgent.sol#L728>
### Vulnerability details
Both `RootBridgeAgent._gasSwapIn()` and `RootBridgeAgent._gasSwap... | Code4rena | 5 | Maia DAO Ecosystem |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [42] `execute()` & `executeInstant()` could use `msg.value` in a better manner
### Description
### Proof of Concept
Take a look at https://github.com/code-423n4/2024-03-zksync/blob/4f0ba34f34a864c354c7e8c47643ed8f4a250e13/code/contracts/ethereum/contracts/governance/Governance.sol#L167-L202
We can see 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 | medium | other | false | false | ## Medium: [FIXED] Latency of APS logic in `CrvUsdApsConvexCurveStratBase`, `FraxApsConvexCurveStratBase`
### Description
The functions `inflate` and `deflate` in the contracts `CrvUsdApsConvexCurveStratBase` and `FraxApsConvexCurveStratBase` can only be called by the DAO. The DAO mechanism involves significant latenc... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Rounding issue in price formula
### Description
**Severity**
**Impact:** Medium
**Likelihood:** High
**Description**
Here is current formula:
There are several issues:
1. First parameter `(totalSupply * curveFactor) / (totalSupply - x)` is rounded down, because both numerator and denominator are 1e18 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 | high | liquidation | false | false | ## High: Incorrect comparison in SetCollateralSetting method
### Description
Umee users can send a `SetCollateral` message to disable the use of a certain asset as collateral. The messages are handled by the `SetCollateralSetting` method (Figure 11.1), which should ensure that the borrow limit will not drop below the ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Wrong return parameter type is used for getOwed
### Description
Both variations of `getOwed` use `_getOwed` and return `uint192`. But `_getOwed` returns a `uint88`.
### Recommendation
The return types of both `getOwed` variations need to be changed to `uint88`. Also, note that most parameters that deal with 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 | medium | front-running | true | false | ## Medium: Sandwich Attack in convertTokens Function
### Description
The **convertTokens** function calls the swap function of the IPool interface with the **minAmount** parameter set to 0. By setting **minAmount** to 0, the function is essentially allowing any amount of slippage during the swap. This can expose the 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 | true | false | ## Low: Incorrect Event Emission in Constructor
### Description
**Severity**: Low
**Status**: Resolved
**Location**: AdvancedOrderEngine.sol
**Description**
The `feeCollectorAddr` parameter is incorrectly emitted as part of the `PredicatesChanged` event in the constructor of the `AdvancedOrderEngine` contract, 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 | other | false | false | ## Low: Incorrect description for `auctioneerCut`
### Description
Technically, the `auctioneerCut` goes to the `to` address specified by the auctioneer when `auction()` is called, which, while unlikely, may not be the auctioneer himself. Also, the comparison is done against the `to` address specified, not the caller /... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Buyouts that occur during the timestamp wrap will have valuation errors
### Description
The `_blockTimestamp` has a modulo applied, so at some point, there will be a timestamp with a value close to 2^32, followed by a timestamp close to zero. The `_updateTWAV` function does an unchecked subtraction of the two ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `sendParam.minAmountLD` slippage setting is too strict
### Description
Across the codebase, the `minAmonutLD` and `amountLD` is set to equal value:
if (data.collateralAmount > 0) {
address collateralWithdrawReceiver = data.withdrawCollateralParams.withdraw ? address(this) : data.user;
uint256 collate... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unnecessary checking if `caller` is blacklisted inside `_withdraw`
### Description
When `_withdraw` is triggered, it checks whether the `caller` is blacklisted.
However, `_withdraw` eventually triggers `_burn`, which calls `_beforeTokenTransfer` where the `msg.sender` or `caller` blacklist check is also perf... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The Exchange owner should not be able to call executeTransaction or batchExecuteTransaction Won't Fix
### Description
If the owner calls either of these functions, the resulting `delegatecall` can pass `onlyOwner` modifiers even if the transaction signer is not the owner. This is because, regardless of 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 | gas | other | true | false | ## Gas: Unnecessary usage of `_msgSender()` to validate if caller is the `Issuer` on the `STBL_PT1_YieldDistributor`
### Description
**Description:** On the `STBL_PT1_YieldDistributor` contract, the functions `enableStaking()` and `disableStaking()` use the modifier `isIssuer()` to validate if the caller is the author... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Marketplace OGN balance is drainable through withdrawListing
### Description
The Marketplace contract allows for the submission and withdrawal of listings by users. When submitting a listing, an initial deposit may be made in OGN, and a deposit manager address is assigned.
```solidity
function _createListing... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | logic | true | false | ## Low: Wrong formula in function `getWTAOByrsTAOAfterFee()`
### Description
In the function `getWTAOByrsTAOAfterFee()` code should calculate wTAO amount and then subtract the `unstakingFee` from it. This won't cause an issue in the current code because the ratio is 1 but in general the formula is wrong. The issue exi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | ## Low: Harden Chainlink Price Feed integration
### Description
The `AggregatedChainlinkOracle` currently lacks validation of the returned data, aside from a simple sanity check ensuring the price is non-zero.
```solidity
function latestPrice() public view virtual override returns (uint256) {
(, int256 answer,,,) =... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unnecessary typecast - `assetOracleSourceType` returns `uint8` type and can be assigned to `sourceTypes[i]`
### Description
* src/PriceOracle.sol
* Instances(1)
`assetOracleSourceType` returns `uint8` type and can be assigned directly to `sourceTypes[i]` without typecast
[PriceOracle.sol# L90](https://github... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | false | false | ## High: For the first 10 cycles of the network a malicious user can join with an unlimited amount of validators and 0 staked funds, bypassing all checks done to the stake certificate in the join request and becoming an active validator in the network
### Description
Report type: Blockchain/DLT
Target: 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 | storage | false | false | ## Low: [16] `_prepareBasicFulfillmentFromCalldata` overwrites memory extensively
### Description
The `_prepareBasicFulfillmentFromCalldata` function prepares ABI encoded data at fixed location in memory (starting at `0x80` and writing as high as `0x1e0+0x20`).
The overwritten memory does not seem to be saved, and 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 | cross-chain | false | false | ## Medium: LibSwap: Excess funds from swaps are not returned
### Description
_Submitted by hickuphh3, also found by 0xDjango, cccz, JMukesh, and Ruhum_
[LibSwap.sol#L29-L58](https://github.com/code-423n4/2022-03-lifinance/blob/main/src/Libraries/LibSwap.sol#L29-L58)
It is probable for `_swapData.fromAmount` to be gr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Wrong implementation of orderbook can make user can't get their fund back
### Description
When a user remove an order, next user call `addLimitOrder` can override the latest order with his/her order. It will make one who is owner of that latest order lose their fund.
### Impact
User whose order is overrided ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Free deliveries are only allowed when delivering with signature
### Description
When a mech does a simple delivery to the marketplace by calling `deliverMarketplace` in the relevant balance tracker, there is the following check in `finalizeDeliveryRates` which prevents free deliveries:
```solidity
// Check fo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: No two-step address change for `buyer` and `seller`
### Description
There are two functions [`updateSeller`](https://github.com/MetaLex-Tech/LeXscrow/blob/94ca277528bb25b8421dc127941c18915144eb29/src/EthLexscrow.sol#L255) and [`updateBuyer`](https://github.com/MetaLex-Tech/LeXscrow/blob/94ca277528bb25b8421dc12... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `getConversionPath()` does not handle the zero address feed
### Description
_Resolved_
`CurveCryptoswapOracle.getConversionPath()` returns a string with the conversion path for the price calculation.
However, it is not taken into account that `token0ToUsdFeeds` can contain the zero address to signify an "id... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Calculating total assets on deposit misses temp withdrawal subtraction
### Description
Upon depositing in a vault, we compute the `totalAssets` like this:
The issue is that it does not subtract `temp.vars[2]` which corresponds to the temp withdrawal amount. While this has no impact currently as there is no w... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unfair Token Redemptions when an Underlying Stablecoin Depegs
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation:
> Planned to fix it in future release of treasury contract
**Description:** The protocol currently has no clear contingency plan on h... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Flawed lastEligibleTime Function
### Description
The [`lastEligibleTime`](https://github.com/radiant-capital/v2-core/blob/e8f21f103e17736907b62809d1ad902febc53714/contracts/radiant/eligibility/EligibilityDataProvider.sol#L228) function should return a value pointing to a future date, since it represents the po... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrectly Calculated Emission
### Description
## Audit Report: pool::update_emission Function
## Issue Description
The `pool::update_emission` function incorrectly validates the balance of `reward.authority`.
The balance of `reward.authority` is compared with `emission_per_day`, meaning that it is expecte... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `toAssets()` may return misleading results when a filler is in progress
### Description
The `FoliotoAssets()` function includes balances from the `activeTrustedFill` contract. If an auction swap is in progress, this may include both the buy token and/or the sell token, depending on whether the swap is partiall... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: ERC20 token decimals should be of uint8 type
### Description
The [ERC20 specification](https://eips.ethereum.org/EIPS/eip-20#decimals) defines the token’s `decimals` to be a `uint8` type. While the [`Coin` token implements this correctly](https://github.com/reflexer-labs/geb/blob/261407b6b332c2063e4256aa5f9b22... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Emergency Exit Logic Undermines Pausable Mechanism
### Description
**Severity** : Medium
**Status** : Resolved
**Description** :
The contract Locking implements an emergency exit mechanism alongside the Pausable functionality inherited from OpenZeppelin's Pausable contract. However, the logic used to det... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [23] Redeployment considerations for `L2ContractHelper/Config.sol` in case of updates
### Description
### Proof of Concept
Several functions and constants within `L2ContractHelper/Config.sol` are utilized by multiple Diamond facets across the smart contract system. Modifications to these shared elements neces... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | medium | Stale Price | true | false | Source: https://github.com/sherlock-audit/2023-02-blueberry-judging/issues/94
## Found by
8olidity, tsvetanovv, WatchDogs, Nyx, Avci, obront, Aymen0909, SPYBOY, HonorLt, csanuragjain, koxuan, evan, rbserver, hl\_, peanuts, Chinmay
## Summary
https://github.com/sherlock-audit/2023-02-blueberry/blob/main/contracts/or... | Sherlock | 5 | Blueberry |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Use of urllib could allow users to leak local files
### Description
To upload images of new tokens to S3, the `upload_media_from_url_to_s3` function uses the `urllib` library (Figure 20.1), which supports the `file://` scheme; therefore, if a malicious actor controls a dynamic value uploaded to S3, she could 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 | liquidation | false | false | ## Medium: Possible Unfair Race Conditions Between Borrowers and Liquidators when the System Is Activated Again
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation:
> We mitigate this on the process level: before update we warn in advance users to take acti... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Cryptographic primitives lack sanity checks and clear function names
### Description
Several cryptographic primitives are missing sanity checks on their inputs. Without such checks, problems could occur if the primitives are used incorrectly.
The `remove_0x` function (figure 17.1) does not check that the inpu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Overly permissive CORS configuration
### Description
The Router API is configured with an overly permissive Cross-Origin Resource Sharing (CORS) policy that allows requests from any origin.
Example HTTP Response :
**Recommendation**
Consider implementing origin allowlisting. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Excess eth not refunded to user in `MysteryBox::revealMysteryBoxes()`
### Description
**Description:** `MysteryBox::revealMysteryBoxes()` [allows execution](https://github.com/Earnft/smart-contracts/blob/43d3a8305dd6c7325339ed35d188fe82070ee5c9/contracts/MysteryBox.sol#L196-L198) if `msg.value >= mintFee` b... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.