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 | token | false | false | ## Low: Risk of User Overcharging Fee
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `568d23b2a04ef95b4bd4e0738dc9feb59487eead`. The client provided the following explanation: the operator was replaced as per suggestion
**File(s) affected:**`ERC721Bridge/L2NFTBridgeAltL1.sol`
**Description... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | oracle | true | false | ## Gas: `If` statements that use `&` can be refactored into nested `if` statements
### Description
https://github.com/code-423n4/2023-04-ens/blob/main/contracts/dnssec-oracle/DNSSECImpl.sol#L312-L314
*Gas Savings for `DNSRegistrar.proveAndClaimWithResolver`, obtained via protocol's tests: Avg 64 gas*
| | Min | ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Using transfer instead of call may disallow interaction with some contracts
### Description
To return overpaid amounts, the `mint` functions use the `transfer` method instead of the `call` method
Since `transfer` method only passes 2300 gas, it can cause the transaction to be reverted if the interacting cont... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | token | true | true | ## High: Overestimation of Liquidity in Interest Rate Update.
### Description
https://github.com/aave/protocol-v2/blob/f435b2fa0ac589852ca3dd6ae2b0fbfbc7079d54/contracts/lendingpool/LendingPool.sol#L582
```solidity
IERC20(asset).safeTransferFrom(receiverAddress, vars.aTokenAddress, vars.amountPlusPremium);
reserve.u... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: `_getRewardsAmountPerVault` might be using an outdated vault power
### Description
In Symbiotic, if a vault is slashed in the current epoch, its `activeStake` will be immediately reduced:
```solidity
// https://github.com/symbioticfi/core/blob/main/src/contracts/vault/Vault.sol#L237
if (slashedAmount > 0)... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Killing nodes by polluting tx timestamp cache o...
### Description
Report type: Blockchain/DLT
Target: https://github.com/shardeum/shardus-core/tree/dev
Impacts:
* Network not being able to confirm new transactions (total network shutdown)
## Description
## Description
In the @shardus/core source code ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Specify pre-condition for startTick in liquidityNodes()
### Description
If the `startTick` is not instantiated, its next pointer will be `0` (un-initialised). Hence, the liquidity nodes fetched would actually be `[startTick, 0, ..., endTick]`.
### Recommendation
In the `ILiquidity` natspec, it would be good t... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | access-control | true | false | ## Medium: Attacker will manipulate voting power calculations as `getOperatorVotingPower()` and `getOperatorVotingPowerAt()` functions lack vault validation
### Description
The missing vault validation in `VotingPowerProvider::getOperatorVotingPower()` and `VotingPowerProvider::getOperatorVotingPowerAt()` functions 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 | other | true | false | ## High: Voter.poke() can be called at will, leading to a user accruing FLUX at an abnormal rate.
### Description
Report type: Smart Contract
Target: https://github.com/alchemix-finance/alchemix-v2-dao/blob/main/src/Voter.sol
Impacts:
- Theft of unclaimed yield
## Description
## Brief/Intro
After a user votes, the... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | liquidation | false | false | ## Medium: LendingPair.withdrawUniPosition should accrue debt first
### Description
## Handle
cmichel
## Vulnerability details
The `LendingPair.withdrawUniPosition` function allows the user to withdraw their UniswapV3 pool position (NFT) again.
As the Uniswap position acts as collateral in the protocol, a health 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... | cyfrin_structured | low | other | true | false | ## Low: Remove unused code
### Description
```solidity
File: PorticoStructs.sol L67-79:
//16 + 32 + 24 + 24 + 16 + 16 + 8 + 8 == 144
struct packedData {
uint16 recipientChain;
uint32 bridgeNonce;
uint24 startFee;
uint24 endFee;
int16 slipStart;
int16 slipEnd;
bool wrap;
bool unwrap;... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Code Refactoring
### Description
## Code Review Summary
## Issues Identified
1. **City Parameter Usage**
`request_ride` currently utilizes the `city: String` parameter to determine a city chosen by the user. However, it would be more suitable to utilize the `CityConfig` object solely.
2. **City Identifi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | flash-loan | false | false | ## Medium: Double voting in `Bootstrap.vy` in case of violation of time intervals
### Description
- https://github.com/yearn/yETH-bootstrap/blob/2dd219d3af49952275934638e8c9d50d0fef0d8f/contracts/Bootstrap.vy#L423
The Bootstrap contract is deployed by the owner setting key periods using the following functions:
- se... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Redundant _disableInitializers in Constructor ✓ Fixed
### Description
Contract `FiatTokenV1` inherits from contracts `BlacklistableV1` and `RescuableV1`, the two parent contracts both have `_disableInitializers` in their constructors to prevent uninitialized contract being initialized by the attackers, it’s no... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Bytes constants are more efficient than string constants
### Description
If data can fit into 32 bytes, then you should use bytes32 datatype rather than bytes or strings as it is cheaper in solidity.
- [Exchange.sol#L70](https://github.com/code-423n4/2022-11-non-fungible/blob/main/contracts/Exchange.sol#L70)
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `SecuritizeAmmNavProvider` violates core AMM invariant that `k` should never decrease
### Description
**Description:** Both `SecuritizeAmmNavProvider::_curveBuy` and `_curveSell` round down when calculating new reserves:
This causes users to receive slightly more output than mathematically correct and also `k... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `setFlowCaps()` can be front-run to increase effective cap usage
### Description
_Acknowledged_
The `setFlowCaps()` function in `PublicAllocator` directly sets new `FlowCaps` values. This allows a malicious actor to front-run an update by submitting a `reallocateTo()` that fully uses the existing cap values. ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | storage | true | false | ## High: Token Index error in `getNormalizedWeights` calculates incorrect weight leading to incorrect pool asset allocation
### Description
**Description:** The `_getNormalizedWeights()` function in `QuantAMMWeightedPool.sol` contains a critical indexing error when handling multipliers for pools with more than 4 token... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | liquidation | true | false | ## Medium: when fillOrder() , small pnl can cause orderFee/settlementFee to not be fully collected
### Description
`withdrawMarginUsd()` uses `round down` to compute `requiredMarginInCollateralX18`
May result in `fillOrder()` part of `fee` not being collected
### Impact
dust pnl can cause orderFee/settlementFee to n... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | reentrancy | true | false | ## Medium: Users funds can get stuck forever
### Description
The mev-commit team introduced two new parameters: `counterpartyFee` and `finalizationFee`. These fees are interdependent, meaning that any change to one requires a corresponding update to the other to maintain consistency. For example:
- If `counterpartyFe... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | oracle | true | false | ## Low: Extra bytes can be included in pairDetails
### Description
When `$_pairDetails` are set, we store a bytestring (which represents a packed version of an array of Feeds) and an `inverted` boolean flag.
Before storing these values, we use `path.getFeeds()` to decode the bytestring into an array of Feeds and vali... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | oracle | true | false | ## Low: Insufficient validation of Chainlink price feeds
### Description
**Description:** Validation of the `price` and `updatedAt` values returned by Chainlink `AggregatorV3Interface::latestRoundData` is performed within the following functions:
- [`StakingContract::_validateAndSetPriceFeed`](https://code.zeeve.net/z... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unreachable code in _reset()
### Description
**Severity**: Informational
**Status**: Acknowledged
**Description**
Voter.sol - In _reset() function we have:
Where votes[_tokenId][_pool] and accordingly _votes are of type uint256. Since the value of _votes >= 0 , we end up having _totalWeight -= _votes; ser... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Wallet is not encrypted on the filesystem
### Description
When the wallet is backed up, it is not encrypted. Copies of the wallet made by the program are saved to the file system unencrypted.
```cpp
void MainWindow::backupWalletDat() {
if (!rpc->getConnection())
return;
QDir zcashdir(rpc->getConnecti... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Malicious creators can gas-grief users
### Description
When buying or selling a token, there is a creator fee. This fee in ETH, is sent directly to the creator fee recipient. Note that there is a gas limit of 100,000.
A malicious creator can set their `creatorFeeRecipient` as a smart contract, and invoke a b... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | liquidation | true | false | ## High: Ignoring withdrawal limits during accounts merging
### Description
The `CollateralPool.merge` merges collateral pool `child` into the collateral pool `parent` ignoring withdrawal limits of the `child` pool.
```solidity
function merge(Data storage parent, Data storage child) internal {
// transfer funds ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | oracle | false | false | ## Medium: Missing price feed validation and usage of a deprecated method can lead to 0 price
### Description
**Impact:**
High, as using a 0 price would mess the swap calculations
**Likelihood:**
Low, as it requires a malfunctioning price feed
**Description**
The `_getTokenPrices` method in `SwapFacility` makes use... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing Gap Storage Slot
### Description
## Storage Layout in Solidity
By default, Solidity utilizes a linear storage layout, meaning that the storage for child contracts follows directly after inherited parent contracts. Consequently, if a contract undergoes an upgrade and the parent contracts increase their... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 variable
### Description
The [`PolygonLandTunnelMigration`](https://github.com/thesandboxgame/sandbox-smart-contracts/blob/8430ea5fdb0f4905b9678689ce0cbc2f74a704b6/src/solc_0.8/polygon/child/land/PolygonLandTunnelMigration.sol#L10) and [`LandTunnelMigration`](https://github.com/thesandboxgame/sandbox-sm... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Using while for unbounded loops isn't recommended
### Description
Don't write loops that are unbounded as this can hit the gas limit, causing your transaction to fail.
For the reason above, while and do while loops are rarely used. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | liquidation | true | false | ## Medium: Liquidation repaidshares computation rounding issue
### Description
Currently, liquidations can end up with the borrower having a less healthy position than before the liquidation (even without liquidation incentive and favorable LLTV). Note that the borrower position is measured in shares (not assets) 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 | low | access-control | true | false | ## Low: Refactoring - Roles are not used and could be removed
### Description
**Impact**
Overall roles are used only for `DEFAULT_ADMIN_ROLE` (self) and for `HOT_SIGNER_ROLE` because of this, you could simply remove the roles logic and leave a way to add and remove `HOT_SIGNERS`
https://github.com/solidity-labs-io/k... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unimplemented getVersion function returns default value of zero
### Description
The `getVersion` function within the `TransferAgentModule` contract is not implemented; at present, it yields the default `uint8` value of zero.
```solidity
function getVersion() external pure virtual override returns (uint8) {}
`... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | oracle | true | false | ## Low: Unbounded Array Iteration in TWAP Function
### Description
The **iterateTWAP()** function iterates over an unbounded array shares. This iteration occurs at the end of the function:
```
for (uint256 i = 0; i < shares.length; i++) {
uint256 ratio = (shares[i].wethAmount * 1e24) / wethSum;
uint256 out = ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Owner is able to destroy the contract.
### Description
**Description**
Expo.sol: function destroySmartContract(). Owner has the ability to destroy the contract with the following function, destroying all users' balances as well. In case the owner key is compromised or stolen, the contract can be destroyed 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 | medium | overflow | false | false | ## Medium: BBCommon::_accrue wrong value is used to prevent overflow
### Description
A mechanism is used in `_accrue`, to prevent overflow in order to avoid Dos on multiple entrypoints of a BigBang market (many external functions call on `_accrue` before executing their logic). However the wrong value is used to preve... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Using `transfer()` for ETH May Fail in The Future
### Description
**Update**
The client implemented the recommended actions.
**Update**
Marked as "Fixed" by the client. Addressed in: `553d4156c8602e53a3a3dd1c2b10a5cbad2f1472`.
**File(s) affected:**`TGKMainContract.sol`
**Description:** The function `addres... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 input validation for the setVeryBatchTimeTarget method
### Description
## Severity: Low Risk
**Context:** PolygonZkEVM.sol#L1171-L1176
**Description:**
The `setVeryBatchTimeTarget` method in `PolygonZkEVM` accepts a `uint64` `newVeryBatchTimeTarget` argument to set the `veryBatchTimeTarget`. This varia... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | token | true | false | ## Low: Fallen-target auctions can be prevented from occurring
### Description
By sending enough RSR tokens to the BackingManager contract, a user could prevent the contract from considering any other asset to be in surplus; when there is no asset in surplus, the protocol is unable to hold a fallen-target token auctio... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | oracle | true | false | ## High: Oracle price can be manipulated
### Description
Oracle price can be manipulated.
### Proof of Concept
MagicLpAggregator uses pool reserves to calculate the price of the pair token,
However, reserve values can be manipulated. For example, an attacker can use a flash loan to inflate the pair price, see code... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `createVesting()` lacks access control
### Description
The `VestingManager` contract's `createVesting` function lacks access control mechanisms, allowing any address to create vesting schedules as long as they have sufficient tokens and approve the contract.
[src/token/VestingManager.sol#L58](https://github.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Do not hardcode `_zroPaymentAddress` field to `address(0)`
### Description
Do not hardcode `_zroPaymentAddress` field to `address(0)`
### Impact
Limiting the contract flexibility and may cause a DOS if the layerZer contract ever disallow payments others than ZRO token. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Roles and Ownership
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation:
> There are essentially three recommendations here: 1. document ownership roles; 2. use multisigs for privileged roles; 3. move toward more decentralized control of ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Vault limit cannot be modified if vault Is already enabled
### Description
**Description**
The `updateVaultMaxL1Limit` function reverts with `MapWithTimeData__AlreadyEnabled` when attempting to increase or decrease the vault limit if the vault is already enabled. This behavior occurs due to the call to `vault... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect time-weighted metrics
### Description
## Time-Weighted Average Price (TWAP) and Precision Issues
In certain situations, the listed time-weighted average price (TWAP) and confidence vary wildly from the theoretical values. The issue stems from the `pd_store` function, which attempts to coerce a floa... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Unused Imports ✓ Fixed
### Description
The following source units are imported but not referenced in the contract:
### Recommendation
This issue was addressed by removing the listed imports. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Zero shares could be minted for a non-zero provided asset
### Description
In the mint and deposit flow of the VaultV2, there might be cases where the share to be minted for the user ends up being 0, even when the provided asset is non-zero.
### Recommendation
It would be best to revert in enter if shares is 0... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | signature | true | false | ## Low: Consider addings checks for signature malleability
### Description
Use OpenZeppelin's `ECDSA` contract rather than calling `ecrecover()` directly
*There is 1 instance of this issue:* | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | false | false | ## High: Malicious user can disable compound integration via share manipulation
### Description
**Details**
It's a common assumption that Compound V2 share ratio can only ever increase but with careful manipulation it can actually be lowered. The full explanation is a bit long but you can find it [here](https://githu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | token | false | false | ## Low: Silent fail on missing ERC20 mapping
### Description
There is no logging on the early return condition when no ERC20 mapping is found for the denom.
Logging this return condition would provide a data point for observability, supporting system monitoring and issue diagnosis.
### Recommended Mitigation | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Arbitrary delegatecall within the SubProxy
### Description
Within the SubProxy, the `delegatecall` is used to call various functions on the contracts that the SubProxy is the owner of. This `delegatecall` is very permissive as it does not have a target or arguments, both of which are received as parameters. 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 | initialization | false | false | ## Low: Logic Contracts Initialization Is Allowed
### Description
The Radiant protocol implements multiple upgradeable contracts, each having an initializer function meant to be called by their respective proxy. However, nothing prevents users from directly calling the `initialize` function on any of the implementatio... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Potential for Zero Allocation in `updateAllocations` Function Without Validation
### Description
**Severity**: Low
**Status**: Unresolved
**Source**: PlaneToken.sol
**Description**:
The `updateAllocations` function allows the owner to update the allocations for farming and legacy holders. However, the fun... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | cross-chain | false | false | ## High: Configuration is crucial (both Nomad and Connext)
### Description
The Connext and Nomad protocol rely heavily on configuration parameters. These parameters are configured during deployment time and are updated afterwards. Configuration errors can have major consequences. Examples of important configurations 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 | true | false | ## Low: `getUserDepositsLeft()` and `getUserNftDepositsLeft()` can revert after setting new limit
### Description
Getters for user's deposits left can revert in `NFTDepositsFacet` and `DepositsFacet` if limit was set during current epoch, while user's deposit count is greater than new limit:
Recommendation: handle 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 | initialization | true | false | ## Low: Dispensable gas fees from unoptimized loops
### Description
Throughout the code in scope, there are several instances of unoptimized `for` loop declarations that may incur in higher gas costs than necessary.
### Recommendation
Optimize the `for` loop declarations to reduce gas costs. Best practices include:
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | reentrancy | false | false | ## High: Reentrancy attack is possible on `SellETH` function
### Description
**Severity**: High
**Status**: Resolved
**Description**
The `SellETH` function sends Ether to risk managers, if these risk managers are contracts that have malicious code, there is a possibility of reentrancy attack. Even though this 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 | liquidation | false | false | ## Low: [04] Avoid caching global variables
### Description
There is no gas benefit caching a global variable like, `msg.sender`, `block.timestamp` etc. Moreover, the cached `timestamp` is only used once in either the `if` block or the last line of `return`, which further defeat the purpose of variable caching.
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... | skyward_49k | high | dos | false | false | ## High: Complete shutdown of the transaction processing...
### Description
Report type: Blockchain/DLT
Target: https://github.com/shardeum/shardus-core/tree/dev
Impacts:
* Network not being able to confirm new transactions (total network shutdown)
## Description
## Brief/Intro
The handler of the internal messa... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Approval for NFT transfers is not removed after transfer
### Description
_Submitted by cmichel, also found by gpersoon, and pauliax_
The `Visor.transferERC721` does not reset the approval for the NFT.
An approved delegatee can move the NFT out of the contract once.
It could be moved to a market and bought b... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | access-control | true | false | ## Medium: TRST-M-5 createGauge4Pool() lacks proper checks and/or access control
### Description
**Description:**
The function createGauge4Pool() can be called by anybody at any time and is used to create
a Gauge for a special pool, the 4pool. It takes 5 parameters as inputs:
None of the parameters are properly sa... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 claimable reward transfer in `killgauge()` function
### Description
The new `killGauge()` function fails to return the claimable rewards associated with the gauge back to the minter. Specifically, the logic to transfer any remaining `claimable[_gauge]` rewards to the minter and reset the claimable valu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Request withdrawals may revert due to max capital efficiency
### Description
_Resolved_
This is actually not an implementation bug, but it's a serious design logic problem. In order to reach the best capital efficiency, the protocol should use a very high percentage of deposited assets in the strategies. Howe... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Delegation should not be allowed to address(0)
### Description
[ERC721Votes.sol#L179-L190](https://github.com/code-423n4/2022-09-nouns-builder/blob/main/src/lib/token/ERC721Votes.sol#L179-L190)
Assuming an existing bug in the `_delegate` function is fixed (see my previous issue submission titled "[Delegati... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | Revert By Sending Dust | true | true |
`PirexGmx.initiateMigration` can be blocked so contract will not be able to migrate his funds to another contract using gmx.
### Proof of Concept
PirexGmx was designed with the thought that the current contract can be changed with another during migration.
`PirexGmx.initiateMigration` is the first point in this lon... | Code4rena | 5 | Redacted Cartel |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: User Deposits Can Become Stuck if the Protocol Is Blacklisted
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `6ac7fe44ef44e0bf2baeb9702e80f194c6059e19`. The client provided the following explanation:
> A warning added for the end user. https://hinkal-team.gitbook.io/hinkal-protocol/... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Long Contracts Names
### Description
**Update**
Marked as "Acknowledged" by the client. It will not be addressed now.
**File(s) affected:**`Contracts.sol`
**Description:** In `Contracts.sol`, as the names of the contracts are used as `bytes32` keys in a mapping, using a string with a representation exceeding... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Infinite Loop in EthereumJ Key Verification
### Description
There are several overloads of the `verify(...)` function in `org.ethereum.crypto.ECKey`. The overload on line 697 with three byte array arguments will always recursively call itself with no modification to the arguments:
```java
public static boolean ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Presence of Debugging Code
### Description
Debugging code was identified in the source code. While debugging code is commonly used during development for testing purposes, its presence in production can increase the risk of exploitation.
### Recommendation
It is recommended that debug functionality is disable... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Upgrading solc compiler version may help with bug fixes
### Description
## Handle
0xRajeev
## Vulnerability details
## Impact
solc version 0.8.3 and 0.8.4 fixed important bugs in the compiler. Using version 0.8.1 misses these fixes and may cause a vulnerability.
## Proof of Concept
https://github.com/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 | access-control | false | false | ## Low: Access Control Does Not Follow Security Best Practices
### Description
Both `BackendMinter.sol` and `ERC1155PandaTraits.sol` contracts inherit from OpenZeppelin’s `AccessControl` and `AccessControlUpgradeable` libraries. However, they do not follow some security best practices, for example, the DEFAULT_ADMIN_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 | oracle | false | false | ## Low: Severity - Incorrect Timestamp Validation at `StabilityConfiguration` (Stale Price Reports)
### Description
The timestamp validation logic in` StabilityConfiguration.sol` incorrectly verifies Chainlink price reports, allowing stale or expired data to be accepted. This occurs due to missing checks against the 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 | initialization | true | false | ## Low: Hardcoded Constructor Constants
### Description
In `BellumFactory` contract, the critical protocol parameters like `tradingFee`, `migrationFee`, `ETHER`, `BASIS`, `BIN_WIDTH`, `COEF`, `MIN_IN`, `MIN_OUT`, `incentivizerFee`, `createFee`, and `percentPerEpoch` are hardcoded in the constructor.
### 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... | skyward_49k | medium | initialization | false | false | ## Medium: `BondNFT.extendLock` force a user to extend the bond at least for current bond.period
### Description
The current implementation forces a user to extend their bonds for at least they current bond period. This means that, for instance, a bond which was initially locked for 365 can never be extended, even aft... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unescaped NFT metadata in `CollectionDetails.tsx `
### Description
Vulnerable code: [widget-react/src/pages/wallet/tabs/nft/CollectionDetails.tsx](widget-react/src/pages/wallet/tabs/nft/CollectionDetails.tsx)
This component renders collection.name and nft.name directly into JSX. If these fields contain malici... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Borrowing non-approved tokens can bypass trading restrictions
### Description
**Description:** In the `Inch_Module` swap functions, the output token is verified to ensure it is approved by the protocol. This validation helps maintain trust that only pre-approved tokens will be traded.
However, the trader 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 | high | token | false | false | ## High: Unhandled transfer failures
### Description
The token bridge contracts synchronize deposits and withdrawals across the two domains. In particular, whenever tokens are [locked on layer 1](https://github.com/ben-chain/contracts-v2/blob/a935e276f5620b40802b52721e3474232e458f72/contracts/optimistic-ethereum/OVM/b... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | false | false | ## High: Miscalculation in rewardswill give toomuchrewardstousers
### Description
In syncRewards, the rewards are calculated by subtracting the last rewards to the total
yield. This is inaccurate because total yield keeps increasing, and last rewards are just the last amount
rewarded.
This means that over time, 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 | initialization | false | false | ## Low: ZlpVault Does Not Fully Implement ERC-4626
### Description
The `ZlpVault` contract is missing `name` and `symbol` parameters, which are required by ERC-4626 for underlying ERC20 token. According to the ERC-4626 standard: `All EIP-4626 tokenized Vaults MUST implement EIP-20’s optional metadata extensions. The n... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | liquidation | true | false | ## Medium: Insufficient funding fee rounding protection
### Description
Since funding fees may be small when there isn't much price movement, the code has a feature to keep track of partial amounts when the chargeable fee rounds down to zero. This isn't enough when the fee is 1.X times the minimum value.
### Impact
F... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Governance proposal description only stored in log
### Description
When a new governance proposal is submitted, it requires a [description](https://github.com/AudiusProject/audius-protocol/blob/6f3b31562b9d4c43cef91af0a011986a2580fba2/eth-contracts/contracts/Governance.sol#L159). This description is not saved ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: 15. CALL DEPTH CHECK MISSING
### Description
**Severity:** Informational
**Path:** opcodes/create-terminate-context.zkasm
**Description:**
The opcodes in the create-terminate-context.zkasm corresponds to the instructions that create new call contexts, such as opCALL, opDELEGATECALL, opSTATICCALL and etc. B... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Use Of Dangerous Functionality
### Description
## OrderedVecSet and borrow_contents_mut
In the context of `ordered_vec_set`, `borrow_contents_mut` provides a mutable reference to the internal vector of `OrderedVecSet`. While this feature may be advantageous in specific scenarios, it also poses a potential ris... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: DoS in `claimUnderlyingRewards` due to strict transfer requirements on all reward tokens
### Description
_Resolved_
The `RewardAccumulator` contract manages a list of reward tokens for each market (`rewardTokens[market]`). When `processRewards` is called, it triggers `claimUnderlyingRewards` on the market 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 | initialization | true | false | ## Low: Redundant State Existence Check During Contract Creation
### Description
During the creation of the `atBTC` contract, a manual state existence check was implemented in the `new` function. However, the `new` function is also marked with `#[init]` macro which implements this behavior by default, making the manua... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Merkle Tree Leaf Format Could Lead to Users Losing Rewards
### Description
**Description:** A leaf in the Reach’s Merkle tree is computed as `leaf = keccak256(abi.encodePacked(msg.sender, _amount))` and can be interpreted as the caller, `msg.sender`, should get `_amount` of rewards. However, it is unclear 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 | true | false | ## Low: Anyone can withdraw vested amount on behalf of someone
### Description
## Handle
cmichel
## Vulnerability details
## Vulnerability Details
The `Vesting.withdrawVested` function allows withdrawing the tokens of other users.
While the tokens are sent to the correct address, this can lead to issues with sma... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | false | false | ## High: Reward distribution enables front-running attacks and reward siphoning
### Description
The reward distribution mechanism, called during loan repayment, allocates rewards to all vaults backing an agent at the time of repayment with no consideration for the amount of time the restaker has been delegating to 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 | high | other | false | false | ## High: Broken Lagrange Polynomial Evaluation at Zeta Acknowledged
### Description
The Verifier calculates the Lagrange Polynomial at ζ with an efficient scheme as:
Lj(ζ) = ωi/n \* (ζn-1)/(ζ-ωi)
which has also been pointed out in the [plonk paper](https://eprint.iacr.org/2019/953.pdf). However, the computation ign... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Reducing liquidity in the hardcoded Curve sDAI/sUSDe pool leads to unnecessary slippage loss
### Description
-
### Impact
High. Loss of funds due to unnecessary slippage
### 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 | medium | other | true | false | ## Medium: Limited availability of `balance_of(...)` method
### Description
According to the documentation ([online](https://docs.rs/pink/latest/pink/chain_extension/trait.PinkExtBackend.html#tymethod.balance_of) and [in-line](https://github.com/code-423n4/2024-03-phala-network/blob/a01ffbe992560d8d0f17deadfb9b9a2bed3... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Whitelist Validation in addStrategiesToOperatorSet()
### Description
The `addStrategiesToOperatorSet()` function does not validate whether the strategies being added to an operator set are whitelisted on **StrategyManager**. This allows AVSs to add arbitrary strategies to an operator set.
### Recommen... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | false | ## High: No checks for non-zero output address when using ecrecover()
### Description
There are no checks to ensure `ecrecover()` does not return zero. As such, any invalid signature would be treated as valid when paired with a zero address. The zero address (stored in `termAuth.user`) and an invalid signature can 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... | cyfrin_structured | low | timing | true | true | ## Low: Markets Stuck in 'Open' State even if `block.timestamp > markets[marketId].closesAtTimestamp == true`
### Description
Functions `_buy`, `_sell`, `_addLiquidity` or `_removeLiquidity` use the `timeTransitions(marketId)` modifier followed by `atState(marketId, MarketState.open)`.
If someone tries to do one of ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Non-existent users check in InvestmentManager
### Description
The functions `decreaseDepositRequest()`, `cancelDepositRequest()`, `decreaseRedeemRequest()`, and `cancelRedeemRequest()` could flood the network on the Centrifuge chain with invalid requests from the EVM chain due to a lack of input validations. S... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | token | true | false | ## Medium: `CEthInterface#repayBorrowBehalf()` reading non-existing returns makes `_repayAnyDebt()` with CEther always revert
### Description
_Submitted by WatchPug_
[CTokenInterfaces.sol#L355-L358](https://github.com/code-423n4/2022-04-backd/blob/c856714a50437cb33240a5964b63687c9876275b/backd/interfaces/vendor/CTok... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Receive function
### Description
`AccountantDelegate` has a `receive()` function, but does not have any withdrawal function. Any Manifest mistakenly sent to this contract would be locked.
### PROOF OF CONCEPT
#### lending-market/AccountantDelegate.sol
l94 receive() external override payable {}
### MITIGA... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Griefing attack can block users from redeeming requests
### Description
The daily max amount of assets that can be requested to be withdrawn is capped by the equity of solo escrow contract:
This means that if someone has requested the whole equity of the `escrowToRedeem` contract, the next request can be exec... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Overzealous resizing in Buffer ✓ Fixed
### Description
In the following code, the buffer is resized even when sufficient `capacity` is available to perform the write. The `buf.buf.length` term is unnecessary and leads to unnecessary resizing:
**contracts/Buffer.sol:L91-L95**
```
function write(buffer me... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: admin transfers should be two step process
### Description
The Admin role is critical to the functioning of the protocol, as this is the only address able to claim protocol revenues (in addition to setting fees and allowing flash assets). If this role were to be incorrectly transferred, all protocol revenues w... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.