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: Code Refactoring
### Description
## Update to UpdateAdmin Structure
Add `new_admin` as a cosigner to the `UpdateAdmin` structure and modify `update_admin` for improved security by introducing an additional layer of authorization to the process of updating the admin. Requiring a cosigner adds a layer of accoun... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: Limitations May Prevent Complete Vault Initialization
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation:
> Our deployment scripts always ensure sufficient gas for deployment
**File(s) affected:**`factory.func`
**Description:** The factory contra... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | medium | Front-Running | true | true | ## Lines of code
https://github.com/with-backed/papr/blob/9528f2711ff0c1522076b9f93fba13f88d5bd5e6/src/PaprController.sol#L486
## Vulnerability details
## Impact
An attacker can apply grieving attack by preventing users from interacting with some of the protocol functions. In other words whenever a user is going t... | Code4rena | 5 | Backed 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 | low | other | true | false | ## Low: Event spam in RewardsDistributor.claimRewards ✓ Fixed
### Description
The `RewardsDistributor` contract allows users to claim their rewards through the `claimRewards()` function. It does check to see whether or not the user has already claimed the rewards for a specific epoch that they are claiming for, but 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 | other | true | false | ## Medium: Challengers Can Contest Non-Existent Indices To Steal Proposal Bond
### Description
Due to errors in the `getPollardRootIndex()` function, users are able to create challenges for indices that exceed the Network Voting Tree length under specific conditions. This issue allows users to directly challenge indic... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Centralize Flow Validations
### Description
## Validation of Flows
Currently, the validation of flows is spread throughout flow creation and execution. Some attributes – for example, `TriggerType` – are validated upon flow creation, but others like the cron string are only validated upon flow execution.
## 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: Inconsistent visibility on the bool "disabled"
### Description
In some contracts the visibility of the bool `disabled` is set as private, while on others it is set as public.
Instances: | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 deployers in integration tests
### Description
The fixture deployment function in the provided integration tests uses different signers for deploying the Arcade contracts before performing the tests. All Arcade contracts are meant to be deployed by the protocol team, except for vaults, which are depl... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | high | dos | true | false | ## High: Multiple `vault_gkhan_account` Can be Used Resulting in DoS on `complete_vest`
### Description
The program validates `vault_gkhan_account` only by checking that
* `vault_gkhan_account.owner == state.key()` and
* `vault_gkhan_account.mint == state.belo_mint`
It **does not** verify that the account is 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 | medium | access-control | true | true | ## Medium: Wrong access control in `RAACToken::setFeeCollector`, `RAACToken::setSwapTaxRate`, `RAACToken::setBurnTaxRate`
### Description
The `RAACToken::setFeeCollector`, `RAACToken::setSwapTaxRate`, `RAACToken::setBurnTaxRate` functions have restricted access to `onlyOwner` that is set up in the constructor. The `RA... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Fee-on-transfer Tokens Are Not Supported
### Description
BaseERC20Guild assumes that all ERC20 contracts send all token amounts to the destination. However, fee-on-transfer tokens (for example, those with transfer taxes) behave differently. The amount of tokens sent by the sender is not the same as the amou... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect variable used to compare
### Description
**Severity**: Medium
**Status**: Resolved
**Description**
In the contract RWAHubOffChainRedemptions the function requestRedemptionServicedOffchain is using the `minimumRedemptionAmount` to compare the `amountRWATokenToRedeem` with while the `minimumOffCh... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: User Pending Rewards Can Never Be Paid Out
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `31182abb586743450bcfb4359b26b5eee34b7f4d`. The client provided the following explanation:
> Now, _msgSender is used for pendingRewards[].
**File(s) affected:**`StakedINTX.sol`
**Description... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Prefer using abi.encode in TokenDistributor ✓ Fixed
### Description
The method `_hashLeaf` is called when a user claims their airdrop.
**code/governance-main-ee5e45a008d65021831de9f3e83053026f2a4dd2/contracts/TokenDistributor.sol:L128-L129**
```
// can we repoduce leaf hash included in the claim?
requir... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: partyB can leverage emergency mode for quick profits
### Description
A partyB can exploit the system by requesting the activation of emergency mode when they have an open position that partyA is reluctant to close. In the interim, partyB can take advantage of any open quotes with an expected open price belo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | other | true | false | ## Low: Inconsistent use of `override` keyword
### Description
We found that `override` keyword is being used inconsistently in several places.
It is recommended to use the `override` keyword consistently and reasonably.
```solidity
CollateralLiquidityProvider.sol
75: function setExternalCollateralRedemption(addr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Emergency close might be blocked due to insufficient allocated balance
### Description
Emergency close might be blocked due to insufficient PartyA's allocated balance. During urgent situations where emergency mode is activated, the positions need to be promptly closed to avoid negative events that could pot... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: GaugeController allows for quick vote and withdraw voting strategy
### Description
The GaugeController voting can be abused to apply all of the user’s weight in every gauge’s vote. GaugeController’s voting changes the weight of the gauges. Each user can split their voting weight power between the gauges:
`... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | logic | false | false | ## Medium: Potentially incorrect check in `cancel_auction`.
### Description
**Description**
During the testing stage, the team of auditors got failing conditions after the bid was placed. The team needs clarification in determining whether the statement condition is correct. Presumably, the passed bidders_wallet para... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Transaction Address Verification
### Description
## Transaction Format and Address Tables
The current transaction format adds support for lookup tables so that more addresses can be loaded in a single transaction without serializing the 32-byte address for each account. While traditional account references 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 | gas | other | true | false | ## Gas: Not using the named return variables when a function returns, wastes deployment gas
### Description
1. File: src/Context.sol (line [17](https://github.com/code-423n4/2022-04-axelar/blob/f1c8bfc16f82a27797f61cb3a310c0f936dce567/src/Context.sol#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 | low | token | false | false | ## Low: There May Not Be Sufficient Funds in the Contract to Cover the Reward Claims
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation:
> This is a known issue and is acceptable. We have discussed this and are comfortable with it as long as a user is able... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Storage: Emitting storage values
### Description
Here, the values emitted shouldn't be read from storage. The existing memory values should be used instead: | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Check for array length equality in subDelegateAllBatched
### Description
In `subDelegateAllBatched()`, the user submits two arrays: `targets` and `subDelegateRules`. We then create a delegation to each target for the corresponding set of rules.
There is no check that these arrays are equal in length. As a res... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Redeeming Does Not Discount Tokens of Removed Artists, Leading to Inflated Rewards
### Description
**Update**
The client fixed the issue in commit `992783e5724f7ee97a84004f8d556960dfbc9e0f` and provided the following explanation:
> The onlyVerifiedArtist modifier has been added on each of the functions that ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | liquidation | true | false | ## High: `Maker.collectFees` re-targets liquidity to original amount even if the maker position was adjusted, causing unexpected position change when the user expected to collect fees only.
### Description
When `Maker.collectFees` is called, it simply re-targets the liquidity to the asset's original amount:
```solidit... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Fails to update `elyAsset` price before limit in `setPricePercentageLimit()`
### Description
_Resolved_
The `setPricePercentageLimit()` function in `ElytraOracleV1` modifies the `pricePercentageLimit` without first calling `updateElyAssetPrice()` to ensure the current price is up-to-date.
**Recommendations*... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Fees Sent to `PlatformLogic.sol` Contract While Closing Position Do Not Account For Insufficient Adapter Funds
### Description
In case a position is closed, function `withdrawClosedSize()` is called to send fees from the `adapter` to the `PlatformLogic.sol` contract, in order to pay fees with it:
The probl... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | critical | integer-overflow | true | true | ## Critical: An attacker can drain the entire protocol balance of sUSDe during the yield phase due to incorrect redemption accounting logic in `pUSDeVault::_withdraw`
### Description
After transitioning to the yield phase, the entire protocol balance of USDe is deposited into sUSDe and pUSDe can be deposited into 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: No 0 address check in ‘withdrawDepositTo’ function
### Description
**Severity**: Low
**Status**: Resolved
**Location**: WalletAccount.sol
**Description**
`withdrawDepositTo` function in the provided code allows the withdrawal of an amount to a specified address. However, there is no check to ensure that 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 | initialization | true | false | ## Low: `_nameHash` is not initialized upon deployment.
### Description
I believe this is worth pointing out as it depends on the solc that will be used to compile the contracts upon deployment.
The foundry config file uses 0.8.24, so here, it's not much of a problem, the permitted functionality will simply [create](... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | dos | false | false | ## Medium: Activating same Policy multiple times in Kernel possible
### Description
_Submitted by Lambda, also found by enckrish_
To check that an already active policy is not added a second time, `isActive()` is called on the policy. However, `policy` could be a malicious contract that always returns `false` for `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 | high | initialization | false | false | ## High: getPriceOfAssetQuotedInUSD Might Return Flawed Asset Prices ✓ Fixed
### Description
First, the function `getPriceOfAssetQuotedInUSD()` operates under the assumption that stablecoins—specifically ‘USDT’, ‘USDC’, ‘DAI’, ‘USDP’, and ‘TUSD’—always maintain a 1:1 price ratio with the USD. Although this is generall... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | other | true | false | ## Low: Use globally available Solidity variables in `C.sol` | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | liquidation | false | false | ## Medium: `FlashRolloverLoan_G5` will fail for `LenderCommitmentGroup_Smart` due to `CollateralManager` pulling collateral from `FlashRolloverLoan_G5`
### Description
`FlashRolloverLoan_G5` calls `SmartCommitmentForwarder::acceptCommitmentWithRecipient()`, which will have `CollateralManager` commiting tokens from `Fl... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | true | false | ## High: Ineffective Time-Weighted Average Implementation in Fee Distribution
### Description
The `FeeCollector ` contract implements a time-weighted average mechanism for fee distribution, but this mechanism is ineffective as users can claim their rewards immediately after distribution, bypassing the intended time-w... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Wrong Comment in `setPaused()` function
### Description
The comment suggest only restake manager admin to set the paused state. But in actual implementation `onlyDepositWithdrawPauserAdmin` set the paused state. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [36] Wrong comment in EmptyContract
### Description
[DefaultAccount, line 15](https://github.com/code-423n4/2023-10-zksync/blob/1fb4649b612fac7b4ee613df6f6b7d921ddd6b0d/code/system-contracts/contracts/DefaultAccount.sol#L15)
[EmptyContract, line 9](https://github.com/code-423n4/2023-10-zksync/blob/1fb4649b61... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: _pendingltv[asset] will be set to 0 if 2 consecutive calls to setreservefreeze(asset, true) are executed
### Description
The function `setReserveFreeze()` was modified in this 3.1 update to set LTV to 0 on freeze, or revert to the previous value in case of unfreezing:
```solidity
function setReserveFreeze(... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | false | ## High: Borrow fee uses APY as per-second rate, causing extreme overcharging
### Description
The borrow fee rate returned by the smooth rate curve is an annual percentage yield (APY), but the implementation multiplies it directly by elapsed seconds without annualizing. This treats an annual rate as if it were a per-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 | true | false | ## High: Malicious Users Can Drain The Assets Of Auto Compound Vault
### Description
### Proof of Concept
> Note: This issue affects both the AutoPxGmx and AutoPxGlp vaults. Since the root cause is the same, the PoC of AutoPxGlp vault is omitted for brevity.
The `PirexERC4626.convertToShares` function relies 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 | false | false | ## Low: MISSING CHECKS FOR NON-ZERO TRANSFER VALUE CALLS
### Description
Checking for non-zero transfer values can prevent an external call to save gas.
Code Location
-------------
`TokenSaleDistributor.sol`
* Line 189: `function withdraw(uint amount) external adminOnly {`
### Recommendation
**SOLVED:** The `Moonw... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | dos | false | false | ## Low: Open TODOs
### Description
There are open TODOs in the code. Code architecture, incentives, and error handling/reporting questions/issues should be resolved before deployment.
### Proof of Concept
16 instances:
#### lending-market/Comptroller.sol
[// TODO immutable?](https://github.com/code-423n4/2022-07-s... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | dos | false | false | ## Medium: StoreChunksRequest does not contain a signature field or other authentication root
### Description
StoreChunksRequest does not contain a signature and there is no way to attribute requests to the disperser, batcher, or any other node. This allows for servicing of invalid chunk storage requests. This can ult... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | false | ## Low: Deposits / withdrawals break if all tranche weights are 0
### Description
The `addTranche` function has no zero-value check in the LendingPool.sol contract. But if all added tranches have a weight of 0, and thus if `totalInterestWeight` amounts to 0, the interest calculations can break due to a division by 0 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 | oracle | true | false | ## Low: Existing Chainlink stakers can skip queue by bypassing migration requirements
### Description
**Description:** The purpose of `LINKMigrator` is that users can migrate their existing position from the Chainlink community pool to stake.link vaults, even when the community pool is at full utilization, since vacat... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Streamline Error Handling with `require` Statements
### Description
As of Solidity 0.8.27, the preferred approach for error handling is to use `require(bool, Error)` statements rather than `if (bool) revert Error`. This modern approach improves code readability, simplifies logic, and increases gas efficiency.
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | storage | false | false | ## Low: Redundant status variable in `HanjiTrieFactory`
### Description
The issue has been identified within the [HanjiLOBFactory](https://github.com/longgammalabs/hanji-contracts/blob/70b15ec4d9e7578248141604503843716a67d875/src/HanjiLOBFactory.sol#L101) and [HanjiTrieFactory](https://github.com/longgammalabs/hanji-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 | storage | true | false | ## Medium: AccessControlDS uses AccessControl, which has storage collision risks
### Description
The `AccessControlDS` contract inherits from OpenZeppelin’s `AccessControl` contract, creating a risk of storage collisions due to `AccessControlDS`’s use in upgradeable contracts. The definition of `AccessControlDS` and 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 | signature | true | false | ## Low: `abi.encodePacked` is used in the hash calculation
### Description
The same signature can be used to deploy multiple Wearables with different parameters because `abi.encodePacked` concatenates all the strings:
Here is a simple test:
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 | medium | initialization | true | false | ## Medium: "The proposer can be impeded from submitting a proposal by an attacker who inflates the proposalThreshold."
### Description
Report type: Smart Contract
Target: https://github.com/alchemix-finance/alchemix-v2-dao/blob/main/src/AlchemixGovernor.sol
Impacts:
- Manipulation of governance voting result deviat... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Using the `transfer` function of `address payable` is discouraged
### Description
The `transfer()` function only allows the recipient to use `2300` gas. If the recipient uses more than that, transfers will fail. This could, for example, be the case if `vendor` is the address of a multisig or payment splitte... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: TRST-L-12 The owner can grant anyone the whitelistedStrategy role to transfer the tokens of approved users
### Description
**Description:**
The owner of an AccessController contract can grant any role to anyone, and the
**whitelistedStrategy** role can call `StrategyGateway.transferToken()` to transfer the ap... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Centralization Risks
### Description
While the Pear protocol requires a trusted party to adjust to market conditions and possible updates of the code, some of the functionalities allow compromised admin accounts to exploit the protocol.
### Impact
Complete protocol dysfunction and users' funds lost in case of... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Executor does not support actions sending native tokens to EOA
### Description
## Executor.sol Context
**Context:** Executor.sol#L222
**Description:**
All actions that can be queued and executed in the Executor are called using the `CallWithValue` helper, which checks that the target address is a contract.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | critical | reentrancy | true | true | ## Critical: Withdrawers of `sUSDe` always incur a loss because parameters passed from `Tranche::_withdraw` to `CDO::withdraw` are inverted
### Description
Users can choose to withdraw either `sUSDe` or `USDe`. The system is in charge of making the proper calculations to determine how much `USDe` value will be withdra... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | signature | true | false | ## Low: `StandardToken::transferWithPermit` can be DoS attacked by front-running to directly call `ERC20PermitMixin::permit`
### Description
**Description:** `StandardToken::transferWithPermit` contains two calls:
* first to `ERC20PermitMixin::permit`
* second to the `StandardToken::transferFrom`
**Impact:** Since th... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | token | false | false | ## Low: [8] Incompatibility With Rebasing/Deflationary/Inflationary tokens
### Description
PrePo protocol do not appear to support rebasing/deflationary/inflationary tokens whose balance changes during transfers or over time. The necessary checks include at least verifying the amount of tokens transferred to contracts... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: Missing Upper Limit On Fee Value
### Description
## Vulnerability in `pool::get_fee`
`pool::get_fee` has a potential vulnerability where the final fee may theoretically exceed 100% of the transaction amount. The `base_fee` is determined based on the confidence level in the token price. Higher confidence 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 | other | false | false | ## Medium: Flawed regex in the Tauri configuration
### Description
The Tauri configuration that limits which files the front end can open with the system’s default applications is flawed. As shown in Figure 4.1, the configuration file uses the `[/subspace\\-desktop/]` regex; the Subspace developers intended this regex ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | rounding | false | false | ## Gas: Inefficiency from Uncached Variable
### Description
## Context
SToken.sol#L58
## Description/Recommendation
The `sAmount` calculation includes an external call to retrieve decimals. Since this call appears in user functions like `deposit()` and `withdrawRequest()`, it could be optimized for gas efficiency by ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Risks associated with use of ABIEncoderV2
### Description
The contracts use Solidity’s ABIEncoderV2, which is enabled by default in Solidity version 0.8. This encoder has caused numerous issues in the past, and its use may still pose risks. More than 3% of all GitHub issues for the Solidity compiler are relate... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Validation of Key Removal Charge
### Description
The issue is identified within the function [\_setKeyRemovalCharge](https://github.com/lidofinance/community-staking-module/blob/a898d045b63303294752d1a60ad9dfe8d8ba69ca/src/CSModule.sol#L1674-L1677) of the contract. This function currently allows settin... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Adversary can abuse a quirk of compound redemption to manipulate the underlying exchange rate and maliciously disable cToken collaterals
### Description
Adversary can maliciously disable cToken collateral to cause loss to rToken during restructuring.
### Proof of Concept
if (referencePrice 0: */
if (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 | low | other | false | false | ## Low: Truffle Suite Has Been Sunset
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `1dfb5e2d9324d8901102a3ba097fd4846232be87`. The client provided the following explanation:
> Test Suite can be run with Hardhat now
**File(s) affected:**`Test Suite`
**Description:** Truffle and Ganache h... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: 002: Default BlockParams.MaxBytes Configuration May Increase Block Times and Affect Consensus Participation in the Noble App Chain
### Description
The Elys App Chain, which utilizes CometBFT as its consensus engine, has been identified to have a default configuration for `BlockParams.MaxBytes` that may be too ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `Chainlink.latestRoundData()` may return stale results
### Description
The `_getChainlinkResponse()` function is used to get the price of tokens, the problem is that the function does not check for stale results.
### Impact
Since the token prices are used in many contracts, stale data could be catastrophic fo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | oracle | true | false | ## High: Failure to enforce minimum oracle stake requirement
### Description
When a user requests the price of an asset, oracles submit prices by calling the `submit_price` function. When an oracle submits a price, this function checks whether that oracle has staked the minimum amount necessary to submit a price. Howe... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Centralization risk for trusted owners
### Description
The contracts in-scope are safe-guarded by an access control mechanism, which is a good practice in smart contract development and prevents non-authorized parties and bad actors to perform unauthorized activities within the contracts and ecosystem.
Owners... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Replaying the same BTC transactions on different LPs
### Description
When a BTC bridging event is started, the relayer picks up the relevant transaction info and proof and submits it on the EVM chain (BOB) to mint out the respective tokens from an onramp. The system is designed to have multiple onramps, so 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 | dos | true | true | ## Medium: Zero token transfer can cause a potential DoS in CVXStaker
### Description
The CVXStaker contract doesn't check for zero amount while transferring rewards, which can end up blocking the operation.
The CVXStaker contract is in charge of handling interaction with the Convex pool. The `getReward()` function 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 | high | other | false | false | ## High: Vault rewards can be gamed
### Description
The `_deposit` function increases the member's _weight_ by `_weight = iUTILS(UTILS()).calcValueInBase(iSYNTH(_synth).TOKEN(), _amount);` which is the swap output amount when trading the deposited underlying synth amount.
Notice that anyone can create synths of custo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Method should be declared external
### Description
**Description**
If you don’t use methods from inside the contract, then it’s better to declare them external. It
saves gas.
- Actuary.cohortCreatorsLength() (contracts/Actuary.sol#24-26)
- Cohort.allRiskPoolLength() (contracts/Cohort.sol#85-87)
- Cohort.chang... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | token | true | false | ## Gas: (Proposal) Variables that should be constant/immutable
### Description
There are some variables that are very unlikely to change
- File: ERC721Vestable.sol
- File: RuniverseLandMinter.sol (`vault` is actually the multisig `owner`)
Consider deleting their setters and marking them as immutable to save a mas... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incomplete Docstrings
### Description
Throughout the codebase, there are several instances of incomplete docstrings.
* The [`lastFinalizedBatchIndex`](https://github.com/scroll-tech/scroll/blob/8bd4277c13ec17670963848a24e4e1b135504f3f/contracts/src/L1/rollup/IScrollChain.sol#L47), [`committedBatches`](https:... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `Timelock` require has a typo
### Description
https://github.com/solidity-labs-io/kleidi/blob/1a06ac16bc99d0b4081281329d03064c3737f5e4/src/Timelock.sol#L1104-L1105 | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing fee limits check
### Description
**Severity:** Medium
**Path:** Crate.sol
**Description:** Unlike in the setFees function, the Crate contract constructor is setting the withdraw, performance and management fees, which are not being checked to be smaller than some amount (e.g. 10%); checks should e... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | liquidation | false | false | ## High: (Re-Audit) Discrepancies Between Redeemed and Owed Funds Leads to Several High Impact Scenarios
### Description
**Update**
Most of the outlined scenarios have been fixed to perform the correct accounting.
However, It seems that it is still possible for some trace tokens to be locked in the contract in Case 2... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | token | false | false | ## Low: Missing `await` prevents proper error handling in `Erc20Service`
### Description
The functions `Erc20Service::_getRemoteTokenContract()` and `Erc20Service::_getTokenDenom()` incorrectly attempt to catch exceptions from asynchronous calls without using `await`. This results in the `try-catch` block not catching... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Contract Security Dependent on Deployment
### Description
As the contract currently stands, its security is heavily dependent on the contract deployment parameters. There are key parameters (such as `token` and `ensRegistry`) which, if deployed maliciously, can expose the `UsernameRegistrar` contract to a sign... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: Lack of Null Value Validation
### Description
Here are the functions that lack these checks:
1. In the constructor:
* `_claimStartBlock`: While this is a uint256 and not an address, it's still important to validate that it's not 0.
2. In the `changeStakingContract` function:
* `newStakingContract`: 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 | other | false | false | ## Medium: Malicious LP can create withdrawal request frequently and undermine withdrawal delay
### Description
To withdraw tokens, the LP providers should first create withdrawal requests and after 1-minute delay then they have 15 minutes to finalize the withdraw. The issue is that attackers can create withdraw reque... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 variable
### Description
State variable `factory` of `LiquidityVault` is used only during initialization in constructor. It is never used anywhere else in the contract.
### Recommendation
It is recommended to remove unused variable `factory` declaration and usage in constructor | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: s_bridgeAddress could be made immutable
### Description
The `WERC721.sol` contract declares the `s_bridgeAddress` variable as private but mutable. However, this variable is set only in the constructor and is not changed or updated afterward. As this variable is not updated, making it immutable is more gas-effi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Use of defer in a loop
### Description
The Solana watcher uses `defer` within an infinite loop (figure 16.1). Deferred calls are executed when their enclosing function returns. Since the enclosing loop is not exited under normal circumstances, the deferred calls are never executed and constitute a waste of res... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | false | ## Low: Strict Comparison in Slippage Check Incorrectly Blocks Valid Redemptions
### Description
**Description:** When checking minimum outcome from the liquidate, we are implementing the check to enforce the returned assets to be more than the minimum amount we put.
> bc-solana-vault-sc/programs/sc-vault/src/instruc... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [9] `<array>.length` should not be looked up in every loop of a `for`-loop
### Description
The overheads outlined below are *PER LOOP*, excluding the first loop
* storage arrays incur a Gwarmaccess (**100 gas**)
* memory arrays use `MLOAD` (**3 gas**)
* calldata arrays use `CALLDATALOAD` (**3 gas**)
Cachi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Restriction to `view`
### Description
If `BaseCondition.checkCondition()` is intended to be used for read-only checks, it should be restricted to `view`. In such case `ConditionManager.checkConditions()` should be also view. Otherwise, callers of `ConditionManager.checkConditions()` should be restricted.
https... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: MiniGovernance’s senate has almost unlimited validity
### Description
A new senate for the MiniGovernance contract is set in the following line:
**code/contracts/Portal/MiniGovernance/MiniGovernance.sol:L201**
```
GEM.\_setSenate(newSenate, block.timestamp + SENATE\_VALIDITY);
```
The validity period a... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | token | false | false | ## Low: Typos
### Description
**Severity**: Informational
**Status**: Resolved
**Description**
Throughout the codebase, there are many typos in comments, variable names, and function names. These typos should be fixed for the production environment to ensure all outside reviewers do not misinterpret the intended b... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | token | true | false | ## Low: UNCHECKED TRANSFER
### Description
In the contracts `DisbursementCliff` and `OneWaySwap` the return value of some external transfer calls are not checked. Several tokens do not revert in case of failure and return false. If that happened, for example in the `DisbursementCliff` contract, the `withdrawnTokens` s... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: Checks-Effects-Interactions Pattern Violation
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `88b955a75e0b3de2838dff83113a215d4406778e`.
**File(s) affected:**`SubscriptionTokenV1.sol`
**Description:** The [Checks-Effects-Interactions](https://solidity.readthedocs.io/en/latest/se... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | oracle | true | false | ## Low: Oracle report sanity check positive gains limit could result in DoS
### Description
**Severity:** Low
**Path:** src/Oracle.sol:sanityCheckUpdate#L362-484
**Description:**
Once the oracle client has generated a report, it submits this report on-chain to the `Oracle.sol` contract. The Oracle contract will pas... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inconsistent Defaults
### Description
## Default Implementation for ConcurrentMerkleTree
The trait `Default` for `ConcurrentMerkleTree` has the following implementation:
## Current State Description
The current state can be described as:
- `active_index` is pointing at the first element of the `change_logs... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `hasUnlockedBefore` is not reset back to false on `cancelUnlock`
### Description
**Severity**: Low
**Status**: Resolved
**Location**: Locking.sol
**Description** :
When users invoke unlock() to start a process to unlock their assets. The state of unlockedUsers[msg.sender] and _lockedUsers[msg.sender] is ch... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `FungibleAssetVaultForDAO.withdraw()`: L196 should be unchecked due to L194
### Description
See `@audit` tag: | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | false | ## Low: Use `_trade.collateralAmount` directly to prevent precision loss
### Description
In the `DecreasePositionSizeUtils.validateRequest` function, when calculating the new collateral amount if the leverage is updated, the following formula is used:
((TradingCommonUtils.getPositionSizeCollateral(_trade.collateral... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | reentrancy | true | true | ## High: Reentrancy risks in interactions with bidAsset
### Description
The Bribe Protocol has many reentrancy patterns that may be exploitable if the `bidAsset` ERC20 token is set to an asset with a callback mechanism. Many interactions with the `bidAsset` token do not follow the checks-effects-interactions pattern. ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Implement Rate Limit
### Description
## Security Vulnerability Report
The extension lacks a rate limit on sensitive operations such as updating passwords and viewing recovery phrases when a wrong password is inserted. This makes it easier for attackers to perform brute-force attacks by repeatedly guessing pas... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Unused Imports, Inconsistent Coding Style and Unsafe Patterns Acknowledged
### Description
The codebase currently exhibits a lack of consistency in coding style: inconsistent use of semi-colons, inconsistent line lengths, and other stylistic discrepancies. These inconsistencies make the codebase harder to rea... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.