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
liquidation
true
false
## High: After calling the function to remove the provider liquidation, only the value is removed, not the array element. Because of this, the size of the array will constantly increase, and all functions may not fit into the gas block, since they have unlimited cycles. ### Description **Recommendation**: use the Enu...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: Validators Cannot Receive More Than 32 ETH ### Description Normally a staking validator node can have a maximum effective balance of 32 ETH. This means there is usually no reason to deposit any more than this amount to a validator as the extra ETH will not earn any staking rewards. Because of this, Swell Proto...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: No ERC20 safe* versions called ### Description _Submitted by cmichel, also found by JMukesh and hickuphh3_ The `claim` function performs an ERC20 transfer `rewardsToken.transfer(to, claiming);` but does not check the return value, nor does it work with all legacy tokens. Some tokens (like USDT) don't corr...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: GeneralAdapter1.morphoRepay() incorrectly fetches the borrowShares of initiator instead of onBe- ### Description ## Half **Severity:** Medium Risk **Context:** GeneralAdapter1.sol#L309-L312, GeneralAdapter1.sol#L316 **Description:** When `GeneralAdapter1.morphoRepay()` is called with `shares == type...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: Missing events in `NodeOperatorRegistry` update methods ### Description The following functions in `NodeOperatorRegistry` update multiple storage locations but don't emit any events: * `updateOperatorControllingAddress` * `updateOperatorRewardAddress` * `updateOperatorName` Consider emitting events in these 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
medium
initialization
false
false
## Medium: Make sure requesters provide the payment type and also the max delivery rate to the re- quest endpoints ### Description Currently, when a request is created by a requester, the `deliveryRate` and `paymentType` are fetched from the corresponding `priorityMech` of a service ID. Just before this transaction ge...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
cross-chain
false
false
## Medium: Rebalancer can drain market funds via excessive bridge fees ### Description The `REBALANCER_EOA` role, which is considered semi-trusted, can drain funds from any market by specifying an arbitrarily high `maxFee` when initiating a bridge transfer through `EverclearBridge.sol`. This violates the trust assumpt...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: Uninitialized Implementation Contract ### Description **Update** The client fixed the issue in `f8a3ea41e2411099792788c888bc41f8c30d345f` by calling `_disableInitializers()` in the constructor. **File(s) affected:**`MeowToken.sol` **Description:** The new implementation contains an initialize function that m...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
liquidation
false
false
## Medium: Loans Can Quickly Become Under-Collateralized in Volatile Market Conditions ### Description **Update** A change has been applied to the health calculation, such that liquidation is only possible if the leftover collateral in GLP after paying back the loan is less than `10%` of the of original collateral in ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
false
false
## Medium: Missing constraint on the setter method of a percentage value ### Description **Impact:** High, as it will result in wrong reward calculations **Likelihood:** Low, as it requires a malicious/compromised owner or a big error on his side **Description** The `setResetShareValue` lacks a check that the `_new...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
token
true
false
## Medium: `perp_statistics_reset` can be used by users to skip `collactable-losses` while selling market seat ### Description Inside `perp-statistics-reset` we set [soc loss funds](https://github.com/deriverse/protocol-v1/blob/30b06d2da69e956c000120cdc15907b5f33088d7/src/program/processor/perp_statistics_reset.rs#L91...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
reentrancy
true
false
## High: addToPosition() Incorrectly Adding More Amount to the Position and CDTSupply ### Description The `addToPosition()` function of the NFTPool contract is incorrectly updating the token's position and the CDT supply. More specifically, it is using an incorrect value returned by the `_transferThere()` function 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: Immutable Delegate Address Elevates Security Risk ### Description If the delegate address becomes compromised (e.g., the private keys are stolen, or the address is otherwise controlled by a malicious actor), the contract has no built-in mechanism to change this address. This immutability could lead to security...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: BaseConicPool's `cachedTotalUnderlying()` and `usdExchangeRate()` might work incorrectly ### Description Both `cachedTotalUnderlying()` and `usdExchangeRate()` utilize `_cachedTotalUnderlying` in their computations. The `_cachedTotalUnderlying` variable gets updated in the `withdraw()` function. Note that `...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
storage
true
false
## Medium: When calling LeverageMacroBase.doOperation to open a CDP, the POST CALL CHECK may use the wrong cdpId ### Description After [LeverageMacroBase.doOperation](https://github.com/code-423n4/2023-10-badger/blob/main/packages/contracts/contracts/LeverageMacroBase.sol#L118-L124) is used to open a new CDP, there wi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
initialization
true
false
## High: Stable swap pools don’t properly handle assets with different decimals, forcing LPs to receive wrong shares ### Description Stable swap pools in Mantra implement Curve’s stable swap logic, this is mentioned in the [docs](https://docs.mantrachain.io/mantra-smart-contracts/mantra_dex/pool-manager# stableswap). ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: [03] User can withdraw in multiple calls with small amount to escape fee ### Description The [Vault::withdraw()](https://github.com/code-423n4/2024-05-bakerfi/blob/main/contracts/core/Vault.sol#L260-L264) function rounds-down the fee against the protocol's favour and hence a user can split their withdraw tx 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
oracle
true
true
## High: Incorrect handling of `pricefeed.decimals()` ### Description ### Impact Wrong math for handling pricefeed decimals. This code will only work for pricefeeds of 8 decimals, any others give wrong/incorrect data. The maths used can be shown in three lines: Line1: adds 4 decimals Line2: adds (18 - d) decimals, ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: Indexing issues in `removeCardBundlesFromPacketPool()` ### Description _Resolved_ The `removeCardBundlesFromPacketPool` function in the `CardAllocationPool` contract allows for the removal of card bundles by passing their indices. However, this approach is flawed due to the **dynamic nature of the indices**...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inconsistencies In Math Module Implementation ### Description ## Comet Precision Issues The precision of the fixed-point math in Comet is **107**, which is low compared to that set in **BalancerV1**, which is **1018**. This low precision in the Comet system may be problematic in scenarios where there are 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
initialization
false
false
## Medium: Deposits Made Before Hook Connection are not Accounted for Rewards ### Description This issue has been identified within the `HookTargetStakeDelegator` contract. When the hook is connected after deposits have been made, the reward vault balance is not properly initialized. As a result, any funds that were d...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
initialization
true
false
## High: Inaccurate share price due to lack of withdrawal tracking ### Description The `DepositETH` and `DepositUSD` contracts fail to update the withdrawal counters (`ethWithdrawn`/`stableWithdrawn`) and shares (`nETHMinted`, `nUSDMinted`) when processing withdrawals. This leads to incorrect accounting because the 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
overflow
true
false
## Low: Inconsistent use of the FixLib library ### Description According to the protocol specification for arithmetic operations, all computations performed on `uint192` values, which represent `uint192x18` variables, should use the **FixLib** library. However, numerous computations in the codebase do not comply with ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inaccurate stake calculation due to decimal mismatch across multitoken asset classes ### Description **Description:** Currently, when calculating the operator stake, the system iterates through all vaults associated with a specific asset class ID and sums all of the staked amounts. However, an asset class m...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: Iterating over unbounded arrays can result in DoS ### Description The `GaugeProxy` contract has the `addSubGauge` method which pushes new elements to the `gauges` and `stakingTokens` arrays. Both of those arrays' sizes should be capped due to the fact that if too many items are added to them then iterating ove...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Long functions should be refactored into multiple, smaller, functions ### Description Long functions should be refactored into multiple, smaller, 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
gas
other
true
false
## Gas: Local variable not used ### Description ## Email Recovery Command Handler **Context:** EmailRecoveryCommandHandler.sol#L78 **Description:** The function call `hexToBytes32()` is useful for safety checks, but the `calldataHash` local variable isn't used. **Recommendation:** Don't store the return value: ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: Use `SafeERC20` approval and transfer functions instead of standard IERC20 functions for `liquidityToken` ### Description The on-ramping and off-ramping processes are linked to external liquidity tokens such as stablecoins whose code is not controlled by the protocol; hence use [`SafeERC20::forceApprove, trans...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
liquidation
true
false
## Medium: Fee-vault can be made insolvent in case of defaults ### Description ### Finding description and impact In case of a loan default, the backstop funds are insufficient to cover the liability. In this case, the hit is taken by the collateral providers, and the `b_rate` drops. In this scenario, the `b_rate` ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: Hardcoded referral fee ### Description Though `protocolFeeWithReferralBips` and `creatorFeeWithReferralBips` fees can be changed the `referralFeeBips` is hardcoded. Consider setting the difference between `protocolFeeBips` and `protocolFeeWithReferralBips` as a new `referralFeeBips` value in the `setProtocol...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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 address(0) check in setPOLFeeCollector() ### Description Severity: Low Risk Context: ProtocolFeesCollector.sol#L98 Description: The setPOLFeeCollector() can be used to set the polFeeCollector variable. function setPOLFeeCollector(address _polFeeCollector) external override authenticate { polFeeCollecto...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: redeem function will always revert due to double asset transfer ### Description Severity: Low Risk Context: WrappedVault.sol#L534-L537 Description: The redeem function has an incorrect sequence of asset transfers that causes it to always revert, making it impossible for users to execute the function successful...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
oracle
true
false
## High: Limit swap orders can be used to get a free look into the future ### Description Users can cancel their limit swap orders to get a free look into prices in future blocks ### Impact There is a lot of work involved in calculating statistics about block ranges for oracles and their processing time/queues, and 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...
cyfrin_structured
low
token
true
false
## Low: Treasury cannot withdraw expired assets if NFT is disabled ### Description The `STBL_LT1_Issuer::withdrawExpired` function attempts to claim rewards for disabled NFTs, but the `STBL_LT1_YieldDistributor::claim` function explicitly reverts when called on disabled NFTs. In `STBL_LT1_Issuer.withdrawExpired`: ``...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: Hardcoded addresses are used for crucial roles ### Description **Severity**: Low **Status**: Acknowledged **Description** The `Fias.sol` contract implements 3 crucial roles, `FOREVVER_MINTER`, `LITCRAFT_MINTER`, `CONTRACT_ADMIN`. These addresses are hardcoded, this can lead to a scenario where the protocol...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
safeTransfer - code size check
false
false
Source: https://github.com/sherlock-audit/2022-11-bond-judging/issues/8 ## Found by Bnke0x0, 8olidity ## Summary ## Vulnerability Detail ## Impact the safetransfer and safetransferfrom don't check the existence of code at the token address. This is a known issue while using solmate's libraries. Hence th...
Sherlock
3
Bond Protocol
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
signature
false
false
## High: If a transaction reverts, its authentication token can be reused by any user to authenticate any transaction ### Description Authentication tokens can be reused in future transactions when an original transaction is reverted. Each transaction in Term Finance requires a special authentication token created by ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
signature
true
false
## Medium: Collect front run permit ### Description ## Context (No context files were provided by the reviewer) The principal token is exposing a function call `permitCollector` to allow an owner to approve a collector. This function is receiving a signature and setting the collector to the signer of the signature. ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Mistake in ENR key for discovery ### Description ## Severity: Medium Risk **Context:** `eth/protocols/eth/discovery.go#L36` **Description:** This function will return "over1" when it should return "over". **Recommendation:** Change the return value to "over".
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: [53] Missing event for critical changes ### Description Events should be emitted when critical changes are made to the contracts. There are 13 instances: PrimaryLiquidationFacet.sol ([122-124](https://github.com/code-423n4/2024-03-dittoeth/blob/91faf46078bb6fe8ce9f55bcb717e5d2d302d22e/contracts/facets/Primar...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: Unused parameter ### Description **Severity**: Informational **Status**: Acknowledged **Description** The function `setFee` in the `StableSwapPool.sol` and `XYKPool.sol` contracts takes `decayRate_` as parameter but it is not needed as it is not used. **Recommendation**: It’s recommended that unused par...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: Front-runnable Initializers ### Description All contract **initializers** were missing access controls, allowing any user to initialize the contract. By front-running the contract deployers to initialize the contract, the incorrect parameters may be supplied, leaving the contract needing to be redeployed. ###...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: Inconsistent Invalid-ID Errors Across Claim Surfaces ### Description Different entry points revert with varying errors for the same invalid `distributionId`. `getDistribution()` uses `InvalidDistributionId`, while the claim path via `_hookGetMerkleRoot()` and `getVestedAmount()` bubbles `PeriodNotFound`. ### ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: Erroneous Truffle configuration ### Description An error in the `truffle.js` configuration file prevents Truffle 5 from running with the specified solc version (0.4.24). [Current configuration](https://github.com/propsproject/props-token-distribution/blob/eaf0c6fddd320a258a9d7531d72d07a830fae58a/truffle.js#L10...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: Callback verification can be made more secure ### Description The current callback verification is safe enough, but to increase the security of the protocol we would recommend saving the address of the pool that is used in the `_createLimitOrder` function to the storage variable to check that callback is calle...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
rounding
true
false
## Low: Shares burned in `Staking.unstake()` can be underestimated ### Description In the `Staking.unstake()` function, the calculation of the shares to be burned for the user is done as follows: The results of the division operations in lines 81 and 84 are rounded down due to the truncation of the division operatio...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
liquidation
true
false
## High: Protocol rewards tokens permanently stuck ### Description During liquidations, the protocol seizes a portion of collateral tokens (2.8%) as protocol rewards. These seized tokens are tracked in the `protocolReward` mapping but have no mechanism for withdrawal, causing them to be permanently stuck in the 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
access-control
true
false
## Low: Owner Can Renounce Ownership ### Description It was identified that the `StakerLightFactory` contract inherited from OpenZeppelin's `Ownable2Step` library. In the `Ownable2Step` contracts, the `renounceOwnership()` function is used to renounce the `Owner` permission. Renouncing ownership before transferring wo...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Input Validation Checks for Drippie.create ### Description The `Drippie.create` function does not validate input, potentially leading to unintended results. The function should check the following: - `_name` is not an empty string to avoid creating a drip that would be able to read on the frontend UI. - `_con...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
other
false
false
## High: Inflating the votes of the hash for a malicious trie data structure to bypass the consensus system and modify account data ### Description Report type: Blockchain/DLT Target: https://github.com/shardeum/shardus-core/tree/dev Impacts: - Direct loss of funds ## Description ## Brief/Intro In Shardeum, no 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
medium
access-control
true
false
## Medium: Lack of Access Control for offer(uint, ERC20, uint, ERC20) and insert(uint, unint) ### Description _Submitted by xiaoming90, also found by throttle_ ### Proof of Concept The `offer(uint, ERC20, uint, ERC20)` and `insert(uint, unint)` should only be accessible by the keepers as per the comments. However, ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: L01] Use of hash constants without comment ### Description ###### Low Component: [`policy`](https://github.com/BeamNetwork/currency/tree/af3428020545e3f3ae2f3567b94e1fbc5e5bdb4c/contracts/policy) In the `PolicedUtils`, there are [11 constants for the identifiers of the policies](https://github.com/BeamNetw...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
token
false
false
Source: https://github.com/sherlock-audit/2023-01-optimism-judging/issues/220 ## Found by Barichek, lemonmon ## Summary If a custom contract implements only the `IOptimismMintableERC20`, but no the `ILegacyMintableERC20`, the contract is not compatible with the `StandardBridge`, as the bridge uses the `l1Token` ...
Sherlock
5
Optimism
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: Unused import statements ### Description Within the codebase, the following unused imports were identified: **oracle/OracleUtils.sol:** * `import "../utils/Printer.sol";` **oracle/Oracle.sol:** * `import "@openzeppelin/contracts/utils/math/SafeCast.sol";` * `import "@openzeppelin/contracts/utils/St...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Misleading NATSPEC comments ### Description In the `updatePlan` function of the `ContributorMultiTierStaking` contract, the NATSPEC comment is misleading. The comment states that the function is for deactivating a plan, but the function actually updates the plan, from an active to an inactive state and vice ve...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Missing validation of input address of user on signup ### Description **Severity**: Informational **Status**: Resolved **Description** In NarwhalReferrals.sol - Method signUp() , we have _user is not assured to be non-zero address in case that the caller of this method is storageT. **Recommendation** Add...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: Comments should be enforced by `require()`s ### Description The comments below should be enforced by `require(block.timestamp **[cryptolyndon (AbraNFT) commented](https://github.com/code-423n4/2022-04-abranft-findings/issues/75#issuecomment-1124529466):** > **Low-risk issues:** > > **[L-03]** Agreed; this...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: Unnecessary random number request with single NFT in queue ### Description The function `ApiologyAuctionsHouse::_createAuction` currently makes a request for a random number even when there is only one NFT in the `auctionQueue`. This is inefficient as there is no need for random selection when only one item 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
dos
false
false
## Medium: Uncontrolled Resource Consumption in go-jose (github.com/dvsekhvalnov/jose2go) ### Description **Severity:** Medium **Status:** Acknowledged **Description:** The library is vulnerable to uncontrolled resource consumption due to improper input validation, which could lead to excessive memory or CPU 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
gas
other
true
false
## Gas: Use `selfbalance()` instead of `address(this).balance` ### Description In Solidity, contracts often need to query their own Ether balance. While `address(this).balance` has been a widely used approach to retrieve the current contract's balance, it is not the most gas-efficient method, especially with the intro...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Pyth oracle price is not validated properly ### Description The `PythAggregator` contract does not perform input validation on the `price`, `conf`, and `expo` values returned from the called price feed, which can lead to the contract accepting invalid or untrusted prices. Those values should be checked as c...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
true
false
## Medium: Improper Normalized Amount Updating On State ### Description ## SpotEngine SocializeSubaccount Function Issue In SpotEngine’s `socializeSubaccount` function, the negative balance amount is being added to the total borrow, instead of being subtracted. Since `socializeSubAccount` is clearing the borrow and...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
false
false
## Medium: `MAX_ROYALTY_RECIPIENTS_INDEX` set too low ### Description _Submitted by cmichel_ [NFTMarketFees.sol#L78](https://github.com/code-423n4/2022-02-foundation/blob/4d8c8931baffae31c7506872bf1100e1598f2754/contracts/mixins/NFTMarketFees.sol#L78) The creator payouts are capped at `MAX_ROYALTY_RECIPIENTS_INDEX`....
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: Implicit Returns ### Description Some functions that return values do so explicitly. For example, the [`logic`](https://github.com/InstaDApp/contract-v2/blob/4863c0c4156af7ded9cdb38b66e5f5e527c4a6d0/contracts/InstaRegistry.sol#L62) and [`logicStatic`](https://github.com/InstaDApp/contract-v2/blob/4863c0c4156af...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Derive min / max collection bounds dynamically ### Description **54,522 gas can be saved.** | Method | Before | After | Gas Saved | Test Passes? | |-----------|------------|-----------|-----------|--------| | `NextGenCore:setCollectionData()` | 199090 | 154389 | 44701 | Yes | | `NextGenCore:burn()` | 84270 | ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
reentrancy
true
false
## High: User cannot withdraw stakingToken due to incorrect calculation of _totalSupply ### Description User cannot withdraw `stakingToken` due to incorrect calculation of `_totalSupply` ### Impact User cannot withdraw stakingToken ### Recommendation ```solidity function revokeVestingSchedule(address account) 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
medium
storage
false
false
## Medium: Protocol can break for a token with a proxy and implementation contract (like `TUSD`) ### Description Tokens whose code and logic can be changed in future can break the protocol and lock user funds. ### Impact Protocol may break in future for this collateral and block user funds deposited as collateral. Al...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 can be griefed due to lack of minimum size within the Loan and Offer ### Description _No response_ ### Impact Malicious aggregators to grief lenders and borrowers. ### Recommendation Having a maximum number of offers (e.g., 100) within a single Loan is insufficient to guard against this attack becau...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: `isLiquidatable()` May Return Incorrect Results ### Description **Update** The `Liquidator` now queries the `ClearingHouse` for the `maintenanceMarginRatio`. **File(s) affected:**`keeper/Liquidator.sol`, `ClearingHouse.sol` **Description:**`Liquidator.isLiquidatable()` returns true when a user's margin ratio...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: Unbounded loops ### Description The `Repo`s and the deployed `OptionContract`s are registered by pushing [the `Repo` structs](https://github.com/opynfinance/Convexity-Protocol/blob/c34598565cba2bfcf824eb2da63d95c7f5dda4fa/contracts/OptionsContract.sol#L202) and [the contract addresses](https://github.com/opynf...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: | Access Modifiers ### Description **Description** Throughout the contract there are several require statements that assert the `msg.sender` is the `tempAdmin`. These `require` statements can be deduplicated into a single `onlyTempAdmin` modifier that can be used on each of these functions. **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
overflow
true
false
## High: UNABLE TO CLAIM PAYOUTS ### Description The `getExcludedCoverageOf` and `getClaimableOf` can be deadlocked since the `voteTimestamp` is used without verification whether the last incident is on vote state or not those returning `voteTimestamp` of 0 and causing the `_getEOD` to underflow. Furthermore, the repo...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `ReseedSilo` does not set the necessary user variables ### Description `ReseedSilo` does not set the necessary user variables ### Impact Loss of funds
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: `processBurns` can be front-run with `cancelBurn` causing failure of RLP batch burning ### Description `LPExternalRequestsManager.sol#L409-L423` `LPExternalRequestsManager.sol#L329-L344` The `LPExternalRequestsManager` contract's `processBurns` method, which processes an epoch's selected batch of RLPs to 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
other
false
false
## Low: Storage `\_\_gap` is misplaced ### Description The contracts `VeQoda` and `RewardDistributor` are upgradeable contracts, and therefore, it is recommended to use the `__gap` state variable to ensure that the state of the contract will be preserved across upgrades. However, it was identified that the `uint256[5...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: Users cannot make compensation when the due date is within the minimum tenor period ### Description *Note: At the judge’s request [here](https://github.com/code-423n4/2024-06-size-findings/issues/127#issuecomment-2244619915), this downgraded issue from the same warden has been included in this report for compl...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
true
## Medium: Front-running pool’s initialization can lead to draining of liquidity provider’s initial deposits ### Description A front-run on `UniswapV3Pool.initialize` allows an attacker to set an unfair price and to drain assets from the first deposits. `UniswapV3Pool.initialize` initiates the pool’s price: ```solidi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: Activate the Optimizer ### Description Before deploying your contract, activate the optimizer when compiling using `solc --optimize --bin sourceFile.sol`. By default, the optimizer will optimize the contract assuming it is called 200 times across its lifetime. If you want the initial contract deployment to 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
high
rounding
true
true
## High: OrderNFT theft due to controlling future and past tokens of same order index ### Description The order queue is implemented as a ring buffer. To retrieve an order (`Orderbook.getOrder`), the index in the queue is computed as `orderIndex % _MAX_ORDER`. The owner of an `OrderNFT` also uses this function. ```so...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
access-control
true
false
## Low: Access Control ### Description ## Increase Oracle Length The `increase_oracle_length` function in Oracle is utilized to incorporate new sample slots into the oracle. It may be accessed by anyone, which might result in unnecessary addition of samples, causing the predefined maximum length (`MAX_ORACLE_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
initialization
true
false
## Low: Inaccurate Depth Docstring ### Description ## ConcurrentMerkleTreeHeader Documentation The docstring above `ConcurrentMerkleTreeHeader` definition is presented below. ## File: concurrent_merkle_tree_header.rs However, it is possible to initialize and operate on `Concurrent Merkle Tree` with depth equal 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
token
true
false
## Low: Implement SafeERC20 to avoid non-zero to non-zero approvals ### Description ## Severity: Low Risk **Context:** TransferHelper.sol#L12-L13 The current function allows for non-zero to non-zero approvals; however, some ERC20 tokens would revert in such cases. Reference: approval race protections. ## Recommend...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: Incomplete mapping updates in `setVault` function cause vault address inconsistencies ### Description The `RWASegWrap::setVault` function allows admins to update the vault address for a specific vault ID, but it fails to properly maintain the bidirectional mapping between vault addresses and vault IDs. The fun...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The _calculatePendingRewards can run out of gas ### Description The reward rate in STokens can be changed, and the history of these changes are stored in the contract: **code/contracts/STokensV2.sol:L124-L139** ``` function setRewardRate(uint256 rewardRate) public virtual override returns (bool succ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: Storage variables are never used. ### Description **Description** AutoCompounder.sol: 'rdntToken', 'IpTokenAddress', 'baseToRdnt'. Eligibility DataProvider.sol: 'baseToken PriceInUsd ProxyAggregator'. Disqualifiers.sol: treasury`. MiddleFee Distribution.sol: 'minters', 'mintersAreSet'. Variables are never...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `Funding.claimAssetToTreasury()`: `asset` should get cached ### Description See `@audit` tag:
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
front-running
false
false
## Low: Slippage protection in SwitchCollateralRouter.execute() ### Description The `SwitchCollateralRouter` and associated dexters don't enforce slippage protection themselves. Instead, the slippage protection happens within the `switchCollateral()` function in `CrossMarginService`. This serves as the primary mechani...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Legitimate pools can be taken over and the penalty is not fair. ### Description In [GoatV1Pair.takeOverPool()](https://github.com/sherlock-audit/2024-03-goat-trading/blob/main/goat-trading/contracts/exchange/GoatV1Pair.sol#L453-L538), a malicious user can take over pool from a legitimate user, because the m...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
liquidation
true
false
## Medium: timeToEpochEnd calculates backwards, breaking protocol math ### Description When a lien is liquidated, it calls `timeToEpochEnd()` to determine if a liquidation accountant should be deployed and we should adjust the protocol math to expect payment in a future epoch. Because of an error in the implementation...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
cross-chain
false
false
## High: Users will lose funds due to token decimal mismatches across chains ### Description The lack of decimal normalization in cross-chain token transfers will cause users to lose significant funds, as borrowers will receive incorrect amounts when borrowing across chains with different token decimals. ### Impact 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
cross-chain
false
false
## Low: Misleading range / incorrect error message in `getRequestsByIdRange` ### Description If the caller specifies `start` = `end`, which may be intention to obtain exactly one item, they receive the `start > end` error, which is misleading and incorrect. Related code: https://github.com/fbtc-xyz/fbtc-contract/blob...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: | Unexpected Rewards ### Description **Description** The allowance is used to determine how much WETH to inject into the `Rewards` system and it is incremented based on the current balance of the `TransferReceiver`. However the balance of the `TransferReceiver` can be inflated by transferring WETH directly...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Accidental call of addQuest could block contracts ### Description The `addQuest()` function uses an `onlyAllowed` access control modifier. This modifier checks if `msg.sender` is `questBoard` or `owner`. However, the `QuestBoard.sol` contract has a QuestID registration and a token whitelisting mechanism whi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: Uninitialized `maturityDate` in `Strategy.create()` ### Description The `Strategy.create()` function declares a `maturityDate` return value but never initializes or sets it. This uninitialized value, which defaults to `0`, is returned and passed through to `OperationalTreasury._buy()`, where it's emitted via 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
rounding
true
false
## Medium: `MagnetarHelper.getFractionForAmount` uses the wrong rounding and will yield the wrong result ### Description `MagnetarHelper.getFractionForAmount` is used to determine the `fraction` (shares) that will be received when an `amount` is deposited. The code needs to compute the `totalShares` and then determine...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Managed Pools are still undergoing development and may contain bugs and/or significant changes ### Description The ManagedPool smart pool implementation of WeightedPool is still in active development by the Balancer team and could have unknown bugs. Additionally, the current version in Balancer’s GitHub is di...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
true
false
## Medium: Booster's shutdownPool can freeze user funds ### Description _Submitted by hyh, also found by jonatascm_ `shutdownPool()` marks shutdown successful even if it's not (i.e. when withdrawAll() call wasn't successful). As withdrawing logic expect that the pool in shutdown has already provided the funds, and ma...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
true
false
## Medium: JIT penalty on fresh fees can be bypassed ### Description Collect path pays without JIT penalty and resets the age. [MakerFacet.collectFees](https://github.com/sherlock-audit/2025-09-ammplify/blob/main/Ammplify/src/facets/Maker.sol#L131-L155) computes the owed fees via a full walk, settles them to the user,...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: A possible transfer of funds of another athlete ### Description There is no check that an athlete has already transferred funds to the contract here: https://github.com/FantiumAG/smart-contracts/blob/a2d126453c1105028f12277b8f342d2cdbf01a77/contracts/claiming/FantiumClaimingV1.sol#L624-L652 It means that the...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
false
false
## Medium: Users Can Reset Bond Depositor’s Vesting Period ### Description ## Handle leastwood ## Vulnerability details ## Impact The `VaderBond.deposit()` function overwrites a depositors bond info on each call with the updated `payout` information. If any of the vesting is left unclaimed before a call to `depos...
0