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... | cyfrin_structured | low | other | true | true | ## Low: Impossible to remove a document added with zero uri length
### Description
Impossible to remove a document added with zero uri length.
### Proof of Concept
After fixing the bug "Don't add duplicate documentHash to DocumentManager::DocumentStorage::_docHashes when overwriting via _setDocument as this causes pa... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | true | ## Low: Missing onUSD refund on mints
### Description
The `mintWithAttestation` allows paying with tokens other than `onUSD`. The issue is in that case, the user is charged the entire specified amount `depositTokenAmount` instead of the actual cost `mintOnusdValue`.
When minting with other tokens, the user's funds a... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | high | token | false | true | Source: https://github.com/sherlock-audit/2023-02-openq-judging/issues/352
## Found by
Robert, 0x52, ck, ctf\_sec, XKET, ltyu
## Summary
recieveFunds is only meant to be called with an ERC20 token but _receiveERC20 is generic enough to work with an ERC721 token. An adversary could call this with an ERC721 token to... | Sherlock | 5 | OpenQ |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | signature | true | false | ## Gas: Not using the named return variables when a function returns, wastes deployment gas
### Description
File: Project.sol [Line 716-723](https://github.com/code-423n4/2022-08-rigor/blob/b17b2a11d04289f9e927c71703b42771dd7b86a4/contracts/Project.sol#L716-L723)
**[Dravee (warden) commented](https://github.com/code... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Some variables could be made immutable
### Description
**Severity**: Informational
**Status**: Resolved
**Description**
The `nodeIDGenerator` and `validatorRegistration` variables are only set in the constructor.
**Recommendation**:
Make the variables immutable. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: 4] Lack of slippage protection in withdraw functions
### Description
**Severity:** Medium
**Path:** src/periphery/RushRouter.sol, src/periphery/RushRouterAlpha.sol
**Description:** The `withdraw()` and `withdrawETH()` functions both call `redeem()` on the LiquidityPool. However, these functions don't have... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | access-control | true | false | ## Gas: Functions guaranteed to revert when called by normal users can be marked `payable`
### Description
If a function modifier or require such as onlyOwner/onlyX is used, the function will revert if a normal user tries to pay the function. Marking the function as payable will lower the gas cost for legitimate calle... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [ACKNOWLEDGED] DDOS attack in `FathomProxyWalletOwnerUpgradeable`
### Description
In the function [`receive`](https://github.com/Into-the-Fathom/fathom-stablecoin-smart-contracts/tree/3768c87367d286ae0e82f444b2f9d760417b507e/contracts/main/fathom-SDK/FathomProxyWalletOwnerUpgradeable.sol#L37 "/contracts/main/f... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | cross-chain | true | false | ## High: All assets of (m)TapiocaOFT can be stealed by depositing to strategy cross chain call with 1 amount but maximum shares possible
### Description
Attacker can be debited only the least possible amount (`1`) but send the `share` argument as the maximum possible value corresponding to the `erc` balance of `(m)Tap... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | false | false | ## High: NFTXLPStaking Is Subject To A Flash Loan Attack That Can Steal Nearly All Rewards/Fees That Have Accrued For A Particular Vault
### Description
## Handle
jvaqa
## Vulnerability details
NFTXLPStaking Is Subject To A Flash Loan Attack That Can Steal Nearly All Rewards/Fees That Have Accrued For A Particular... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Vault.constructor would benefit from an additional check of collateralSplit
### Description
The `CollateralSplit` contract’s `isCollateralSplit` function can be reused in the Vault’s constructor to further ensure the integrity of data. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | oracle | false | false | ## High: Using oracle provided price for deposits and redemptions allows user to steal funds
### Description
New deposits use the \_eth2dyad() function to calculate the exchange rate, which simplifies down to: AMOUNT_OF_ETH \* ORACLE_PRICE_OF_ETH / 1e8;
Similarly, all redeeming uses \_dyad2eth(), which calculates 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... | cyfrin_structured | low | other | true | false | ## Low: Cache array length outside of loops and consider unchecked loop incrementing
### Description
Cache array length outside of loops and consider using `unchecked {++i;}` if not compiling with `solc --ir-optimized --optimize`:
File: `DepositManager.sol`
```solidity
// @audit cache `validatorDetails.length`
116: ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `burn()` functions are not accessible within the system
### Description
`GigaNameNFT.burn()` & `GigaNoobNFT.burn()` functions are intended to be called by the `GAME_LOGIC_CONTRACT_ROLE` to burn players name & noob NFTs, **since this role can only be held by/assigned to the system contracts**; it was noticed th... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | rounding | true | false | ## Medium: It's dangerous for makers to set token decimal by manual
### Description
Source: https://github.com/sherlock-audit/2023-06-dodo-judging/issues/242
## Found by
Protocol Team
## Vulnerability Detail
https://github.com/sherlock-audit/2023-06-dodo/blob/a8d30e611acc9762029f8756d6a5b81825faf348/new-dodo-v3/con... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | false | false | ## High: Incorrect circular array check in `_updatePendingWithdrawalWithQueue` flow, causing received funds to be added to the wrong queues
### Description
In Pool.sol, `queueClaimAll` flow will transfer received funds (returned funds from loans) for each queue to newer queues.
Received funds for a given queue are in... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: Code Optimizations
### Description
## Optimization of Function Calls
Replace calls such as `this.getStage` to `getStage` by making `getStage` public, which is more gas efficient. Other identified calls are:
- **LBA.sol**
- `this.getLpBalance`
- `this.getWithdrawableBalance`
- `this.getVrtxInitialPriceX... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: LP tokens cannot be valued because ICHI cannot be priced by oracle, causing all new open positions to revert
### Description
In order to value ICHI LP tokens, the oracle uses the Fair LP Pricing technique, which uses the prices of both individual tokens, along with the quantities, to calculate the LP token ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: No sanity checks for rarities
### Description
`launchNewCollection()` doesn't check `_rarities` values. In fact, there are two conditions expected:
1. Each `_rarities` value should be below or equal to 10_000
2. For the consistent probabilities, the value in `i` element should be higher than the value in `i-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 | high | oracle | true | false | ## High: Price Manipulation Vulnerability in Vault Execution Due to Unchecked Pyth Oracle Updates
### Description
The `execute` function in Vault.sol allows arbitrary `priceUpdateData` to be passed, which is used to fetch the oracle price:
```
function execute(bytes[] calldata priceUpdateData) public payable initiali... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: lastweightupdate mapping in omnipoolcontroller.sol will always be 0
### Description
## Issue with OmnipoolController::lastWeightUpdate Mapping
## Context
(No context files were provided by the reviewer)
The `OmnipoolController::lastWeightUpdate[address]` mapping is never updated. This has an effect 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 | high | token | true | false | ## High: Users Receive Less Rewards Due To Miscalculations
### Description
### Background
The amount of rewards accrued by global and user states is computed by the following steps:
1. Calculate seconds elapsed since the last update (`block.timestamp - lastUpdate`)
2. Calculate the new rewards by multiplying 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 | high | cross-chain | true | false | ## High: In Starknet, already processed messages can be re-submitted and by anyone
### Description
### Impact
The impact is high as the adversary can call the `receive_cross_chain_msg` with the already processed and valid parameters and benefit from it. With such parameters, anyone can call not just the validators so... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `processQAPenalty()` Function Incorrectly Double Counts Tokens in Cooldown
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `56d63be892926ae9381098d467d0c235a1b660ad`.
**File(s) affected:**`SapienVault.sol`
**Description:** The `_calculateApplicablePenalty()` function incorrectly 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 | true | false | ## Low: Rent calculation uses total exemption over missing balance
### Description
_Resolved_
In [`Buy::calculate_rent`](https://github.com/pump-fun/pump-contracts-solana/pull/99/files#diff-53abacb17a0e41134c0f871af33a9e8a4065871c446ee825bfee2bb8fe7d2047R1311-R1338), the function currently adds the **entire rent exem... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Auction manipulation by block stuffing and reverting on ERC-777 hooks
### Description
The protocol stated out in the C4 description that the deployment script of the protocol, located in `test/proposals/gips/GIP_0.sol` is also in scope, as protocol deployment/configuration mistakes could be made. A low immu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Node operator is getting slashed for full duration even though rewards are distributed based on a 14 day cycle
### Description
[contracts/contract/MinipoolManager.sol#L673-L675](https://github.com/code-423n4/2022-12-gogopool/blob/main/contracts/contract/MinipoolManager.sol#L673-L675)
A node operator sends in... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | false | false | ## Low: Sending Data
### Description
## Security Implications of Extension Behavior
In some cases, the extension opens a new window in which `chrome://` malicious parties may open URLs. In those cases, it would be possible to open `sign.tsx` or `permissions.tsx` pages without an actual call to the API, and origin spo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Method `setNativeForKeeper` sets `nativeForCallback` as well with no events
### Description
**Severity**: Informational
**Status**: Resolved
**Description**
In Contract Trading.sol, the method setNativeForKeeper also sets nativeForCallback with emitting any event even though there is a method to set native... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Blacklisting Bypass via transferFrom() Function
### Description
The `transferFrom()` function in the `TokenImpl` contract does not verify that the sender (i.e., the from address) is not blacklisted. As such, it is possible for a user to allow an account to spend a certain allowance regardless of their blackli... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 default visibility for storage variables.
### Description
**Description**
StWSX.sol
DAO_ADDRESS
totalPooledWSX
Visibility of variables should be explicitly marked, in order to increase the readability of the code. Issue is marked as Low-risk, as it is classified as standard Solidity vulnerability
**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 | initialization | false | false | ## Low: Modifiers redundancy
### Description
`AccessControlDefaultAdminRules`'s constructor is already checking that provided `_admin` address is different from address zero.
Having two modifiers in a Solidity method that essentially perform the same task of verifying that an address is not address(0) introduces ine... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Merkle.checkMembership allows existence proofs for the same leaf in multiple locations in the tree ✓ Addressed
### Description
`checkMembership` is used by several contracts to prove that transactions exist in the child chain. The function uses a `leaf`, an `index`, and a `proof` to construct a hypothetical r... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | oracle | true | false | ## Medium: User can brick the `Bracket` contract by inputing malicious `txData`
### Description
User can brick the `Bracket` contract by inputing malicious `txData`. This is possible because in all of the swap related contracts (`OracleLess`, `Bracket`), the `txData` is provided from the caller one way or another. Thi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | token | true | false | ## Medium: Assimilators do not conform to the ERC20 specification ✓ Fixed
### Description
The assimilators in the codebase make heavy usage of both the `transfer` and `transferFrom` methods in the ERC20 standard.
Quoting the relevant parts of the specification of the standard:
>
> Transfers \_value amount of toke... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Input Validation for Vesting Contract
### Description
**Severity**: Low
**Status**: Resolved
**Description**
In the contract Vester.sol, there should be a default minimum time a contract will allow for vesting a token. When a user vests a token, the token is usually locked up for over one year. However in 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... | cyfrin_structured | low | logic-error | true | false | ## Low: Inability to remove and redeem from vaults with withdrawal issues could result in a bank-run
### Description
When deposits are made to the `pUSDeVault`, `depositedBase` is incremented based on the previewed quote amount of USDe underlying the external ERC-4626 vaults; however, these instantaneous preview quote... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | cross-chain | false | false | ## Medium: YieldManager hardcodes slippage to 0
### Description
**Severity**
**Impact:** High
**Likelihood:** Low
**Description**
The current implementation of YieldManager functions` moveAssetToYieldManager()`, `moveAssetToLiquidVault()`, and `depositYieldIntoLiquidVault()` hardcodes the slippage control to 0. Th... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | token | true | false | ## Low: Shift ERC721 receiver import to `IVirtualAccount.sol` to avoid duplicating ERC721 receiver import
### Description
Shift all ERC721 and ERC1155 receiver imports to interface `IVirtualAccount.sol` to avoid duplicating ERC721 receiver import and ensure code maintainability.
*There is 1 instance of this issue:*
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Attacker can trigger pool sync leading to user fund loss
### Description
## Handle
0xRajeev
## Vulnerability details
## Impact
An attacker can front-run any operation that depends on the pool contract's internal balance amounts being unsynced to pool's balance on token/base contracts effectively nullifyin... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | false | false | ## Gas: Unchanged state variables can be immutable
### Description
**Description:** None of:
* [`LINKMigrator.linkToken`](https://github.com/stakedotlink/contracts/blob/0bd5e1eecd866b2077d6887e922c4c5940a6b452/contracts/linkStaking/LINKMigrator.sol#L22)
* [`LINKMigrator.communityPool`](https://github.com/stakedotlink/... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: Consider using `SafeCast` when downcasting amounts
### Description
Consider using [SafeCast](https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/math/SafeCast.sol) when downcasting amounts:
* `StakingVault.sol`:
```solidity
144: cooldowns[msg.sender].underlyingAmount += ui... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Bribe and fee token emissions can be gamed by users
### Description
A user may vote or reset their vote once per epoch. Votes persist across epochs, and once a user has distributed their votes among their chosen pools, the `poke()` function may be called by any user to update the target user's decayed veNFT... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [04] `gUSDC` onboarder can allow implementation of other markets (eg. `gWETH`)
### Description
There will be many `LendingTermOnboarding.sol` contracts for every `CREDIT` token used, but there is no check whether the implementation passed to `allowImplementation` function is from the same market.
There can 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 | initialization | false | false | ## Low: `L2MessageService::reinitializePauseTypesAndPermissions` should use `reinitializer(2)`
### Description
**Description:** `TokenBridge::reinitializePauseTypesAndPermissions` uses `reinitializer(2)` because:
`LineaRollup::reinitializeLineaRollupV6` uses `reinitializer(6)` because:
But `L2MessageService::reini... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | token | false | false | ## High: Tokens can be stolen through transferTo
### Description
## Handle
@cmichelio
## Vulnerability details
## Vulnerability Details
I know that it's stated that:
> VADER, USDV, SYNTHS all employ the `transferTo()` function, which interrogates for `tx.origin` and skips approvals. The author does not subscrib... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Dead GoDoc params for `TradeExactInputForOutput`
### Description
The GoDoc for `swap:TradeExactInputForOutput` contain two parameters are not in the method signature and there are no likely matching candidates, these lines should be deleted as they'll only serve to sow confusion.
swap.go L68-69
@param sender:... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unprivileged RegisterToken
### Description
A large portion of the security of margin-pool stems from the fact that several instructions, namely `Borrow`, `Repay`, `MarginRefreshPosition`, and `Withdraw` are “proxy-only” instructions. Balance and account health checks happen in the parent program by observing 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 | other | false | false | ## Low: Floating Pragma
### Description
Pragma directives should be fixed to clearly identify the Solidity version with which the contracts will be compiled. Throughout the codebase, there are numerous contracts that use the `solidity ^0.8.20` floating pragma directive.
Consider using fixed pragma versions.
***Upd... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Nesting `if`-statements is cheaper than using `andand`.
### Description
Nesting `if`-statements avoids the stack operations of setting up and using an extra jumpdest, and saves 6 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 | access-control | false | false | ## Low: Unrestricted Vesting End Date in Schedule Setting
### Description
The DAO Manager can set extremely long vesting periods (e.g., 100 years) in the vesting schedule without any restrictions. This allows malicious DAO Managers to effectively lock users' tokens indefinitely, preventing them from ever claiming thei... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: `getElyAssetAmountToMint()` uses outdated `elyAsset` prices, causing issues
### Description
_Resolved_
The public view function `getElyAssetAmountToMint()` use inconsistent staleness validation, causing external integrations to receive stale price estimates that don't match actual execution results.
**Incons... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: TRST-H-6 It’s never possible to vote for new pools until setMaxVotesForPool() is called
### Description
**Description:**
The function `_vote()` allows voting on a pool only when the current amount of votes plus the
new votes is lower or equal to the value returned by `_calculateMaxVotePossible()`:
However, ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: TribalChief - Unlocking users' funds in a pool where a multiplier has been increased is missing
### Description
When a user deposits funds to a pool, the current multiplier in use for this pool is being stored **locally** for this deposit. The value that is used later in a withdrawal operation is the **loca... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | false | false | ## Severity Report
## Severity
**Medium Risk**
## Context
`PoolCommitter.sol#L764`
## Description
When `frontRunningInterval > updateInterval`, the `PoolCommitter.getAppropriateUpdateIntervalId()` function can return `updateInterval` IDs that are arbitrarily far into the future, especially if `appropriateIntervalId ... | Spearbit | 5 | Tracer |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Pools outside of the reward zone can keep receiving Blend tokens
### Description
### Finding description and impact
The Blend Protocol utilizes the `Backstop` contract as a curator system for lending pools created in the factory. The concept is that depositors in the `Backstop` contract act as a first line... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: No Documentation on the Funding of the Chainlink Upkeep Contract
### Description
**Update**
The team has provided documentation that the _"system admin needs to maintain a positive balance of LINK tokens in the keepers account"_. We recommend using more active wording, i.e. _"we will assure that the Upkeep wil... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing User Tickets Mapping Update in `JackpotBridgeManager::claimTickets` Function Causes Gas Inefficiency and Incorrect Return Values
### Description
The `claimTickets()` function fails to update the `userTickets` mapping when tickets are transferred, causing `getUserTickets()` to consume excessive gas 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... | cyfrin_structured | low | token | true | false | ## Low: Remove return value from `DSToken::updateInvestorBalance` as it is never checked
### Description
`DSToken::updateInvestorBalance` is an `internal` function which returns `bool` but this return value is never checked anywhere; remove it:
```solidity
token/DSToken.sol
304: updateInvestorBalance(_from, _va... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Multiple Claims for One Account per Window Have to Contain Cumulative Amounts
### Description
**Update**
The client acknowledged the issue with the following comment: _"Quantstamp notes that if a user is issued multiple \_claims\_ in the \_same window\_ then there is a potential problem that they will not be a... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Improper State Handling
### Description
If `_autoAcceptBuyPrice()` is executed by a new buyer that is not `offer.buyer`, then there will be an excess of `ETH`. The original `offer.buyer` will then have to wait until the offer expires as it isn't invalidated.
Ensure this is understood. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: | Comparison Inefficiency
### Description
**Description**
The `require` statements in `addMultipleWhitelistSilver` and `addMultipleWhitelistGold` use a `<=` operator, while a `<` operator combined with incrementing the right hand side of the comparison is a more gas efficient alternative.
**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 | other | true | false | ## Low: `primedBlock` is reset to 0 instead of block.number
### Description
- https://github.com/code-423n4/2023-02-malt/blob/700f9b468f9cf8c9c5cffaa1eba1b8dea40503f9/contracts/StabilityPod/StabilizerNode.sol#L224
- https://github.com/code-423n4/2023-02-malt/blob/700f9b468f9cf8c9c5cffaa1eba1b8dea40503f9/contracts/Stab... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Protocol fees from NFT mints can't be claimed in `BatonLaunchpad`
### Description
**Severity**
**Impact:**
High, as it results in a loss of value for the protocol
**Likelihood:**
High, as it certain to happen
**Description**
In `Nft::mint` the `msg.value` expected is the price of an NFT multiplied by 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 | high | reentrancy | true | false | ## High: Reentrancy in StEthHyperdrive.openShort
### Description
The `StethHyperdrive._deposit` function contains refund logic which performs a `.call` to the `msg.sender`. When opening shorts, this `_deposit` with the callback happens in the middle of state updates, which can be abused by an attacker. The `_deposit` ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | front-running | false | false | ## Low: `LendingPool` borrowing is vulnerable to price update front-running issue
### Description
Users can front-run the price update of a house to deposit the NFT before the update and borrow up to maximum capacity. Then when the price update happens, the loan is already undercollateralized, allowing the user to 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 | access-control | true | false | ## High: Malicious user can transfer all unclaimed rewards to a custom gauge
### Description
Report type: Smart Contract
Target: https://github.com/zerolend/governance
Impacts:
- Theft of unclaimed yield
## Description
## Brief/Intro
A malicious user can distribute reward tokens to a specific pool gauge through di... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Unnecessary if statement in `_checkAndUpdateRedeemLimit`
### Description
In the private function `_checkAndUpdateRedeemLimit` an if statement occurs, which is triggered if the inputed amount is zero.
This if statement is unnecessary and useless as there is a check already made in the core function `requestRede... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | false | ## Low: [05] Critical functions should be controlled by time locks
### Description
It is a good practice to give time for users to react and adjust to critical changes. A timelock provides more guarantees and reduces the level of trust required, thus decreasing risk for users. It also indicates that the project is leg... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | token | false | false | ## Low: Use functions provided in standard libraries for safeApprove
### Description
The `Solady.SafeTransferLib` library provides a `safeApproveWithRetry` function that calls `approve` on a token with the desired amount. If the call fails due to a check that prevents setting a non-zero amount when the current allowan... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | overflow | true | false | ## Gas: [G‑13] Add unchecked `{}` for subtractions where the operands cannot underflow because of a previous `require()` or `if-statement`
### Description
`require(a `require(a <= b); unchecked { x = b - a }`.
https://github.com/code-423n4/2023-05-maia/blob/main/src/governance/GovernorBravoDelegateMaia.sol#L532-L53... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Unnecessary function declaration
### Description
**Severity**: Informational
**Status**: Resolved
**Description**
The XyroToken contract overrides the _update() function but the function just calls super._update() without any modifications.
**Recommendation**:
Remove the function in the 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... | skyward_49k | low | other | false | false | ## Low: Remove obsolete `return` statements when using named return variables
### Description
**Description:** Remove obsolete `return` statements when using named return variables:
* `StakingVault::_withdrawTo, redeemTo`
**Syntetika:**
Fixed in commit [bd4bb12](https://github.com/SyntetikaLabs/monorepo/commit/bd4bb1... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | dos | false | false | ## High: Division by zero error causes KangarooVault to be DoS with funds locked inside
### Description
`KangarooVault` can be DoS with funds locked in the contract due to a division by zero error in `getTokenPrice()` as it does not handle the scenario where `getTotalSupply()` is zero.
### Impact
Funds will be locke... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | overflow | true | false | ## Low: Panics used for error handling
### Description
In several places, the code panics when an arithmetic overflow or underflow occurs. Panics should be reserved for programmer errors (e.g., assertion violations). Panicking on user errors dilutes the utility of the panic operation.
An example appears in Figure 9.1... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | false | false | ## High: Transferring Ownership can lead to undefined behavior
### Description
**Severity**: High
**Status**: Resolved
**Description**
phenomanelTree.sol - Transferring ownership after deployment can cause a class of issues because the logic is built upon about the assumption that the root of the tree is the owner ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: `Goldilocked._lockedLocks()` should round up.
### Description
**Description:** Users might borrow 1 more wei as it rounds down.
**Client:** Fixed in [PR #15](https://github.com/0xgeeb/goldilocks-core/pull/15)
**Cyfrin:** Verified. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Modifier onlyListing() logic is wrong
### Description
The `onlyListing()` modifier is used on all user interactions to validate that the input `listingID` actually exists. It does so by checking if the `listingID` is greater than the actual array elements in the `listings` array.
However, the current logic als... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | signature | true | false | ## High: Replay CREATE2 On Destroyed Minipools
### Description
The opcode `CREATE2` creates a new contract at a deterministically generated address. The address is calculated from the contract bytecode, a salt, and the sender address. Since the address is deterministic, we can recreate it using the same parameters; ho... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | front-running | false | false | ## Medium: Withdrawal queue `RequestPrice` can be front run in case of defaults
### Description
**Description:** When `processingMode == ProcessingMode.RequestPrice` in `AccountableWithdrawalQueue`, a redeem request’s value is fixed at the request-time share price. The request is later processed potentially at a very ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `SpinLottery` will break if the first `prizeId` is selected
### Description
Inside the `_claimPrize` logic, if the randomly selected `prizeId` is equal to `firstPrizeId`, `firstPrizeId` will be incremented. However, `nextPrizeId` is also decremented.
```solidity
function _claimPrize(uint8 rarity, uint256 r... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | dos | false | false | ## Medium: Many unbounded and under-constrained variables in the system can lead to unfair price or DoS
### Description
_Submitted by throttle, also found by 0xDjango, BowTiedWardens, defsec, dipp, fatherOfBlocks, gzeon, hake, reassor, shung, unforgiven, and WatchPug_
Unbounded and under-constrained variables.
#### ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | overflow | true | false | ## Gas: [G-06]
### Description
Could use 'unchecked' maths here, as underflow is not possible:
**[maximebrugel (Nested Finance) commented](https://github.com/code-423n4/2022-02-nested-findings/issues/67#issuecomment-1042990798):**
> **[G-01] "You can remove it to save some gas, or leave it if it was intended for fu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | dos | true | false | ## Medium: Missing data validation in deserialization of gossip protocol messages
### Description
The gossip protocol implemented in the `ic_p2p` crate uses several message types in its communications. The messages are deserialized from network data in the peer-to-peer layer. However, because of the lack of data 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: and other opcodes are not supported on all chains
### Description
Solc compiler `version 0.8.20` switches the default target EVM version to Shanghai. The generated bytecode will include **PUSH0** opcodes. The recently released Solc compiler `version 0.8.25` [switches the default target EVM version to Cancun](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 | medium | access-control | true | false | ## Medium: Lack of access control in the `parameterize` function of proposal contracts
### Description
_Submitted by shw, also found by hyh and jayjonah8_
Most of the proposal contracts have a `parameterize` function for setting the proposal parameters, and these functions are protected only by the `notCurrent` 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 | gas | other | true | false | ## Gas: `SupplySchedule.getEpochAtTimestamp()`: `globalStartTimestamp` should get cached
### Description
See `@audit` tags: | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [15] Sentinels are replayable across arbitrary tokens/recipients
### Description
### Vulnerability details
The sentinel only notes that “some call with `opHash` succeeded”; it does not bind to `token`, `recipient`, or amount.
**Attack path:** after one successful operation sets the sentinel, an attacker reus... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Command Injection Vulnerability in PostSupervisor Execution Path
### Description
In the PostSupervisor component of the system, there is a potential security vulnerability concerning how external commands are constructed and executed. Specifically, the function runCmd constructs command-line argument... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | liquidation | false | false | ## Medium: Possible transfer of 0 funds
### Description
For liquidation `remainingFunds` can be equal to zero:
https://github.com/Gearbox-protocol/gearbox-contracts/blob/0ac33ba87212ce056ac6b6357ad74161d417158a/contracts/credit/CreditManager.sol#L434
### Recommendation
We recommend adding a check that `remainingFunds... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Array Synchronization in `dividends_claim` Prevents Users from Claiming Dividends for Newly Added Base Currencies
### Description
**Description:** The `dividends_claim` instruction does not synchronize `client_community_state.data` with` community_state.base_crncy` before processing dividends. If 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 | rounding | false | false | ## Low: sNst accumulates DAI dust
### Description
The sNst uses a fixed share price **chi** for minting and redeeming shares (compared to a dynamic one taking into account the total DAI assets / total shares). It also rounds in favor of the contract, against the user, when depositing and withdrawing assets. Therefore,... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Use of require Statements Instead of Modifiers for Access Control
### Description
**Severity**: Informational
**Status**: Resolved
**Location**: CorePool.sol & PoolBase.sol
**Description**
The `CorePool` contract uses `require` statements for access control in several functions. This approach reduces reada... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | overflow | true | false | ## Low: [05] `mul_mod` overflow check only active in debug mode
### Description
[`mul_mod` function](https://github.com/code-423n4/2024-10-superposition/blob/7ad51104a8514d46e5c3d756264564426f2927fe/pkg/seawater/src/maths/full_math.rs#L14-L29) uses `debug_assert!(!overflow)` to check for multiplication overflow. Since... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Use `Ownable2StepUpgradeable` instead of ` OwnableUpgradeable ` contract
### Description
[PirexRewards.sol#L4](https://github.com/code-423n4/2022-11-redactedcartel/blob/main/src/PirexRewards.sol#L4)
function is used to change Ownership from .
There is another Openzeppelin Ownable contract (Ownable2StepUpgra... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Error due to skipped calculation of total number of votes
### Description
In `_getTotal()`, `uint256 timestamp = lastUpdate` is calculated, and if `timestamp > block.timestamp`, the calculation of the `votesTotal` is skipped, returning an initial value of `0`. This means that if `lastUpdate` points to `timest... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | cross-chain | false | false | ## Low: Opening ERC-7683 gasless cross-chain orders on behalf of users may lead to loss of native tokens for fillers
### Description
Opening ERC-7683 gasless cross-chain orders on behalf of users via `openFor()` may lead to loss of native tokens for fillers.
### Recommendation
Consider or clarify in documentation how ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: MISSING ZERO ADDRESS CHECKS
### Description
Contracts in-scope are missing address validation in constructors and setter functions. It is possible to configure the `address(0)`, which may cause issues during execution.
For instance, if `address(0)` is passed to `setFeeToSetter` function, it will not be possib... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: setMaxDeposits Can Be Front-Run and Prevent Proper Deposit Management
### Description
The function `setMaxDeposits` allows the admin to set a new maximum deposit cap, but it permits `newMax` to be exactly equal to `depositPrincipal`. This means that if an admin or governance entity attempts to set `maxDeposits... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: FunnelVault will not be able to spend all donations/protocol fees
### Description
_Acknowledged_
Every time the `FunnelVault` needs to swap donations/protocol fees, new protocol fees will be generated again, which the vault will need to claim and eventually swap too.
Consider adding a way to exempt the `Funn... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.