prompt listlengths 2 2 | source stringclasses 3
values | severity stringclasses 5
values | category stringclasses 186
values | has_code bool 2
classes | has_poc bool 2
classes | reference_response stringlengths 23 5k | firm stringclasses 26
values | quality_score float64 0 5 | protocol stringclasses 398
values |
|---|---|---|---|---|---|---|---|---|---|
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Inaccurate Bitcoin Fee Calculation
### Description
The `SponsorTx` function adjusts the change output of a Bitcoin transaction by deducting a calculated fee. However, the fee calculation within `CalculateFee` is currently flawed. The method doubles the estimated transaction size (`tx.SerializeSize() * 2`), lea... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: CrossPool utilizes shared time lock & end investment block
### Description
**Description**
CrossPool v1 specification points that “Each pool will have an end block; i.e. the last block
a reward will be distributed.”, but instead of that all pools are using end investment block &
time lock params defined duri... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | integer-overflow | true | false | ## Low: Add explicit check to prevent underflow revert in `PredictionMarketV3_4::calcSellAmount`
### Description
In [`PredictionMarketV3_4::calcSellAmount`](https://github.com/Polkamarkets/polkamarkets-js/blob/24f1394be94d27433d2e3a7370442126e1c1e5ba/contracts/PredictionMarketV3_4.sol#L434) following line may revert d... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | ## Medium: Inconsistent interest charged due to integer truncation
### Description
In `Eggs.getInterestFeeInEggs`, we compute the interest fee with the following logic:
```solidity
uint256 interest = ((3900 * numberOfDays) / 365) + 100;
```
Using `numberOfDays = 1` as an example, we can compare the output of this lo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Changing guards during a pending voting
### Description
There are two functions that make it possible to remove a guard:
- `swapGuard()`
- `removeGuard()`
But the problem is that the removed guard might have already voted for or against a pending strategy, thus keep presenting in `PendingStrategyByVault[vaul... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Protocol not fully compliant with ERC-7201
### Description
Summary
Protocol uses namespaces storages but is not fully compliant with EIP-7201 since not all namespaces follows the standard specifications.
## Vulnerability Details
As per EIP-7201 [documentation](https://eips.ethereum.org/EIPS/eip-7201#formula... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Insufficient Parameter Validation
### Description
**Update**
Fixed in `bef5e873d4330e506a80393922fb011b9aa5067b`, `814270a6a4451f55d7d9a7e5e949f883440b4083` and `7b8110058ceec4af6f2ebdeaab22adbfefdf6fe3`. The client added validation for most parameters. For the remaining ones, configuration is left to the owne... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Implementation Of Burn Logic
### Description
## Liquidity Pool Tokens
Liquidity pool tokens represent the ownership of liquidity provided to a liquidity pool. The contract mints them when a user provides liquidity to the pool and burns them when the user wants to withdraw their liquidity.
While bu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | true | false | ## Low: Default values for `deployAndRegisterStandardizedToken` can make it complicated for third party implementers
### Description
When calling `InterchainTokenService` to deploy a `StandardizedToken`, a user supplies [some parameters for the setup](https://github.com/code-423n4/2023-07-axelar/blob/main/contracts/it... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: SUI TSS drained due to lack of refund when the `withdraw/withdraw_and_call()` PTB fails
### Description
Firstly, SUI [PTBs](https://docs.sui.io/concepts/transactions/prog-txn-blocks) or 'Programmable Transaction Blocks' are atomic, that is, whenever a transaction in the bundle reverts, the whole bundle fail... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Input Validation
### Description
**Update**
The client implemented the recommended actions.
**Update**
Marked as "Fixed" by the client. Addressed in: `c47765595a3fc73626a0792b2460542e00935913`.
**File(s) affected:**`TGKMainContract.sol`
**Description:** In the `TGKMainContract.withdraw()` 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: [02] Use a pull pattern instead of push when collecting fees
### Description
### Proof of Concept
First, note that from the readMe, this has been stated: https://github.com/code-423n4/2024-08-wildcat/blob/fe746cc0fbedc4447a981a50e6ba4c95f98b9fe1/README.md#L276
Now, take a look at https://github.com/code-423... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: PerpDepository.netAssetDeposits variable can prevent users to withdraw with underflow error
### Description
PerpDepository.netAssetDeposits variable can prevent users to withdraw with underflow error
### Impact
User can't redeem all his UXD tokens.
### Recommendation
As you don't use this variable anywher... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | reentrancy | false | false | ## Low: Usage of modifiers
### Description
The protocol manually implements reentrancy protection and owner checks within function bodies instead of defining and using Solidity modifiers. While function-level checks are effective, they introduce redundancy and increase the risk of inconsistencies if applied differently... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: DebtManager.setUtilizationTargetOfStrategy doesn’t check if strategy exists
### Description
The `setUtilizationTargetOfStrategy` function doesn't check if the strategy exists before setting the utilization target.
### Recommendation
Add a check to verify if the strategy exists. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | rounding | true | false | ## High: `LotteryMath.calculateNewProfit` returns wrong profit when there is no jackpot winner
### Description
### Impact
`LotteryMath.calculateNewProfit` returns the wrong profit when there is no jackpot winner, and the library function is used when we update `currentNetProfit` of `Lottery` contract.
`Lottery.curr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: tbtc - approveAndCall unused return parameter ✓ Addressed
### Description
`approveAndCall` always returns false because the return value `bool success` is never set.
### Recommendation
Addressed with by returning `true` instead of `false`. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: If a User Is the Last Borrower of the List `allBorrowers`, Completely Repaying All Its Debts Will Revert
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `f6ebde3c56a4e9ad3120e83c9c1eb5a9710b411e`. The client provided the following explanation:
> Same as [ELA-6](https://certificate.qu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | oracle | false | false | ## Low: Missing error messages in require statements
### Description
Within the codebase, there are multiple `require` statements that lack error messages.
* In [`VotingV2.sol`](https://github.com/UMAprotocol/protocol/blob/7938617bf79854811959eb605237edf6bdccbc90/packages/core/contracts/oracle/implementation/VotingV... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | liquidation | true | true | ## Severity
**Impact:** High
**Likelihood:** Medium
## Description
Since the total assets/shares are tracked via an internal storage variable, a traditional vault inflation attack cannot occur in the Fraxlend pairs. However, by exploiting the rounding directions when minting/burning shares, an attacker can exponent... | Pashov Audit Group | 5 | Peapods_2024-11-16 |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Rebasing tokens go to the pool owner, or remain locked in the various contracts
### Description
_Submitted by IllIllI_
Rebasing tokens are tokens that have each holder's `balanceof()` increase over time. Aave aTokens are an example of such tokens.
### Impact
Users expect that when they deposit tokens to ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Use of `bytes.concat()` instead of `abi.encodePacked(,)`
### Description
Rather than using `abi.encodePacked` for appending bytes, since version 0.8.4, `bytes.concat()` is enabled
Since version 0.8.4 for appending bytes, `bytes.concat()` can be used instead of `abi.encodePacked(,)`. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: `totalRsTAOMinted` may exceed `cap`
### Description
The `cap` variable is intended to limit the total supply of `rsTAO` and `rsCOMAI`, and is checked in the `wrap()` function to ensure that the total minted does not exceed this cap:
However, the current implementation allows the `cap` to be exceeded under ce... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: A malicious user can bypass limit order trading fees via cross-function re-entrancy
### Description
A malicious user can bypass limit order trading fees via cross-function re-entrancy, since `_safeMint` makes an external call to the user before updating state.
### Impact
A malicious user can bypass the tradi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | flash-loan | true | false | ## High: Attacker could steal almost all the bonus tokens in BathBuddy Vesting Wallet
### Description
_Submitted by xiaoming90, also found by 0x52, PP1004, shenwilly, and_ _sashik_eth_
BathBuddy is a Vesting Wallet that payout withdrawers any `bonusTokens` they may have accrued while staking in the Bath Token (e.g. n... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: Owner can rescue the vault’s own share tokens
### Description
**Description:** [`SherpaVault::rescueTokens`](https://github.com/hedgemonyxyz/sherpa-vault-smartcontracts/blob/50eb8ad6ee048a767f7ed2265404c59592c098b7/contracts/SherpaVault.sol#L730-L740) forbids rescuing the wrapper token:
But it allows resc... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Possible transfer of bad account
### Description
User can have bad account with Hf < 1 but not liquidated yet, and transfer it to another user:
https://github.com/Gearbox-protocol/gearbox-contracts/blob/0ac33ba87212ce056ac6b6357ad74161d417158a/contracts/credit/CreditManager.sol#L954
### Recommendation
We rec... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | oracle | false | false | ## Medium: Manipulation of volatility through zero-amount swaps
### Description
Swaps executed with a zero amount are currently factored into the volatility oracle. This vulnerability allows an attacker to artificially manipulate the volatility index, which in turn affects the dynamic fee calculations to their advanta... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | overflow | false | false | ## Low: Integer Overflow / Underflow
### Description
**Update**
Marked as "Fixed" by the client. A limit of 100 years has been applied. Addressed in: `f2b6d0600bc4cf9492ec4edca7ba0d4790226ecc`.
**File(s) affected:**`BountyV1.sol`
**Description:** The functions `fundBounty()` does the following:
`uint64 _expiration ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: WrapperBundler calls are missing return value checks
### Description
The Morpho Blue bundler offers users the capability to bundle calls, including interactions with contracts that implement the ERC20Wrapper interface. This functionality is facilitated through the `erc20WrapperDepositFor()` and `erc20Wrappe... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: Wrong aave usage of `claimRewards`
### Description
_Submitted by jonah1005_
Aave yield manager claims rewards with the payment token. According to aave's document, aToken should be provided.
The aave rewards would be unclaimable.
YieldManager's logic in [L161-L170](https://github.com/code-423n4/2021-08-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... | cyfrin_structured | low | access-control | false | false | ## Low: Emit missing events for storage changes
### Description
Emit missing events for storage changes:
* `Allowlist::changeUserAccreditation`, `changeAdminStatus`
* `Allowlist::UserAllowed` should be expanded to contain and emit the `HolderInfo` boolean flags
* `ReferralManager::addReferral`
* `RemoraIntermediary::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 | high | other | false | false | ## High: Deprecated ETH transfer in LimitOrderProtocolRFQ.
### Description
**Description**
LimitOrder ProtocolRFQ.sol: function fillOrderRFQTo(), line 165. Due to the Istanbul update there were several changes provided to the EVM, which made .transfer() and .send() methods deprecated for the ETH transfer. Thus it is ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: [23] Draft OpenZeppelin dependencies
### Description
OpenZeppelin contracts may be considered draft contracts if they have not received adequate security auditing or are liable to change with future development.
https://github.com/code-423n4/2022-12-tigris/blob/main/contracts/StableToken.sol#L4
https://githu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: `Empty blocks` should be _removed_ or _Emit_ something
### Description
Code contains empty block
```solidity
2 results - 2 files
contracts/smart-contract-wallet/SmartAccount.sol:
550: receive() external payable {}
contracts/smart-contract-wallet/aa-4337/samples/SimpleAccount.sol:
41: receive() extern... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: OWNER() cannot be updated for private or public vaults
### Description
`owner()` is an immutable data for any `ClonesWithImmutableArgs.clone` that uses `AstariaVaultBase`. This means, for example, if there is an issue with the current hardcoded `owner()`, there is no way to update it, and liquidities/assets in... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | false | false | ## Medium: Unrestricted slippage tolerance
### Description
**Severity**: Medium
**Status**: Resolved
**Location**: StaderHavenStakingManager.sol
**Description**
When depositing and withdrawing assets in exchange of different asset (funcitons `deposit()` and `requestWithdraw()`), slippage tolerance provides a prote... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Access restrictions on `CompoundToNotionalV2.notionalCallback` can be bypassed
### Description
_Submitted by cmichel_
The `CompoundToNotionalV2.notionalCallback` is supposed to only be called from the verified contract that calls this callback. But, the access restrictions can be circumvented by simply provi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Contract might not have enough balance for winner to claim prize
### Description
**Impact:**
High, as user will not be able to claim prize value
**Likelihood:**
Medium, as it requires the owner to not input enough balance
**Description**
The protocol doesn't enforce the actual balance in the `NFTLootbox` c... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | oracle | true | false | ## Low: Incorrect Event Emissions
### Description
## Event Emission Issues in Oracle and Treasury
**Issue Summary**
`IncreaseLengthEvent` in `oracle::increase_oracle_length` is emitted even if the new length equals the old length. Similarly, `WithdrawEvent` in `treasury::withdraw` is emitted when a zero amount is wi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | initialization | true | true | ## High: Non-reinitialization of daily pledges will block the tally
### Description
Everyday, `ElectionCommission` computes the number of pledges that voted during the day, through `tallyPledgesToday`. However, `tallyPledgesToday` is never re-initialized, and thus, it will have an incorrect value starting on the secon... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Contract header not updated after branching
### Description
1. File: src/GlobalAccessControl.sol (lines [12-17](https://github.com/code-423n4/2022-04-badger-citadel/blob/18f8c392b6fc303fe95602eba6303725023e53da/src/GlobalAccessControl.sol#L12-L17)) | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | cross-chain | true | false | ## Medium: Causing users lose fund if bridging long message from L2 to L1 due to uncontrolled out-of-gas error
### Description
If the amount of gas provided during finalizing withdrawal transactions passes the check in `callWithMinGas`, it is not guaranteed that the relaying message transaction does not go out of gas.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Enforce Signed Multisig Program . . . . . . . . . . . . . . . . . . .
### Description
## Transaction Instruction Security
When calling instructions inside a transaction created with an `authority_index` equal to 0, the multisig PDA account is sent as a signed account. This is designed to be used for calling 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 | liquidation | false | false | ## Low: (Re-Audit) Strategies Not Enforced in Contract
### Description
**Update**
The team has acknowledged the issue and chosen to keep the existing implementation.
**File(s) affected:**`CreditCaller.sol`
**Description:** The delta-neutral strategies that are offered on the front end are not enforced on the contrac... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | true | false | ## Low: [01] Withdrawer granted DEFAULT_ADMIN_ROLE
### Description
https://github.com/code-423n4/2024-06-krystal-defi/blob/main/src/Common.sol#L119
According to the Krystal docs:
https://docs.krystal.app/technical-docs/security#access-control
> Withdrawers cannot touch any of the LP positions
However, during the c... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: File does not contain an SPDX Identifier
### Description
*There are 16 instances of this issue:*
https://github.com/debtdao/Line-of-Credit/blob/e8aa08b44f6132a5ed901f8daa231700c5afeb3a/contracts/modules/credit/EscrowedLine.sol#L0
https://github.com/debtdao/Line-of-Credit/blob/e8aa08b44f6132a5ed901f8daa23170... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: interface is incorrectly used instead of IERC7575
### Description
In `VaultOracle`, vault is treated as an ERC4626 instance. However, the declared `IERC4626` does not match the ERC4626 specification, e.g., the function `share()`. The team clarified that vault should be an ERC7575 instance.
### Recommendation
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unused _initFactoryBase function.
### Description
**Description**
Module FactoryBase._initFactoryBase()
This function is never used.
**Recommendation**
Remove the function.
**Re-audit comment**
Verified.
From client:
This function is actually used by both TreasuryModuleFactory.sol and the GovernorFacto... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Checks-Effects-Interactions Pattern Not Followed
### Description
**Severity**: Informational
**Status**: Resolved
**Description**
The contract does not strictly follow the checks-effects-interactions pattern in functions involving external calls, especially during token transfers. Typically, this pattern he... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Usage of ERC777 token can block liquidation
### Description
Malicious user can use ERC777 token callbacks for blocking liquidation:
https://github.com/Gearbox-protocol/gearbox-contracts/blob/0ac33ba87212ce056ac6b6357ad74161d417158a/contracts/credit/CreditManager.sol#L433
### Recommendation
We recommend not... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: User Has to Pay Fees Even for Tokens Unsupported by the Price Feed
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation:
> It is intended for the user to pay fees if they enter tokens unsupported by the price feed. This is to disincentivize users fro... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | true | false | ## Low: Possible unauthorized movement of funds
### Description
The `deposit()` function in the `StrategyAerodromeGaugeGreen` contract allows for depositing all current `want` tokens to the Aerodrome Gauge external contract. However, this function can be triggered by anyone, which could lead to unexpected behavior if ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `FlywheelCore.setBooster()` can be used to steal unclaimed rewards
### Description
_Submitted by IllIllI_
A malicious authorized user can steal all unclaimed rewards and break the reward accounting
Even if the authorized user is benevolent the fact that there is a rug vector available may [negatively impa... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: HARDCODED VALUES IN TRANSACTION PROCESSING
### Description
The Bitcoin transaction adapter code contains hardcoded values for `transferAmount` and `transferFee` within its transaction processing logic. These values are used to calculate transaction outputs and fees, which are critical for the correct execut... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: ERC20 tokens with different decimals than 18 leads to loss of funds
### Description
_Submitted by reassor, also found by hyh, IllIllI, kenzo, leastwood, rajatbeladiya, VAD37, and ych18_
### Impact
Contract `PermissionlessBasicPoolFactory` calculates rewards by using hardcoded value of decimals `18` (1e18... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Test addresses and incorrect interface in code prevent integration with UniswapV3 and Camelot
### Description
Testing addresses for Camelot and UniswapV3 factories are still used in the code:
[CamelotRelayer.sol#L20](https://github.com/open-dollar/od-contracts/blob/f4f0246bb26277249c1d5afe6201d4d9096e52e6/... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: BaseUpgradeable initializer does not initialize ERC20Upgradeable
### Description
The initialization function of the `ERC20BaseUpgradeable` contract does not initialize its parent ERC20 contract.
```solidity
/**
* @notice Initializes the ERC20Base contract with a name and version.
* @dev Sets the initial nam... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | cross-chain | true | false | ## Low: The `onlyFactory` modifier is not used in FactoryChild
### Description
When creating a child contract from the RelayerFactory, the child contract inherits FactoryChild.
This FactoryChild is an abstract contract that has an onlyFactory() modifier, but it is not used in the protocol.
Consider using the modif... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Bptoracle makes assumptions on the usd price decimals
### Description
The `getUSDPrice` function in `BPTOracle` retrieves the USD price of an asset from the price feed. This function makes the assumption that the returned price is based on 8 decimals. The function lacks a check to ensure that the returned p... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | true | false | ## Low: Code Quality
### Description
## General Findings
1. In the broader code base, there are multiple places where `oracle_price_history::get_and_update_price` is called, and after calling it, there is a matching case to handle specific errors and return the latest price from history. Identical error handling and ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | false | false | ## High: Epoch Manipulation
### Description
This issue has been identified in the `deposit` function of the `Prestaking` contract.
The `epochIndex` is not properly set or stored within the staking wallet structure. As a result, users can manipulate the staking mechanism by selecting any epoch during deposit, allowing ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | logic-error | true | false | ## Low: Superfluous conditional branches can be combined
### Description
`BunniHubLogic::queueWithdraw` makes use of comments to demarcate logic into separate sections. When performing state updates, a new queued withdrawal is created when there is no existing queued share amount given by the `else` branch of the cond... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `confirmMint()` does not initialize the `INITIALIZED_CID`
### Description
The `confirmMint` function calls `_mint` to create the NameNFT.
However, `INITIALIZED_CID` is only initialized when the `_safeMint` function is called.
The `MANAGER_ROLE` needs to call `setTraitsInitialized` separately to set 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 | medium | liquidation | true | false | ## Medium: Long traders unable to withdraw their assets
### Description
Whenever the protocol reaches a state where the long trader's profit is larger than LP's stable collateral total, the protocol will be bricked. As a result, the margin deposited and gain of the long traders can no longer be withdrawn and the LPs 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 | medium | access-control | true | false | ## Medium: Use of unpinned third-party Docker image and actions on workflows
### Description
Several workflows in the repository directly use third-party actions, such as:
- `peaceiris/actions-mdbook@v2`
- `peaceiris/actions-gh-pages@v4`
- `docker/login-action@v3`
- `docker/metadata-action@v5`
- `docker/build-push-acti... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | medium | dos | true | false | ## Medium: Accounts may be created with incorrect rent-exemption due to `Rent::default` usage
### 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 implementation relies on `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 | low | access-control | false | false | ## Low: Single-step governance transfer can be risky
### Description
`Governable.sol` implements the role of governor, which performs relevant actions like setting oracles for different assets and a possible fallback oracle. It uses a single-step role transfer design, which adds the risk of setting an unwanted role ow... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 ownership transfers
### Description
There are several instances in the contract when ownership is transferred to the msg.sender.
By inheriting from Ownable, this will happen automatically.
**Team response:**
"Removed several ownership transfers."
**Mitigation review:**
Fixed. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: No validation of apy
### Description
**Severity**: Medium
**Status**: Resolved
**Description**
In setApys, there is no validation check for the input value. This issue severity is higher than it is usually due to the impact a mistake in new value can have on the tokenomics of the ecosystem.
**Recommenda... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Incorrect comment
### Description
[// note in terms of note will always be 1 ](https://github.com/code-423n4/2022-09-canto/blob/65fbb8b9de22cf8f8f3d742b38b4be41ee35c468/src/Swap/BaseV1-periphery.sol#L498)
### Recommendation
Probably the comment should be like this "price in terms of note will always be 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 | gas | initialization | true | false | ## Gas: Additional if condition in claim for generally lower gas cost
### Description
The current initial conditional:
```solidity
if (claimable > lock.unclaimedBeforeSplit) {
lock.totalClaimed += claimable - lock.unclaimedBeforeSplit;
delete lock.unclaimedBeforeSplit;
}
```
includes a number of operations assoc... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | overflow | false | false | ## Low: `_convertToBucketUnit()` uses `<` instead of `<=` to check for overflow
### Description
_Acknowledged_
`_convertToBucketUnit()` uses `amount < type(uint64).max * BUCKET_UNIT_SCALE` to check if the result would overflow `uint64`. The correct approach is to use `<=` for the comparison, because otherwise a valid... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Code modularity
### Description
All contracts appear in a single large file. Simpler code means easier audits, and better understanding of what each component does. Consider separating current code into small files, small contracts, and small functions. If you can separate a contract into many independent func... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: BE - POTENTIAL RISK DUE TO THIRD-PARTY IFRAME
### Description
The wallet browser extension integrates a third-party iframe to facilitate cryptocurrency purchases. However, the iframe is granted extensive permissions, including access to scripts, same-origin content, popups, and sensitive APIs such as the 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 | low | initialization | false | false | ## Low: Currency Pair Count Inconsistency
### Description
## Currently, the calculation of MaxNumCP may be incorrect when currency pairs are deleted
If initially, there are **10 currency pairs (NumCP = 10)** and two currency pairs are added in a new block, and three currency pairs are removed, NumCP will become **nin... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | true | false | ## Low: [05] Hardcoded Gas Fee in Pool Migration Could Lead to Failed Transactions in Network Congestion
### Description
The Pump Science protocol’s pool migration process includes a hardcoded gas fee deduction in the `initialize_pool_with_config()` function:
The function subtracts a hardcoded value of 0.04 SOL (40*... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Validate argument in `setRebalanceUpThreshold` and `setRebalanceDownThreshold`
### Description
- https://github.com/code-423n4/2023-05-xeth/blob/main/src/AMO2.sol#L495
- https://github.com/code-423n4/2023-05-xeth/blob/main/src/AMO2.sol#L512
Validate that the thresholds are within the 0-1e18 range in `setRebal... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Update: [H06] Legacy REP tokens can be migrated to child universes
### Description
When reviewing the originally reported **“[L07] REP token allows migration of legacy tokens after universe fork”**, finally identified as a non-issue, the Augur team uncovered a serious vulnerability that would allow legacy REP... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `GlobalConfiguration::removeCollateralFromLiquidationPriority` corrupts the collateral priority order resulting in incorrect order of collateral liquidation
### Description
**Description:** `GlobalConfiguration` [uses](https://github.com/zaros-labs/zaros-core-audit/blob/de09d030c780942b70f1bebcb2d245214144acd... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inaccurate Use of Interface ✓ Fixed
### Description
During the deployment of a pool the `parameters` are defined in the factory contract, which subsequently calls the deployer contract to deploy the pool. The pool based on UniV3 design calls the `msg.sender` in the constructor to fetch the `parameters` for its... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: NodeManagersupportsInterface returns false for typeIERCinterfaceId
### Description
Report type: Smart Contract
Target: https://testnet.snowtrace.io/address/0xA758c321DF6Cd949A8E074B22362a4366DB1b725
Impacts:
* Contract fails to deliver promised returns, but doesn't lose value
## Description
## Brief/Intr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Potential EVM Compatibility Issue in Solidity Version >=0.8.21
### Description
**Update**
EVM version has been set to `Paris`. Fixed in `a5baa79ee409f3239afd39285aa674cc1bd42810`.
**File(s) affected:**`foundry.toml`
**Description:** The `foundry.toml` configuration file shows that the MSCA code is compiled u... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | liquidation | true | true | ## High: When account is liquidated (protected), liquidator can increase account's position to any value up to `2**62 - 1` breaking all market accounting and stealing all market funds.
### Description
Previously, there was a check which enforced position to only decrease during liquidation. However, the check is gone ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | cross-chain | true | false | ## Low: Hardcoded `extraArgs` violates CCIP best practices
### Description
**Description:** When sending cross-chain messages via CCIP, Chainlink recommends keeping the `extraArgs` parameter mutable to allow for future upgrades or configuration changes, as outlined in their [best practices](https://docs.chain.link/cci... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | false | false | ## High: Missing `_updateSupply` Call in `updateWeights`
### Description
**Severity**
**Impact:** Medium
**Likelihood:** High
**Description**
The `updateWeights` function updates the virtual balance product (`vb_prod`) but does not include a call to `_updateSupply`. This inconsistency can result in the use of a st... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Dutch auctions can fail to settle if any other collateral in the basket behaves unexpectedly
### Description
When a Dutch auction that originated from the backing manager receives a bid, it [calls](https://github.com/code-423n4/2024-07-reserve/blob/3f133997e186465f4904553b0f8e86ecb7bbacbf/contracts/plugins/... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Necessary off chain systems should be in place
### Description
The check on line [83-85] in `setupValidators()` protects against a validator from front-running the deposit to the `DepositContract`. To have this effect, however, an off-chain system of checks is required. Front-running attacks by a validator 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 | medium | initialization | true | false | ## Medium: Fragmentation fee is not taken if user compensates with newly created position
### Description
### Impact
User can split his debt credit using the `compensate` function without paying the fragmentation fee.
### Proof of Concept
The fragmentation fee normally applies when the initial credit amount is spli... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | initialization | false | false | ## High: Incorrect `slippage_tolerance` handling in stableswap `provide_liquidty` function
### Description
[/contracts/pool-manager/src/helpers.rs# L437-L438](https://github.com/code-423n4/2024-11-mantra-dex/blob/26714ea59dab7ecfafca9db1138d60adcf513588/contracts/pool-manager/src/helpers.rs# L437-L438)
### Finding 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 | other | false | false | ## Low: The DKIM logic to verify headers allows weird cases
### Description
The `_verifyHeaders` method in `DKIMRecoverySigValidator` now allows for the following two anomalies:
1. A valid set of headers that have extra text in between them, which is in between two `\r\n` expressions
2. Reordered `subject`, `to` and ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: A variable was assigned a value but not used or returned inside the function
### Description
**Severity**: Informational
**Status**: Acknowledged
**Description**:
**Recommendations**:
Since this variable is not used Would be advisable to remove it entirely to save memory space and gas.
**Comment by clien... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Integer overflow/underflow
### Description
**Occurs**:
Basilisk-node/pallets/exchange/src/lib.rs:620
Basilisk-node/pallets/lbp/src/lib.rs:746,819,824
Basilisk-node/pallets/nft/src/lib.rs:98
Basilisk-node/pallets/transaction-multi-payment/src/lib.rs:367
Basilisk-node/pallets/xyk/src/lib.rs:629,752
Basilisk-... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Predictable Randomness in Activity Outcomes
### Description
The randomness generation in `PenguinManager.doActivity()` is predictable due to reliance on `block.timestamp` and inputs controlled by the user. If the caller of `Game.doActivity()` is a contract, it can simulate and predict activity outcomes 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 | medium | other | false | false | ## Medium: Inconsistent logic of increase unlock time to the expired locks
### Description
_Submitted by KIntern_NA, also found by ak1, cryptphi, and scaraven_
Can not prevent expired locks being extended.
### Proof of Concept
Call function function `increaseUnlockTime()` with an expired lock (locked\[msg.send... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | rounding | true | false | ## Low: Silent truncation on u128 to u64 cast in liquidity token amount calculator
### Description
**Description:** The `utils::token_calculator::calculate_liquidity_token_amount` function computes the output in `u128` and returns it with a plain `as u64` cast:
If `result` fits in `u128` but exceeds `u64::MAX`, the 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 | medium | other | false | false | ## Medium: Public vault strategist reward is not calculated correctly
### Description
Strategist interest reward is not calculated correctly. The reward will almost always be calculated with interestOwed, regardless of the amount paid.
As a result, the strategist gets paid more than they are supposed to. Even if the ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | false | false | ## Medium: Management Fee Timing Attack
### Description
**Severity**: Medium
**Status**: Acknowledged
**Description**:
The `keeperManagementFeeClaim` function allows the keeper to claim management fees based on the interval set in the contract. However, this function calculates fees based on the total assets at th... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Cache Array Length Outside of Loop
### Description
When the length of an array is not cached outside of a loop, the Solidity compiler reads the length of the array during each iteration. For storage arrays, this results in an extra `sload` operation (100 additional gas for each iteration except the first). For... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: RemoveDelegateStake silently handles the error when checking for existing removals
### Description
RemoveDelegateStake silently handles the error when checking for existing removals
### Impact
Delegate stake removal will be created even if an error happens when checking for existing removals.
### Recommen... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.