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 | medium | liquidation | false | false | ## Medium: Uncollected fees may be irrevocably burnt when calling SwapFacility.setMintCap() to be below fee
### Description
Setting `debtMintCap` to 0 or any value that is below the fee amount via `setMintCap()`, then allows anyone calling `burnExcessDebt()` to burn all uncollected fees for the 0 case or a portion dep... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Consistent conditional logic will make updateRefund easier to reason about
### Description
Reversing the conditionals in `updateRefund` makes the logic harder to reason about.
### Recommendation
Have both `if` statements rely on `!withdraw` so there is less potential for confusion. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | rounding | false | false | ## Low: Rounding to Zero if Duration is Greater Than Reward
### Description
The `rewardRate` value is calculated as follows:
```
rewardRate = reward / duration
```
Due to the integer representation of these variables, if `duration` is larger than `reward`, the value of `rewardRate` will round to zero. Thus, stakers ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | access-control | true | false | ## Medium: `PythRandomnessProvider` uses always the default provider
### Description
The `PythRandomnessProvider` contract allows the owner to set a specific provider for the entropy.
```solidity
function setProvider(address _provider) external onlyOwner {
require(_provider != address(0), "Zero address not allowe... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Attacker can borrow assets without paying any fees
### Description
Fees are only added after the block timestamp changes. On some chains, such as Arbitrum, the timestamp is not updated with every block, allowing an attacker to borrow funds without fees for several blocks, then return the funds one block before... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Removing Market Makers From Whitelist Can Leave Inconsistent State
### Description
The [`idMM`](https://github.com/TruFin-io/staker-audit-april/blob/9f199451b5220f73cfc1eb95dc13381acf804b15/contracts/helpers/MasterWhitelist.sol#L69) mapping is used to connect a market maker's address to the market maker id 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... | solodit_api | high | reentrancy | true | false |
The contributors are supposed to submit their proposals via frontend and it is assumed from the [docs](https://whitepaper.virtuals.io/about-virtuals-1/the-protocol/co-contribution-and-provenance/modular-consensus-framework), that the frontend calls the [`ContributionNft::mint`](https://github.com/code-423n4/2025-04-v... | Code4rena | 5 | Virtuals Protocol |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | initialization | true | false | ## Gas: Remove `decimals` from initial `RemoraToken` mint
### Description
**Description:** `RemoraToken` overrides the `decimals` function to return 0 as its tokens are non-fractional:
So remove the call to `decimals` inside `RemoraToken::initialize` since `10 ** decimals()` will always evaluate to 1:
**Remora:** ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: Lack of input validation
### Description
In the [constructor](https://github.com/euler-xyz/euler-swap/blob/1022c0bb3c034d905005f4c5aee0932a66adf4f8/src/EulerSwapFactory.sol#L44-L50) for `EulerSwapFactory` there's no sanity check that the addresses for `evkFactory_`, `eulerSwapImpl_`, and `feeOwner_` aren't `a... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Fields protected by mutex are not documented
### Description
The fields protected by the governor’s mutex are not documented. A developer adding functionality to the governor is unlikely to know whether the mutex must be locked for their application.
The `ChainGovernor` struct appears in figure 2.1. The Wormh... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incomplete docstrings
### Description
* Docstrings for the [`postPrices` function](https://github.com/compound-finance/open-oracle/blob/e7a928334e5e454a88eec38e4ee1be5ee3b13f08/contracts/DelFiPrice.sol#L43-L49) of the `DelFiPrice` contract are missing documentation for the `symbols` parameter. Note that they s... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: Sorascan does not accurately display large initial supply values
### Description
If the initial supply of a token is too large, the Sorascan explorer will show an incorrect value. For example, when we created an asset with an initial supply of 10 quintillion tokens, the `Asset::register` extrinsic displayed an... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Method `forceUnlock(...)` might fail for blacklisted USDC addresses
### Description
**Severity**: Low
**Status**: Acknowledged
**Description**
In Contract VeTranche.sol, method lock() allows anyone to lock their LP tokens for a time period and get an NFT as a token receipt.
In case users do not unlock thei... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | ## High: Vault.sol: `settle`ing the 0 address will disrupt accounting
### Description
Source: https://github.com/sherlock-audit/2023-07-perennial-judging/issues/62
## Found by
Emmanuel, WATCHPUG, bin2chen, moneyversed
Due to the ability of anyone to settle the 0 address, the global assets and global shares will be ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | initialization | true | false | ## Gas: Using immutable on variables that are only set in the constructor and never after (Save 8400 Gas)
### Description
**This instance was missed by the bot.**
**Gas per instance: 2.1K**
**Total Instances: 4**
Total Gas Saved: `2.1 * 4 = 8400 Gas`
https://github.com/code-423n4/2023-08-dopex/blob/eb4d4a201b3a75dd4... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Transaction simulation
### Description
## Issue with Transaction Signing in Pallad Wallet
When signing a transaction in Pallad Wallet, it does not show how many FTs and NFTs are being sent and also does not show how many MINA tokens are going to be received.
## Remediation
As a mitigation, consider simulati... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Routers can access components from other routers as well as other tokens
### Description
Currently, routers can access components from other routers. This means if one router contains a bug or a vulnerability, it could access all funds of all routers in all nodes. This is especially important if other parti... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `WildcatMarket.closeMarket()` function can be optimized
### Description
By moving condition checks up in the execution flow, we save on computational steps and improve the gas efficiency of the `closeMarket()` function.
Overall gas change: `-1524 (-0.002%)` | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | medium | token | true | true | ## Medium: `DelegationMetaSwapAdapter` is not compatible with fee on transfer tokens
### Description
When someone tries to execute a `swapByDelegation`, the contract will first snapshot the current balance of the `tokenFrom`:
```solidity
function swapByDelegation(bytes calldata _apiData, Delegation[] memory _deleg... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Ownership Can Be Renounced
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `f99196754ceea6e28ac69be3ad55cdce8d261339`. The client provided the following explanation:
> Empty implementation of renounceOwnership function provided.
**Description:** The Liquidator contract inherits `Own... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Include ``return parameters`` in _NatSpec comments_
### Description
### Context
All Contracts
https://docs.soliditylang.org/en/v0.8.15/natspec-format.html
If Return parameters are declared, you must prefix them with "/// @return".
Some code analysis programs do analysis by reading NatSpec details, if they ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | access-control | false | false | ## Low: Missing cancellation of withdrawal and redeem requests
### Description
The withdrawal process in `BasisTradeVault` is a two-step mechanism. A user first calls `requestWithdraw` or `requestRedeem`, which places their request into a queue and escrows their vault shares within the contract. The second step, `proc... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing Access Control on Token Release Functions
### Description
The `releaseTokens` and `batchRelease` functions lack access control, allowing anyone to release tokens:
```
function releaseTokens(
address user,
bytes32 category
) external nonReentrant whenNotPaused returns (uint256)
function batch... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `BondAggregator.findMarketFor` Function Will Break In Certain Conditions
### Description
`BondAggregator.findMarketFor` function will break when the `BondBaseSDA.payoutFor` function within the for-loop reverts under certain conditions.
### Impact
The find market feature within the protocol is broken under ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | reentrancy | true | false | ## Gas: Massive 15k per tx gas savings - use 1 and 2 for Reentrancy guard
### Description
Using true and false will trigger gas-refunds, which after London, are 1/5 of what they used to be. Meaning, using 1 and 2 (keeping the slot non-zero) will cost 5k per change (5k + 5k vs 20k + 5k), saving you 15k gas per 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 | true | false | ## Low: Insufficient Whitelist Management Flexibility Acknowledged
### Description
The `deposit` function relies on `_requireWhitelisted(msg.sender)` to restrict access to approved addresses. However, the contract lacks any logic to remove or disable the whitelist functionality entirely, which is particularly problem... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Test Coverage Improvements
### Description
Adequate test coverage and regular reporting is an essential process to ensuring the codebase works as intended. Insufficient code coverage may lead to unexpected issues and regressions arising due to changes in the underlying smart contract implementation. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | cross-chain | false | false | ## Low: Calling `requestL2TransactionTwoBridges` with nonzero `_request.l2Value` can cause reverts on the destination chain
### Description
The `finalizeDeposit` function is not payable, which means calling `requestL2TransactionTwoBridges` with a nonzero `_request.l2Value` will cause a revert on the destination chain.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inconsistent handling of closed channel errors
### Description
The code handles closed channel errors in two ways: by using `expect` (figure 9.1) and by returning `Err` (figure 9.2).
```rust
self.multisigned_hashes_tx
.unbounded_send(multisigned.clone())
.expect("Channel should be open");
```
Figure 9.1: ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: Claimable gauge distributions are locked when killGauge is called
### Description
When a gauge is killed, the `claimable[_gauge]` key value is cleared. Because any rewards received by the Voter contract are indexed and distributed in proportion to each pool's weight, this claimable amount is permanently loc... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | signature | false | false | ## Medium: Mismatch between signature and implementation of getValueRepaid
### Description
The [documented semantics](https://github.com/dharmaprotocol/charta/blob/b110959477cf37375bf7e9344d40eb85219c8575/contracts/TermsContract.sol#L71) of `TermsContract`’s [`getValueRepaid`](https://github.com/dharmaprotocol/charta/... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Off-Chain Functionality
### Description
**Update**
Marked as "Acknowledged" by the client. Addressed in: `ee3f56b85e890351b467ba4e52a2cf0cf8fa5b63`. The client provided the following explanation:
> We have updated the readme to reflect the behavior
**File(s) affected:**`BreederLiquidityMiningMana... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Pause bypass for approvals via permit
### Description
USHToken gates approve() with whenNotPaused, but inherits permit() from Solmate without overriding. While paused, anyone can still set/refresh allowances via permit, pre-arming drains that execute the instant the token is unpaused. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: ForceWithdraw Can Cause USDC To Become Stuck
### Description
Force withdraw can cause USDC to become stuck since `CashAsset::forceWithdraw()` withdraws the cash balance to the owner address. The `SubAccountsManager` contract and the related module contracts handle facilitating trades between subAccounts. Users... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | signature | true | false | ## Gas: Empty blocks should be removed or emit something
### Description
The code should be refactored such that they no longer exist, or the block should do something useful, such as emitting an event or reverting. If the contract is meant to be extended, the contract should be `abstract` and the function signatures ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Memory leak in capture_hostio
### Description
In the `capture_hostio` function, the `RustBytes` function `new` calls `mem::forget`, but the allocation is never freed, leaking memory. This may cause excess resource consumption; however, this code appears to be used only when tracing is enabled (presumably in de... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `fill_staker_vpool()` fails without address setters
### Description
_Resolved_
The `fill_staker_vpool` function in the Factory contract is designed to add missing virtual pool and staker components to existing markets. However, this function cannot work effectively because it depends on implementation address... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | front-running | false | false | ## Low: dexter.Approve is not compatible with FA1.2. Approve
### Description
Dexter’s documentation mentions FA1.2’s approve function, but the contract’s implementation does not follow the standard. As a result, third-party integration might not work as expected.
Core.hs defines the approve function as a FA12 data:
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Iteration though the whole storage array.
### Description
**Description**
MultiFee Distribution.sol: _cleanWithdrawableLocks(), line 1119; withdraw(), line 754.
After the withdrawal of locks or earnings, the contract performs an iteration through the whole storage array. For example, if a user creates a s... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Incorrect max withdrawable assets amount causes unexpected revert
### Description
The `HyperEvmVault.maxWithdrawableAssets` function returns the max amount of assets that can be requested to be withdrawn, i.e. which is controlled by the vault. When users invoke the `requestRedeem` function, the sum of requeste... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: PublicReallocateTo event is emitted with the wrong parameters order
### Description
At the very end of the `reallocateTo` logic, the event `PublicReallocateTo` is emitted like this:
```solidity
emit EventsLib.PublicReallocateTo(msg.sender, vault, supplyMarketId, totalWithdrawn);
```
However, this event is de... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The governance will fail to add an ecosystem token if someone creates a hToken that uses that ecosystem token
### Description
Ecosystem tokens are tokens that don't have an underlying token address in any branch and only the global representation exists. The governance adds them by calling `addEcosystemToke... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | reentrancy | false | false | ## Gas: Use `ReentrancyGuardTransient` for more efficient `nonReentrant` modifiers
### Description
**Description:** Use [`ReentrancyGuardTransient`](https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/ReentrancyGuardTransient.sol) for more efficient `nonReentrant` modifiers:
**Ethena:*... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | token | false | false | ## High: TOFT `exerciseOption` can be used to steal all underlying erc20 tokens
### Description
Unvalidated input data for the [`exerciseOption`](https://github.com/Tapioca-DAO/tapiocaz-audit/blob/master/contracts/tOFT/BaseTOFT.sol#L127) function can be used to steal all the erc20 tokens from the contract.
### Proof ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | false | false | ## Medium: Bonding doesn't work with fee-on transfer tokens
### Description
_Submitted by cmichel_
Certain ERC20 tokens make modifications to their ERC20's `transfer` or `balanceOf` functions.
One type of these tokens is deflationary tokens that charge a certain fee for every `transfer()` or `transferFrom()`.
#### 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 | initialization | false | false | ## Low: Potential issues when token is changed via `setToken` in UniMexStaking.sol
### Description
**Description**
In contract UniMexStaking.sol, when a new token is set by function setToken, a number of issues may arise. A user's balance can be held for a token with a certain number of decimals, then another token 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 | high | liquidation | true | false | ## High: Caching Uniswap position liquidity allows borrowing using undercollateralized Uni positions
### Description
It is possible to fake the amount of liquidity held in a Uniswap V3 position, making the protocol believe the Uniswap position has more liquidity than the actual liquidity deposited in the position. Thi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: User can call liquidate() and steal all collateral due to arbitrary router call
### Description
_Submitted by 0xDjango_
A malicious user is able to steal all collateral of an unhealthy position in `PARMinerV2.sol`. The code for the `liquidate()` function is written so that the following steps are followed:
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Using a stale `perp_price_delta` to calculate the `perp_funding_rate`
### Description
**Description:** The funding rate is calculated using `change_funding_rate`, but this function computes `perp_funding_rate` based on the previous `perp_price_delta`, which is outdated.
This can result in losses for some use... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | access-control | false | false | ## Medium: MintableIncentivizedERC721 and NToken do not comply with ERC721, breaking composability
### Description
MintableIncentivizedERC721 implements supportsInterface as below:
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId)
external
view
virtual
overr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: CurveProxy does not support chains other than Ethereum mainnet
### Description
Bima's CurveProxy is copied from Prisma Finance. However, Prisma Finance only supports Ethereum mainnet, so it uses the Curve API of mainnet. But this is not compatible with other chains (e.g. Arbitrum).
**Note:** Bima sponsor 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 | false | false | ## Low: Discrepancy in Asset Size Check
### Description
## Issue with `internal_is_empty` in `sorted-troves-contract`
The function `internal_is_empty` in the `sorted-troves-contract` checks if there are any troves associated with a given asset. If it fails to find the asset in the size map, it currently returns `fals... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: GOVERNOR may enable a bucket that blocks unwinding
### Description
There is no validation on the `_unwindingEpochs` argument of `LockingController.enableBucket`. This value is later used in `UnwindingModule.startUnwinding` as the denominator for a calculation:
```solidity
uint256 rewardWeightDecrease = totalD... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [38] `PointProjective::add_assign_mixed` missing code
### Description
[secp256k1/mod.rs, line 486](https://github.com/code-423n4/2023-10-zksync/blob/1fb4649b612fac7b4ee613df6f6b7d921ddd6b0d/code/era-zkevm_circuits/src/ecrecover/secp256k1/mod.rs#L486) | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Storage Layout Optimization
### Description
Storage Layout Optimization in Solidity involves arranging state variables to minimize gas costs. Since storage is expensive, combining variables into as few slots as possible and deleting unneeded variables can significantly reduce the gas needed for contract operat... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Upper Bound Check in setFeePercent Function
### Description
**Description:**
The setFeePercent function currently does not enforce an upper limit on the value of \_feePercent. This could potentially lead to scenarios where the fee is excessively high.
**Recommendations:**
Implement an upper bound ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: in `_withdraw()`, by calling `_burn()` and then executing `_yieldVault.withdraw()`, it may lead `_updateExchangeRate()` inaccuracy
### Description
In `withdraw()`, execute `_burn()` first in `_yieldVault.withdraw()`.
Code as follows:
In `_burn()`, the method will execute `_updateExchangeRate()`:
Then, `_c... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | false | false | ## High: Deployments and migrations require further testing
### Description
During the engagement, the Set Protocol Truffle migrations were tested for functionality. This resulted in errors regarding a newly added whitelist contract which was a dependency for another contract. These errors indicate a need for further ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 STATEMENTS
### Description
Redundant statements have been found through the code. These statements increase gas costs for contract deploying and interactions, impact code readability.
Code Location
-------------
In this example, `_treasuryAddress` is declared twice but no actual value is assigned: | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Use assembly to validate msg.sender
### Description
We can use assembly to efficiently validate msg.sender for the didPay and uniswapV3SwapCallback functions with the least amount of opcodes necessary. Additionally, we can use xor() instead of iszero(eq()), saving 3 gas. We can also potentially save gas on 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 | true | false | ## Low: Lack of enforcement of the `MAX_TOTAL_LOCKED_AMOUNT`
### Description
The issue allows users to lock more tokens than intended when creating the lock, leading to imbalances in the veRAAC ecosystem.
### Impact
**Severity:** High
**Potential Consequences:**
* **Unfair Rewards:** The boost calculation mechanis... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: tradeSize will be only 100%, 50%, 33%, ... because of expansionDampingFactor
### Description
- https://github.com/code-423n4/2023-02-malt/blob/700f9b468f9cf8c9c5cffaa1eba1b8dea40503f9/contracts/StabilityPod/StabilizerNode.sol#L393-L394
`tradeSize` will be only 100%, 50%, 33%, ... of minting trade size calcul... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unlocked Pragma Compiler
### Description
The files in scope currently use floating pragma version `^0.8.20`, which means that the code can be compiled by any compiler version that is greater than or equal to `0.8.20`, and less than `0.9.0`. It is recommended that contracts should be deployed with the same 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 | medium | other | false | false | ## Medium: VestingWalletHalving Administrative Functions Ignore Previously Released Tokens
### Description
The [`renounceVesting`](https://github.com/oceanprotocol/vw-cli/blob/0397c74da60ae50db5c6414307849120b899af6e/contracts/VestingWalletHalving.sol#L210-L215) function in `VestingWalletHalving.sol` allows the owner ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | token | false | false | ## High: Make Token ERC20 Compliant
### Description
There’s several ways in which the UKG token is not ERC20 compliant.
* The `totalSupply` variable is not updated correctly. It should always contain the total token supply. For example, token balance is given to the Unikrn team [in line 138 of TokenDistribution.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 | gas | other | true | false | ## Gas: `<x> += <y>` costs more gas than `<x> = <x> + <y>` for state variables
### Description
Using the addition operator instead of plus-equals saves **[113 gas](https://gist.github.com/IllIllI000/cbbfb267425b898e5be734d4008d4fe8)**
*There is 1 instance of this issue:*
https://github.com/rabbitholegg/quest-protoc... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Bug Bounty
### Description
Formal security audits are not enough to be safe. We recommend implementing [an automated contract-based bug bounty](https://github.com/OpenZeppelin/zeppelin-solidity/blob/master/contracts/Bounty.sol) and setting a period of time where security researchers from around the globe can 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 | initialization | false | false | ## Low: rewards can be lost due to the vesting period
### Description
On Blast, gas rewards generated by the contract can be collected by calling the `claimAllGas()` function on the Blast contract. However, this loses some amount of rewards.
Gas fees consumed by a contract are eligible to be collected by the same con... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: The callback address is set to `address(0)`
### Description
**Severity**: Informational
**Status**: Acknowledged
In Contract GlmRebalnce, the method `_keeperTokenPurchaseUsingLongToken(...)` calls GMX `createDeposit(...)` with `callbackContract` set as `address(0)`.
Although it will not revert, GMX deposit ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Delegations cannot be removed in some cases due to vulnerable `revokeDelegate()` implementation
### Description
An old borrower can use an old delegation to claim on behalf of a new borrower.
### Proof of Concept
A borrower can delegate locked collateral NFT through `delegateRegistry` to prove token owner... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 simple comparison in if statement
### Description
[G-08] Use simple comparison in if statement
The comparison operators >= and <= use more gas than >, <, or ==. Replacing the >= and ≤ operators with a comparison operator that has an opcode in the EVM saves gas.
The existing code is::br
ERC2... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | overflow | false | false | ## High: Reserved token rounding can be abused to honeypot and steal user's funds
### Description
When the project wishes to mint reserved tokens, they call mintReservesFor which allows minting up to the amount calculated by DelegateStore's \_numberOfReservedTokensOutstandingFor. The function has this line:
// No 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: Missing, misleading, incorrect, or incomplete comments
### Description
There are cases where the comments are either missing, incomplete or incorrect throughout the codebase.
### Instances (7)
- `_swap`:
- at line 246 *toke_beforeTransferTon* should be *token_beforeTransferToken* ([code](https://github.co... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | dos | true | false | ## Medium: Accounts may be created with incorrect rent-exemption due to `Rent::default` usage
### Description
**Description:** This dos vulnerability arises from the use of hardcoded `rent` parameters during account creation, leading to underfunded accounts that fail rent exemption requirements.
The flawed implementa... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Consider Defining Commission Scaling Factor as a Constant
### Description
The [`commission_scaling_factor`](https://github.com/longgammalabs/hanji-contracts/blob/09b6188e028650b9c1758010846080c5f8c80f8e/src/OnchainLOB.sol#L51) is set as an `immutable` variable, but it is typically a constant value (e.g., `1e6`... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Share price increases can lead to sandwiching attacks when using only one vault
### Description
The surge fee is a mechanism to avoid sandwiching attacks during autonomous liquidity modifications, which can happen due to LDF updates, rehypothecation yields, or autonomous rebalances.
The `beforeSwap` 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: The vote is open for objection during the main voting time
### Description
At line https://github.com/lidofinance/aragon-apps/blob/7e5cd1961697a1bc514bfebdeab08a296e51d700/apps/voting/contracts/Voting.sol#L475
the `_isVoteOpenForObjection()` function returns `true` during the main voting time. It can be potent... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Consider optimizing poolconfigurator::_checknosuppliers internal function
### Description
When the `_checkNoSuppliers` internal function is invoked, it performs a call to the `Pool::getReserveData` function to grab the reserve state data from the Pool's storage. However, this function will perform unnecessary ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Broken Liquidation Access Control
### Description
## Argo Liquidation System
Argo implements liquidations via a flashloan system using the hot potato method, returning a `LiquidateIOU` object with no abilities.
## Code Implementation
### argo_engine/sources/engine_v1.move
The intended behavior is to inte... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | true | true | ## Low: TWAP is incorrect when only 1 update has occurred
### Description
If there has only been a single update to the pump, `GeoEmaAndCumSmaPump::readTwaReserves` will return an incorrect value.
### Impact
Given this affects only one oracle update when the pump is still ramping up, we evaluate the severity to LOW.
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Centralization of Pausable and possible Denial of Service
### Description
**Severity**: Medium
**Status**: Resolved
**Description**
In contract FEYTraderJoeProduct, The global and local pausable functionality can be exploited by a malicious admin to deny users from withdrawing their funds for a very long... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Accounts are not necessarily rent-exempt
### Description
## Aob's Create Market Instruction
Aob's `create_market` instruction assumes the market, event_queue, bids, and asks accounts have been created externally, and similarly for Dex's `create_market` instruction. If one of these accounts is not rent-exempt... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 ALL_HOLDERS_ROLE can be set as a force role by mistake
### Description
During the initialization, an array of roles that must be assigned as force approval/disapproval can be sent. The logic does not account for `ALL_HOLDERS_ROLE` (which is role id 0, the default value of uint8) which can be sent as a mist... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `internal` functions only called once can be inlined to save gas
### Description
Not inlining costs **20 to 40 gas** because of two extra `JUMP` instructions and additional stack operations needed for function calls.
*There are 3 instances of this issue:*
https://github.com/code-423n4/2022-10-thegraph/blob/4... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | dos | true | false | ## Low: Performance Concerns with Nested For Loop
### Description
**Severity**: Informational
**Status**: Acknowledged
**Description**
LibQuorum.sol - In pruneQuorums function:
The smart contract includes a nested for loop structure, which, depending on the size of the data being processed, may result in increased ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Privileged Roles and Ownership
### Description
**Update**
Marked as "Acknowledged" by the client. Secured Finance has shared the following regarding role management:
1. Deployer (General wallet): A general wallet used for deploying implementation contracts. It is not allowed to upgrade our protocol and execu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: INVALID EXTERNAL CALL DOES CAUSE CONTRACT DEADLOCK
### Description
During the payout claiming process, some `crTokens` are burned in the `claim` function located at `PayoutPool` smart contract. Since the `onlyPolicyCenter` modifier is applied to the `burn` function, the smart contract associated to the addres... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Getting data from pool can be reverted when one of the oracle is not live
### Description
## Vulnerability Details
In `_getData()` function in `UpdateWeightRunner` contract, it use `_getOracleData()` function to get data from oracle:
It will call to `getData()` function of oracle:
`getData()` 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 | high | access-control | true | false | ## High: addCredit / increaseCredit cannot be called by lender first when token is ETH
### Description
### Impact
The functions `addCredit` and `increaseCredit` both ahve a `mutualConsent` or `mutualConsentById` modifier. Furthermore, these functions are `payable` and the lender needs to send the corresponding ETH 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 | medium | initialization | false | false | ## Medium: Removing an observer doesn't update an active ballot's voter list, leading to deadlocks
### Description
When a ballot is initialized for voting, it takes a snapshot of the active observers and adds them to the voter list, along with recording the chain threshold, meaning X% of the voter list must vote to fi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | true | false | ## Low: init() function can be called by anybody
### Description
`init()` function can be called anybody when the contract is not initialized.
More importantly, if someone else runs this function, they will have full authority because of the `owner` state variable.
Here is a definition of `init()` function.
### 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 | signature | true | false | ## Medium: verifyingSigner has no authority over paymaster-related gas limits
### Description
In ERC4337 v0.7, the gas limits used for calling the paymaster functions `validatePaymasterUserOp()` and `postOp()` are now included in the `userOp.paymasterAndData` bytes, as detailed in PR 363.
In the new version of the Ve... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Deposit transactions lose funds to front-running when multiple fee tiers are available
### Description
Deposit transactions lose funds to front-running when multiple fee tiers are available
### Impact
The user loses funds as a result of maximum slippage.
### Recommendation
Add extra parameters for the minim... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | false | false | ## High: Overflow in `CollateralTracker` allows minting shares for free
### Description
### Impact
Malicious actors can mint huge amounts of shares for free and then withdraw all collateral.
### Proof of Concept
In the `mint` function user-controlled `shares` parameter goes right away to the `previewMint` 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 | false | false | ## Medium: NonUSTStrategy.sol Improper handling of swap fees allows attacker to steal funds from other users
### Description
## Handle
WatchPug
## Vulnerability details
https://github.com/code-423n4/2022-01-sandclock/blob/a90ad3824955327597be00bb0bd183a9c228a4fb/sandclock/contracts/strategy/NonUSTStrategy.sol#L66-... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | rounding | true | false | ## Medium: DataProvider does not calculate the price per share correctly
### Description
`ERC4626DataProvider` does not calculate the price per share correctly. It returns the inverse of the price per share. This hook is implemented correctly in `ERC4626Hyperdrive`.
### Recommendation
`_pricePerShare()` needs to be c... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | false | false | ## High: An incorrect check
### Description
There is an incorrect check in the `updateDistribtionTotalEarningsAmounts()` function https://github.com/FantiumAG/smart-contracts/blob/c622b4c35132167bacc22cf76656d80715edb5fd/contracts/claiming/FantiumClaimingV1.sol#L326-L327. Instead of a check for `_totalTournamentEarnin... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [09] `constant`s should be defined rather than using magic numbers
### Description
Even [assembly](https://github.com/code-423n4/2022-05-opensea-seaport/blob/9d7ce4d08bf3c3010304a0476a785c70c0e90ae7/contracts/lib/TokenTransferrer.sol#L35-L39) can benefit from using readable constants instead of hex/numeric li... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Events Missing Indexed Fields
### Description
Indexed event fields make the data more quickly accessible to off-chain tools that parse events, and add them to a special data structure known as "topics" instead of the data part of the log. A topic can only hold a single word (32 bytes) so if you use a [referenc... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 parameter type is used for s.strategyValidators
### Description
`s.strategyValidators` is of type `mapping(uint32 => address)` but the provided type in the context is of type `uint8`.
### Recommendation
Make sure the typing is correct; either use `mapping(uint32 => address)` or `mapping(uint8 => address... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.