prompt listlengths 2 2 | source stringclasses 3
values | severity stringclasses 5
values | category stringclasses 186
values | has_code bool 2
classes | has_poc bool 2
classes | reference_response stringlengths 23 5k | firm stringclasses 26
values | quality_score float64 0 5 | protocol stringclasses 398
values |
|---|---|---|---|---|---|---|---|---|---|
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | overflow | true | false | ## Low: `UpdateWeightRunner::performUpdate` reverts on underflow when new multiplier is zero
### Description
**Description:** In [`UpdateWeightRunner::_calculateMultiplerAndSetWeights`](https://github.com/QuantAMMProtocol/QuantAMM-V1/blob/7213401491f6a8fd1fcc1cf4763b15b5da355f1c/pkg/pool-quantamm/contracts/UpdateWeigh... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Bond max-buyer might end up buying the max buy of the next epoch
### Description
The `MuteBond.deposit()` function allows users to specify the amount of value they want to purchase bonds for or to set `max_buy` to true.
If `max_buy` is set to true the amount specified in the `value` parameter is ignored and i... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | storage | false | false | ## Low: [14]
### Description
`initiateHomeFi` is documented with "Can only be called by HomeFiProxy owner", but this is not true. The function is callable by anyone and sets the owner. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | false | false | ## Medium: Lack of event emission after rebalancing fixed borrow rate
### Description
The [`rebalanceFixedBorrowRate` function](https://gitlab.com/aave-tech/dlp/contracts/blob/1f8e5e65a99a887a5a13ad9af6486ebf93f57d02/contracts/lendingpool/LendingPool.sol#L493) in the `LendingPool` contract allows anyone to rebalance 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 | liquidation | false | false | ## Low: [05] Users with 1 to 1 liability and collateral ratio can still be liquidated
### Description
### Finding description and impact
In `create_user_liq_auction_data`, it’s intended that a user has less collateral than liabilities before he can be liquidated. However, due to incorrect check, a user could have sam... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `BaseGauge` users can claim rewards without staking
### Description
The `BaseGauge::earned()` function incorrectly calculates rewards based on user's veRAAC balance and total staked amount, rather than the user's staked amount. This allows users with veRAAC tokens to claim rewards without staking, effectively... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | high | signature | true | true | Source: https://github.com/sherlock-audit/2023-02-hats-judging/issues/50
## Found by
bin2chen, roguereddwarf
## Summary
This report deals with how the `HatsSignerGate` and the `Safe` check signatures differently which opens the door to exploitation.
I will show how this allows a valid signer that has become invali... | Sherlock | 5 | Hats |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `ConfigurablePause._grantGuardian` naming could be changed to `setGuardian`
### Description
Grant Guardian is setting to address(0) as well, meaning it's also a revoke, `setGuardian` seems to be most appropriate | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Typos
### Description
maintaings
[FlywheelCore.sol#L17](https://github.com/fei-protocol/flywheel-v2/tree/77bfadf388db25cf5917d39cd9c0ad920f404aad/src/FlywheelCore.sol#L17)
rewardsPerToken
[FlywheelCore.sol#L262](https://github.com/fei-protocol/flywheel-v2/tree/77bfadf388db25cf5917d39cd9c0ad920f404aad/src/Fly... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unindexed events Or Missing events
### Description
**Severity**: Informational
**Status**: Resolved
**Description**
In Contract TradableSideVault, none of the events have indexed parameters. Most user actions are initiated from this contract only so it is advised to make the `user` parameter indexed in even... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Vault checkpoints slightly incorrect conversion from assets to shares leads to slow loss of funds for long-time vault depositors
### Description
When vault checkpoints convert assets to shares (specifically used to calculate user's shares for their deposit), it uses the following formula:
`shares = (assets[... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Integrate Dependabot to Identify Out-of-Date Software Dependencies
### Description
Currently, the Core Chain lacks an automated mechanism to identify and alert the development team about out-of-date software dependencies. Outdated dependencies can pose security risks, introduce compatibility issues, and hinder... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Users that create ask orders cannot modify minPercentageToAsk
### Description
Users who sell their NFTs on LooksRare are unable to protect their orders against arbitrary changes in royalty fees set by NFT collection owners; as a result, users may receive less of a sale’s value than expected.
Ideally, when a u... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: DoS in Governance with Empty Collections Array . . . . . . .
### Description
## Governor Contract Mutex Issue
In the Governor contract, voting uses the `changeLive` value in `AbacusController` as a mutex. The proposing function locks the mutex, meaning that only the accepting and rejecting functions can re... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | liquidation | false | false | ## Medium: `getSharesForAmount` returns wrong value when `totalAssets == 0`
### Description
_Submitted by cmichel_
The [`getSharesForAmount`](https://github.com/code-423n4/2022-03-prepo/blob/f63584133a0329781609e3f14c3004c1ca293e71/contracts/core/Collateral.sol#L328) function returns `0` if `totalAssets == 0`.
Howev... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing Upper cap on Admin fees
### Description
The `setAdminFeeRate` function allows the admin to set the fee rate to `BASIS_POINTS_SCALE-1`, which effectively directs nearly all interest to the admin as fees.
```solidity
function setAdminFeeRate(uint32 rate) external {
if (msg.sender != _admin) revert Inv... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Sending tokens close to the maximum will fail and user will lose tokens
### Description
_Submitted by pedroais, also found by WatchPug_
[LiquidityPool.sol#L171](https://github.com/code-423n4/2022-03-biconomy/blob/04751283f85c9fc94fb644ff2b489ec339cd9ffc/contracts/hyphen/LiquidityPool.sol#L171)
[LiquidityPo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Avoid contract existence checks by using low level calls
### Description
Prior to 0.8.10 the compiler inserted extra code, including EXTCODESIZE (100 gas), to check for contract existence for external function calls. In more recent solidity versions, the compiler will not insert these checks if the external ca... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | cross-chain | false | false | ## Medium: Security Council Can Keep Protocol in Frozen State
### Description
The `ProtocolUpgradeHandler` enables the Security Council to freeze the protocol as an emergency response measure. This will pause the functionality of all hyperchains and the bridge. The intention with this power is to allow the Security Co... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | access-control | false | false | ## Medium: Vulnerabilities in Deposit Limit Enforcement and the Impact on Failed Deposits
### Description
1. **Users Failed Deposits:** If a token has no deposit limitation initially and a user's deposit transaction fails, they may not be able to claim their failed deposits later if a deposit limit is imposed on 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 | low | oracle | false | false | ## Low: Missing documentation
### Description
Several functions within the codebase have missing or incomplete documentation:
In PR [#4110](https://github.com/UMAprotocol/protocol/pull/4110):
* The [`_stakeTo`](https://github.com/UMAprotocol/protocol/blob/f94bc66a55fc1ad3ab63fca829d711373f9a953a/packages/core/cont... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Potential Old Data Processing
### Description
An issue has been discovered within the `handle` function of the `PushOracleReceiver` contract. The function is responsible for processing incoming oracle data messages. The issue arises due to the potential for an old message to be processed if it was previously ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Incorrect slippage check in `removeLiquiditySingle`
### Description
In the `removeLiquiditySingle` function, the slippage check incorrectly uses a strict inequality, causing the function to revert if the `_tokenOutAmount` is exactly equal to `minTokenOutAmount_`. This behavior is inconsistent with typical slip... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Actual yield source check on address will succeed for non-existent contract
### Description
_Submitted by 0xRajeev_
Low-level calls `call`/`delegatecall`/`staticcall` return true even if the account called is non-existent (per EVM design). [Solidity documentation](https://docs.soliditylang.org/en/v0.8.6/co... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | token | false | false | ## Low: Unreleased ERC20
### Description
**Description**
The PaymentSplitPassport contract contains methods for ERC20 tokens, but the general scheme for managing funds in other contracts (MetropolisWorldPassport) does not have the ability to buy for ERC20, as well as send ERC20 to the PaymentSplitPassport contract. I... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | access-control | true | false | ## Medium: Inconsistent lower bounds on collateral weights
### Description
The lower bound on a collateral asset’s initial weight (when the collateral is first whitelisted) is different from that enforced if the weight is updated; this discrepancy increases the likelihood of collateral seizures by liquidators. A colla... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Margin accounts can be registered with suspended agreements
### Description
The registration logic for margin accounts lacks a check to ensure the assigned agreement contract is not suspended. The agreement contract inherits OpenZeppelin’s PausableUpgradeable library, which allows the contract to be paused ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing accesscontrol in afterlockupdate
### Description
The `afterLockUpdate` function in the provided `ZLRewardsController.sol` contract is intended to update a user's registered balance after locking, unlocking, or modifying a lock. However, a critical security vulnerability arises from the absence of suff... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | Validation | false | false | ## Security Assessment Report
## Severity
**Medium Risk**
## Context
`BridgeFacet.sol#L828-L835`
## Description
The `xReceive` function on the receiver side can contain unreliable code which the Relayer is unaware of. In the future, more relayers will participate in completing the transaction.
Consider the followi... | Spearbit | 5 | Connext |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Typos and Bad NATSPEC
### Description
**Description:** We have identified the following typos/NATSPEC problems:
**Strata:**
Fix in commit [506c4c](https://github.com/Strata-Money/contracts-tranches/commit/506c4c744dc6dea538bb8b69dade114bee1aeb5e) by correcting Typos and updating Natspec.
**Cyfrin:** Verifie... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Precision loss causes minor loss of FLUX when claiming with NFTs
### Description
Report type: Smart Contract
Target: https://github.com/alchemix-finance/alchemix-v2-dao/blob/main/src/FluxToken.sol
Impacts:
- Contract fails to deliver promised returns, but doesn't lose value
## Description
## Brief/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 | low | rounding | true | false | ## Low: Incorrect Token Amount Calculation in Distribution Logic
### Description
There is a precision issue in the `claimAndDistribute()` function of the `QueuePlugin` contract. The function calculates a treasury fee and distributes it between treasury and developer addresses, but when determining the remaining amount... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing transaction validation of EIP-7623 data floor gas in consensus
### Description
The consensus code present in `monad-eth-block-policy` is missing transaction static validation of **EIP-7623: Data Floor Gas**, which changes calldata pricing for transactions with large calldata. This is a problem because ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Multiple onramps can have the same scriptPubKeyHash
### Description
**Severity**
**Impact:** High
**Likelihood:** Low
**Description**
Each onramp contract has `scriptPubKeyHash` address which users deposit to those addresses to bridge their BTC, the issue is that the code doesn't check to make sure diff... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | token | false | false | ## Medium: Fee-On-Transfer tokens are not explicitly denied in swap()
### Description
The `theswap()` function is used extensively within the Connext protocol, primarily when swapping between local and adopted assets. When a swap is performed, the function checks the actual amount transferred. However, this is not 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 | low | other | false | false | ## Low: Unused `REWARDS_TOKEN` Variable
### Description
This issue has been identified within the `DIARewardsDistribution` contract.
The `REWARDS_TOKEN` variable is declared as an immutable public variable but is not used anywhere in the contract.
The issue is classified as **Low** severity because unused variables ca... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | token | false | false | ## Medium: Incorrect names provided in `RegisterConcrete` calls break `LegacyAmino` signing method
### Description
One of the breaking changes introduced with the Cosmos SDK v0.50.x upgrade is [a change in the codec used for Amino JSON
(de)serialization](https://github.com/cosmos/cosmos-sdk/blob/release/v0.50.x/UPGRAD... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Key files may be deleted without authorization during wallet import
### Description
Importing two wallets with the same account ID in rapid succession (within a second) will result in the unauthorized deletion of the earlier-imported wallet.
When a wallet is imported into Parity, it is stored on the filesyste... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | cross-chain | true | false | ## High: Multiple issues with decimal scaling will cause incorrect accounting of hTokens and underlying tokens
### Description
### Lines of code
### Vulnerability details
Functions `_normalizeDecimals()` and `_denormalizeDecimals()` are used to handle non-18 decimal tokens when bridging a deposit by scaling them to... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: `ETHCrowdfundBase.sol`: All funds are lost when fee recipient cannot receive ETH
### Description
In the [`ETHCrowdfundBase`](https://github.com/code-423n4/2023-04-party/blob/main/contracts/crowdfund/ETHCrowdfundBase.sol) contract a [`fundingSplitRecipient`](https://github.com/code-423n4/2023-04-party/blob/4... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect operator used in deploySynth() of Pools.sol
### Description
## Handle
0xRajeev
## Vulnerability details
## Impact
The deploySynth() function in Pools.sol is expected to perform a check on the token parameter to determine that it is neither VADER or USDV before calling Factory’s deploySynth() ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Floating Pragma
### Description
**Severity**: Informational
**Status**: Acknowledged
**Description**
Throughout the codebase, the contracts that are unlocked at version ^0.8.12, and they should always be deployed with the same compiler version. By locking the pragma to a specific version, contracts 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 | high | rounding | true | true | ## High: Precision Truncation on Stake May Lead to Improper Accounting and Protocol Insolvency
### Description
In the `StakingManager` contract, `_distributeStake` sends HYPE to the L1 via:
```solidity
(bool success,) = payable(L1_HYPE_CONTRACT).call{value: truncatedAmount}("");
```
The `truncatedAmount` is derived ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | timing | true | false | ## Low: Use timestamp instead of uri length to test of existing document in `DocumentManager`
### Description
Use timestamp instead of uri length to test of existing document in `DocumentManager`:
```diff
- if (bytes($._documents[docHash].docURI).length == 0)
- revert EmptyDocument();
+ if ($._do... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Selectors for `Bera_Module::bera_kodiakv2_swap` and `bera_kodiakv3_swap` needs to be separately added
### Description
**Description:** In `Strategy::constructor` almost all existing facet selectors are added to the `s.selectors` mapping, which is then used by the fallback function to direct the call to the cor... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect deployment/missing contract will break functionality
### Description
The kerosene manager is the contract responsible for managing kerosene prices. In the current state it has broken functionality due to the design. The `KeroseneManager` contract contains a list of vaults.
When we look at `Unboun... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | front-running | true | false | ## High: Selling sUSDe is vulnerable to sandwich attack when staked token is DAI
### Description
The protocol has functionality that makes a trade in 2 parts (legs). It only has slippage protection in the second part, but the second part is only executed in certain conditions, leaving the trade without slippage protec... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | Business Logic | true | true |
A contributor won't get an NFT they're eligible for if the payment is made through a payment terminal that's supported by the project but not by the NFT delegate.
### Proof of Concept
A Juicebox project can use multiple [payment terminals](https://info.juicebox.money/dev/learn/glossary/payment-terminal) to receive c... | Code4rena | 4 | Juicebox |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Value mistakenly sent to `PoolCreator` can be permanently locked
### Description
**Description:** The `PoolCreator` is a simple contract designed to create Uniswap v4 pools. The `createPool()` function is currently marked `payable`, however this is not necessary as no value is passed to `PoolManager`:
Due to... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | false | false | ## Medium: Missleading onlyDAO modifiers
### Description
## Handle
cmichel
## Vulnerability details
Several contracts implement an `onlyDAO` modifier which, as the name suggests, should only authorize the function to be executed by the DAO.
However, some implementations are wrong and either allow the DAO or the de... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Signature replay attacks for different identities (nonce on wrong party)
### Description
_Submitted by cmichel, also found by WatchPug_
A single `QuickAccount` can serve as the "privilege" for multiple identities, see the comment in `QuickAccManager.sol`:
> NOTE: a single accHash can control multiple identi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | false | false | ## High: Decrease in the amount of tokens during exchange due to arithmetic overflow of a variable
### Description
At the lines:
- https://github.com/1inch/1inch-contract/blob/93868c483180cf74fc2551568f0396938b3eeaa8/contracts/UnoswapV3Router.sol#L166 и
- https://github.com/1inch/1inch-contract/blob/93868c483180cf74f... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: LiquidityProviders: Setting new LP token will break contract
### Description
## Lines of code
https://github.com/code-423n4/2022-03-biconomy/blob/db8a1fdddd02e8cc209a4c73ffbb3de210e4a81a/contracts/hyphen/LiquidityProviders.sol#L116
## Vulnerability details
## Impact
Owners can change the `lpToken` varia... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Improper Calculation in Liquidation
### Description
## Incorrect Share Settlement Calculation in `profile.move`
In `profile.move`, the amount of shares that need to be settled is calculated incorrectly. In the else case of the liquidation function, the `settle_share_amount` should be calculated from the `rep... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [10]
### Description
VariableSupplyERC20Token contract mentions an incorrect comment
Token can be made burnable in which users can be allowed to burn their own tokens. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Locked BNB in Contract
### Description
There are multiple occurrences in [`SwapRouter.sol`](https://github.com/VenusProtocol/venus-protocol/blob/e5f112ac6f8cb9e5dcf760ad3626c9f3fc43609c/contracts/Swap/SwapRouter.sol) where ETH can become locked. For instance:
* [`swapExactTokensForBNBAndRepay`](https://githu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: All claimed rewards will be lost for the users using the account abstraction wallet
### Description
Users with account abstraction wallets have different addresses across different chains for the same account, so if all rewards are claimed for someone using an account abstraction wallet, the rewards will be 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 | other | false | false | ## Medium: Call to non-existing contracts returns success
### Description
_Submitted by CertoraInc, also found by kenta and wuwe1_
[LiquidityFarming.sol#L140](https://github.com/code-423n4/2022-03-biconomy/blob/04751283f85c9fc94fb644ff2b489ec339cd9ffc/contracts/hyphen/LiquidityFarming.sol#L140)
[LiquidityFarming.sol#... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | true | false | ## Low: [15]
### Description
At [Line 82](https://github.com/code-423n4/2022-09-vtvl/blob/f68b7f3e61dad0d873b5b5a1e8126b839afeab5f/contracts/VTVLVesting.sol#L82) of `VTVLVesting.constructor()`, a better check would be to do `_tokenAddress.totalSupply()`. As this will also ensure that the input address in indeed a toke... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | access-control | true | false | ## Medium: The owners of a rental safe can continue to use the old guard policy contract for as long as they want, regardless of a new guard policy upgrade
### Description
Policy contracts such as Guard.sol can be upgraded when needed. However, there is a vulnerability in existing implementation of Guard policy, 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 | low | other | true | false | ## Low: Incomplete NatSpec `@return` from function declaration
### Description
Some functions have an incomplete NatSpec: add a `@return` notation to describe the function return value to improve the code documentation.
*There are 8 instances of this issue.*
--- | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Use PINTO_PROTOCOL.withdrawDeposits() whenever it's possible
### Description
Currently, you loop over every deposit and make a single transfer. However, the Pinto protocol has a special function to transfer a batch of deposits called `withdrawDeposits()`.
### Recommendation
Instead of the following code:
```s... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | access-control | false | false | ## Medium: Expired and/or paused options can still be traded
### Description
Every `Option` contract has an expiry date, [set during initialization](https://github.com/primitivefinance/primitive-protocol/blob/78a8e64b7618e9199203ab84042876c580ae1e90/packages/primitive-contracts/contracts/option/primitives/Option.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 | high | front-running | true | false | ## High: `refinanceFull`/`addNewTranche` reusing a lender's signature leads to unintended behavior
### Description
### Vulnerability details
In `MultiSourceLoan`, `refinanceFull()` and `addNewTranche()` use the same signature.
So when `lender` signs `RenegotiationOffer`, it is meant to replace `tranche`, i.e. execu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unintended Mutual Exclusion Sharing
### Description
## Vulnerability in Tree Copy
The vulnerability lies in copy within tree and is associated with utilizing a common mutual exclusion (mtx) for both the original tree and its copy. Sharing the same mutual exclusion among multiple trees introduces a risk, wher... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unused events
### Description
Unused events increase contract size at deployment. Multiple events in `NFTXMintRequestEligibility.sol` listed on the issue page. Recommend removing unused events or emit at appropriate places.
**- [0xKiwi (NFTX) confirmed](https://github.com/code-423n4/2021-05-nftx-findings/issu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect access control in receiveMessage leads to total loss of funds
### Description
Report type: Smart Contract
Target: https://testnet.snowtrace.io/address/0xa9491a1f4f058832e5742b76eE3f1F1fD7bb6837
Impacts:
* Direct theft of any user funds, whether at-rest or in-motion, other than unclaimed yield
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Imports should be organized more systematically
### Description
The contract's interface should be imported first, followed by each of the interfaces it uses, followed by all other files. The examples below do not follow this layout.
*There are 4 instances of this issue.*
--- | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | dos | true | false | ## Low: Unnecessary division before multiplication
### Description
When fixed claimers decide their premium they take that as a share of the variable side:
This calculation does division before multiplication which results in a small loss of precision (the smaller the balance of the claimee, the greater the loss of ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Statistics for auctionWins and auctionFails are inaccurate
### Description
The function `_assign()` keeps statistics for `auctionWins` and `auctionFails`. The inverse function `_credit()` doesn't keep statistics.
```solidity
function _assign( /*...*/ ) /*...*/ {
// ...
if (solverWon) {
aData.auctionWins... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | Grief Attack | true | false | Source: https://github.com/sherlock-audit/2022-09-sherlock-judging/tree/main/017-M
## Found by
hyh
## Summary
As TrueFiStrategy net asset value reported with _balanceOf() depends on the TrueFi liquidity situation, which can be modified by any user eligible for TrueFi loans, a griefing attack of borrowing right ahe... | Sherlock | 5 | Sherlock |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | false | false | ## Low: In `StandardToken::updateNameAndSymbol` cache existing name and symbol then pass them to child functions
### Description
`StandardToken::updateNameAndSymbol`:
* reads the existing `name` and `symbol`
* calls `CommonUtils.isEqualString` to compare existing to proposed new
* if different, calls `_updateName` 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 | initialization | true | false | ## Medium: Missing cleanup of certain registered data when burning an NFT
### Description
For `GigaNameNFT`, when minting, `IS_GIGA_NAME_CID`, `NAME_CID`, and `INITIALIZED_CID` are set. However, these data entries are not removed upon burning the NFT.
```solidity
function _initializeTraits(uint256 tokenId, string 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 | overflow | true | false | ## Low: Non-safe operations used in safe routes
### Description
## Severity: Low Risk
**Context:**
- `FixedPointMath.sol#L382-L384`
- `LPMath.sol#L1001`
- `LPMath.sol#L1071`
**Description:**
In `calculateDistributeExcessIdleShareProceeds`, we have the following code blocks:
And the implementation of `abs... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Users are likely to lose their bid if `purchaseToken` is a low-decimals token
### Description
**Impact:**
High, because users will lose their entire bid amount
**Likelihood:**
Medium, because it happens when `purchaseToken` is a low-decimals token, but those are commonly used
**Description**
When a user ca... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: Public functions can be marked as external.
### Description
**Description**
Functions initialize(), getRewardsLength(), getLockInfo(), getUserLocks(), getLockLength(),
getRewards(), addReward(), updateReward(), addLock(), compound(), updateLockAmount(),
updateLockDuration(), getUserClaimable(), claim(), un... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Loop optimization
### Description
**Description:**
When a loop iterates many times, it causes the amount of gas required to execute the function to increase significantly. In Solidity, excessive looping can cause a function to use more than the maximum allowed gas, which causes the function to fail.
For inst... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Staking is not used to calculate Arkouda tokens to be rewarded for owners, but number of days held.
### Description
**Recommendation**:
Add Staking Smart contract to repo and reimplement logic of Arkouda tokens minting. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: SubjectTypes.sol files unused ✓ Fixed
### Description
There is a rogue file `SubjectTypes.sol` that is not being utilized. It appears that its intended functionality is being done by the `SubjectTypeValidator.sol` file as it even has a contract with the same name implemented there.
### Recommendation
The unus... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | token | true | false | ## Gas: Refactor the code here to avoid storage readings
### Description
**Note: I've added some explanations as to how/why this would work**
https://github.com/code-423n4/2023-01-ondo/blob/f3426e5b6b4561e09460b2e6471eb694efdd6c70/contracts/lending/tokens/cToken/CTokenModified.sol#L1256-L1295
**1st instance**
The ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | token | true | false | ## Low: `withdrawETH` charges fees
### Description
The g8keepLiquidityLocker contract has functions to withdraw tokens deposited in the contract. Unlike ERC20, the ETH withdrawal function charges g8keep fees, even after the vesting period. Since the tokens transferred to the contract are not Uniswap V3 fees, charging ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | cross-chain | true | false | ## Low: Permit Functionality in sendTokensWithPermit
### Description
The `BridgeEVM::sendTokensWithPermit` function processes a permit, suggesting support for third-party transfers.
* However, in the `_sendTokens` function (called by `sendTokensWithPermit`), tokens are always transferred from and burned from the `msg... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: `LockUpManager::LockUpStorage::_regLockUpTime` is never used
### Description
`LockUpManager::LockUpStorage::_regLockUpTime` is never used:
```solidity
$ rg "_regLockUpTime"
RWAToken/LockUpManager.sol
36: uint32 _regLockUpTime; //lock up time for foreign to domestic trades
```
Either remove it or add a ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | token | false | false | ## Low: Spells make assumptions about underlying collateral
### Description
Throughout the spell contracts – namely [`UniswapV2SpellV1`](https://github.com/AlphaFinanceLab/homora-v2/blob/5efa332f2ecf8e9705c326cffda5305bc6f752f7/contracts/spell/UniswapV2SpellV1.sol), [`SushiswapSpellV1`](https://github.com/AlphaFinance... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | timing | true | false | ## Low: Improve `PriceStorage` storage packing
### Description
* `PriceStorage::upperBoundPercentage` and `lowerBoundPercentage` can be safely declared as `uint128` to pack them into the same storage slot:
```diff
- uint256 public upperBoundPercentage;
- uint256 public lowerBoundPercentage;
+ uint128 public upperBound... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: User May Lose Their Fund when Transferring Them From Layer1 to Layer2 with Insufficient Gas Provided
### Description
**Update**
2021-08-03: the admin team stated that "With retryable tickets, there is no risk due to insufficient gas. The only risk is if the maxSubmissionCost to create a retryable ticket is too... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | token | true | true | ## Low: Cross-chain blocked recipients aren't properly handled
### Description
The `MToken` contract implements a blocking mechanism to prevent certain addresses from interacting with the token. However, the cross-chain functionality doesn't properly handle blocked addresses.
There are two key issues:
1. In `MToken:... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Consider using `<` instead of `<=` for expiry checks
### Description
Consider using `<` instead of `<=` on Line 625 below. From the frontend, we might just want the signature to be valid for the current block. So we just use `block.timestamp` but currently it requires `expiresIn` to be greater than `block.time... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Corruptible Upgradability Pattern
### Description
Storage of DepositVault/RedemptionVault/mTBILL contracts might be corrupted during an upgrade.
### Impact
Storage of DepositVault/RedemptionVault/mTBILL contracts might be corrupted during upgrading.
### Recommendation
Add gaps for non pure-function 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 | initialization | false | false | ## Low: Code Refactoring
### Description
## Code Review Findings
## Unbounded Iteration in `RemoveExpiredTokenizeShareLocks`
`RemoveExpiredTokenizeShareLocks` has an unbounded iteration, as the list of addresses with locks may grow indefinitely. Calling this function in ABCI goes against best practices. In the worst... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Cannot Create Quests without Items
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `eacc01d66462e85967df2acaef53161d2af0d532`. The client provided the following explanation: We no longer allowed uncapped Quests. In reality, it will be more frequent that we create Quests with no items ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | token | false | false | ## High: F Transfer Access List Can Be Bypassed
### Description
The [`ERC721F`](https://github.com/fireblocks/reference-protocols/blob/e7003dfb9d89aa4b314a7428cbc59d07f178fd76/protocols/contracts/ERC721F.sol) contract implements logic to verify whether the sender and recipient have access. This functionality is introd... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Wrong comment of `toBorrowAmount` function
### Description
The function `toBorrowAmount` is wrongly commented.
**Affected source code:**
- [FraxlendPair.sol#L187-L190](https://github.com/code-423n4/2022-08-frax/blob/c4189a3a98b38c8c962c5ea72f1a322fbc2ae45f/src/contracts/FraxlendPair.sol#L187-L190)
### Recom... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `updateSystemSnapshots_excludeCollRemainder` lacks access control
### Description
**Impact**
The function `updateSystemSnapshots_excludeCollRemainder` doesn't have access control meaning that stakes can be manipulated
I found this by running invariant tests, with the simple check that no call should ever su... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `call_result_write` import can be exploited for unmetered execution and memory growth
### Description
Unlike the other core Tally imports, [`call_result_write`](https://github.com/sherlock-audit/2024-12-seda-protocol/blob/main/seda-wasm-vm/runtime/core/src/core_vm_imports/call_result.rs#L17-L33) does not call... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Relocking through MFDBase::claimBounty() leads to accounting error and causes funds loss
### Description
Whenever a user stakes, the amount is staked in the gauge. Whenever a user withdraws, the amount is unstaked from the gauge. However, when `MFDBase::claimBounty()` is called and the amount is relocked, it ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | dos | true | false | ## Low: Predecessor Verification Can Be Bypass in Some Cases
### Description
The function `isOperationDone(predecessor)` only checks if the predecessor operation was executed.
* However, if an operation is scheduled but later canceled, `executeBatch()` does not check if the predecessor was canceled.
* This allows a 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 | initialization | true | true | ## Medium: Wrong ProfitManager in GuildToken, will always revert for other types of gauges leading to bad debt
### Description
### Line of code
### Impact
In `GuildToken.sol`, there's a mistake where `profitManager` is set in the constructor. This is problematic because different markets have different `ProfitManag... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Redundant check in code
### Description
The `_beforeValueTransfer` hook in `SemiFungible1155` has the `getBaseType(_to) > 0` check which always evaluates to `true` so it can be removed. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | medium | access-control | true | true | Source: https://github.com/sherlock-audit/2024-08-winnables-raffles-judging/issues/129
## Found by
0x0bserver, 0x73696d616f, 0xShahilHussain, 0xbrivan, Oblivionis, S3v3ru5, dimulski, jennifer37, neko\_nyaa
### Summary
A core invariant defined in the contest README is that:
> Admins cannot affect the odds of a raff... | Sherlock | 4 | Winnables Raffles |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.