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 | true | false | ## Low: `renounceOwnership` can be called to break operations
### Description
All the state changing functions except `deposit` can only be called by the `Owner` of the `SimpleDepositor` contract. Hence the contract is highly centralized. Since `SimpleDepositor` is inheriting from `Ownable` it implements the `renounce... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `PledgeManager::refundTokens` doesn't decrement `tokensSold` when pledge hasn't concluded, preventing pledge from reaching its funding goal
### Description
**Description:** `PledgeManager::refundTokens` doesn't decrement `tokensSold` when pledge hasn't concluded.
**Impact:** The pledge will be prevented fr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [02] User will lose the rebasing tokens
### Description
Balance changes outside of transfers are in scope.
Those tokens will make arbitrary balance modifications outside of transfers. Users who supply [`BVault.sol#depositERC20()`](https://github.com/code-423n4/2024-07-benddao/blob/main/src/modules/BVault.sol#... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: In getConsXBlock() , accessing xblock.Msgs[0] could panic
### Description
If the length of `xblock.Msgs` is zero, accessing the first element will cause a panic. After chatting with the team about this, we have deemed it an impossible situation. Omni consensus xblocks cannot be empty; only true EVM xblocks can... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | oracle | false | false | ## Low: Unnecessary Double Conversion
### Description
The source adapter contracts interact with the incoming oracle interface that is ingested by the Oval system. The destination adapter contracts represent the standardized output interface that the Oval system exposes. In other words, the `ChainlinkSourceAdapter` 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 | high | liquidation | true | false | ## High: tbtc - Unreachable state LIQUIDATION_IN_PROGRESS ✓ Addressed
### Description
According to the specification ([overview](http://docs.keep.network/tbtc/#_overview_6), [states](http://docs.keep.network/tbtc/#_states_3), version 2020-02-06), a deposit can be in one of two **liquidation\_in\_progress** states.
##... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Functions invariant and invalidate_prior_transactions called in wrong order
### Description
In several places within the Squads multisig program, the `invariant` method is called prior to the `invalidate_prior_transactions` method. However, `invalidate_prior_transactions` modifies the `stale_transaction_index`... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | false | ## Low: [02] Actual collected amounts and the requested amounts should be checked in `SemiFungiblePositionManager::_collectAndWritePositionData`
### Description
https://github.com/code-423n4/2023-11-panoptic/blob/aa86461c9d6e60ef75ed5a1fe36a748b952c8666/contracts/SemiFungiblePositionManager.sol#L1222C2-L1228C15
The e... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | false | false | ## Low: Consider removing gas claim functions
### Description
In the constructor you set Governor. According to Blast documentation, when Governor of address is set, only Governor is allowed to claim gas and yield.
Therefore these functions are redundant: `claimAllGas()`, `claimMaxGas()`, `claimGasAtMinClaimRate()`
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 | medium | access-control | true | false | ## Medium: Router recipient can be configured more than once
### Description
The comments from the `setRouterRecipient` function mentioned that the router should only be able to set the recipient once. Otherwise, no problem is solved. However, based on the current implementation, it is possible for the router to set 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 | signature | false | false | ## Low: POTENTIAL NONCE REUSAGE (KEY LEAKAGE RISK)
### Description
The `Schnorrkel` class stored nonces in a private field `#nonces`. Although *nonces* were cleared after use with the `clearNonces` method, the process relied on correct execution flow. If *nonces* were reused or not properly cleared, it may lead to 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 | low | token | true | false | ## Low: [10] OpenZeppelin `draft-ERC20Permit` is deprecated
### Description
[`TapToken`](https://github.com/Tapioca-DAO/tap-token/blob/20a83b1d2d5577653610a6c3879dff9df4968345/contracts/tokens/TapToken.sol#L11) uses OpenZeppelin `draft-ERC20Permit.sol`, this is the contents:
Consider importing `ERC20Permit.sol` dire... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Asymmetric yield treatment for queued withdrawals
### Description
_Resolved_
Queued withdrawals experience **asymmetric yield treatment** compared to instant withdrawals, violating the unified pool's fairness principle. The protocol locks exchange rates at **request time** for queued users but applies **curre... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | true | false | ## Gas: Using `calldata` instead of `memory` for read-only arguments in `external` functions saves gas
### Description
If you choose to make suggested above `public` functions as `external`, to continue gas optimizaton we can use `calldata` function arguments instead of `memory`.
When a function with a `memory` array... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | input-validation | true | false | ## Low: Missing Validation of Fallback APR Values in `AprPairFeed::latestRoundData`
### Description
`AprPairFeed::latestRoundData` fetches APRs from a preferred source (feed or strategy provider). If the feed is stale, it falls back to the strategy provider via `provider.getAprPair()` but does not validate the returne... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | storage | false | false | ## High: Numerical comparison gadget does not support very large numbers
### Description
The `LeqGadget` performs various comparison operations over numeric values but does not support the full range of `uint256` values:
```cpp
// (A <(=) B)
class LeqGadget : public GadgetT
{
…
}
```
The comparison gadget is only gu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of zero address checks
### Description
The `initialize` function in the `PegStabilityModule` lacks validation checks for zero addresses, potentially leading to critical issues. Initializing contracts with zero addresses can result in unexpected behavior or security vulnerabilities, as zero addresses may 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... | cyfrin_structured | low | other | true | false | ## Low: `TransactionRelayer` and `SecuritizeSwap` should use `CommonUtils::encodeString`
### Description
`TransactionRelayer::toBytes32` duplicates functionality already available in `CommonUtils::encodeString`; remove the duplicated code and use `CommonUtils::encodeString` instead.
Also this line should use `CommonU... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Redundant Validation of Block Number in Finalization ✓ Fixed
### Description
In the `_finalizeBlocks` function of the `LineaRollup` contract, the latest block number (`_finalizationData.endBlockNumber`) in the finalization is validated that it’s greater than the last finalized block number (`_lastFinalizedBloc... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | overflow | false | false | ## Medium: Tokens with more than 18 decimals are not supported
### Description
The current design of the `amountToSD()` and `amountToLD()` functions limits compatibility to tokens with 18 or fewer decimals. If a DAO is created using a token with more than 18 decimals as the `depositTokenAddress`, the DAO creation will... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | initialization | true | false | ## Medium: Uninitialized EIP712 Functionality in VotingControllerUpgradeable \_\_EIP712\_init
### Description
The `VotingControllerUpgradeable` contract inherits from `EIP712Upgradeable` but fails to call its initializer function during its own initialization. Specifically, the `__EIP712_init()` function is not invoke... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Unused `ZERO_BYTES` Constant
### Description
Although the `LimitOrderManager` contract defines `bytes internal constant ZERO_BYTES = bytes('');`, three calls to `IAlgebraPool.burn()` still pass the literal empty string `''` instead of the constant, reducing consistency and readability.
### Recommendation
We 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: ohmDeployed will become inaccurate if circulatingOhmBurned is used
### Description
The OHM deposited to Silo will accure interest over time, which means that the protocol has the potential to withdraw more OHM than is tracked by the `ohmDeployed` value.
This is expected, and the Policy performs valid adjus... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Contribution Can Revert Due to Exceeding the Maximum Goal
### Description
**Update**
The Fabric team acknowledged the issue:
> _The client provided the following explanation: Calculating the contribution range for a given account can be done via `contributionRangeFor()`, which gives an exact `maxContribution`... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | Deposit/Reward tokens | true | true |
<https://github.com/code-423n4/2023-01-popcorn/blob/main/src/vault/VaultController.sol#L108-L110>
<https://github.com/code-423n4/2023-01-popcorn/blob/main/src/vault/VaultController.sol#L483-L503>
<https://github.com/code-423n4/2023-01-popcorn/blob/main/src/utils/MultiRewardStaking.sol#L296-L315>
<https://github.co... | Code4rena | 5 | Popcorn |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: | Lack of Events
### Description
**Description**
Throughout the codebase there are functions that alter the contract state in a significant way without emitting an event.
For example the `signalTransfer` and `reserveSignalTransfer` ought to emit an event for third party systems to be able to read.
**Recommen... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Input Validation
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `345f1170758dd7cb54f3450392a9e2d9aac3e0e4`.
**File(s) affected:**`SubscriptionTokenV1.sol`
**Description:** It is essential to validate inputs, even if they only come from trusted addresses, to avoid human erro... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The minProfitDuration mechanism might harm honest users
### Description
To prevent exploiting sudden price changes (which are potentially due to manipulation), HMX has implemented a `minProfitDuration` mechanism. Essentially, the protocol will temporarily zero out any profit from positions that have been incr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Controller does not raise an error when there's insufficient liquidity
### Description
_Submitted by jonah1005, also found by 0xRajeev and WatchPug_
#### Impact
When a user tries to withdraw the token from the vault, the vault would withdraw the token from the controller if there's insufficient liquidity in ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Insufficient Tests When Using BitMaps
### Description
[Pull request 893](https://github.com/scroll-tech/scroll/pull/893/commits/ebe2b1519654767a762f0e3ade8a8663e57fc25f#diff-229854e4c18fbdae29d0e9ce11b88b080363f508f3fe6381dab5f3ab19dc3d78) changes the way of popping and tracking skipped messages, using BitMaps... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Error Messages in require Statements
### Description
Throughout the [codebase](https://github.com/matter-labs/system-contracts/tree/ce6c3458f0f16d20ac335071de161a986a4ecb0d/contracts/) there are `require` statements that lack error messages:
* The `require` statement on [line 46](https://github.com/m... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | storage | true | false | ## High: In updateAToken and updateVariableDebtToken of the LendingPoolConfigurator encodedCallis con-
### Description
In `updateAToken` and `updateVariableDebtToken` of the `LendingPoolConfigurator`, `encodedCall` is constructed incorrectly:
```solidity
bytes memory encodedCall = abi.encodeWithSelector(
/*...*/ se... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | dos | true | false | ## High: forwardCall creates a denial-of-service attack vector
### Description
Low-level external calls can exhaust all available gas by returning an excessive amount of data, thereby causing the relayer to incur memory expansion costs. This can be used to cause an out-of-gas exception and is a denial-of-service (DoS)... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Verify the validity of _microWindow and_macroWindow
### Description
The constructor of `OverlayV1Feed` doesn’t verify the validity of `_microWindow` and `_macroWindow`, potentially causing the price oracle to produce bad results if misconfigured.
```solidity
constructor(uint256 _microWindow, uint256 _macroWin... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incomplete Event [samples]
### Description
The [`UserOperationSponsored` event](https://github.com/eth-infinitism/account-abstraction/blob/9879c931ce92f0bee1bca1d1b1352eeb98b9a120/contracts/samples/TokenPaymaster.sol#L187) includes the market price but does not include the [markup price](https://github.com/eth... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [10] `require()`/`revert()` strings longer than 32 bytes cost extra gas
### Description
*There are 26 instances of this issue:*
[See original submission](https://github.com/code-423n4/2022-05-rubicon-findings/issues/121) for details. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: WrappedIbbtcEth contract will use stalled price for mint/burn if updatePricePerShare wasn’t run properly
### Description
## Handle
hyh
## Vulnerability details
## Impact
Malicious user can monitor SetPricePerShare event and, if it was run long enough time ago and market moved, but, since there were no Set... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `LiquidationAccountant.claim()` can be called by anyone causing vault insolvency
### Description
`LiquidationAccountant.claim()` can be called by anyone to reduce the implied value of a public vault.
### Impact
This allows anyone to manipulate the `yIntercept` of a public vault by triggering the `claim()` fl... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | oracle | true | false | ## Gas: Optimize names to save gas
### Description
`public`/`external` function names and `public` member variable names can be optimized to save gas. See [this](https://gist.github.com/IllIllI000/a5d8b486a8259f9f77891a919febd1a9) link for an example of how it works. Below are the interfaces/abstract contracts that 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 | high | other | false | false | ## High: `SynthVault` withdraw forfeits rewards
### Description
_Submitted by cmichel_
The `SynthVault.withdraw` function does not claim the user's rewards. It decreases the user's weight and therefore they are forfeiting their accumulated rewards.
The `synthReward` variable in `_processWithdraw` is also 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 | medium | initialization | false | false | ## Medium: Uncallable Configuration Functions
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `937f5c3a4725b26be51bc880bdafafc74167d70e`. The client provided the following explanation:
> For the configuration functions for SwappingAggregator listed in the initial report, they are callable 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 | gas | other | false | false | ## Gas: Run checks first
### Description
Running checks before doing other operations can save gas in case the checks don't pass (since less operations were done before the revert).
Lines: [JBDirectory.sol#L270-L278](https://github.com/jbx-protocol/juice-contracts-v2-code4rena/blob/828bf2f3e719873daa08081cfa0d0a6deaa... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Lack of Validation for Duplicate Entries and Interface Compliance
### Description
The `setVwManager` function in `OrderBookConfig` does not prevent duplicate entries in the `registeredVwManagers` array, which could lead to redundant operations or unexpected behavior. Moreover, the function does not validate wh... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Check for empty restoration proof only does nil check
### Description
In `StateTransition#TransitionDb`, we ensure there's a restoration proof. The error, `ErrEmptyRestorationProof`, indicates that `msg.Data` should not be empty, but the check only ensures the field is not nil. This will allow an empty byte sl... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: SuperVaultStrategy is not capable of handling native token transfer
### Description
When processing hook execution, the caller can optionally specify the native ETH value. The relevant code snippet is:
```solidity
(vars.success,) = vars.executions[j].target.call{ value: vars.executions[j].value }(vars.executio... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Calls to methods with `nonETHReuse` modifier can be force reverted
### Description
**Severity**
**Impact:**
Medium, as the user will get its transaction reverted, but it can be replayed through a `Multicall` call
**Likelihood:**
Medium, as it can only happen when there is a direct call to such methods, wh... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Attackers can drain the `OracleLess` contract by creating an order with a `malicious tokenIn` and executing it with a `malicious target`.
### Description
In the `OracleLess` contract, the `createOrder()` function does not verify whether the `tokenIn` is a legitimate ERC20 token, allowing attackers to create 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 | token | true | false | ## Low: `SwapFacade.swap()` gas optimisations
### Description
The logic in `SwapFacade.swap()` can be simplified to always call the `_permit()`.
The logic at lines 59-73
https://github.com/BarterLab/argon/blob/22239aaccdbb78d4aa7ac5c4d0859a9b31c0fc00/contracts/SwapFacade.sol#L63
```solidity
uint256 currentBalance = ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: ProxyAdmin May Cause DoS for SYS_ADMIN
### Description
As the `TransparentUpgradeableProxy` doesn’t allow the ProxyAdmin to delegate calls to the implementation, it means the `SYS_ADMIN` can’t be the same as ProxyAdmin. Now, talking about the design, the proxy defines a system-wide feature to pause or unpau... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Lack of two-step ownership transfer pattern
### Description
`Pepper.sol`and `Pepperairdrop.sol` implements the Ownable pattern. However, the assessment revealed that the solution does not support the two-step-ownership-transfer pattern. The ownership transfer might be accidentally set to an inactive EOA accoun... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | token | true | true | ## Lines of code
https://github.com/code-423n4/2023-04-caviar/blob/main/src/PrivatePool.sol#L211-L289
https://github.com/code-423n4/2023-04-caviar/blob/main/src/PrivatePool.sol#L240
## Vulnerability details
## Impact
The buy function's mechanism allows users to access flash loans at a lower fee cost, which could a... | Code4rena | 5 | Caviar |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Use forceApprove instead of approve
### Description
The PendleV2Farm uses the `ERC20.approve()` function to handle tokens. While this works fine with USDC initially, issues can arise when integrating other tokens like USDT. Specifically, if previously approved tokens are not completely spent, USDT will revert ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Proof length as env variable risks token claim failures
### Description
The length of Merkle tree proof can be defined as an environmental variable that is not stored in version control. After building and deploying the program, it won't be possible to track down the proof length set during deployment. Setting... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Attempted Out Of Bound Array Access On TWAP Result When Zero Address >= Target Address
### Description
- Get the price of Zeros in terms of underlying:
```solidity
(uint8 zeroi, ) = pool.getIndices();
uint256 zeroPrice = results[zeroi];
```
### Impact
If this vulnerability were to be exploited in a live en... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: LiquidationAccountant.claim may revert for some tokens
### Description
`LiquidationAccountant.claim` may initiate a transfer with the amount 0, which reverts for some tokens.
### Impact
In such a scenario, the funds are not claimable, leading to a loss of funds.
### Recommendation
Do not initiate a transf... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: There are magic constants in the code
### Description
There are magic constants in several Solo contracts. For example, [Require.sol, line 203](https://github.com/dydxprotocol/solo/blob/17df84db351d5438e1b7437572722b4f52c8b2b4/contracts/protocol/lib/Require.sol#L203) and [Require.sol, line 207](https://github.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | false | false | ## Medium: Fix utilization rate computation
### Description
The `BaseJumpRateModelV2.sol#L131.utilizationRate()` function can return a value above 1 and not between [0, BASE].
### Proof of Concept
In the `BaseJumpRateModelV2.sol#L131.utilizationRate()` function, cash and borrows and reserves values get used to calcu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Usage of uints/ints smaller than 32 bytes (256 bits) incurs overhead
### Description
When using elements that are smaller than 32 bytes, your contract’s gas usage may be higher. This is because the EVM operates on 32 bytes at a time. Therefore, if the element is smaller than that, the EVM must use more operati... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Assembly Within `Supply.sol` and `Transfer.sol`
### Description
The following functions were implemented in assembly:
* [`Supply .mint`](https://github.com/code-423n4/2022-07-fractional/blob/8f2697ae727c60c93ea47276f8fa128369abfe51/src/targets/Supply.sol#L23)
* [`Supply.burn`](https://github.com/code-423n4/... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Governance deadlock potential in `BlackGovernor.sol` due to quorum mismatch
### Description
### Finding description
* **Severity**: Medium
* **Affected contracts**:
+ `contracts/BlackGovernor.sol`
+ `contracts/VotingEscrow.sol` (as the source of `getPastTotalSupply` and `smNFTBalance`)
+ `contracts/... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Reliance on outdated dependencies
### Description
Updated versions of many dependencies of Arbitrum Stylus (and its submodules) are available. Dependency maintainers commonly release updates that contain silent bug fixes, so all dependencies should be periodically reviewed and updated wherever possible. Depend... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Token Holders Can Burn Their Tokens
### Description
**File(s) affected:**`ShootERC20.sol`
**Description:** The `ShootERC20` contract has a public `burn()` function, which allows the token holders to burn an arbitrary number of their tokens up to their entire balance. As high-level documentation or code commen... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Lack of event emission in critical state changes
### Description
Events emission is considered a good practice to debug situations where it is necessary to check the parameters used to call an entry point.
Events can also be used to create a monitoring system to check the platform integrity in real time (or 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 | oracle | true | false | ## Low: Liquidation reverts if collateral price feed returns 0
### Description
**Description:** Liquidation reverts if collateral price feed returns 0. Generally this should never happen as Chainlink price feeds have a `minAnswer` they should always at least return. However since a trader can have a basket of differen... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: CFG_EVC_COMPATIBLE_ASSET should be immutable and not be allowed to be changed
### Description
## Security Assessment Report
**Severity:** Low Risk
**Context:**
- AssetTransfers.sol#L28
- Governance.sol#L268-L272
**Description:**
The role of the governance config flag `CFG_EVC_COMPATIBLE_ASSET` is 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 | other | true | false | ## Low: Zero timestamp for confirmation value
### Description
The function `Beacon.sol#_buildCmd()` sets the value of the confirmation to zero.
It is the number of confirmations required to wait for the timestamp finality on the target chain.
This can be resolved by setting a reasonable number. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unchecked arithmetic prevents payment processing
### Description
In the `processPayment()` function of the `Escrow` contract, there's a potential underflow risk when calculating `transferAmount = transaction.amount - fee - serverAmount`.
While Solidity `0.8.x` includes overflow/underflow protection, 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 | token | true | false | ## Low: No Check if OnErc721Received is implemented
### Description
`Turnstile.register()` will mint a NFT . When minting a NFT, the function does not check if a receiving contract implements `onERC721Received()`.
`_recipient` can be contract address.
The intention behind this function is to check if the 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... | cyfrin_structured | low | other | false | false | ## Low: Protocol classifies retail investors based solely on whether they are qualified investors, without checking if they are accredited investors
### Description
The protocol classifies "retail investors" based solely on whether they are qualified investors, without checking if they are accredited investors. Throug... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | Immutable | true | true | ## Lines of code
https://github.com/code-423n4/2022-10-inverse/blob/main/src/Market.sol#L281-L283
## Vulnerability details
## Impact
If a user creates a market with the **INVEscrow** implementation as **escrowImplementation** and false as **callOnDepositCallback**, the deposits made by users in the escrow (through ... | Code4rena | 4 | Inverse 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 | gas | access-control | false | false | ## Gas: Functions guaranteed to revert when called by normal users can be marked `payable`
### Description
If a function modifier such as `onlyOwner` is used, the function will revert if a normal user tries to pay the function. Marking the function as `payable` will lower the gas cost for legitimate callers because 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 | token | true | false | ## High: OUSD allows users to transfer more tokens than expected
### Description
Under certain circumstances, the OUSD contract allows users to transfer more tokens than the ones they have in their balance. A user or external contract trying to transfer one token more than its balance will expect that transfer to reve... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of Storage Gap
### Description
The upgradeable [`XVSVaultConverter` contract](https://github.com/VenusProtocol/protocol-reserve/blob/ca8f8ba3dfcf6f13d2db4ac230ac9337950525f6/TokenConverter/XVSVaultConverter.sol) does not have a storage gap configured. [Storage gaps](https://docs.openzeppelin.com/contracts... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Shadowing of inherited state variable
### Description
The state variable `originalSupply` is [declared](https://github.com/Storj/storj-contracts/blob/2bdeb27c0216d2f0889b6e7363d8a84b54cd7f39/contracts/UpgradeAgent.sol#L11) in the [UpgradeAgent contract](https://github.com/Storj/storj-contracts/blob/2bdeb27c... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Optimize names to save gas
### Description
`public`/`external` function names and `public` member variable names can be optimized to save gas. See [this](https://gist.github.com/IllIllI000/a5d8b486a8259f9f77891a919febd1a9) link for an example of how it works. Below are the interfaces/abstract contracts that 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 | reentrancy | true | false | ## Medium: Slippage protection in `AgentTax::dcaSell` and `BondingTax::swapForAsset` is calculated at execution time, effectively retrieving the very same price that the trade will be executing at, ultimately providing no protection
### Description
### Finding description
Automated Market Makers define the price 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... | skyward_49k | low | storage | false | false | ## Low: [ACKNOWLEDGED] Received amount of stablecoin is not validated in `FathomProxyWalletOwnerUpgradeable`
### Description
In the function [`openPosition`](https://github.com/Into-the-Fathom/fathom-stablecoin-smart-contracts/tree/3768c87367d286ae0e82f444b2f9d760417b507e/contracts/main/fathom-SDK/FathomProxyWalletOwn... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [05] Superfluous checks in `receive_cross_chain_msg`
### Description
### Issue Description
`ChakraSettlementHandler::receive_cross_chain_msg` contains 2 identical checks regarding the payload type and one of them is redundant:
[ChakraSettlementHandler.sol](https://github.com/code-423n4/2024-08-chakra/blob/ma... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Use a safe pragma statement
### Description
Always use stable pragma statement to lock the compiler version. Also there are different versions of the compiler used throughout the codebase, use only one. Finally consider upgrading the version to a newer one to use bugfixes and optimizations in the compiler. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | token | true | true |
Malicious user can drain all assets in BondNFT, and other users will lose their rewards.
### Proof of Concept
When calling [BondNFT.claim()](https://github.com/code-423n4/2022-12-tigris/blob/588c84b7bb354d20cbca6034544c4faa46e6a80e/contracts/BondNFT.sol#L168-L187) for an expired bond, it will recalculate `accRewards... | Code4rena | 4 | Tigris Trade |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Call `_processRewardsToPodLp` in `setYieldConvEnabled()` call
### Description
In the AutoCompoundingPodLp.sol the owner can toggle off the yieldConvEnabled in that case shares would not accrue rewards, in the case where the admin is turning off the yieldConv the previous yield that would have been generated sh... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: TSS Manager Is A Single Point Of Failure
### Description
The TSS manager represents a centralised point of failure within the system as it is responsible for coordinating and facilitating communication among TSS nodes. The threshold signature scheme (TSS) relies on a TSS manager role to coordinate TSS nodes... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | storage | true | false | ## Gas: State variables only set in the constructor should be declared immutable
### Description
The solidity compiler will directly embed the values of immutable variables into your contract bytecode and therefore will save you from incurring a `Gsset (20000 gas)` when you set storage variables in the constructor; a ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | medium | Business Logic | false | false | Source: https://github.com/sherlock-audit/2022-12-sentiment-judging/issues/15
## Found by
WATCHPUG
## Summary
`ConvexRewardPool#getReward(address)` can be called by any address besides the owner themself.
## Vulnerability Detail
The reward tokens will only be added to the assets list when `getReward()` is called... | Sherlock | 4 | Sentiment Update #2 |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | access-control | false | false | ## Medium: Notify on Chain Switches and Allow Users to Restrict Access to Chain Specific Functionality and Data
### Description
MetaMask core is set to Ethereum as the default network. When switching to BNB or other Networks, Metamask asks the user to confirm the switch. This ensures that, at any point, the user is fu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Extra contract.
### Description
**Description**
DexManager has no functional role. It just has the same functionality as the EthDexManager,
but adds more weight to the contract, more gas fees for initializing and can be completely
replaced with the EthDexManager.
**Recommendation**:
Extra contract which can... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | other | false | false | ## Low: Standardize `accountId` data type
### Description
The `accountId` uses different data types in different contracts:
* `uint96` in [`GlobalConfiguration::Data`](https://github.com/zaros-labs/zaros-core-audit/blob/de09d030c780942b70f1bebcb2d245214144acd2/src/perpetuals/leaves/GlobalConfiguration.sol#L44)
* `uint... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: LendingProxy.initialize() should call __ReentrancyGuard_init()
### Description
It is best practice for contracts that inherit from ReentrancyGuardUpgradeable to call
`__ReentrancyGuard_init()` in the initialize 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 | other | false | false | ## Low: Optimization: Cache Variables
### Description
**Update**
Addressed in: `ba69fa74c21f3e8ff6904cae57ee3c5ac36a38a2`.
**File(s) affected:**`Orderbook.sol`
**Description:** Repeatedly accessing certain variables can be gas-intensive. To optimize gas usage, values frequently accessed should be stored in memory va... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Signature verification bypass
### Description
- https://github.com/eywa-protocol/eywa-clp/blob/d68ba027ff19e927d64de123b2b02f15a43f8214/contracts/BaseRouter.sol#L271-L272
The `BaseRouter._getRawData()` function concatenates operations and parameters without separators. This allows a hacker to feed operation... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Council veto protection does not work
### Description
_Submitted by TomFrenchBlockchain_
Council can veto proposals to remove them to remain in power.
#### Proof of Concept
The Vader governance contract has the concept of a "council" which can unilaterally accept or reject a proposal. To prevent a maliciou... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Parallel access control
### Description
The `Protocol` contract inherits the OpenZeppelin `AccessControl` contract, and uses it to define [the role hierarchy](https://github.com/neptune-mutual-blue/protocol/blob/73fc82fbe0d1388867b7df669983fe42760daeb1/contracts/core/ProtoBase.sol#L18). It also provides a m... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | liquidation | false | false | ## Low: Unused struct
### Description
The `struct` `CollateralCurrencyParameters` declared on [line 33 of `Liquidation.sol`](https://github.com/notional-finance/contracts/blob/b6fc6be4622422d0e34c90e77f2ec9da18596b8c/contracts/utils/Liquidation.sol#L33) is never used elsewhere in the codebase. Consider removing unused... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | ## Low: Incorrect isMakerBidValid logic in ItemIdsRange execution strategy
### Description
If an ItemIdsRange order has `makerBid.itemIds[0] == 0`, it is treated as invalid by the corresponding `isMakerBidValid` function. Since `makerBid.itemIds[0]` is the `minItemId` value, and since many NFT collections contain NFTs... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: IMPROPER ASSETTOKEN UPDATE FUNCTION
### Description
It was identified that the `updateTokenImplementation()` function in the `AssetFactory` contract calls the `upgradeTo()` function of the `AssetToken` contract, but the `upgradeTo()` function can only be called by the `Owner` of the `AssetToken` contract. Beca... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | oracle-manipulation | false | false | ## Low: Price Change Sensitivity in Instant Withdrawals
### Description
Since instant withdrawals allow users to withdraw the underlying asset immediately, they can potentially react to price changes in a way that introduces economic inefficiencies. Because prices are delivered via an oracle on L2, this creates two 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 | medium | other | true | false | ## Medium: FraxlendPair#setTimeLock: Allows the owner to reset TIME_LOCK_ADDRESS
### Description
_Submitted by carlitox477, also found by 0xA5DF, 0xDjango, brgltd, IllIllI, and reassor_
### Impact
Allows to reset **TIME_LOCK_ADDRESS** value multiple times by the owner. According to comments in FraxlendPairCore this... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | true | false | ## Gas: Repeated code
### Description
The getPoolId() function in Lender.sol is not used in some places thereby not following solidity style guidelines
### Impact
Increase in technical debt. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Same code doubled twice DAOstake.sol
### Description
**Description**
At function updatePool(uint256 _pid), lines 265 and 271 contains the same code:
**Recommendation**:
Move this code before or below if condition. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Front-Running Calls to `registerOperator()` and `registerValidator()`
### Description
**Update**
The client acknowledged the issue for both validator and operator registration. The client stated that the `sharesData` argument for the function `SSVClusters.registerValidator()` acts as a signed message and wi... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.