prompt listlengths 2 2 | source stringclasses 3
values | severity stringclasses 5
values | category stringclasses 186
values | has_code bool 2
classes | has_poc bool 2
classes | reference_response stringlengths 23 5k | firm stringclasses 26
values | quality_score float64 0 5 | protocol stringclasses 398
values |
|---|---|---|---|---|---|---|---|---|---|
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | false | false | ## Medium: Conditions for finalization
### Description
The crowdsale can be finalized at any moment, in particular before `endBlock` is reached. Please double check that this is the desired behavior.
**Update**: Now requiring that either cap or end block has been reached. Fixed in and refactored in . | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | cross-chain | false | false | ## Low: Inconsistency in Ownership Transfer Handling
### Description
## Validators: Transfer Operatorship
In `validators::transfer_operatorship`, when a new ownership transfer occurs, the existing operator has his ownership removed if it already exists. However, in the corresponding Solidity code in the Cross-Chain G... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unlimited Approval Risk in BridgeSteth Contract
### Description
### Relevant GitHub Links
https://github.com/Cyfrin/2023-09-ditto/blob/main/contracts/bridges/BridgeSteth.sol
## Summary
## Vulnerability Details
stETH token is given unlimited approval to the unstETH contract. This means that the unstETH contr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Denial of service on \_getStrategy function
### Description
There is a potential denial of service (DoS) vulnerability in the `_getStrategy` function. The `vaults` array, which stores all vaults created for a specific token, lacks an upper limit on its size. Consequently, the contract owner could theoretically... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Code smell
### Description
At the lines https://github.com/orbxball/curve-voter-proxy/blob/78c92e4ffc0f76651914565744a3607d0248d254/contracts/Strategy.sol#L239-L300
code has several problems at once.
- Too long function. The function takes 61 lines. It is difficult to understand.
- In one place collected vari... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Wallet private keys and mnemonics may be kept in RAM
### Description
The Uniswap Android mobile wallet decrypts data stored in encrypted shared preferences and caches the data in the wallet process’ memory. The cache is implemented in the `RnEthersRs` class (figure 14.1). The data contains plaintext private ke... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unsafe casting of length & count to uint16
### Description
There are a few instances of unsafe casting to `uint16`.
### Recommendation
Fix at least the first instance of unsafe casting:
```diff
- collateralWrapperContextLen: uint16(collateralWrapperContext.length),
+ collateralWrapperContextLen: collateralWra... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Local variable shadowing
### Description
In `lending-market/NoteInterest.sol`, there is local variable shadowing: the constructor parameter has the same name as the storage variable `baseRatePerYear`. This will not lead to any error but can be confusing, especially in the constructor where `baseRatePerBlock` 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 | gas | other | true | false | ## Gas: The computeEscrowAddress() can return an incorrect predicted address
### Description
The `EscrowFactory.computeEscrowAddress()` can return an incorrect `predicted address` to an external caller.
### Impact
The `EscrowFactory.computeEscrowAddress()` can return an incorrect `predicted address` if an 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 | other | false | false | ## Medium: Escrows can be reused
### Description
Currently, all escrows can be reused. However, the logic of a condition cannot guarantee that it will be correct for two consecutive executions.
### Recommendation
We recommend restricting the usage of the escrows more than one 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 | low | other | true | false | ## Low: Hardcoded slippage is dangerous
### Description
Upon validating external trades, we have the following code:
We validate the deviation between amounts. The issue is the hardcoded and constant `_MAX_SLIPPAGE`. In times of quick and drastic price changes, the hardcoded slippage can lead to the inability to cal... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | high | Wrong Math | false | false | Source: https://github.com/sherlock-audit/2023-07-blueberry-judging/issues/97
## Found by
0x52
The current methodology for valuing Stable BPT is incorrect and can lead to significant over valuation of the stable BPT.
## Vulnerability Detail
[StableBPTOracle.sol#L48-L53](https://github.com/sherlock-audit/2023-07-b... | Sherlock | 5 | Blueberry Update #3 |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | initialization | false | false | ## High: Lack of appropriate access control
### Description
**Severity**: High
**Status**: Resolved
**Description**
The initAuctionLauncher() function lacks appropriate access controls. Anyone can call this initAuctionLauncher() function and initialize himself as an admin.
**Recommendation**:
It is advised that... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | token | true | false | ## Medium: PeriodicPrizeStrategy - Token with callback related warnings (ERC777 a.o.)
### Description
This issue is highly dependent on the configuration of the system. If an admin decides to allow callback enabled token (e.g. `ERC20` compliant `ERC777` or other `ERC721`/`ERC20` extensions) as awards then one recipien... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | false | ## Medium: users still forced to follow previously set cooldownDuration even when cooldown is off (set to zero) before unstaking
### Description
The `StakedUSDeV2` contract can enforces coolDown periods for users before they are able to unstake/ take out their funds from the silo contract if coolDown is on. Based on 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 | initialization | false | false | ## Low: add zero address validation in constructor
### Description
## Handle
JMukesh
## Vulnerability details
## Impact
since the parameter in the constructor are used to initialize the state variable , proper check up should be done , other wise error in these state variable can lead to redeployment of contract
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | rounding | true | false | ## Medium: Malicious actors can repeatedly dilute emissions to a longer timeframe
### Description
```
pub fn gulp_emissions(e: &Env) -> i128 {
let backstop = storage::get_backstop(e);
let new_emissions =
BackstopClient::new(e, &backstop).gulp_emissions(&e.current_contract_address());
do_gulp_emissions(e, new_... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: OmoVault first depositor can inflate share price by donating
### Description
`OmoVault` is vulenarable to the _inflation attack_:
The function `_convertToShares()` determines share price using `totalAssets()`, which includes both `vaultHoldings` and `accountHoldings`. A malicious user can inflate share pric... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 event
### Description
In case of cover, `stETH` doesn't burn
https://github.com/lidofinance/lido-dao/blob/801d3e854efb33ff33a59fe51187e187047a6be2/contracts/0.4.24/StETH.sol#L461
### Recommendation
It is necessary to exclude the `stETH` amount from the event. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | other | false | false | ## Low: Cache `sd59x18(sizeDelta)` in `OrderBranch::simulateTrade` to prevent wrapping the same value 3 additional times
### Description
Cache `sd59x18(sizeDelta)` in `OrderBranch::simulateTrade` to prevent wrapping the same value 3 additional times. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `_sendOrEscrowFunds` will brick LCG funds causing insolvency
### Description
LenderCommitmentGroup (LCG) will have its funds stuck if `transferFrom` inside [_sendOrEscrowFunds](https://github.com/sherlock-audit/2024-04-teller-finance/blob/main/teller-protocol-v2-audit-2024/packages/contracts/contracts/TellerV... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: EthVault - Unused state variable ✓ Addressed
### Description
The state variable `withdrawEntryCounter` is not used in the code.
**code/plasma\_framework/contracts/src/vaults/EthVault.sol:L8**
```
uint256 private withdrawEntryCounter = 0;
```
### Recommendation
This was addressed in [commit ea36f5ff46ab72... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Move calldata pointer to top of for loop to avoid offset calculations
### Description
We can avoid unnecessary offset calculations by moving the calldata pointer to the top of the for loop.
https://github.com/code-423n4/2023-05-venus/blob/main/contracts/Comptroller.sol#L669-L677
Gas Savings for `Comptroller.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: A users tokens can be stolen if they don't control `msg.sender` address on all chains
### Description
When a user wants to register a token for use across chains they first call [`InterchainTokenService::deployAndRegisterStandardizedToken`](https://github.com/code-423n4/2023-07-axelar/blob/main/contracts/its/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 | false | false | ## Medium: safeFunctionCall May Expose Unnecessary Future Risks
### Description
The `safeFunctionCall` allows anyone (except via meta\-transaction) to execute any data on an [approved target](https://github.com/ironblocks/onchain-firewall/blob/8f4fcf861d53c835ed005db67b8af4037464e0ca/contracts/FirewallConsumerBase.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 | flash-loan | false | false | ## Low: Regulatory risk
### Description
Some tokens have features to comply with regulations, most notably Circle maintains a blocklist to comply with OFAC sanctions in their USDC contracts. When the recipient/owner of a stream is an address that is on USDC's blocklist, they can withdraw the USDC to another address 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 | gas | initialization | true | false | ## Gas: `InvestorBasedRateLimiter::_initializeInvestorState` should return newly created `investorId` to save re-reading it from storage
### Description
**Description:** `InvestorBasedRateLimiter::_initializeInvestorState` should return the newly created `investorId`; this can then be used inside `checkAndUpdateMintLi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | reentrancy | false | false | ## Low: Some functions not marked nonReentrant
### Description
We have not identified any security issues relating to reentrancy. However, out of an abundance of caution, consider marking the following `public` functions in the [`HubPool`](https://github.com/across-protocol/contracts-v2/blob/bf03255cbd1db3045cd2fbf158... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: RecoverySpell Gas Optimizations
### Description
**Remove address(0) check, this is already done by OZ.ECDSA**
https://github.com/solidity-labs-io/kleidi/blob/1a06ac16bc99d0b4081281329d03064c3737f5e4/src/RecoverySpell.sol#L226-L230
**Ownership check can be done in memory more cheaply**
The code change is pr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Wrong Event Emission On `\_grantGuardian` Function
### Description
It is important to highlight the `_grantGuardian` internal function in `ConfigurablePauseGuardian` contract as follows:
- src/xWELL/ConfigurablePauseGuardian.sol [Line: 93]
```
function _grantGuardian(address newPauseGuardian) internal {
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Code could be simplified.
### Description
**Description**
StakingB_1.sol Line 609
“pool.lastRewardBlock = block.number” can be executed before condition so this operation
shouldn’t be repeated twice in the code.
**Recommendation**:
Use just one realisation of “pool.lastRewardBlock = block.number” before 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 | token | true | false | ## Low: Return values of `approve()` not checked
### Description
Not all `IERC20` implementations `revert()` when there's a failure in `approve()`. The function signature has a `boolean` return value and they indicate errors that way instead. By not checking the return value, operations that should have marked as fail... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Halter or Governor May Not Receive Excess Gas
### Description
**Update**
Marked as "Unresolved" by the client. The client provided the following explanation:
> With the current TVM, it's not possible to find the address of the original sender, in a bounce message. Bounced messages are very limited, in total 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 | medium | cross-chain | false | false | ## Medium: DoS risk created by cross-chain message call requests on certain networks
### Description
Cross-chain message calls that are requested on a low-fee, low-latency network could facilitate a DoS, preventing other users from interacting with the system. If a user, through the `MsgSender` contract, sent numerous... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Add query limit to defend against potential DDoS attacks
### Description
The `FeeHistory` function in the Oracle struct is responsible for retrieving historical fee data based on the provided parameters. However, the current implementation lacks a limit on the number of percentiles that can be specified in 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... | cyfrin_structured | critical | front-running | true | true | ## Critical: Attacker can drain protocol tokens by sandwich attacking owner call to `setPositionWidth` and `unpause` to force redeployment of Beefy's liquidity into an unfavorable range
### Description
When the owner of the `StrategyPassiveManagerUniswap` contract calls `setPositionWidth` and `unpause` an attacker can... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Function Visibility Optimization
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `7f7bfa91ec3380c4f9846ad3c920c1a8f764b83f`. The client provided the following explanation:
> Changed `handleInvokeEchelon` visibility to external
**File(s) affected:**`src/caching/PrimeCaching.sol`
**D... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | cross-chain | true | false | ## Low: Check for destinationChainId inCBridgeFacet
### Description
The function `_startBridge()` in `CBridgeFacet` contains a check on `destinationChainId` and conversions to `uint64`. If both `block.chainid` and `_bridgeData.destinationChainId` fit within a `uint64`, the checks performed by the modifier `validateBri... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Update in BTC/ETH pools’ target weight can disrupt rebalancing logic
### Description
**Severity**: Low
**Status**: Resolved
**Description**
Since pools’ target weight can be updated using `setPoolTargetWeight(...)` method, there exists a threat that can disrupt the current rebalancing logic.
If BTC and ETH... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: package.json - Invalid License ✓ Invalid
### Description
The license field in `package.json` is invalid.
**packages/starknet-snap/package.json:L4**
```
"license": "(Apache-2.0 OR MIT)",
```
### Recommendation
Invalid. Legal clarified that it is perfectly fine to allow MIT+Apache2. Additionally, client pr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Rebalance will fail if either ETH or BTC pools’ current weight is 0
### Description
**Severity**: Low
**Status**: Resolved
**Description**
In Contract GlmRebalance, the method `startRebalance()` calls `getLatestRebalInfo()` which further calls `isCorePoolInRatioInRange()` which checks if the BTC/ETH pools 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 | gas | signature | true | false | ## Gas: Using `private` rather than `public` for constants, saves gas
### Description
If needed, the values can be read from the verified contract source code, or if there are multiple values there can be a single getter function that [returns a tuple](https://github.com/code-423n4/2022-08-frax/blob/90f55a9ce4e25bceed... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Proof Verification DoS via Missing Token Account
### Description
## Token Transfer Recipients in Zero-Knowledge Systems
Recipients of a token transfer out of the zero-knowledge system can be either native Solana accounts (for SOL) or spl-token Token Accounts (for USDT or USDC).
In order to finalize a valid p... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: BaseDynamicFee Hook Can Be Poked Arbitrarily
### Description
The [`BaseDynamicFee` hook contract](https://github.com/OpenZeppelin/uniswap-hooks/blob/f051c147dbf296b2b854de92970905a880cd1d51/src/fee/BaseDynamicFee.sol#L21) has a `virtual` `external` [`poke` function](https://github.com/OpenZeppelin/uniswap-h... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Misleading Comments
### Description
Throughout the codebase, multiple instances of misleading comments were identified:
* The `set_differ_program_hash` [function comment](https://github.com/dojoengine/dojo/blob/e1a349b2c4b1a836156e769a46f8fe3c87ae553f/crates/dojo-core/src/world/config.cairo#L17) describes 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 | overflow | false | false | ## Low: When _contractNonces[offerer] gets updated no event is emitted
### Description
When `_contractNonces[offerer]` gets updated, no event is emitted. This is in contrast to when a counter is updated.
One might be able to extract the `_contractNonces[offerer]` (if it doesn't overflow 12 bytes to enter into the 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 | medium | other | true | false | ## Medium: Volume-based fee can be bypassed with a wrapper contract
### Description
**Description:** `_executeAction()` levies a percentage fee only when `FeeController.getTokenForAction()` can map the `(target, selector)` pair to a tracked token. If the mapping is absent it falls back to `minFeeInUSD`.
An attacker ca... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Risk of Excess Recall Amount
### Description
## Bank Recall Logic Issue
The logic in `bank::recall` may result in a situation where the `amount_to_recall` becomes greater than the available reserves due to the utilization of `max(bank.min_token_block_size)`. The `amount_to_recall` is adjusted to ensure it is ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | high | Missing-Logic | true | true |
The `Create` contract is responsible for creating a rental. It achieves this by acting as a Seaport `Zone`, and storing and validating orders as rentals when they are fulfilled on Seaport.
However, one thing it doesn't account for is the fact that Seaport allows for "tipping" in the form of ERC20 tokens as part of th... | Code4rena | 3 | reNFT |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: No inherent reward handling
### Description
Spark supports rewards as an Aave-V3 fork. The contract currently has no inherent way to claim the rewards, and it isn't easy to automatically distribute them among the subDAOs fairly, taking into account supplied time and not just the supplied amount.
### Recommend... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | false | false | ## Low: Outdated packages
### Description
Multiple outdated packages were identified in the extension, which could significantly increase the risk of security vulnerabilities. These outdated dependencies may contain known security flaws that have been publicly disclosed, leaving the extension vulnerable to a variety 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... | skyward_49k | high | token | true | false | ## High: Killed Gauge continue to accrue and steal rewards from `Minter` contract
### Description
Report type: Smart Contract
Target: https://github.com/alchemix-finance/alchemix-v2-dao/blob/main/src/Voter.sol
Impacts:
- Theft of unclaimed yield
- Direct theft of any user funds, whether at-rest or in-motion, other ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Transfer Ownership
### Description
**Severity**: Low
**Status**: Acknowledged
**Description**
The transferOwnership() function of the Ownable contract, which is inherited by VLPenPie, allows the current admin to transfer his privileges to another address. However, inside transferOwnership(), the newOwner 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 | other | false | false | ## Low: Function subtractProtocolExecutionFee() doesn't check there is sufficient balance
### Description
The function `subtractProtocolExecutionFee()` does not check for sufficient balance, unlike `payManagementFees()`. Although `_validateReserveAboveTargetRatio()` is called in the routers before invoking this 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 | initialization | true | true | ## High: Some stakers may fail to withdraw staking HYPE
### Description
The `StakingManager` contract implements a buffer system intended to maintain a reserve of HYPE tokens for processing withdrawals. However, the current implementation fails to utilize this buffer effectively, potentially forcing unnecessary valida... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unrevoked Tokens
### Description
## sbt_revoke_by_owner Function Overview
`sbt_revoke_by_owner` is responsible for revoking and optionally burning Soulbound Tokens owned by a specific account. The tokens may either be burned (permanently removed) or marked as expired.
## Issues Faced
The issue arises as th... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | front-running | false | false | ## Low: [07] Both `mintNFT()` and `burnNFT()` lacks slippage control for the fee
### Description
Note that the fee is not a fixed value, its value depends on `shareData[_id].tokenCount`.
[Market.sol#L194-L198](https://github.com/code-423n4/2023-11-canto/blob/335930cd53cf9a137504a57f1215be52c6d67cb3/1155tech-contracts... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | cross-chain | true | false | ## Low: `quoteClaimCallback` has 0 slippage tolerance
### Description
The `quoteClaimCallback()` function currently quotes the native amount required to send ZRO across chains as follows:
In this implementation, the `_zroAmount` is passed directly as `minAmountLD`. This implies that the callback will revert for any ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: transfer return value is ignored
### Description
_Submitted by robee, also found by 0x1f8b, cmichel, csanuragjain, defsec, hyh, leastwood, sirhashalot, and WatchPug_
Need to use safeTransfer instead of transfer. As there are popular tokens, such as USDT that transfer/transferFrom method doesn’t return anyt... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 documentation in afterAllHook() natspec
### Description
**Description:** In `ERC20TotalBalanceChangeEnforcer :: afterAllHook()` , the natspec says "This function validates that the recipient's token balance has changed by at least the total expected amount", which is incorrect.
In case of the net e... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | cross-chain | false | false | ## Low: Functions Updating State Without Event Emissions
### Description
Within `BitVMBridge.sol`, multiple instances of functions updating the state without an event emission were identified:
* The [`setParameters` function](https://github.com/fiamma-chain/bitvm-bridge-contracts/blob/935e2cbd1b5d1060439045b74ace6b2f... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [03] Inconsistency in parameter validations between sister functions
### Description
Impact is low/informational.
The inconsistency in validation checks between similar functions can lead to unexpected behavior.
### Proof of Concept
Take a look at `updateAlpha()`:
In the `updateAlpha` function, there is a... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: The `LimitOrderManagement._createLimitOrder()` duplicated pool address calculation
### Description
`LimitOrderManagement._createLimitOrder()` is called only from `LimitOrderManager.addLimitOrder()`. But it recalculates the address of the pool that was already calculated in `LimitOrderManagement._createLimitOrd... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Stakers affected by some modifications
### Description
Stakers receive rewards based on the calculation in `SMRewardDistributor::computeRewardMultiplier`. This function takes into account the values of `_smoothingValue` or `_maxRewardMultiplier`. When a user calls the `RewardsDistributor::claimRewardsFor` 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 | high | liquidation | true | false | ## High: Vulnerability in getLoanLiquidity leads to undervaluing stable debt
### Description
Report type: Smart Contract
Target: https://testnet.snowtrace.io/address/0x2cAa1315bd676FbecABFC3195000c642f503f1C9
Impacts:
* Protocol insolvency
* Direct theft of any user funds, whether at-rest or in-motion, other than ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `CompoundToNotionalV2.notionalCallback` ERC20 return values not checked
### Description
_Submitted by cmichel_
Some tokens (like USDT) don't correctly implement the EIP20 standard and their `transfer`/`transferFrom` functions return `void`, instead of a success boolean. Calling these functions with the corre... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: WrappedVault doesn't follow ERC4626 standard correctly
### Description
## WrappedVault Issues and Recommendations
## Context
- WrappedVault.sol#L557-L570
- WrappedVault.sol#L613-L614
- WrappedVault.sol#L635
## Description
### First Instance
Given that `maxMint` is `type(uint128).max`, it doesn't make sense... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: assembly block without ("memory-safe")
### Description
The following assembly block:
```assembly
assembly {
validationData := iszero(success)
}
```
is memory-safe as it does not touch memory at all. Since all other memory-safe assembly blocks are marked as such, it is recommended to add the `("memory-safe"... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | token | false | false | ## Low: Fee-on-Transfer and Non-Standard Token Behavior Not Supported
### Description
In both sync and async deposit flows — as seen in **Provisioner.sol#L158-L191** and **Provisioner.sol#L436-L476** — the protocol assumes that the amount of tokens transferred via `transferFrom` or `safeTransferFrom` will match the in... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | dos | true | false | ## Low: Hardcoded gas limit for hook in `onSlash` may cause reverts
### Description
The `onSlash` function in the `BaseDelegator` contract conditionally invokes a hook via a low-level `call` if a hook address is set:
```solidity
assembly ("memory-safe") {
pop(call(HOOK_GAS_LIMIT, hook_, 0, add(calldata_, 0x20), 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: A potential overflow due to unsafe math
### Description
In `SwapExecutor` this line `uint256 poolSwapAmount = (balanceToSwap * swap.tokenRatio) / _ONE` allows making overflow.
Example (https://github.com/BarterLab/argon/blob/22239aaccdbb78d4aa7ac5c4d0859a9b31c0fc00/contracts/SwapExecutor.sol#L73):
```
uint256... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `StabilizerNode` Will Mint An Incentive For Triggering An Auction Even If An Auction Exists Already
### Description
_Submitted by leastwood_
`_startAuction` utilises the `SwingTrader` contract to purchase Malt. If `SwingTrader` has insufficient capital to return the price of Malt back to its target price, ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Overflow in quantize Function Can Cause a DoS
### Description
The [`quantize` function](https://github.com/forta-network/forta-firewall-contracts/blob/09feff1d712011470d49d54f2462e3204c11afaf/src/Quantization.sol#L20-L24) contains a vulnerability caused by an intermediate overflow during sequential 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 | initialization | true | false | ## Low: Missing disableinitializers() to prevent uninitialized contracts
### Description
**Severity:** Low
**Description:** All contracts in the project that use OpenZeppelin’s `Initializable` don't call `_disableInitializers` in the constructor per the OpenZeppelin documentation:
[Writing Upgradeable Contracts - 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... | skyward_49k | low | other | false | false | ## Low: Typo errors
### Description
## Code Review Notes
## Context
- **File:** QuoterV1.sol
- **Lines:** 82, 113
## Description and Recommendation
The code contains some typos in the comments.
### QuoterV1.sol#L82
- **Original:**
- `/// @dev Called by Node Contract to alculates the deposit bonus`
- **Updated:**
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | cross-chain | false | false | ## High: Solana Poller Uses Panic, Risking Bridge Halt
### Description
The current implementation of the Solana poller uses panic for error handling in several places. This approach can cause the entire bridge process to halt when a single error occurs.
Problematic Code Example
1. In the poll function:
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: Unbound Critical State Variables
### Description
**Update**
The client mitigated the issue in commit `50076c9c75eb0ba25f26d773418086f1a109c972`. Points 1-4 and 7-8 were fixed by implementing reasonable bounds. However, for point 5, the fix implemented is susceptible to on-chain manipulation. Instead, consider ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unnecessary for loop can be removed by shifting its statements into an existing for loop
### Description
The for loop on Line 247 is not required since the for loop on Line 239 already loops through the same range [0, creatorArrayLength). Thus the for loop on Line 247 can be removed and the event emissions 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 | medium | token | false | false | ## Medium: No check that the address is not zero
### Description
[TimeLoans.sol#L619](https://github.com/iearn-finance/timeloans.finance/blob/cab5f5b742aba2a4c237c460e1b436c5e8b71ba4/contracts/TimeLoans.sol#L619)
No need to burn a token for a zero address.
In a well-known library for secure development of smart 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... | solodit_api | high | overflow | true | true |
When staking is done, a Rialto multisig calls `MinipoolManager.recordStakingEnd` (<https://github.com/code-423n4/2022-12-gogopool/blob/aec9928d8bdce8a5a4efe45f54c39d4fc7313731/contracts/contract/MinipoolManager.sol#L385-L440>).
If the `avaxTotalRewardAmt` has the value zero, the `MinipoolManager` will slash the node ... | 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 | low | other | false | false | ## Low: Similar functions are used
### Description
Functions with similar logic are used:
https://github.com/Gearbox-protocol/gearbox-contracts/blob/0ac33ba87212ce056ac6b6357ad74161d417158a/contracts/core/ACL.sol#L28
### Recommendation
We recommend adding 1 function with bool parameter to set true/false. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | false | ## Medium: Two address tokens can be withdrawn by the payer even when the stream has began
### Description
It has been identified that if a stream has begun with a two address token the payer can withdraw the full amount via the [`rescueERC20`](https://github.com/sherlock-audit/2022-11-nounsdao/blob/main/src/Stream.so... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | true | false | ## Low: Potential Loss Of TSwap Control
### Description
## InitUpdateTSwap Security Advisory
**Issue**:
`InitUpdateTSwap` accepts `new_owner` as an input without validating the public key. If an erroneous `new_owner` is supplied, a loss of control over the protocol may occur.
## Remediation
Modify `InitUpdateTSwa... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Debug imports in production code
### Description
Remove debug imports, as they increase the contract size, and they are useful only for local tests.
*There is 1 instance of this issue.*
[[22](https://github.com/code-423n4/2024-04-panoptic/blob/6908144756ef0cce2ede6d3b2013291f0ddd74ec/contracts/PanopticPool.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | oracle | true | true | ## High: Reth `poolPrice` calculation may overflow
### Description
The Reth derivative contract implements the `poolPrice` function to get the spot price of the derivative asset using a Uniswap V3 pool. The function queries the pool to fetch the `sqrtPriceX96` and does the following calculation:
The main 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 | medium | other | false | false | ## Medium: `StrategyWrapper.depositAssets()` reverts due to missing approval
### Description
`StrategyWrapper.depositAssets()` deposits the underlying LP tokens received by the user into the reward vault and wraps the received shares.
However, before the deposit, the function does not approve the reward vault to tran... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: PeriodicPriceStrategy - trustedForwarder can impersonate any msg.sender
### Description
The `trustedForwarder` undermines the trust assumptions in the system. For example, one would assume that the access control modifier `onlyPrizePool` would only allow the configured `PrizePool` to call certain methods. How... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: `KangarooVault._resetTrade`, `LiquidityPool.rebalanceMargin`, and `LiquidityPool._getTotalMargin` functions should check `isInvalid`, which is returned by external perp market contract's `remainingMargin` function, and revert if such `isInvalid` is true
### Description
The following `KangarooVault._resetTra... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | false | ## Medium: Inbound Tx Confirmation Bypass via Malicious Observer
### Description
When utilizing state from multiple blockchains, it is important that this information is **finalized**. If not, a *block reorganization* can occur. This is possible since some subset of nodes may have one chain but the other set will have... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Upgradeable contracts don't call `disableInitializers`
### Description
**Description:** The codebase has a number of upgradeable contracts which use OpenZeppelin Initializable but don't have a constructor which calls `_disableInitializers` per the OpenZeppelin documentation [[1](https://docs.openzeppelin.com/c... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: [11]
### Description
Line 159 in `VTVLVesting._baseVestedAmount()` contains a misleading comment
`cliffReleaseTimestamp` can never be after `startTimestamp` as per the [`require`](https://github.com/code-423n4/2022-09-vtvl/blob/f68b7f3e61dad0d873b5b5a1e8126b839afeab5f/contracts/VTVLVesting.sol#L274) statemen... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | front-running | false | false | Source: https://github.com/sherlock-audit/2023-03-olympus-judging/issues/3
## Found by
0x52
## Summary
BLVaultLido#withdraw skims off extra stETH from the user that results from oracle arb. The problem with this is that minTokenAmounts_ no longer provides any slippage protection because it only ensures that enough... | Sherlock | 5 | Olympus Update |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Insu�cient unit tests for Fortuna
### Description
The Fortuna Rust codebase currently contains only two tests, both exercising aspects of the entropy revelation component of Fortuna. However, Fortuna comprises several other functionalities, such as provider registration and entropy request generation. The over... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | dos | true | false | ## Low: Inefficient Array Resizing in `append()` Function
### Description
The gas cost of the append function might exceed the gas limit set for a transaction. This gas limit specifies the maximum amount of gas a user is willing to spend on a transaction. This can be problematic, especially in situations where the exa... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Omissions in Events
### Description
Throughout the codebase, events are generally emitted when sensitive changes are made to the contracts. However, some events are missing important parameters.
The events should include the new value and old value where possible: | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Tests not passing
### Description
The testing suite finishes with 4 failing tests. These tests are:
`1) Tickets Feature: should not be possible to buy or transfer tickets during award
2) SingleRandomWinner: removeExternalErc20Award()
3) SingleRandomWinner: addExternalErc721Award()
4) SingleRandomWin... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Update Rewards Delay
### Description
## native_pool::update_rewards
The `native_pool::update_rewards` serves as the means for the operator to refresh the rewards. It’s worth noting that this function can only be reutilized after a 12-hour period has elapsed since the previous update. In practical terms, if 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 | cross-chain | false | false | ## High: Unverified `_srcChainSender` parameter allows to impersonate the sender
### Description
The `_toeComposeReceiver` function accepts the `_srcChainSender` parameter that represents the sender of cross-chain message (via LayerZero's OFT) on the source chain. The function executes modules depending on the `_msgTy... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Double Counting Rewards
### Description
## Accumulate Rewarder and Strategy Update
The function `rewarder::accumulate_rewarder_released` and `accumulate_strategy_reward` update the `total_reward_released` for the entire rewarder based on the emission rate and elapsed time. However, `accumulate_strategy_reward... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: No input validation on the vesting duration setter
### Description
The `setVestingDuration` method in `PumpV1` has no input validation, meaning it allows the protocol owner to set any value as `vestingDuration`. There are two potential problems with this - using the value of 0, which would lead to DoS of the p... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.