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
high
logic
true
false
## High: Assets deposited before calculating shares amount to mint will cause users to mint less shares ### Description ``` } else { // Add to existing veNFT IERC20(HYBR).approve(votingEscrow, amount); IVotingEscrow(votingEscrow).deposit_for(veTokenId, amount); // Extend lock to maximum duration _extendL...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: depositCoverFor does not check if receiver is a cover provider ### Description While the `depositCoverFor()` function is only called by the PoolFeeManager contract when investing admin income into the FLC contracts, there is no check to ensure these admin accounts are even cover providers in the first place. 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
low
other
true
false
## Low: Strict Comparison in Slippage Check Incorrectly Blocks Valid Redemptions ### Description When checking minimum outcome from the liquidate, we are implementing the check to enforce the returned assets to be more than the minimum amount we put. > bc-solana-vault-sc/programs/sc-vault/src/instructions/liquidator/...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Reward rates can be reset to 0 and future rewards can be stolen from voters ### Description The `Voter.distribute(uint256 _period, address _gauge)` function allows callers to specify any valid past period when distributing emissions to a gauge in the current period. This is meant to allow any missed distribut...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: Division by zero in TWAP calculation ### Description The `StrategyPassiveManagerHyperswap` contract contains a potential division by zero vulnerability in the `twap()` function. The owner can set `twapInterval` to zero using `setTwapInterval()`, which would cause the TWAP calculation to revert. If `twapInter...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Emptyset reserve strategies may revert when aave/compound supply limit is reached or pool owner pause/froze the pool ### Description `CompoundV3FiatReserve` and `AaveV3FiatReserve` will interact with aave/compound pool each time new DSU token is minted/redeemed. This creates a single-point of failure. When ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Test failures in VMTests/vmPerformance/loopExp (potential issue in EXP) ### Description ## Severity: Critical Risk **Context:** zkevm-testvectors **Description:** Some Ethereum tests from `VMTests/vmPerformance/loopExp.json` are failing with the following error: **Input:** `/0xPolygonHermez/zkevm-testvecto...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: route is not emitted in processRouteInternal(...) ### Description The `route` is not emitted as data in the event below as it can consume a lot of gas: ```solidity emit Route(msg.sender, to, tokenIn, tokenOut, realAmountIn, amountOutMin, amountOut); ``` ### Recommendation One can instead emit its hash for of...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
rounding
true
false
## Low: DIVIDE BEFORE MULTIPLY ### Description Solidity's integer division could be truncated. As a result, precision loss can sometimes be avoided by multiplying before dividing, although the manual implementation of the precision/decimal calculation is taken care of by the developer. In the set of smart contracts, 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: currentepoch - Unnecesary Conversion From/to String ✓ Fixed ### Description It is unclear why `currentepoch` is declared as `String` while calculations require it to be numerical. ### Recommendation fixed in [ethereum-push-notification-service/push-protocol-snaps@1a6a32ef760088ca59f73e555f41b5b5d871f761](http...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: `Router.msgSender` can be reset to 0 while executing commands ### Description If a command in `execute()` performs a call to the original `msg.sender`which then reenters `execute()`, the `msgSender` variable will already be set at the beginning of the reentrant call but will be reset at the end of it. This mea...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
false
false
## Gas: [09] `x = x + y` is cheaper than `x += y` (12 instances) ### Description Deployment. Gas Saved: **11 214** Minimum Method Call. Gas Saved: **180** Average Method Call. Gas Saved: **468** Maximum Method Call. Gas Saved: **616** Overall gas change: **-5 325 (-1.318%)** ### src/DBR.sol:[174](https://github.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
false
false
## Low: Reentrance To Drain Funds If Approved Token Is A Callback Token (ERC777) ### Description **Severity** - Low **Status** - Resolved **Description** When the game is being finalized by the admin (finalizeGame() in Bullseye.sol) there’s a possibility that only 2 players participated in the game. A malicious ad...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: AutoRoller.sol#roll can revert if lastSettle is zero because solmate ERC4626 deposit revert if previewDeposit returns 0 ### Description AutoRoller.sol#roll can revert if lastSettle is zero because solmate ERC4626 deposit revert if previewDeposit returns 0 ### Impact calling roll would revert and the new sp...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
true
## Medium: Retesting: claimRewards() Reverts Unexpectedly ### Description The `claimRewards()` function of the Gearbox ClaimZap adapter makes calls to `BaseRewardPool.extraRewards(i)` and expects the zero address to be returned if the extra rewards are not set. However, these calls instead revert due to array index ou...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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 of Deprecated Method ### Description `The MasterWhitelist` contract uses the [`balanceOf` function](https://github.com/TruFin-io/staker-audit-april/blob/9f199451b5220f73cfc1eb95dc13381acf804b15/contracts/helpers/MasterWhitelist.sol#L528) from Quadrata's `QuadReader` contract. According to Quadrata's [docum...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
cyfrin_structured
low
integer-overflow
true
true
## Low: Use unchecked block to increment loop counter when overflow impossible ### Description Use unchecked block to increment loop counter when overflow impossible. Prefer `++i` to `i++` for loop counter increment. Included as [standard optimization](https://soliditylang.org/blog/2023/10/25/solidity-0.8.22-release-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
high
liquidation
false
false
## High: RageTrade senior vault USDC deposits are subject to utilization caps which can lock deposits for long periods of time leading to UXD instability ### Description RageTrade senior vault requires that it maintains deposits above and beyond the current amount loaned to the junior vault. Currently this is set at 9...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: AWS filesystem encryption is not configured ### Description The Terraform configuration provided in `setup-mpc-server` does not have filesystem encryption enabled. By default, users should opt-in to AWS filesystem encryption to add an extra layer of security to any servers housing sensitive data. If the contents...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: not adding `claimable` balance to the total assets in `_harvestAndReport` can cause losses. ### Description The `_harvestAndReport(...)` does not taken into account the `claimable` transmuter. ### Impact There are chances of potentially losses.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: Incorrect comments ### Description Skimming involves excess balances in the *bentobox*, not in the contract itself. This comment will lead to clients incorrectly passing tokens to the pair, rather than the bentobox. In addition, overall, there should be more comments devited to the interactions with the bentob...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: middle level admins can steal child trees because function unlinkTopHatFromTree() is callable by them ### Description in normal scenario middle level admins can't relink a child tree to another tree and when code link a tree it checks that the old and new admin is in the same tree(have same tippy hat). but ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Redeem period is less than intended down to 0 ### Description **Severity** **Impact:** High, StakedTokens are not redeemable in case the cooldown period is 2 times greater than unstake window, therefore underlying tokens are stuck forever **Likelihood:** High, calculation mistake on redeem **Description** ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
token
true
false
## High: ERC20 whitelist circumvents partition restrictions ✓ Fixed ### Description ERC1400/1410 enable “partially fungible tokens” in that not all tokens are equivalent. A specific use case is placing restrictions on some tokens, such as lock-up periods. The whitelist in `ERC1400ERC20` circumvents these restriction...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
initialization
false
false
## Low: Unused quote-set data ### Description ## Quote-set Data’s `decay_` Lookup Table The `decay_` lookup table is unused in the codebase, besides being initialized in the `qset_new` function. ## File Reference `upd_aggregate.h:L14-L23` ## Remediation The `decay_` field should be removed entirely. ## Patch Pyth...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
rounding
true
false
## High: Inaccurate Price Calculation Formula ### Description ## Token Price Calculation Issue in UniswapOracle `getTokenPrice` in UniswapOracle provides the price of one base token (10**decimal) in USD with two decimal precision. However, there is an error in the formula for the calculation, resulting in inaccurate ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: Update external dependency to latest version ### Description The OpenZeppelin library dependency is using a stale version - upgrade to latest one to get all security patches, features and gas optimisations
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: setUpdatePermissionStatus() and setSponsorshipStatus() Erroneously Emit Events ### Description This section describes general observations made by the testing team in which contract callers are able to generate gas savings: 1. **Gas Savings By Caching Values:** TemplateUtils.sol uses `templateIds.length` ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: Nitpick: `SAFE` and `BALANCER_MULTISIG` are the same value and are used inconsistently ### Description **Impact** The casting of `address(SAFE))` are unnecessary if you use `BALANCER_MULTISIG` https://github.com/onchainification/aura_locker_v2/blob/07294ae3638909ecd768a6a0f831fa513abe91a0/src/AuraLockerModul...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `SynthVault` rewards can be gamed ### Description _Submitted by cmichel_ The `SynthVault._deposit` function adds `weight` for the user that depends on the spot value of the deposit synth amount in `BASE`. This spot price can be manipulated and the cost of manipulation is relative to the pool's liquidity. 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
high
access-control
true
false
## High: All reward tokens can be stolen by an attacker due to misaccounting in distributeEx ### Description Report type: Smart Contract Target: https://github.com/zerolend/governance Impacts: - Theft of unclaimed yield ## Description ## Brief/Intro Tokens can be distributed in the PoolVoter through `distributeEx(...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: ID validation check missing for installDandelionApps ✓ Addressed ### Description `DandelionOrg` allows users to kickstart an Aragon organization by using a dao template. There are two primary functions to instantiate an org: `newTokenAndBaseInstance`, and `installDandelionApps`. Both functions accept a paramet...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: [06] Confidence intervals of pyth network’s prices are ignored ### Description The prices fetched by the Pyth network come with a degree of uncertainty, which is expressed as a confidence interval around the given price values. Considering a provided price `p`, its confidence interval `σ` is roughly the standa...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Insolvency in `RevenueHandler.sol` because unclaimed revenue is re-counted ### Description Report type: Smart Contract Target: https://github.com/alchemix-finance/alchemix-v2-dao/blob/main/src/RevenueHandler.sol Impacts: - Protocol insolvency - Direct theft of any user funds, whether at-rest or in-motion, ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
cyfrin_structured
high
reentrancy
true
true
## High: Intermediate value sent by the caller can be drained via reentrancy when `Pipeline` execution is handed off to an untrusted external contract ### Description Pipeline is a utility contract created by the Beanstalk Farms team that enables the execution of an arbitrary number of valid actions in a single transa...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
dos
true
true
## Medium: Looping over an array of unbounded size can cause a denial of service ### Description If an AnteTest fails, the `_checkTestNoRevert` function will return false, causing the `checkTest` function to call `_calculateChallengerEligibility` to compute `eligibleAmount`; this value is the total stake of the eligib...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
cyfrin_structured
low
access-control
false
false
## Low: Missing event emissions for critical oracle parameter changes ### Description The oracle contracts (`STBL_PT1_Oracle` and `STBL_LT1_Oracle`) do not emit events when critical parameters are modified by admin functions. Following admin functions modify critical parameters but do not emit events: - `setPriceDec...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
storage
false
false
## Low: Redundant logic for 'view' function ### Description **Severity**: Low **Status**: Acknowledged **Description** In the Diamond.yul contract, there are different flows for calling a view and executing a function. Both perform a delegatecall to a target contract, the difference being that for the `view` flow, ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: Masterchef: Incorrect comment on endBlock ### Description `uint public endBlock; // The block number when mining starts.` is incorrect, as it should be the end of the mining period, not the start. Its comment applies to `startBlock`. Note that `uint public startBlock` does not have a comment. Consider adding ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `SwingTraderManager.sellMalt()`: should use memory instead of storage variable ### Description See @audit tag
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
cyfrin_structured
low
token
true
false
## Low: Refactor `SecuritizeBridge::bridgeDSTokens` and `quoteBridge` to use `internal` function saves 2 storage reads per bridging transaction ### Description `SecuritizeBridge::bridgeDSTokens`: * L71 calls `quoteBridge` which reads `wormholeRelayer` and `gasLimit` from storage * L91 calls `wormholeRelayer.sendPayloa...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: Arbitrary address _router and bytes memory _calldata allow the FARM_SWAP_CALLER to perform ma- ### Description While trusted, the FARM_SWAP_CALLER would be assumed to be less trusted than GOVERNOR. The ability to control the `_router.call` address and `_calldata` makes malicious transactions possible. The buil...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
token
false
false
## Medium: Use OpenZeppelin 's SafeERC20 ### Description Some ERC20 tokens may not follow the entire ERC20 specification. For example, `transfer()` and `transferFrom()` are expected to return true and revert on any failure, but USDT doesn't return any value. OpenZeppelin SafeERC20 library handles these cases. ### Rec...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
token
false
false
## Low: Fee-On-Transfer Tokens Are Not Supported ### Description Certain tokens are not supported in `WrappedERC20Asset.sol`, for example fee-on-transfer tokens, since the `deposit()` function does not check balance before and after the transfer to ensure the amount received is not reduced. ### Recommendation This 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
medium
access-control
false
false
## Medium: Wallet Not Locked on Browser Instance Closing ### Description The application is vulnerable due to the wallet remaining unlocked when the browser instance is closed. This security flaw occurs when a user’s wallet session persists even after the browser window or tab is closed, allowing the wallet to remain ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
front-running
true
false
## Low: <a name="L-3"></a>[L-3] Initializers could be front-run
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Residual ETH unreachable and unutilized in SafEth.sol ### Description Unlike the other three contracts in scope, SafEth.sol does not have a measure in place to utilize the residual ETH, be it: * accidentally received, * zero ETH output from `unstake()` arising from recipient non-contract existence, or * ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: Implements targetETH boundaries ### Description There is currently no validation for the `targetETH` when launching a meme token, which allows users to set it to any value. However, this could potentially lead to problems in the following scenarios: - **Scenario 1:** The Meme token is created with `targetETH`...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: L04] The tokenTransfer and tokenBurn functions do not fail early ### Description ###### Low Component: [`currency`](https://github.com/BeamNetwork/currency/blob/af3428020545e3f3ae2f3567b94e1fbc5e5bdb4c/contracts/currency) In the `EcoBalanceStore` contract, the [`tokenTransfer`](https://github.com/BeamNetwo...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: zNS - anyone can front-run fulfillDomainBid to lock the domain setting or set different metadata ✓ Fixed ### Description Anyone observing a call to `fulfillDomainBid` can front-run this call for the original bidder, provide different metadata/royalty amount, or lock the metadata, as these parameters are not...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: Consider Using Named Mappings ### Description The project could be upgraded to a more recent Solidity version (greater than `0.8.18`), which supports named mappings. Using named mappings can improve the readability and maintainability of the code by making the purpose of each mapping clearer. This practice hel...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: Missing slippage/min-return check in StrategyCvxHelper ### Description ## Handle cmichel ## Vulnerability details ## Vulnerability Details The contracts are missing slippage checks which can lead to being vulnerable to sandwich attacks. > A common attack in DeFi is the sandwich attack. Upon observing a tr...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing Address Protection ✓ Fixed ### Description While MetaMask hides wallet addresses by default, requiring users to expose them to dapps manually, the snap’s `fil_getAddress` and `fil_getAccountInfo` RPC endpoints always disclose the current address to any connected dapp, even if that address has not be...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Unclear Function Naming ### Description The `_cancelBuyersOffer()` function isn't exactly clear as it will only cancel the offer if the buyer is `msg.sender`. Therefore, it would be more clear to rename this to `_cancelSellersOffer()` or similar to avoid confusion.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
other
true
false
## High: The `_estimateWithdrawalLp` function might return a very large value, result in users losing significant incentives or being unable to withdraw from the Dispatcher contract ### Description The `_estimateWithdrawalLp` function might return a very large value, result in users losing significant incentives or be...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
initialization
true
false
## Medium: Users will lose rewards when buying new tokens if they already own some tokens ### Description When users purchase new tokens, the old tokens they already own do not receive the fees from this purchase, resulting in a loss of funds for the users. ### Proof of Concept According to the explanation by the sp...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: Inconsistency between rate calculation and comment in `ERC20DistributionNative` ### Description **Severity**: Informational **Status**: Resolved **Description** In the `currentRateUndivided` function in `ERC20DistributionNative` contract, the `_current_distributed_balance` increases after each call to `pur...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: Missing event emissions for critical parameter changes in VaultAdapter ### Description The `VaultAdapter` contract lacks event emissions for critical parameter changes in the `setSlopes` and `setLimits` functions. These functions modify key protocol parameters that directly affect interest rate calculations, 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
front-running
true
false
## Low: Anyone can trigger others' claims causing front-running reward loss ### Description _Resolved_ `claimRewards(address receiver)` lets **any caller** pass any `receiver`: Inside `_claimRewards`, the contract settles the **receiver’s** rewards. When `rewardTokenBalance` is low, only a small portion is staked 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
initialization
true
false
## Low: Missing State Verification ### Description ## Ride Cancellation and State Verification Issues The functions `driver_cancel_ride`, `rider_cancel_ride`, and `admin_cancel_ride` lack the verification of the current ride state. This absence of state verification may result in a driver canceling a ride even after ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Bypass Of Authority/Access Control Checks ### Description ## Vulnerability in PermissionSet The vulnerability in `PermissionSet` instruction arises from how errors are handled within `derive_any_permissioned`. `derive_any_permissioned` calls `derive_permissioned::` and `derive_permissioned::`, but it immedia...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Controller can evade fees and claim extra rewards through neuron disbursement process ### Description Neuron disbursement is implemented by `Governance::disburse_neuron` through the following asynchronous calls to the ledger canister: 1. A call to transfer the disbursement to a certain account. 2. A call 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: previewRedeemToSiloDeposits() incorrectly accounts deposit claimed from earnedBeans ### Description The function `previewRedeemToSiloDeposits()` imitates redeem and should return an array of Silo deposits that will be withdrawn. It should also account for the claiming of newly deposited `earnedPinto` before wi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
solodit_api
medium
Weird ERC20
true
true
When a rental is stopped, [`Stop.stopRent()`](https://github.com/re-nft/smart-contracts/blob/3ddd32455a849c3c6dc3c3aad7a33a6c9b44c291/src/policies/Stop.sol#L265) transfers the rented NFT back from the renter's Safe to the lender's wallet and transfers the ERC20 payments from the payment escrow contract to the respecti...
Code4rena
4
reNFT
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Private keys stored in environment variables ### Description Elixir’s off-chain services are configured via environment variables that include sensitive data, such as private keys, for signing. Environment variables are not suitable for storing sensitive data, as they may leak via multiple channels such as cras...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: Duplicated code ### Description There are instances of duplicated code within the codebase. Duplicated code can lead to issues later in the development lifecycle and leaves the project more prone to the introduction of errors later if functionality changes are not replicated across all instances of code that 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
rounding
false
false
## Low: Purchase Can Be Called Even when the Sale Price Is Zero ### Description **Update** Marked as "Fixed" by the client. Addressed in: `d2ea8066b670483a0e8688aa3fd6d36a810efabe` and `c4905b97856550e864c9cfb37cb4a98125ab24ef`. **File(s) affected:**`IFSale.sol`, `IFPurchasable.sol` **Description:** When `salePrice`...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: Consider a manualAllocation role for DebtManager ### Description In the current implementation, the DebtManager has three roles: - Owner - Whitelisted Gateway mapping - zkVerifier Only the owner can call `DebtManager.manualAllocation`. ### Recommendation Adding and removing new lenders is a very powerful ope...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
initialization
false
false
## High: Missing user input validation can lead to stuck funds ### Description **Severity** **Impact:** High, as all mint fees can be stuck forever **Likelihood:** Medium, as users can easily misconfigure inputs **Description** There are multiple insufficiencies in the input validation of the arguments of the `ini...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
Refund Ether
false
true
## Lines of code https://github.com/code-423n4/2022-10-thegraph/blob/309a188f7215fa42c745b136357702400f91b4ff/contracts/gateway/L1GraphTokenGateway.sol#L236 ## Vulnerability details The outboundTransfer function in L1GraphTokenGateway is used to transfer user's Graph tokens to L2. To do that it eventually calls the...
Code4rena
4
The Graph
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
access-control
true
false
## Medium: InvestmentManager can use `AccountableFixedTerm::coverDefault` to misuse token approvals from anyone ### Description `AccountableFixedTerm::coverDefault` allows InvestmentManager of the loan to add additional assets to the system. ```solidity function coverDefault(uint256 assets, address provider) exte...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: Ineffective Pausing Mechanism ### Description In the `USDz` contract, the `checkCollateralRate()` modifier is calling the `_checkCollateralRate()` internal function which, if the price returned by the oracle is less than 1, it pauses the contract and reverts with the `UNDERCOLLATERAL_RATE,SMART_CONTRACT_IS_PAU...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: Special cases for deadline == 0 ### Description It seems `userOp.deadline == 0` and `dAppOp.deadline == 0` indicate there is no deadline. However, there is no special case for `solverOp.deadline == 0`. The function `_handleAltOpHash()` enforces the deadlines of `solverOp` and `userOp.deadline` to be the same,...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: The `safeApprove()` Function Could Revert For Non-Standard Token Like `USDT` ### Description Some non-standard tokens like USDT will revert when a contract or a user tries to approve an allowance when the spender allowance has already been set to a non-zero value. In the current code we have not seen any real...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: Insolvent Auction Bids Lack Complete priceLimit Control ### Description Insolvent auction bids have no control over the maximum size of a portfolio they are accepting. Auction bids may specify a `priceLimit` parameter to reject bids that do not meet their requirements. However, for insolvent bids, because we 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: Some require functions in the project (for example RewardPool, lines 49, 65, 66, 68, 72,...), does not contain a message, to be fully compatible with best standards, all required messages should contain a message, to be able to tell where the error happened in case of revert. ### Description **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
high
other
true
false
## High: In `DelegatorFactory` new entity can be created for a blacklisted implementation ### Description **Description:** The current implementation of `DelegatorFactory::create` fails to verify whether the specified implementation type has been explicitly blacklisted. This creates a security and consistency risk whe...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
false
false
## Medium: Lack of output safeguards could lead to loss of funds ### Description The [`FixedRateSwap`](https://github.com/1inch/fixed-rate-swap/blob/b1600f61b77b6051388e6fb2cb0be776c5bcf2d1/contracts/FixedRateSwap.sol) contract facilitates the [swapping](https://github.com/1inch/fixed-rate-swap/blob/b1600f61b77b605138...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Insufficient input validation in function `createVestingSchedule` ### Description **Impact:** High, as it can lead to users never vesting their tokens **Likelihood:** Low, as it requires a malicious/compromised admin or an error on his side **Description** The input arguments of the `createVestingSchedul...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: User deposits don’t have min. return checks ### Description ## Handle cmichel ## Vulnerability details The `LPIssuer.deposit` first computes _balanced amounts_ on the user's defined `tokenAmounts`. The idea is that LP tokens give the same percentage share of each vault tokens' tvl, therefore the provide...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
overflow
false
false
## Low: Lack Of Upper Bounds Checks On fraudProofPeriod ### Description The absence of upper bounds on the `fraudProofPeriod` parameter introduces a risk of overflow and may result in an instantly confirmable proof. The addition operation on line [300] `uint32(block.timestamp + fraudProofPeriod)` is performed as `uint...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Missing input validation in token price setters ### Description The `setVTokenCost` and `setTokenCost` methods are missing lower and upper bounds, meaning the caller of them can set for example huge values so tokens are not actually purchasable. Make sure to put a sensible upper bound and possibly a lower boun...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: [01] No need to approve `__aavePool` to spend `__aToken` ### Description The AavePool can burn the `aToken` directly without any allowance from burner address. So the call to approve `aToken` in the constructor of `AaveUsdcBaseInterestAllocator` contract is unnecessary. ```solidity constructor(address _pool, ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: Potential inconsistent accounting due to `rescueFunds` Function ### Description **Severity**: Low **Status**: Resolved **location**: FeeHelper.sol The smart contract contains a function named `rescueFunds` that allows the owner to withdraw an arbitrary amount of an arbitrary ERC20 token (_token) and transfe...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Mismatch Between XBlock And XMsg sourceChainId ### Description `EigenKeyPassword` is stored with no encryption in the config file. As per line [33] in `halo/app/privkey.go`, `EigenKeyPassword` is taken from a config file and used directly in the `loadEthKeystore()` function call, without prior decryption or...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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 Event Emissions ### Description No event is emitted in the following setter functions in `ONFT721Core.sol` which result in state changes: - `setMinGasToTransferAndStore(…)` - `setDstChainIdToTransferGas(…)` - `setDstChainIdToBatchLimit(…)` ## Remediation Ensure all setter functions modifying state e...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
false
false
## Medium: Storage modification on event emission ### Description In the [`addUser`](https://github.com/jeualvarez/Token-Airdrop/blob/d96202acf6fb5d0305368bac36aa960d455cbffe/contracts/Airdrop.sol#L27) function of the `Airdrop` contract, an item is pushed into the `bonusAddresses` array. The result of the operation, w...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
cyfrin_structured
low
access-control
true
false
## Low: Vesting Parameter Updates are Not Constrained Sufficiently ### Description The `update_vest_params` function in `xbelo` program, allows admin to update minimum-maximum vesting durations, and minimum-maximum burn percentages. However it doesn't contrained enough to prevent wrong configurations between interconn...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
false
false
## Gas: State variables should be cached in stack variables rather than re-reading them from storage ### Description The instances below point to the second+ access of a state variable within a function. Caching will replace each Gwarmaccess (100 gas) with a much cheaper stack read. Less obvious fixes/optimizations 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
high
dos
true
false
## High: An attacker can massively inflate the share value ### Description Since the total assets/shares are tracked via an internal storage variable, a traditional vault inflation attack cannot occur in the Fraxlend pairs. However, by exploiting the rounding directions when minting/burning shares, an attacker can exp...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `Bera_Module` fails to stake in `BGTStaker` due to missing Boost integration ### Description **Description:** The D2 Berachain integration includes two functions, [`Bera_Module::bera_bgt_stake`](https://github.com/d2sd2s/d2-contracts/blob/c2fc257605ebc725525028a5c17f30c74202010b/contracts/modules/Bera.sol#L...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: The normalized sum of the weight is not always equal to 1 ### Description The normalized sum of the token weight may not always be equal to 1. The Balancer whitepaper states that the sum of normalized token weights should be equal to 1. However, inherent rounding issues in the division performed by the `getNor...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
liquidation
false
false
## High: _calculateMaxBorrowCollateral calculates repay incorrectly and can lead to set token liquidation ### Description When calculating the amount to repay, `_calculateMaxBorrowCollateral` incorrectly applies `unutilizedLeveragePercentage` when calculating `netRepayLimit`. The result is that if the `borrowValue` ev...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
upgrade
true
true
## Medium: Meta transactions do not work with most of the calls in `MembershipFactory` ### Description `MembershipFactory` uses a custom meta transactions implementation by inheriting `NativeMetaTransaction` which allow a relayer to pay the transaction fees on behalf of a user. This is achieved by following the same 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
gas
initialization
true
false
## Gas: Save gas by checking against default WETH address ### Description You can save a Gcoldsload (**2100 gas**) in the address provider, plus the **100 gas** overhead of the external call, for every `receive()`, by creating an immutable `DEFAULT_WETH` variable which will store the initial WETH address, and change 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
medium
other
false
false
## Medium: Collection shares should be limited ### Description Shares cannot be > 1e7, otherwise claiming will always revert. https://github.com/FantiumAG/smart-contracts/blob/a2d126453c1105028f12277b8f342d2cdbf01a77/contracts/FantiumNFTV3.sol#L547-L553 https://github.com/FantiumAG/smart-contracts/blob/a2d126453c11050...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: 14] Stake deviations due to adding/removing strategy may allow for ejector manipulation ### Description **Severity:** Medium **Path:** src/StakeRegistry.sol#L128-L174 src/StakeRegistry.sol#L727-L731 src/EjectionManager.sol#L135-L163 **Description:** In the StakeRegistry contract, the `updateOperatorsStake...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Transfer of `ILOPool` NFT token to different account allows for users to bypass the pool's `maxCapPerUser` invariant ### Description The `ILOPool` smart contract enables investors to acquire a locked liquidity position represented as an NFT. When an investor invokes the `buy()` function, they transfer a spe...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: `claimNativeToken` Can Be Removed From ERC20Distribution.sol ### Description **Description** The ERC20Distribution contract uses a fiat token (ERC20) to purchase gain tokens, ETH cannot be received bythis contract (unless forced sent vi selfdestruct), therefore the function claimNative Token is unnecessary si...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: `extraImplicit` and `extraExplicit` are declared twice ### Description The storage variables `extraImplicit` and `extraExplicit` are declared twice in the code: - [ControllerV2.sol L39-L43](https://github.com/dforce-network/LendingContracts/blob/6f3a7b6946d8226b38e7f0d67a50e68a28fe5165/contracts/ControllerV2.s...
0