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 | other | true | false | ## Low: LACK OF ZERO ADDRESS CHECKS
### Description
Hyphen contracts have address fields on multiple functions. These functions have missing address validations. Every address should be validated and checked that is different from zero. This is also considered a best practice.
During the test, it has seen some of the... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: One off error in block sync threshold check to sync chain data
### Description
The check should be _l1BlockId >= lastSyncedBlock + BLOCK_SYNC_THRESHOLD since threshold is the minimum threshold.
Same issue here: | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: CACHEABLE HTTPS RESPONSE
### Description
It was found that responses from `https://hsuite-finance.firebaseapp.com` may be cached by browsers. Unless directed otherwise, browsers may store a local cached copy of content received from web servers. Some browsers cache content accessed via HTTPS. If sensitive info... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Withdrawing A Partial Deposit Amount Leads To Loss Of Assets
### Description
The `Vault` contract allows users to send 2 types of withdrawal requests: withdraw vault shares for underlying tokens or withdraw their unprocessed deposits and reclaim their initial transfer.
The latter is done by first invoking `... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | false | false | ## Low: Contracts used as dependencies do not track upstream changes
### Description
The LooksRare codebase uses a third-party contract, **SignatureChecker**, but the LooksRare documentation does not specify which version of the contract is used or whether it was modified. This indicates that the LooksRare protocol 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 | high | initialization | true | false | ## High: GORPLES BRIDGE PROGRAM INITIALIZER CAN BE FRONT-RUN
### Description
The current implementation of the `Initialize` instruction in the `gorples-bridge` program lacks restrictions to ensure that it is signed by a known and trusted address, such as the program update authority.
This lack of validation could all... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Misleading and / or erroneous docstrings and comments
### Description
In the `OVM_CanonicalTransactionChain` contract:
* The comment in line [320](https://github.com/ben-chain/contracts-v2/blob/a935e276f5620b40802b52721e3474232e458f72/contracts/optimistic-ethereum/OVM/chain/OVM_CanonicalTransactionChain.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 | high | initialization | true | false | ## High: Early user can break `addLiquidity`
### Description
_Submitted by WatchPug_
In the current implementation, the first `liquidity` takes the `nativeDeposit` amount and uses it directly.
However, since this number (`totalLiquidityUnits`) will later be used for computing the `liquidity` issued for future `addL... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Fallback handler can call into sensitive functions of fallback handler itself
### Description
Nexus smart account allows installing fallback handlers to route calls to certain module contracts based on function selectors in supplied calldata. When such a handler is installed via `_installModule`, two selectors... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Consider using solady's `FixedPointMathLib`
### Description
Utilizing gas-optimized math functions from libraries like [Solady](https://github.com/Vectorized/solady/blob/main/src/utils/FixedPointMathLib.sol) can lead to more efficient smart contracts. This is particularly beneficial in contracts where these op... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | other | true | true | ## Lines of code
https://github.com/code-423n4/2022-12-gogopool/blob/aec9928d8bdce8a5a4efe45f54c39d4fc7313731/contracts/contract/MultisigManager.sol#L80-L91
## Vulnerability details
For every created minipool a multisig address is set to continue validator interactions.
Every minipool multisig address get assigne... | Code4rena | 5 | GoGoPool |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | oracle | true | false | ## Medium: PRICE MANIPULATION RISK IN STETHORACLE CONTRACT
### Description
If the owner's private key of the contract `StETHOracle.sol` gets stolen, or the owner himself acts maliciously, it is possible to directly manipulate the price oracle by calling the `setPrice()` function and updating the `lastGoodPrice` storag... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unsafe index handling in hexadecimal parsing
### Description
The `hexStringToBytes32` function in the **HexUtils** library does not properly validate the `idx` and `lastIdx` input indices. While it ensures that `lastIdx` does not exceed the string's length, it neglects to verify that `idx` is within bounds 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 | gas | other | true | false | ## Gas: `++i` costs less gas than `i++`, especially when it's used in `for`-loops (`--i`/`i--` too)
### Description
Saves **5 gas per loop**
*There are 21 instances of this issue:*
https:/github.com/code-423n4/2022-12-tigris/blob/496e1974ee3838be8759e7b4096dbee1b8795593/contracts/BondNFT.sol#L220
https:/github.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 | other | true | false | ## Low: The mint() function lacks swing price bonus calculation
### Description
The `mint()` function does not include the bonus calculation when swing pricing is enabled, while the `deposit()` function does implement this feature. This is done on purpose to save gas cost when the bonus is small. However, the differen... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | ## High: CelerIMFacet incorrectly sets RelayerCelerIM as receiver
### Description
When assigning a `bytes memory` variable to a new variable, the new variable points to the same memory location. Changing any one variable updates the other variable. Here is a PoC as a foundry test:
```solidity
function testCopy() publ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unnecessary IsAnyNegative check in delegated share removal
### Description
The `IsAnyNegative` check after share removal is redundant, as `Sub` will trigger a negative coin amount panic if any token balance drops below 0 anyway. Removing this check would save N reads for N delegated tokens to the operator, 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 | front-running | true | false | ## Low: Permit call success check enables front-running DoS
### Description
In the `IntentSource` contract's `fundIntent()` function, each permit call is required to succeed:
```solidity
for (uint256 i = 0; i < callsLength; ++i) {
Call calldata call = permitCalls[i];
(bool success, ) = call.target.call(call.data)... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: [30] Apply fixes to commented out bug cases
### Description
### Proof of Concept
Take a look at https://github.com/code-423n4/2024-03-zksync/blob/4f0ba34f34a864c354c7e8c47643ed8f4a250e13/code/contracts/ethereum/contracts/upgrades/BaseZkSyncUpgrade.sol#L67-L89
We can see that while upgrading, the call gets r... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Redundant/Unutilized Code
### Description
## Code Review Summary
1. **Unutilized Currency in Bid State**
- In the bidding process, `bid_state.currency` is currently unutilized.
2. **Redundant Condition in Shard Number**
- `shard_num` in `toolbox::common` has two conditions, but it will only ever match th... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | rounding | true | false | ## High: Vault can lose rewards due to lack of precision
### Description
Vault's storePriceAndRewards() can accrue no rewards as precision can be lost when price() has low decimals.
For example, price() has 6 decimals for Idle USDC and USDT strategies.
### Impact
Rewards can be lost for traders who allocated to prot... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Value of `totalProfit` might be wrong because of wrong logic in function `sellMalt()`
### Description
Contract `SwingTraderManager` has a `totalProfit` variable. It keeps track of total profit swing traders made during `sellMalt()`. However, the logic for accounting is wrong so it will not have the correct ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Duplicate Pool in Router Path Can Cause Transaction Failure
### Description
In the `_swap()` function in the `MobiusRouter` contract, there is an issue when the `poolPath` contains duplicate pool addresses. Each pool's `swap()` function is protected by the `conditionallySingleCallPerTransaction()` modifier,... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Token auctions may not cover entire collateral token deficits
### Description
Because of incorrect data validation, token auctions initiated to cover a specific deficit may not always cover the entire deficit amount.
When the system is not fully capitalized (i.e., the number of BUs held by the BackingManager c... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | true | false | ## Low: Deployment script requires unencrypted private keys
### Description
**Description:** Several deployment/ops scripts require private keys to be loaded from environment variables and used directly inside the script, e.g.:
Storing and loading raw private keys via `.env` (plain text) is an operational security r... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | initialization | true | false | ## Medium: BathBuddy contract’s vestedAmount function includes fees leading to users being disproportionately rewarded after whale withdraws
### Description
## Lines of code
https://github.com/code-423n4/2022-05-rubicon/blob/8c312a63a91193c6a192a9aab44ff980fbfd7741/contracts/peripheral_contracts/BathBuddy.sol#L103-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 | medium | other | true | false | ## Medium: Wrong funding index in settle when no base?
### Description
_Submitted by cmichel_
The `TracerPerpetualSwaps.settle` function updates the user's last index to `currentGlobalFundingIndex`, however a comment states:
> "// Note: global rates reference the last fully established rate (hence the -1), and not 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 | access-control | false | false | ## Low: Insu�cient event generation
### Description
Events generated during contract execution aid in monitoring, baselining of behavior, and detection of suspicious activity. Without events, users and blockchain-monitoring systems cannot easily detect behavior that falls outside the baseline conditions. Consequently,... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect Variable Names
### Description
## Code Improvement Suggestion
In `supra_registry::init`, the variables `pyth_registry` and `pyth_registry_cap` should be named `supra_registry` and `supra_registry_cap` respectively for better code clarity.
## Remediation
- Rename `pyth_registry` to `supra_registry`... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | overflow | false | false | ## Low: Downcasting without bounds checks [core]
### Description
The `StakeManager` contract downcasts the `amount` when [incrementing](https://github.com/eth-infinitism/account-abstraction/blob/8832d6e04b9f4f706f612261c6e46b3f1745d61a/contracts/StakeManager.sol#L63) or [decrementing](https://github.com/eth-infinitism... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Pragma version lock
### Description
**Severity**: Low
**Status**: Resolved
**Description**
It’s recommended to have the same compiler and flags that the contracts were tested with the most. This way, it reduces the risk of introducing unknown bugs by accidentally deploying with the latest version that might... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 not burn tokens from blacklisted addresses
### Description
**Description:** The `HilBTC.sol` contract contains a logical inconsistency in its `burnFrom()` function regarding blacklisted addresses. While the function grants the `owner` special privileges to burn tokens from any user without requiring ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [7]
### Description
Code of `AccountCodeStorage.getCodeHash()` and `AccountCodeStorage.getCodeSize()` would return wrong values for inputs that are larger than `2^161-1` because code convert the input to uint160 and then return value for that address so if the input was bigger than max value of the uint160 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 | reentrancy | true | false | ## Low: Ineffective Remaining dualCore Balance Check
### Description
In the `CoreVault` contract, the `withdrawDirect()` function attempts to ensure that a user’s remaining `dualCore` balance either meets a minimum threshold of 1 ether (in CORE equivalent) or is zero. However, this validation can be bypassed under cer... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Users can loose their Illuminate tokens if amount to redeem is greater than holdings[u][m]
### Description
When a user tries to redeem Illuminate tokens (using the Redeemer contract), the call will burn his/her illuminate tokens in exchange of zero underlying tokens if the amount to redeem exceeds the holdi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Undefined behavior and type confusion in db_metadata.hpp atomic_memcpy
### Description
`atomic_memcpy` aims to implement an atomic version of `memcpy` by casting the source and destination buffers as contiguous regions of `std::atomic` objects. Casting primitive types as objects bypasses object construction 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 | high | token | false | false | ## High: [Fixed] Malicious users could steal from the OptionsContract contract
### Description
The require statement in [Line 249 of OptionContract](https://github.com/opynfinance/Convexity-Protocol/blob/c34598565cba2bfcf824eb2da63d95c7f5dda4fa/contracts/OptionsContract.sol#L249) contract is not using the SafeMath lib... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | overflow | true | false | ## Medium: Chain halt by spamming deposits request with minimum staking amount
### Description
Deposits in Beacon Kit are never pruned (`pruning.go#L40-L56`) in order to be able to compute the hash tree root when proposing a block to set the `Eth1Data` field in the Beacon block. While this is by design, it presents an... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Static Rent Fee Misalignment with SHEEP Token Value in SheepDog Contract
### Description
In the SheepDog contract, the rent fee for protecting SHEEP tokens is defined as a static constant, TEN, set to 10 * 1e18 wGAS tokens per day, as calculated in the `getCurrentRent` function. This fixed fee does not adjust ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | other | false | false | Source: https://github.com/sherlock-audit/2023-03-sense-judging/issues/28
## Found by
Bauer, 0x52
## Summary
There are multiple functions that use quotes but that aren't payable. This breaks their compatibility with some quotes. As the [0x docs](https://docs.0x.org/0x-swap-api/guides/use-0x-api-liquidity-in-your-s... | Sherlock | 5 | Sense Update #1 |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: All fees accrue to minters, which can be forked to use platform without fees
### Description
All platform fees accrue on the minters, rather than the core `SoundEditionV1_2.sol` contract. These contracts allow the Sound team to set platform fees (both a percentage and a flat fee), and then withhold them fro... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | overflow | false | false | ## Medium: weightedAverage calculation might overflow
### Description
In the [`MathEx`](https://github.com/bancorprotocol/contracts-v3/blob/b2224595afab14827ee065cb65a1444d61689fb3/contracts/utility/MathEx.sol) library the function [`weightedAverage`](https://github.com/bancorprotocol/contracts-v3/blob/b2224595afab148... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `Nexus.validateUserOp()` violates the EIP-4337 specification
### Description
`validateUserOp()` in nexus accounts do not revert when the validator specified is not installed, violating the EIP-4337 specification.
### Impact
Violation of the EIP-4337 specification could break composability with the `EntryPoint... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inefficient `Witch` buy
### Description
In `Witch.buy`, there's the possibility to do one multiplication instead of two divisions: Instead of computing the `_ink price_` as `1 / artPrice` and then dividing by it to get the ink amount as `ink = art/price`, just keep the `_art price_` and multiply it by the `art... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | overflow | true | false | ## Gas: Operations capped by `totalSupply` in `L2BaseToken` can be unchecked
### Description
**File:** `L2BaseToken.sol`
[File: code/system-contracts/contracts/L2BaseToken.sol](https://github.com/code-423n4/2024-03-zksync/blob/main/code/system-contracts/contracts/L2BaseToken.sol#L64)
User's balance is capped by `tot... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Direct Inclusion and Modification of OpenZeppelin Modules Leading to Inconsistencies
### Description
The review identified that the project directly includes copies of OpenZeppelin modules within its repository (e.g., some files under `contracts/erc20/`, `contracts/utils/` and `contracts/library/`) and applies... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Incorrect check for > 0 buy amt
### Description
Describe the finding and your recommendation here
`buy_token` incorrectly checks that `token_amount` is greater than 0, rather than checking that `buy_amount` is > 0. As a result, 0 amount of tokens can be bought.
Recommend refactoring the check to check for `... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Price Discrepancy Risk Between Chainlink Oracle and Uniswap
### Description
The `rebalancePool` function and the `swapUsdcToEthExactOutput` logic rely on the Chainlink oracle for ETH/USD price data while executing swaps through the Uniswap router. Discrepancies between the Chainlink oracle price and the Uniswa... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 attribution to original source
### Description
Certain portions of the code appear to be directly taken from external libraries: Uniswap's v3-core `TickMath.sol` and from Uniswap's v3-core `FullMath.sol`.
### Recommendation
Add a comment or note in the code mentioning the original source from Uniswap'... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Add methods to add/update arbiter in existing Escrow contracts
### Description
Add methods to add arbiter in existing Escrow contracts
### Impact
The only way to get funds our of the contract is:
* Case 1: Buyer is satisfied and so they use `confirmReceipt()` method to send funds to the seller
* Case 2: There... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Return values of `transfer()`/`transferFrom()` not checked
### Description
Not all `IERC20` implementations `revert()` when there's a failure in `transfer()`/`transferFrom()`. The function signature has a `boolean` return value and they indicate errors that way instead. By not checking the return value, operat... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Role Transfer Not Following Two-Step Pattern
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `ac86306856c5e41469a5c427e910c971ac3523cd`. Now the contract uses the two-step ownership provided in the `Ownable2Step` library.
**File(s) affected:**`UnikuraMembership.sol`, `UnikuraMothersh... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Consideration on possible security enhancements for the bridging logic
### Description
Depending on the client's needs and logic requirements, the following topics should be researched and documented:
1. **Ordered Execution of Messages**
Does the execution of the messages need to be performed in an ordere... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Anyone can overwrite Reputer and Worker info attached to a LibP2PKey
### Description
The allora-chain does not verify that the caller owns the `LibP2PKey`. This allows anyone to modify the reputers and/or workers informations for a given key.
### Impact
Anyone can overwrite the `Owner` attached to a `LibP2PK... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Key derivation code could produce keys composed of all zeroes
### Description
The current implementation of the code that derives keys using the `x25519` library does not enable the `rejectZero` option. If the counterparty is compromised, this may result in a derived key composed of all zeros, which could allo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Method withdrawalToAddressRequest and withdrawalToAddressRequestForUser do not send tokens to the `receiver` address
### Description
**Severity**: High
**Status**: Resolved
**Description**
In Contract TradableSideVault, methods withdrawalToAddressRequest and withdrawalToAddressRequestForUser are used to 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 | liquidation | true | false | ## High: Improper Implementation Of Positions
### Description
## Inconsistency in Position Implementation in bank.move Module
In the `bank.move` module, the `Position` struct is utilized to store collateral share amounts and debts on a position. However, there exists an inconsistency in the implementation of position... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Single-asset vault is not a single-asset vault
### Description
According to the Treehouse team, the Vault is a single-asset vault: we went from multiple assets within a single vault to multiple vaults with a single asset. However, the current Vault is not a single-asset vault, as demonstrated by the presence o... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | other | true | false | ## Low: Cache array length outside of loops and consider unchecked loop incrementing
### Description
Cache array length outside of loops and consider using `unchecked {++i;}` if not compiling with `solc --ir-optimized --optimize`:
```solidity
File: contracts/ousg/InvestorBasedRateLimiter.sol
253: for (uint256 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 | initialization | false | false | ## Low: FeePool Miscellaneous General Comments
### Description
This section details miscellaneous informational aspects found within the FeePool smart contract. These items are understood to not pose immediate security risks.
1. **Spelling error in comment**: line [518] “. . .fee period does is not yet . . . ”.
2. **... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Assembly Codes Specific – Should Have Comments
### Description
Since this is a low level language that is more difficult to parse by readers, include extensive documentation, comments on the rationale behind its use, clearly explaining what each assembly instruction does.
This will make it easier for users 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 | dos | false | false | ## Low: Denial Of Service Via Batching
### Description
EthSign has introduced batch uploads without any limit on the AWS endpoint, creating a powerful vector for denial of service attacks. This is because an attacker may send multiple requests at once. Moreover, a rate limit is not implemented, allowing multiple reque... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: privileged role from Operators and Admin could put ERC20 tokens at risk
### Description
The **DEFAULT\_ADMIN\_ROLE** role is the only one allowed to add and remove operators for the system. The `operator` role-plays an integral part in managing ERC20 assets in `CeFiSmartTransfer` and `DeFiSmartTransfer`. The `... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Collect Less Protocol Fee with Volatile Asset and Updatable Protocol Fee
### Description
**Update**
The team confirmed that they would like to keep it as is for better UX to not require the users keeping specific tokens on their balance. They will also monitor and analyze the fee accumulated in the future. The... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: [07] Missing zero/isContract checks in important functions
### Description
Low impact, since this requires a bit of an admin error, but some functions which could be more secure using the `_ensureZeroAddress()` currently do not implement this and could lead to issues.
### Proof of Concept
Using the `PrimeLiq... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: rewardsManager used in MatchingEngineForAave could be not initialized
### Description
The `MatchingEngineForAave` updates the `userUnclaimedRewards` for a supplier/borrower each time it gets updated. However, the `rewardsManager` is not initialized in `PositionsManagerForAaveLogic.initialize`, but only via ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: User might be able to double withdraw during migration
### Description
### Impact
A user might be able to double withdraw during migration in some edge conditions: (1) if their withdrawal tx is included in a batch number the same or after `eraFirstPostUpgradeBatch`; (2)And if the user `finalizeWithdrawal` ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Uncallable functions on implementation contract
### Description
The `UpgradeableProxy` only forwards calls from its fallback function to the implementation contract. However, it defines the following three public functions besides its fallback:
- `function deny(address usr) external;`
- `function rely(address... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing protection against slippage
### Description
In the `claimExcess()` function of the `LiquidationBuffer` contract, the contract owner can claim excess buffer by redeeming shares from a specified vault. However, there is no check for a minimum amount of redeemed assets that should be acceptable to be rece... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Addresses From `costableList` Should Not Be Removable During Cost Deduction Process
### Description
**Update**
Addressed in: `9524f0d019b2ee7a1127a5b6ef33690b1d01e38e`. The team removed `removeCostableWallet()` and added a `_notProcessingDeductions()` modifier that restricts access during an active cost deduc... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: Consider preventing users from over-paying
### Description
Currently the protocol allows users to over-pay:
```solidity
function _revertIfInsufficientFee() internal view {
if (msg.value < _getFee()) revert SoulBoundToken__InsufficientFee();
}
```
Consider changing this to require the exact fee to prevent ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Taker fees can be bypassed via asymmetric liquidity provision to a pool
### Description
Taker fees can be bypassed via liquidity provision to a pool
### Impact
The protocol receives less fees than intended.
### Recommendation
_No response_ | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Rounding down when computing fees benefits users
### Description
Fees are computed using an incorrect rounding direction that reduces the amount collected by the protocol. As a result, fees may be less than intended when being transferred to the protocol. After the `borrow` function has finished its primary exe... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Preventing Minting via Front-Running Payload
### Description
## validate_and_store_payload in Consortium
`validate_and_store_payload` in Consortium validates and records the usage of a payload. However, since it is public, anyone may call it. This creates a potential front-running attack, where a malicious 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: Public functions not called within the contract can be made external
### Description
Throughout the codebase, there are multiple functions that are marked as `public` but are not used internally in the contract they are declared. This may result in unnecessary gas consumption.
The affected functions are:
- `... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | true | false | ## High: Users with Level 5 Account May Bypass the Applied 12% Commissions
### Description
When having a Level 5 account, a user is obligated to pay a 12% commission rate to the `recipientComission` address. Now, let's imagine the following scenario:
1. The user has such a Level 5 account, which is connected only to ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Incorrect Clawback Timeout Duration
### Description
The clawback timeout is set to `2 * 356 days` instead of the standard `2 * 365 days` (2 years), which may cause confusion or misalignment with expected behavior based on common yearly time assumptions. This could result in premature clawback availability.
##... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Code doesn't work with fee on transfer tokens
### Description
The code currently assumes that the ERC20 transfer function will move the exact amount specified. This assumption is flawed for tokens that impose a fee on transfers, leading to inaccurate calculations. For example, in the `requestMint()` function, ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | rounding | false | false | ## High: Token amounts are in wrong decimals if useMax parameter is used
### Description
The `allocate` and `swap` functions have a `useMax` parameter that sets the token amounts to be used to the net balance of the contract. This net balance is the return value of a `getNetBalance` call, which is in token decimals. 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 | high | other | false | false | ## High: Multiple soundness issues in `owning_ref`
### Description
**Severity**: High
**Status**: Acknowledged
**File**: Cargo.lock
**Details**:
- OwningRef::map_with_owner is unsound and may result in a use-after-free.
- OwningRef::map is unsound and may result in a use-after-free.
- OwningRefMut::as_owner and Own... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: allowedV2Callbacks - no way to edit
### Description
RouterV2 has to mappings for selected callbacks:
But only V3 can be edited with no function for V2.
Consider a function to make changes in `allowedV2Callbacks` 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... | skyward_49k | high | other | true | false | ## High: Owner fee will be locked in `UpliftOnlyExample` contract due to incorrect recipient address in `UpliftOnlyExample::onAfterSwap`
### Description
`UpliftOnlyExample::onAfterSwap` hook incorrectly transfers funds to `UpliftOnlyExample` contract instead of the owner address, coupled with a lack of withdrawal func... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: _licenceAmountScaled can be incorrectly initialized
### Description
The licence contract collects a percentage fee when a user loads her card. The fee percentage is recorded in the `_licenceAmountScaled` state variable. This state variable can be initialized during the contract deployment as shown in Figure 1 ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | initialization | true | false | ## Medium: It is possible to perform a price inflation attack for Bunni token
### Description
When the first depositor deposits tokens to the pool, code mints `1e3` Bunni token for zero address and mints `1e18 - 1e3` for the depositor. The issue is that Bunni tokens allow users to burn their tokens and if the first 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 | medium | other | false | false | ## Medium: Missing/limited Test Suite
### Description
**Update**
The Reach team added a test suite with good coverage for both the `ReachFactory` and `ReachDistributionV2` contracts. However, we still recommend improving the tests for the token contract.
**Update**
Marked as "Fixed" by the client. Addressed in: `6d5... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | medium | Reentrancy | true | false | Source: https://github.com/sherlock-audit/2023-02-hats-judging/issues/124
## Found by
cducrest-brainbot, unforgiven
## Summary
to prevent reentrancy during the safe's `execTransaction()` function call code use `_guardEntries` and increase it in the `checkTransaction()` and decrease it in the `checkAfterExecution()`... | 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 | medium | other | true | false | ## Medium: Voter weight manipulation by burning after vote
### Description
## Vote Relinquishment Process
A voter can influence their vote weight after voting ends and before proposal finalization. The voter relinquishes his/her vote, withdraws their governing tokens, burns to lower the mint supply (and therefore max... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: SystemConfig._setGasConfig() should validate overhead and scalar according to the specs
### Description
`SystemConfig._setGasConfig()` only checks that the first byte of `_scalar` is `0x0`:
```solidity
function _setGasConfig(uint256 _overhead, uint256 _scalar) internal {
require((uint256(0xff) << 248) & _sc... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | dos | true | false | ## High: Illuminate redemptions don't account for protocol pauses/temporary blocklistings
### Description
Illuminate redemptions don't account for protocol pauses/temporary blocklistings
### Impact
_Permanent freezing of funds_
If a external PT is paused, or its PT is otherwise unable to be redeemed for the full amo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Import of `OwnableUpgradeable` in `Accounting.sol`
### Description
**Description:** `OwnableUpgradeable` is imported but not used directly in this file.
**Recommended Mitigation:** Remove the unused import to improve code cleanliness:
**Strata:**
Fixed in commit [cfc5117b](https://github.com/Strata-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 | oracle | false | false | ## Medium: No On-Chain Enforcement of Most Fees
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `3e62ccfc73b33b642d3d4c40ac85956c850a16e0`. The client provided the following explanation:
> On-chain Fee Protection is added by enforcing maximum percentage (in beeps) relayer can take
**Descrip... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | other | true | false | ## Low: Avoid unnecessary use of `SafeMath` operations | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Whitelisted pools may exceed the maximum allowed
### Description
The number of whitelisted pools may exceed the maximum number allowed because there is no check against the current length of `whitelistedPools` when the maximum number of `whitelistedPools` is decreased via a proposal.
```solidity
function chan... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Iterations over all tiers in recordMintBestAvailableTier can render system unusable
### Description
`JBTiered721DelegateStore.recordMintBestAvailableTier` potentially iterates over all tiers to find the one with the highest contribution floor that is lower than `_amount`. When there are many tiers, this loo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: If a user transfers NFT, they can lose rewards
### Description
If the user transfer NFT before calling `collectRewards`, they will lose accrued rewards
https://github.com/cryptoalgebra/Algebra/blob/7290fad656bfa89db3743c52af631154f6a8a2d5/src/tokenomics/contracts/FarmingCenter.sol#L113-L115.
### Recommendatio... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | medium | input-validation | true | true | ## Medium: Kodiak swap functions do not check if output token is approved, risking stuck assets
### Description
In the swap implementations within `Inch_Module`, both the input token and output token are validated to ensure they are approved before executing a swap. This validation is present in [`inch_swap`](https://... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | rounding | true | false | ## Severity
High Risk
## Description
Users who stake a second time without calling `fullyClaimReward()` will lose their accumulated unclaimed `aSugar`. Furthermore, the second stake could be executed by somebody else via `deligateStake()` if there is an active allowance.
Example:
The user stakes 100e18 of a token.... | Shieldify | 4 | Beraji Ko |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Temporary Immobilization of Interest Within the Stargate Aggregator in Case of Emergency
### Description
**Update**
**Quantstamp:** The Sperax team subtracts the `amtRecv` amount from the `allocatedAmt` variable during the `emergencyWithdrawToVault()` function call.
**Update**
Marked as "Fixed" by the cli... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | oracle | true | false | ## Medium: Loss of option token from Teller and reward from OTLM if L2 sequencer goes down
### Description
Loss of option token from Teller and reward from OTLM if L2 sequencer goes down
### Impact
Loss of option token from Teller and reward from OTLM if L2 sequencer goes down
### Recommendation
chainlink has a sequ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: FeeManager `receiveFee` and `trackVaultFee` functions allow anyone to call it with user-provided dvp/vault address and add any arbitrary feeAmount to any address, breaking fees accounting and temporarily bricking DVP smart contract
### Description
`FeeManager` uses `trackVaultFee` function to account vault ... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.