prompt
listlengths
2
2
source
stringclasses
3 values
severity
stringclasses
5 values
category
stringclasses
186 values
has_code
bool
2 classes
has_poc
bool
2 classes
reference_response
stringlengths
23
5k
firm
stringclasses
26 values
quality_score
float64
0
5
protocol
stringclasses
398 values
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
true
false
## Medium: `PoolV3#repayCreditAccount()` use incorrect share converting function to calculate profit and loss ### Description ### Impact Either the profit or the loss is calculated incorrectly, resulting in the treasury owns incorrect profit balance. ### Proof of Concept Anyone can deposit `WETH` for `lpETH` by cal...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Privileged Roles and Ownership ### Description **Update** Marked as "Acknowledged" by the client. The client provided the following explanation: > Intentional design choice **File(s) affected:**`Vepoch.sol` **Description:** Specific contracts have state variables, e.g., `owner`, which provide certain addres...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
other
true
false
## High: Withdrawals can be frozen by creating null deposits ### Description It won't be possible to withdraw any LP token after doing a deposit of $0$ liquidity, leading to withdrawals being effectively freezed. ### Proof of Concept In [**liquidity_lockbox, function withdraw**](https://github.com/code-423n4/2023-12...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
reentrancy
false
false
## Low: Remove unused inherited contracts ### Description In `GasZipPeriphery`, the following contracts are inherited but never used: - `ILiFi` - `SwapperV2` - `ReentrancyGuard` - `Validatable` The `ReentrancyGuard` adds additional storage, increasing the contract deployment cost. Similarly, the logic in `Validatable...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
rounding
true
false
## Low: Problematic approach to the handling precision errors ### Description Many functions in the TickLogic contract contain obscure precision checks. These checks may protect against a subset of unexpected behavior but are problematic when considering the full range of inputs. One such example is in the `RCLBorrow...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
flash-loan
true
false
## High: Multiple vote checkpoints per block will lead to incorrect vote accounting ### Description _Submitted by berndartmueller, also found by 0x52, 0xSky, bin2chen, cccz, Chom, davidbrai, elprofesor, izhuer, m9800, PwnPatrol, and rvierdiiev_ Voting power for each NFT owner is persisted within timestamp-dependent 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
access-control
false
false
## Low: SafeGuard’s admin can assign the role of creator to any address ### Description The `SafeGuard` contract defines the role of a [`CREATOR_ROLE`](https://github.com/withtally/safeguard/blob/b2c63a9dfc4090be13320d999e7c6c1d842625d3/contracts/SafeGuard.sol#L16) which, as the name suggests, is assigned to the creat...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect indexing for bid sorting algorithm ### Description When an Atlas CallConfig specifies `exPostBids == true`, all `solverOps` are simulated on-chain to determine their theoretical bid amount. The `solverOps` are then sorted and executed in order until a `solverOp` succeeds. The sorting of the bids is ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Room for improvement in contracts documentation ### Description The Centre Token minting contracts are in general well documented, and the documentation adheres to the [NatSpec format](https://github.com/ethereum/wiki/wiki/Ethereum-Natural-Specification-Format). There is, however, room for improvement. First, ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
access-control
true
true
## Critical: `SignatureValidator::setAllowlist` is unrestricted leading to free purchases of tokens ### Description `SignatureValidator::setAllowlist` is unrestricted. Since `SignatureValidator` inherited by `ReferralManager` and `TokenBank` this has downstream consequences. For `TokenBank` in particular this means ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
initialization
false
false
## Low: Missing Input Validation ### Description **Update** **Partially Fixed** in `2c05d81`. The client did not add all the fixes, but provided the following explanation: Intended behaviour to be able to disable the filter registry and IMX functionality by setting it to the zero address. However, added check in `Vouc...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
storage
true
false
## High: Prize locking mechanism inconsistency with weight proportions ### Description In the SpinLottery contract, users pay for `spin`s based on the weight distribution of the rarities, which determines the cost of participation. ```solidity function calculateSpinCost(uint256 _totalSlots, uint256 _prizeCount) pu...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
signature
true
false
## Medium: `encodedData` argument of `hashStruct` is not calculated perfectly for EIP712 singed messages in `CultureIndex.sol` ### Description Encoding of `encodedData` is not done correctly for the verification of EIP712 signed messages. ### Impact `CultureIndex::_verifyVoteSignature()` is called by other functions...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Constant may be utilised. ### Description **Description** Contract uses “magic” number 1e18 as a definition of accuracy. Public constant may be utilized for this purpose. **Recommendation**: Consider constant usage.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Comptroller rewards can be artificially inflated and drained by manipulating [totalStaked - totalFrozen] (or: wrong rewards calculation) ### Description _Submitted by kenzo_ By adding a small of amount of staking to a normal user scenario, and not approving this small amount as a loan for anybody, a staker...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: guest uses invalid parameters ### Description The `GENERATOR` and `NEG_GENERATOR` constants for the P256 curve are not valid. As we can see in the following snippet, the parameters are encoded in big endian to match the generator parameters of the curve (see neuromancer.sk reference on secp256r1). ```rust im...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Cannot Revoke Permit of `MintBurnToken` ### Description The `MintBurnToken` inherits from `ERC20Permit` which provides users with a gasless way to give other users a token approval by generating a permit signature. However, this signature is valid until the `deadline` and cannot be revoked beforehand if desi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Auth admits Pyth update timestamps that are rejected by the engine ### Description In `auth.rs`, Pyth updates are rejected if the new timestamp is less than the current timestamp. However, in `engine.rs`, updates are rejected when the new timestamp is not greater than the current timestamp. This inconsistency ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Solidity version ### Description Current code specifies version pragma `^0.4.8` or `^0.4.9`, depending on the file. We recommend changing the solidity version pragma to the latest version (`^0.4.18`) to enforce the use of an up to date compiler. The new compiler [includes several bugfixes](https://etherscan.io...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [07] The first buyer could get front-runed after `autoApprove` get updated ### Description If NFT is not `autoApprove`, in case the user calls the `execute.rs#setbidtobuy()` function then the owner updates the `autoApprove to true`. Any other user could call the `execute.rs#setbidtobuy()` function and buy 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
low
other
true
false
## Low: [04] Missing checks for `address(0x0)` when assigning values to `address` state variables ### Description *There are 10 instances of this issue:* https://github.com/code-423n4/2022-09-artgobblers/blob/d2087c5a8a6a4f1b9784520e7fe75afa3a9cbdbe/src/ArtGobblers.sol#L316 https://github.com/code-423n4/2022-09-ar...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Fortuna entropy seed does not bind provider identity ### Description The Fortuna entropy provider service derives the base seed for individual hash chains by combining a master secret with a random nonce, the hash chain length, and the blockchain ID. The use of the blockchain ID prevents a provider from uninte...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The function `MathUtils.calculateLinearInterestFromBips()` is duplicated and can be deleted ### Description The function `calculateLinearInterestFromBips()` is duplicated in `FeeMath.sol` and `MathUtils.sol`. Removing the duplicated `calculateLinearInterestFromBips()` function in `MathUtils.sol` and using 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: Withdrawals.EncodeIndex() index out of range panic ### Description `Withdrawals.EncodeIndex()` is vulnerable to index out of range panics if the method is called with an `i` value larger than the length of the withdrawals buffer. This function does not appear to be used at the moment but may be included in 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
access-control
true
false
## Low: Fuse pools are not whitelisted ### Description Rari Fuse is a permissionless framework for creating and running user-created open interest rate pools with customizable parameters. On the FusePoolZap contract, the correctness of the pool is not checked. Because Fuse is a permissionless framework, an attacker 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
dos
false
false
## Low: Griefing and DoS via Malicious Fallback in `refund()` ### Description _Acknowledged_ The `refund()` function utilizes OpenZeppelin's `Address.sendValue` to return native tokens, which forwards all available gas to the recipient. A malicious user can participate with a negligible amount (e.g., 1 wei) and imple...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Checks missing for the derived contracts addresses in LpWrapper.constructor ### Description In the `LpWrapper.constructor`, the following addresses are derived and stored: - `positionManager = ammModule.positionManager();` - `ammDepositWithdrawModule = ammDepositWithdrawModule_;` Note that `ammDepositWithdraw...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
rounding
true
false
## Low: Incorrect rounding on incentive calculation in `_applyFeeOrIncentiveOnTotal()` ### Description _Resolved_ The `_applyFeeOrIncentiveOnTotal()` applies fees or incentives to assets. When handling negative `feePpm` (incentives), it uses `_feeOnRaw()` which rounds up via `Math.Rounding.Ceil`. This rounding dire...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
dos
true
false
## Low: EXTERNAL FUNCTION CALLS WITHIN LOOP ### Description External calls within a loop increase Gas usage or can lead to a denial of service attack. In the `Governance.sol` contract functions discovered there is a for loop on the `i` variable that iterates through the `weightSources.kapSources.length` and `weightSou...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Potential hash collision in withdrawal request generation ### Description The `_withdrawFunds` function in both `DepositETH` and `DepositUSD` contracts generates a withdrawal hash that could potentially collide if multiple withdrawal requests are made by the same user in the same block. The hash is generate...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unclear if the gas pool account is controlled by someone ### Description The special gas pool account is used to mint LUSD tokens and pay for the gas operations performed by users, but it is unclear if someone owns its private key. The Liquity protocol mints LUSD to compensate for the gas spent by users when t...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Commented out code in several functions ### Description [Several functions in the](https://github.com/propsproject/props-token-distribution/blob/eaf0c6fddd320a258a9d7531d72d07a830fae58a/contracts/token/ERC865Token.sol#L49) [`ERC865Token`](https://github.com/propsproject/props-token-distribution/blob/eaf0c6fddd...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Batch creation will break if vestings are opened to recipients ### Description The `andromeda-vesting` contract allows the owner to create vestings (batches) for freezing tokens. The planned update will enable the recipient to claim or delegate tokens instead of the owner. However, this change introduces 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...
cyfrin_structured
low
logic-error
true
false
## Low: `automationsToIndex` storage is not correctly reset when deleting automations ### Description When deleting an automation, the logic pops the final element from the `_usedInAutomations` array but fails to correctly reset the `automationsToIndex` mapping storage. Regardless of whether the if statement executes,...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: RootERC20Predicate is incompatible with nonstandard ERC-20 tokens ### Description The `deposit` and `depositTo` functions of the `RootERC20Predicate` contract are incompatible with nonstandard ERC-20 tokens, such as tokens that take a fee on transfer. The `RootERC20Predicate` contract allows users to deposit 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
logic
false
false
## Low: Parameter constraints in `borgCore` work incorrectly in the case of `borgModes.blacklist` ### Description According to the business logic, parameter constraints are not supported by `borgCore` in the case of `borgModes.blacklist`. But there are no restrictions on adding them. If they are added by mistake, `isM...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [01] `_remove_gauge_weight()` in GaugeController.sol should update points total ### Description `points_total` does not immediately reflect the current value after the removal of gauge weight. ### Proof of Concept It can be observed that inside ` _remove_gauge_weight()` function, it will only update `points_...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Long lines are not suitable for the Solidity Style Guide ### Description [Collateral.sol#L9](https://github.com/prepo-io/prepo-monorepo/blob/feat/2022-12-prepo/apps/smart-contracts/core/contracts/Collateral.sol#L9) [Collateral.sol#L112](https://github.com/prepo-io/prepo-monorepo/blob/feat/2022-12-prepo/apps/s...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
liquidation
false
false
## Low: TRST-L-6 Liquidation token claiming event spam ### Description **Description:** Claiming liquidation tokens via the `LiquidationVault.claim()` function emits the Claimed event. The function takes an array of **BatchClaimInfo**, each of which can contain multiple **ClaimInfos**; claiming an amount specified i...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
initialization
false
false
## Medium: 7] Lack of Slippage Protection in UFarmPool Withdrawals and Deposits ### Description **Severity:** Medium **Path:** contracts/main/contracts/pool/UFarmPool.sol::quexCallback() **Description:** When depositing to or withdrawing from the `UFarmPool` contract, users must submit a request and wait for the `q...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Possible free tokens on Ledger ### Description If someone sends `xcKSM` to Ledger: https://github.com/mixbytes/lido-dot-ksm/blob/76a10efa5f223c4c613f26794802b8fb9bb188e1/contracts/Ledger.sol#L282 ### Recommendation We recommend sendig excess in funds to treasury.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: MARKETING INFO IS NOT VALIDATED AT INSTANTIATION ### Description If marketing info is not included at instantiation time, the `execute_update_marketing` and `execute_upload_logo` functions will always return an `Unauthorized` error message because `marketing` is **None**. The affected contracts are the followi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Quorum overflow in `CollectionShutdown` leads to complete drain of contract's funds ### Description [CollectionShutdown.sol#150](https://github.com/sherlock-audit/2024-08-flayer/blob/main/flayer/src/contracts/utils/CollectionShutdown.sol#L150) and [CollectionShutdown.sol#L247](https://github.com/sherlock-audi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Users are incentivised to invest right before the getEndLMTime to join the winning team ### Description When investing, there are 3 types of rewards in the `LiquidityMining` contracts: for the top users, for the top teams, for the group leaders in the top teams. EVERY member from the top teams is getting 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: [03] `SystemContract.sol` could have some minor refactor introducing a `modifier` ### Description `SystemContract.sol` could have some minor refactor introducing a `modifier` as follow to aliviate and make the code cleaner, and use it on all the `external` functions and the contructor as they are all gated wit...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing validation for `max_staleness_allowed` ### Description The `max_staleness_allowed` variable is assigned a value but is not considered in the price validation logic from the oracle account. This oversight allows the system to use outdated price data without any constraints, potentially leading to inaccu...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: *Old.sol Contracts Do Not Match Current Version On Mainnet ### Description Code and recorded versions of some of the *Old.sol contracts do not match those currently deployed on mainnet: - **RocketDAOProtocolSettingsMinipoolOld.sol** - should be version = 2, as currently observed on mainnet - see [Block explor...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incompatible with Deflationary or Rebasing Tokens ### Description **Update** Marked as "Fixed" by the client. Addressed in: `36a99cbbea137761d3265a79e275164237848544`. The team now added support for deflationary tokens. **File(s) affected:**`StakingERC20.sol`, `Escrow.sol` **Description:** The contracts are ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Uniswap oracle are very easy to manipulate on L2 ### Description The protocol aims to deploy on Ethereum, Arbitrum, Optimism, and Base. However, the cost of manipulating TWAP in L2 networks is very low, so the TWAP oracle should not be used on them. This is due to the short average block time on most L2 chains...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Redundant zero initialization ### Description [G-01] Redundant zero initialization Solidity does not recognize null as a value, so uint variables are initialized to zero. Setting a uint variable to zero is redundant and can waste gas. There are several places where an int is initialized to zero, which looks li...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
reentrancy
false
false
## Medium: createBasket re-entrancy ### Description _Submitted by pauliax_. #### Impact function `createBasket` in Factory should also be `nonReentrant` as it interacts with various tokens inside the loop and these tokens may contain callback hooks. #### Recommended Mitigation Steps Add `nonReentrant` modifier to ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: Discrepancy In Allowed Supply ### Description ## Discrepancy in `batch_mint` and `mint` In `collectible.move`, `batch_mint` and `mint` contain a small discrepancy in the allowed supply. Specifically, `batch_mint` utilizes the `<` operator in the length assertion check, which results in a maximum supply of `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
other
false
false
## Low: L08] Unnecessary require statement ### Description ###### Low In the `withdrawFor` function of the `DepositCertificates` contract, there are four `require` statements that check if a withdraw can be executed. The [second](https://github.com/BeamNetwork/currency/blob/51b65c5c7af455391af2bc30d13d761566d8c236...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Hooklet validation is recommended upon deploying new Bunni tokens ### Description **Description:** Uniswap V4 performs some validation on the hook address to ensure that a valid contract has been provided: Regarding the hooklet, it would be best practice to also validate the permissions for the `BEFORE_SWAP_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
signature
false
false
## High: Failure to validate MPC output can lead to double spending attack ### Description Currently, the MPC server does not check if the jointly computed secret value is between 0 and `k_max`. If this occurs, any user of the AZTEC system will be able to compute the secret value and create transactions with arbitrary...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Consider using named mappings ### Description During the audit, it was identified that **DisputeModule**, **IPAccountStorage, AccessController, LicensorApprovalChecker** and **IPGraphACL** contracts do not use named mappings, unlike the other contracts in the protocol. The project is using Solidity versio...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [18] Incorrect NATSPEC ### Description `SafEth.adjustWeight()` contains an incorrect @notice. https://github.com/code-423n4/2023-03-asymmetry/blob/main/contracts/SafEth/SafEth.sol#L158
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `public` functions not called by the contract should be declared `external` instead ### Description Contracts [are allowed](https://docs.soliditylang.org/en/latest/contracts.html#function-overriding) to override their parents' functions and change the visibility from `external` to `public`. 1. File: external...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inconstant health factor inequality boundary checks ### Description In other checks regarding healthy positions the inequality is not strict, but in this context a strict inequality is checked. ```solidity require( vars.healthFactor > /*...*/ PoolGenericLogic.HEALTH_FACTOR_LIQUIDATION_THRESHOLD, Errors.VL...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Authenticated clients can cause an access violation in desktop wallet ### Description An issue exists where an authenticated mobile device can cause an access violation in the Qt desktop wallet application. Upon being spammed with `sendTx` requests, followed by an abrupt disconnection, the Qt wallet applicatio...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
Chain Reorganization Attack
false
true
The `createClone` function deploys a clone contract using the create, where the address derivation depends only on the `PositionFactory` nonce. Re-orgs can happen in all EVM chains. In ethereum, where currently Frankencoin is deployed, it is not "super common" but it still happens, being the last one less than a year...
Code4rena
3
Frankencoin
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
cross-chain
true
false
Source: https://github.com/sherlock-audit/2024-02-telcoin-platform-audit-update-judging/issues/26 ## Found by ZdravkoHr., bughuntoor, cawfree ## Summary `PREDICATE_ADDRESS` in [`BridgeRelay.sol`](https://github.com/sherlock-audit/2024-02-telcoin-platform-audit-update/blob/21920190e0772afa18e7f856a036fea3ef5b9635/tel...
Sherlock
5
Telcoin Platform Audit Update
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
access-control
false
false
## Medium: Lack of Upgradeability and Pausable Functionality ### Description The issue is identified within the [`LOB`](https://github.com/longgammalabs/hanji-contracts/blob/09b6188e028650b9c1758010846080c5f8c80f8e/src/OnchainLOB.sol) contract. There is an issue due to the lack of upgradeability and pausable function...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
access-control
false
false
## Low: Renouncable Ownership ### Description **Update** The client acknowledged the issue and provided the following explanation: > Will update docs to warn about this topic. **File(s) affected:**`SSVNetwork.sol`, `SSVNetworkViews.sol` **Description:** If the owner renounces their ownership, all ownable contracts ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: The improper usage of return statement: ### Description **Description** **Recommendation**: The return statement can be safely removed.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Cache `self.skew` in `PerpMarket::checkOpenInterestLimits` to avoid reading same value from storage twice ### Description **Description:** Cache `self.skew` in `PerpMarket::checkOpenInterestLimits` to avoid reading the same value from storage twice: This saves 1 storage read and 1 wrapping call to `sd59x18`....
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Public functions not called within the contract can be made external to save gas ### Description The `Operator.sol` contract currently defines the `addOperator()` and `removeOperator()` functions with `public` visibility, even though they are not called from within the smart contract, resulting in higher gas 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: USE OF FLOATING PRAGMA ### Description It is advisable to avoid using floating pragmas in contracts that are not libraries. While floating pragmas make sense in the context of libraries, allowing them to be included in multiple different versions of applications, they can pose a security risk in application 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...
cyfrin_structured
medium
dos
true
false
## Medium: Multiple unstake requests can cause denial of service because withdrawn balance is not adjusted after every unstake request is fulfilled ### Description A `while` loop runs over a specific number of unstake requests, and in every iteration, it checks if an unstake request is fulfillable. If it is, the unsta...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Typo in a Comment ### Description The following comment with a typographical error was found in the `SwapManager.sol` file: ``` /// this amount of USDT to the Curve Pool to get another LP, wthich we will stake again into the ``` The word `wthich` above should be spelled as `which` instead. ### Recommendatio...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: [09] Eslint warning in a solidity file ### Description The comment on `Comptroller.preBorrowHook()` seems to have been intended for a js/ts test file. Consider removing it from the solidity source code or add a comment on why it needs to be there. https://github.com/code-423n4/2023-05-venus/blob/main/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...
skyward_49k
low
other
false
false
## Low: Missing Natspec ### Description **Severity**: Informational **Status**: Acknowledged **Description** The contract exhibits a lack of documentation, hindering its readability, maintainability, and auditability. **Recommendation**: Consider adding Natspec to the contracts.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Improper Code Structure ### Description ## Optimization of Gas Usage in the `getHealth` Function To optimize gas usage, it is recommended to structure the code in the `getHealth` function in `Clearinghouse.sol` such that risks and penalties are applied only if spot/perp products exist in the health group. 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
token
false
false
## Low: [Across] Blast_SpokePool May Fail on Attempt to Bridge Native Blast Tokens ### Description The [`_bridgeTokensToHubPool`](https://github.com/across-protocol/contracts/blob/95c4f923932d597d3e63449718bba5c674b084eb/contracts/Blast_SpokePool.sol#L127) function handles bridging tokens from the Blast spoke pool to ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
oracle
false
false
## Medium: `TickMath` and `FullMath` libraries are missing `unchecked` ### Description **Severity** **Impact:** Medium, as it will cause the swap to revert. **Likelihood:** Medium, as it will occur when there is phantom overflow. **Description** Both `FullMath` and `TickMath` are missing `unchecked`, which causes ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
cyfrin_structured
low
other
false
false
## Low: Not mechanism to automatically cleanup locks that are already unlock-able on LockManagers ### Description `InvestorLockManager` as well as `LockManager` contracts don't have a mechanism to automatically clean up unlock-able locks; it is only possible to remove locks via manual intervention using the function `...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Mutable payload identifier is assigned outside of write lock ### Description In `PrepareProposal()`, the `getOptimisticPayload()` method returns a pointer to the payload identifier. When we finally get the payload, we use the pointer to assign the identifier. The mutable payload has a lock and we are writing to...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: (HAL-07) Outdated Solidity version ### Description Several contracts utilize the older Solidity 0.6.x compiler version, which lacks the newest language features, improvements in error handling, and security enhancements introduced in later releases. Continuing to use a legacy compiler version may expose these ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Implement Secure Key Management System ### Description The current implementation stores sensitive private keys as environment variables: ``` BitcoinPrivateKeys: util.EnvArray("BITCOIN_PRIVATE_KEYS"), SolanaPrivateKeys: util.EnvArray("SOLANA_PRIVATE_KEYS"), ``` This approach poses security risks, as...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `AprPremium` calculation might be incorrect due to loss of precision ### Description In OraclePoolOfferHandler.sol, `AprPremium` is calculated partially based on the ratio of total outstanding assets over total assets. This issue is the ratio is not scaled properly to BPS decimals before adding to `aprFacto...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
front-running
true
false
## Medium: Slippage checks when adding liquidity are too strict ### Description _Submitted by cmichel_ When adding liquidity through `UniswapHandler.addLiquidity`, the entire contract balances are used to add liquidity and the min amounts are set to 95% of these balances. If the balances in this contract are unbalanc...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Expiration Date for Protocol Support ### Description **Update** Marked as "Fixed" by the client. Addressed in: `c05dfbcb8844f6a5a8cc7a41e31445c5a6b040b8`. The client provided the following explanation: Add Limited Protocol and Loan Time Horizon Section to README. This finding has been addressed via documentati...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Modifiers used once can be packed into the function ### Description If a modifier is invoked only a single time within a contract, it may be more efficient and cleaner to integrate the modifier's logic directly into the function's body. `- contracts/core/pools/cachePool/CachePool.sol` ``` modifier onlyIn...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
reentrancy
true
false
## Low: Retrieve and enforce token decimal precision ### Description Retrieve and enforce token decimal precision using [`IERC20Metadata`](https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/extensions/IERC20Metadata.sol). For example: 1) `PledgeManager::initialize` ```diff 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
high
other
false
false
## High: Lack of voter deduplication in sync\_trie\_hashes... ### Description Report type: Blockchain/DLT Target: https://github.com/shardeum/shardus-core/tree/dev Impacts: * Direct loss of funds ## Description ## Brief/Intro A malicious node is able to send falsified trie hashes through `sync_trie_hashes` inte...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
signature
true
false
## High: Signatures on `TokenBank` and `AllowList` can be reused in perpetuity an infinite amount of times ### Description **Description:** `TokenBank` allows buyers to purchase tokens by getting an off-chain signature, which specifies the token and the amount they are allowed to buy. When buying using a signature, th...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: MarketplaceUniversalRouterZap 's _sendETHResidue() doesn 't check for zero recipient, so residual ETH funds can be frozen ### Description When the `to` address is zero, the function `_sendETHResidue()` will permanently freeze the corresponding funds. ```solidity // Code Reference MarketplaceUniversalRouterZa...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 `delegationsByContributor[contributor]` instead of `delegate` when minting party card ### Description The `ÌnitialETHCrowdfund._contribute` function currently uses `delegate` as the delegate when minting a party card [Link](https://github.com/code-423n4/2023-04-party/blob/440aafacb0f15d037594cebc85fd471729...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Interfaces instead of contracts ### Description **Description** Vesting.sol: DSAuthority, DSAuthEvents, ERC20Events, ERC20, ERC20Extended are defined as contracts. Though they do not have functionality, so it is recommended to define them as interfaces. Also, for ERC20 functionality, it is recommended to use ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
initialization
false
false
## Low: Token defaults to decimals == 18 when decimals reverts ### Description ## Audit Report ## Severity: Low Risk ### Context `Token.sol#L32` When the asset contract obtained from `ProxyUtils.metadata` is a contract that does not implement the `decimals` function, the `staticcall` function will fail and return 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
low
other
true
false
## Low: Ambiguous/Misleading Return Data ### Description The NATSPEC comment says that the getters return `address(0)` or `boolean false` if the key doesn’t exist in the contract. However, the functions don’t check for any such logic. As a result, for any disabled validator, the functions may still return existing val...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Stricter Input Validation ### Description ## Recommendations for Input Validation Improvement The following are recommendations to improve input validation for key functions: 1. **In `UERC20.sol`**, validate that the address inputs to the following functions are nonzero: - `transfer` - `transferFrom` -...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Typo in commentary ### Description At line: https://github.com/iearn-finance/yearn-vaults/blob/054034304c7912d227d460feadc23177103de0b9/contracts/Vault.vy#L1270 ```solidity @return Amount of debt outstanding (iff totalDebt > debtLimit). ``` There is an extra ‘f’. ### Recommendation We suggest removing the exc...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Misleading or Outdated Comments ### Description Several comments in the `sUSDz.sol` file appear to be wrong or outdated: 1. `* @notice Add Yield(USDe) to this contract.` 2. `* @notice Total vested USDe in this contract.` 3. `* @notice Used to claim USDe after CD has finished.` These comments reference to a...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
solodit_api
medium
Reentrancy
true
true
The reentrancy guard present in the `rageQuit()` function can be bypassed by host accounts, leading to reentrancy attack vectors and loss of funds. The new `rageQuit()` function can be used by party members to exit their position and obtain their share of the tokens held by the party contract. In order to prevent fun...
Code4rena
5
PartyDAO
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of Slippage Checks in Trading ### Description ## Vulnerabilities in Trading Instructions The lack of slippage checks in the `coin_trade` instruction presents a significant vulnerability, primarily because it exposes the trading process to risks associated with market volatility, rendering the trades v...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: Optimize away `nativeToken` variable in `TokenBridge::setDeployed` ### Description Optimize away `nativeToken` variable in `TokenBridge::setDeployed` which is written to but never read, eg: ```solidity function setDeployed(address[] calldata _nativeTokens) external onlyMessagingService onlyAuthorizedRemoteSe...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [09] Zero is an excessively permissive value for `OffchainSignatureValidator` default signing threshold ### Description https://github.com/code-423n4/2023-10-party/blob/b23c65d62a20921c709582b0b76b387f2bb9ebb5/contracts/signature-validators/OffChainSignatureValidator.sol#L72 When called to validate a signatur...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Comment mismatch on future enhanced asset support in MagicSpend ### Description MagicSpend.sol, initially documented to support only ETH withdrawals, inherently possesses a broader capability to manage multiple asset types, including ERC-20 tokens, through its versatile `_withdraw()` function. https://github...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Missing validation for ERC-7540 asynchronous functionality interfaces ### Description According to the EIP-7540 documentation, vaults can optionally implement asynchronous flows for deposits and redemptions. If a vault doesn’t implement asynchronous deposits, calls to `pendingDepositRequest` and `claimableDepo...
0