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 | true | false | ## Low: [04] Sanity/Threshold/Limit Checks
### Description
Devoid of sanity/threshold/limit checks, critical parameters can be configured to invalid values, causing a variety of issues and breaking expected interactions within/between contracts. Consider adding proper `uint256` validation as well as zero address check... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | oracle | true | false | ## Medium: Unsafe Downcast Truncation in `UniswapOracleLibrary` Leading to Invalid Price Data
### Description
Unsafe downcast from `int56` to `int24` of variable `tickCumulativesDelta` in `UniswapOracleLibrary`.
The variable `tickCumulativesDelta` is downcasted **before** being divided by `secondsAgo`.
```solidity
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Looping a linked list
### Description
At the line: https://github.com/Gearbox-protocol/gearbox-contracts/blob/0ac33ba87212ce056ac6b6357ad74161d417158a/contracts/core/AccountFactory.sol#L40
there's a linked list called `_nextCreditAccount`.
In this list, the account address refers to the address of the next ac... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | storage | true | false | ## Medium: Cached destructible contracts may lead to corrupted execution
### Description
DSProxy provides a contract calling mechanism with more features than the original EVM calling mechanism. DSProxy contains a cache of previously known contracts. An attacker can take advantage of the cache system to fool a user 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 | other | true | false | ## Low: Refactor away duplicated code between `ComplianceService::newPreTransferCheck` and `preTransferCheck`
### Description
**Description:** `ComplianceService::newPreTransferCheck` and `preTransferCheck` do exactly the same thing, the only difference is that:
* `newPreTransferCheck` takes `balanceFrom` and `paused`... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | token | true | false | ## Medium: _validateCommitment fails for approved operators
### Description
If a collateral token owner approves another user as an operator for all their tokens (rather than just for a given token), the validation check in `_validateCommitment()` will fail.
### Impact
Approved operators of collateral tokens will be ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | initialization | false | false | ## High: Adversary can brick AutoRoller by creating another AutoRoller on the same adapter
### Description
onSponsorWindowOpened attempts to make a new series at the desired maturity. Each adapter can only have one of each maturity. If the maturity requested already exists then onSponsorWindowOpened will revert, makin... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | oracle | true | true | ## Medium: Protocol’s usability becomes very limited when access to Chainlink oracle data feed is blocked
### Description
## Lines of code
https://github.com/code-423n4/2022-10-inverse/blob/main/src/Oracle.sol#L78-L105
https://github.com/code-423n4/2022-10-inverse/blob/main/src/Oracle.sol#L112-L144
https://github.com... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: LayerZero integration can be paused but CCIP integration can't be paused
### Description
**Description:** `MTokenMessagerLZ` has a `bool lzPaused` storage slot and uses `onlyLZNotPaused` modifier to make LayerZero send/receive revert when paused.
In contrast `MTokenMessager` and `MTokenMessagerV2` have no sim... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Upgrade Solidity's optimizer
### Description
Make sure Solidity’s optimizer is enabled. It reduces gas costs. If you want to gas optimize for contract deployment (costs less to deploy a contract) then set the Solidity optimizer at a low number. If you want to optimize for run-time gas costs (when functions are... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | true | false | ## Low: Owner of a spendpermission can sign spenpermissions that will never be executed
### Description
Suppose Bob has to pay Alice for a service, so Bob issues a spend permission to Alice so that she will get paid. The problem is that there is no sufficient mechanism to ensure Bob's spend permission can be spent, an... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Incorrect Strategy for an Asset can be Never Be Updated
### Description
In the [`alloc` function](https://github.com/AladdinDAO/fx-protocol-contracts/blob/56a47eab8d10334e479df83a2b13a8b68ce390e9/contracts/fund/AssetManagement.sol#L40-L44) of the `AssetManagement` contract, there is no validation whether 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 | high | other | true | false | ## High: Router - handler reports an error condition but continues execution instead of aborting it
### Description
There are some code paths that detect and log an error but then continue the execution flow instead of returning the error condition to the caller. This may allow for a variety of griefing vectors (e.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 | dos | true | false | ## Low: Invariant panics risk node operation
### Description
## Security Audit Report
## DRAFT 5.3.5
### AllocateDevGas() contains redundant hashing
**Severity**: Low Risk
**Context**: `op-geth/core/vm/gas_tracker.go#L134`
**Description**:
- `AllocateDevGas()` contains redundant calls to `getHash()` which perf... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: Don't cache `calldata` array length
### Description
When looping through an array passed as `calldata`, it is more [efficient](https://x.com/DevDacian/status/1791490921881903468) to not cache the array length. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | signature | false | false | ## Gas: Can use immutables by pre-computing addresses
### Description
Each address is deterministic since it's the result of the deployer's address and nonce. This means that it is possible to write a simple script that:
1. Pre-computes all addresses in a sequential manner.
2. Attributes each contract a number.
3. Dep... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Unnecessary overhead of safe math that could be avoided
### Description
**Severity**: Informational
**Status**: Resolved
WalletAccount.sol -
**Recommendation**
Avoid that by putting unchecked { i++; } at the end of the body of the for loops.
**Fix**: Client carried out the suggested optimization in commi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: TRST-L-2 In _takeToken(), when the token address is WETH, the user can only use ETH, not WETH
### Description
**Description:**
In _takeToken(), when the token address is WETH, it checks **msg.value == amount**, which
means that the user can only use ETH and not WETH.
**Recommended Mitigation:**
Change to
*... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | high | Broken Loop | true | false | ## Security Report
## Severity
**High Risk**
## Context
`LienToken.sol#L823-L828`
## Description
The function `removeStackPosition()` always reverts since it calls the stack array for an index beyond its length:
```solidity
for (i; i < length; ) {
unchecked {
newStack[i] = stack[i + 1];
++i;
}
}
```
Notice that fo... | Spearbit | 5 | Astaria |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: C01] The bootstrap process can be hijacked
### Description
###### Critical
Components: [`deploy`](https://github.com/BeamNetwork/currency/tree/af3428020545e3f3ae2f3567b94e1fbc5e5bdb4c/contracts/deploy) and [proxy](https://github.com/BeamNetwork/currency/tree/af3428020545e3f3ae2f3567b94e1fbc5e5bdb4c/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 | low | token | false | false | ## Low: Different behavior between ETH and Tokens collateral
### Description
The project allows the usage of ETH or ERC20 tokens as collateral. Because ETH is a coin and not a token, it does not have a contract which keeps the account balances nor an address defined for that asset.
The project solves this by [preten... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect Interest Accrual When No Debt
### Description
When there is no debt for a collateral type, the `_calculateRewardAndDebtDistribution` function in the `IonPool` contract will [return `0` for the `timestampIncrease` value](https://github.com/Ion-Protocol/ion-protocol/blob/98e282514ac5827196b49f688938... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: CATCH ARRAY LENGTH
### Description
**Severity**: Informational
**Status**: Resolved
**Description**
Storing the array length in a variable before the loop starts reduces the number of read operations, resulting in a saving of approximately 3 gas units per iteration. This practice can yield substantial gas ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: Rename `SecuritizeBridge::whChainId` to `whRefundChainId`
### Description
The only purpose of `SecuritizeBridge::whChainId` is to be the wormhole refund chain id; rename it to something like `whRefundChainId` which accurately describes its purpose.
Also there are no functions to change this value; consider ad... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `reserve()` doesn't deletes the `_isLiquidation` mapping, causing tax loss for owner in future
### Description
`reserve()` doesn't deletes the `_isLiquidation` mapping, causing tax loss for owner in future
### Impact
Lose of tax amount for the user
### Recommendation
Delete the _isLiquidation mapping in res... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Prevent accidental ownership and admin renouncement
### Description
**Description:** The inherited `renounceOwnership()` and `AccessControlUpgradeable`’s `renounceRole(DEFAULT_ADMIN_ROLE, msg.sender)` both allow the last authority to remove themselves, potentially leaving the contract permanently ownerless or ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | medium | token | true | false | ## Medium: `MetaVault::redeemRequiredBaseAssets` should be able to redeem small amounts from each vault to fill requested amount and avoid redeeming more than requested
### Description
`MetaVault::redeemRequiredBaseAssets` is supposed to iterate through the supported vaults, redeeming assets until the required amount ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | cross-chain | true | false | ## Medium: Merkle Proof Verification Path Inconsistency Enables Cross-Chain Message Verification Bypass
### Description
A critical inconsistency exists in Matter Labs' Merkle Tree implementation where competing validation logics for single-node trees create a race condition in the security model. While `calculateRootP... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Upgradeable contract is missing a `__gap[50]` storage variable
### Description
Reference: [Storage_gaps](https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps)
You may notice that every contract includes a state variable named `__gap`. This is empty reserved space in storage that is put in plac... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | signature | false | false | ## Medium: Working with signatures - nonce and expiry
### Description
**Severity**
**Impact:** High, some signers can extract personal benefits
**Likelihood:** Low, required mistakes and unique parity of voting power
**Description**
There are some not protected attack vectors.
- if controllers signed two transact... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Net asset value of fractional and leverage token may reflect invalid price
### Description
The contracts for the fToken and xToken minted by the Treasury expose a method, `nav`, to retrieve the net asset value (NAV) of tokens. This represents what portion of Treasury’s reserve collateral is available to be rede... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | false | false | ## Medium: Functions `cancelMinipool()` doesn't reset the value of the `RewardsStartTime` for user when user's `minipoolcount` is zero
### Description
The value of `RewardsStartTime` shows when node runner started the minipool and validation rewards are generated by node runner. it is used to see if node runners are ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | medium | Front-Running | false | false | ## Security Advisory
## Severity
**Medium Risk**
## Context
- SharesManager.1.sol#L143
- WLSETH.1.sol#L116-L120
## Description
The `approve()` function has a known race condition that can lead to token theft. If a user calls the `approve` function a second time on a spender that was already allowed, the spender can ... | Spearbit | 5 | Liquid Collective |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | true | false | ## Gas: Use `calldata` instead of `memory` for function arguments that do not get mutated
### Description
**Description:** Use `calldata` instead of `memory` for function arguments that do not get mutated:
File:BeefyVaultConcLiq.sol
**Beefy:**
Fixed in commit [8349866](https://github.com/beefyfinance/experiments/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... | cyfrin_structured | low | initialization | true | false | ## Low: Don't initialize to default values
### Description
Don't initialize to default values as Solidity already does this:
```solidity
78: ROCKO_FEE_BP = 0;
597: uint256 debtBalance = 0;
598: uint256 morphoDebtShares = 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 | medium | dos | true | false | ## Medium: Malicious receiver can make distribute function denial of service
### Description
_Submitted by cccz_
In the NFTXSimpleFeeDistributor.sol contract, the distribute function calls the \_sendForReceiver function to distribute the fee
In the \_sendForReceiver function, when the \_receiver is a contract, 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 | access-control | true | false | ## Medium: LACK OF TRANSFEROWNERSHIP PATTERN
### Description
All functions that involve some kind of transfer of ownership require a single step, which is to set up the new privileged address. If this designated EOA account is not a valid account, it is very possible that the transfer of ownership will be made to an 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 | high | access-control | true | false | ## High: Incorrect Use Of Instance Storage
### Description
## SoroswapFactory Storage Overview
SoroswapFactory currently utilizes instance storage to store all token pairs. As the documentation describes, this instance storage is designed for small, frequently utilized data directly associated with the contract insta... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Owners Are Not Properly Cleared
### Description
**Update**
The client added an informative comment to the codebase in commit `6f8acb2`.
**File(s) affected:**`WebauthnOwnerPlugin.sol`, `OwnersLib.sol`
**Description:** When the plugin is uninstalled, the `onUninstall()` function is called, which clears the ass... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Pause checks are missing on deposit for Private Vault
### Description
It is possible to make a deposit even when `_loadVISlot().isShutdown` is true. This check is done in `whenNotPaused` modifier and is already done for Public Vault but is missing for Private Vault, allowing unexpected deposits.
### Proof ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | overflow | true | false | ## Gas: [9] `++i`/`i++` should be `unchecked{++i}`/`unchecked{i++}` when it is not possible for them to overflow, as is the case when used in `for`- and `while`-loops
### Description
The `unchecked` keyword is new in solidity version 0.8.0, so this only applies to that version or higher, which these instances are. Thi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: rebalance might unnecessarily revert when rebalancing multiple positions
### Description
When rebalancing multiple positions, `ensureNoMEV` is called for each position to check against pool price manipulations, according to each position's own `securityParams`. If only one of the positions has unreasonable `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 | overflow | false | false | ## Low: EtherVesting Start May Be Arbitrarily Set
### Description
The contract EtherVesting allows the start date to be anytime in the past or future as long as the end date (start + duration) is in the future. A side effect from allowing the start date to be in the future is that the `revoke()` function is unable to ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | token | true | false | ## Gas: Multiple `address`/ID mappings can be combined into a single `mapping` of an `address`/ID to a `struct`, where appropriate
### Description
Saves a storage slot for the mapping. Depending on the circumstances and sizes of types, can avoid a Gsset (**20000 gas**) per mapping combined. Reads and subsequent writes... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Failure To Burn Receipt Tokens
### Description
## Withdraw Instruction Overview
In the withdraw instruction, tokens are withdrawn from the restaking program and deposited into the `restake_receipt_token_account`. These tokens are supposed to represent the user’s stake or deposit in the restaking program. 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: Subtractions and additions can be simplified
### Description
In several places, the expression `a = a - b` is used. This can be replaced with `a -= b`, which is more efficient, easier to read, and more consistent.
### Recommendation
Consider changing the code to:
```solidity
function payManagementFees() /*...... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Ended locks can be extended
### Description
When a lock period ends, it can be extended. If the new extension 'end' is earlier than the current block.timestamp, the user will have a lock that can be unstaked at any time."
### Impact
The owner of the lock will achieve points that he can unlock anytime. This... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | dos | true | false | ## Medium: Last Holder Can’t Exit, Zero‑Supply Unstake Reverts
### Description
### Finding description and impact
When a user burns the **entire remaining supply** of a Cabal LST ( sxINIT or Cabal LPT) via `initiate_unstake`, the follow‑up processing step always aborts with a divide‑by‑zero and the user can never exi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Redundant Restricting Modifier in View Function
### Description
The issue is identified within the [`getOrderInfo`](https://github.com/longgammalabs/hanji-contracts/blob/09b6188e028650b9c1758010846080c5f8c80f8e/src/TrieLib.sol#L155) function of the `Trie` contract.
This function has a redundant `onlyLOBPermis... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Staking node can be inappropriately removed from the tree ✓ Fixed
### Description
The following code in `OrchidDirectory.pull()` is responsible for reattaching a child from a removed tree node:
**code/dir-ethereum/directory.sol:L275-L281**
```
if (name(stake.left\_) == key) {
current.right\_ = stake.rig... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: owner can hide a staked nft via removeTokenIdAtIndex and inflate shares using this to make profit
### Description
The ability for the owner to remove a staked Nexus NFT from the tokenIds array without withdrawing its stake will cause manipulation and profit, as the owner can hide an NFT’s stake from `stakedN... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Loss of precision in loan and redemption point regeneration slows the regeneration rate
### Description
The regeneration of loan and redemption points is calculated as follows:
When `secondsElapsed * regenerationRatePerMin` is not a multiple of 60, the regenerated points will be rounded down, slowing the reg... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: GM tokens were deposited but no shares were minted
### Description
**Severity**: High
**Status**: Resolved
**Description**
In Contract GlmManger.sol, the method getGmTokenValueInUSDC() has the following logic:
Here if `_amount` is less than 1e12 (let’s say 1e11), the return will be (1e30*1e11*1e6)/(1e48)... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Return Value in redeem() Function
### Description
The Treasury contract can be interacted with from "externally owned accounts" (EOAs) and other smart contracts. When calling the `redeem()` function, an EOA’s UI can track which _star it receives from the Treasury contract through emitted events. Howeve... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Ability to deny users from repaying and supplying at the Pool contract
### Description
Hello team, | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Funds not transferred before `withdrawManager` update
### Description
_Acknowledged_
The `setWithdrawManager()` function can be used by the protocol upgrader to change the withdraw manager address:
However, this function fails to send the accumulated `hypeRequestedForWithdraw` back to the current staking 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 | signature | false | false | ## Low: `_verifySignature` is not compatible with smart contract wallets or other smart accounts
### Description
**Description:** Support for smart accounts (e.g. [ERC-4337](https://eips.ethereum.org/EIPS/eip-4337)) and other smart contract wallets (e.g. Safe{Wallet}) minting tokens is not currently possible as the si... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | token | false | false | ## Medium: Auction collateralToken won’t work if token is fee-on-transfer token
### Description
## Handle
harleythedog
## Vulnerability details
## Impact
There are several ERC20 tokens that take a small fee on transfers/transferFroms (known as "fee-on-transfer" tokens). Most notably, USDT is an ERC20 token that ha... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Blacklisted account can perform UsualM token transfers from other non-blacklisted accounts
### Description
The `UsualM._update` function implements blacklist checks for the sender and receiver of UsualM tokens. This is done to prevent transfers of tokens from/to a blacklisted account. However, the implementati... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Logic edge case if a chain re-organisation happens
### Description
**Severity**: Medium
**Status**: Unresolved
**Description**
In contract PaymentProcessor.sol, the flow is firstly checking if the enforcePricingConstrains is enable and if it is enable is checking if the price is set between floor 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 | medium | initialization | false | false | ## Medium: Interface inconsistencies
### Description
The following inconsistencies have been found around interfaces:
- `ISet`'s definition of the `claim()` function returns a `uint256` while the actual implementation returns `uint128`.
- `ISet`'s definition of the `redemptions()` function has different return 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 | medium | front-running | false | false | ## Medium: Cannot decrease allowance to non-zero value
### Description
The `uniApprove` function of the `UniERC20` library can be used to change the token allowance granted to a specified address. However, if the new value is non-zero and [the existing allowance is greater than the new value](https://github.com/1inch-... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: GoDfaErrorMayBeNotNil
### Description
**Severity**: Low
**Status**: Acknowledged
**Description:**
There are instances where errors are not explicitly checked after function calls, potentially leading to unexpected behavior.
**Files**:
crypto/hd/utils_test.go: 147
ethereum/eip712/eip712.go: 14
testutil/tx/... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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] Fixed min amount in `exerciseOption`
### Description
In [`TapiocaOptionBroker::exerciseOption`](https://github.com/Tapioca-DAO/tap-token/blob/20a83b1d2d5577653610a6c3879dff9df4968345/contracts/options/TapiocaOptionBroker.sol#L396) there is a minimum amount you can claim:
This amount is fixed. Hence, if ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Integer Division in Reward Rate Calculation Locks Dust Tokens
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation:
> as staking continues to happen we think the rewards the left over would be negligible
**File(s) affected:**`CampStakingVault.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 | medium | liquidation | true | false | ## Medium: Wrong rounding direction when calculating leverage delta for counter trades
### Description
In `IncreasePositionSizeUtils.prepareCallbackValues`, when a counter trade increases position size by increasing leverage and exceeds the available position size needed to neutralize skew, the function calculates a l... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: There is no input parameter processing in the method
### Description
At the lines:
- https://github.com/andy8052/yveCRV-vault/blob/6706b9ad45e71ee9014454419f229adfa6409f1d/contracts/Strategy.sol#L151
the `adjustPosition()` method has an input variable `_debtOutstanding`.
But there is no processing of this 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 | initialization | false | false | ## Low: Operational Mitigation Suggestion
### Description
## Operational Mitigation to Prevent Share Rounding Attacks
It is recommended to:
1. Implement a proper rounding direction in the contracts.
2. Initialize new token weights to zero.
3. Deposit a nominal token amount to prevent easy manipulation of indexes or ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | cross-chain | true | false | ## High: TOFT in (m)TapiocaOft contracts can be stolen by calling removeCollateral() with a malicious removeParams.market
### Description
The `TOFT` available in the `TapiocaOFT` contract can be stolen when calling `removeCollateral()` with a malicious market.
### Proof of Concept
`(m)TapiocaOFT` inherit `BaseTOFT`,... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Fixed Fee Deduction Month
### Description
**Update**
The team acknowledged the issue and stated that this is intended by design. It is expected that the months will be fixed in order to deal with off-chain regulations and administrative duties. Reply from the BWGToken team:
> _This design is just as intended,... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 can revoke any user from a market
### Description
Lack of access control in `revokeLender` allows an attacker to revoke any participant from a market
### Impact
Attacker can revoke any address they wish from any market making the market unuseable
### Recommendation
Perform access control checks | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unfulfilled transaction repayment
### Description
If other than the node account tries to use the `KlasterPaymaster.sol`, it will revert because there is no deposited ETH. The paymaster is only prepaid when a Klaster node sends userOps to the entry point:
To address this issue paymaster's funds should be ver... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unnecessary payable functions may lead to permanently locked funds
### Description
The payable modifier on `withdraw` and `claimInterest` enables callers to pass nonzero `msg.value` which is not used by the function implementation. There is no functionality anywhere to withdraw these funds, so they will be ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Missing Input Validation
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `09f3b8844ff0ba4002cd565c4c4a0ff7e2c53b23`.
**File(s) affected:**`rell/src/lib/ft4/core/crosschain/blockchain.rell`, `rell/src/lib/ft4/core/accounts/rate_limit.rell`
**Description:** It is important to validate... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | rounding | true | false | ## Low: Incorrect shares if token is non-18 decimal
### Description
1.) When the total supply in the LendingAssetVault.sol is 0 it follows the following during the deposit flow -->
and convertToShares -->
and `_cbr` is -->
2.) As we can see if the total supply is 0, cbr = PRECISION which is 1e27. Therefore insid... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Not compliant with ERC1404 ✓ Fixed
### Description
The ERC1404 standard is an extension of the ERC20 standard. Here it has been implemented as a standalone contract, but does not contain all of the extra functions required by ERC1404.
As such, neither the `FAIR` contract nor the `ERC1404` contract is ERC1404... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | signature | true | false | ## Medium: A user can use the same proof for a commitment more than 1 time
### Description
A user can use the same commitment signature and merkleData more than 1 time to obtain another loan.
### Proof of Concept
A user needs to make some procedures to take a loan against an NFT.
Normally the user calls commitToLien... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: After a User withdraws The interest Rate is not updated accordingly leading to the next user using an inflated index during next deposit before the rate is normalized again
### Description
A bug in Zerolend's withdrawal mechanism causes the interest rate to not be updated when funds are transferred to the t... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | false | false | ## Low: Using `_transferAdminRole()` to Grant an Existing Admin `DEFAULT_ADMIN_ROLE` Will Leave `target` without an Admin
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `24e15eb7772b4e80eae4018e52138ba3fbdbe3bd`. The client provided the following explanation:
> Revert with SameAdminAddress ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | dos | true | false | ## Medium: Heart will stop if all rewards are swept
### Description
_Submitted by GalloDaSballo, also found by cccz, itsmeSTYJ, and PwnPatrol_
Rewards for Heart `beat` are sent via `_issueReward`
The function doesn't check for available tokens e.g.
`min(reward, rewardToken.balanceOf(address(this)));`
In case of 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: Unprotected slippage tolerance can lead to user/protocol loss of funds
### Description
Slippage is the difference between the expected price of an order and the price when the order actually executes. If the slippage tolerance is set too low, a transaction will not execute. If the slippage tolerance is set ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | high | signature | false | true |
[contracts/smart-contract-wallet/SmartAccount.sol#L212](https://github.com/code-423n4/2023-01-biconomy/blob/53c8c3823175aeb26dee5529eeefa81240a406ba/scw-contracts/contracts/smart-contract-wallet/SmartAccount.sol#L212)<br>
Signed transaction can be replayed. First user transaction can always be replayed any amount of ... | Code4rena | 4.333333 | Biconomy |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Possible reentrancy and fund theft in `withdrawDETH()` of `GiantSavETHVaultPool` because there is no whitelist check for user provided Vaults and there is no reentrancy defense
### Description
Function `withdrawDETH()` in `GiantSavETHVaultPool` allows a user to burn their giant LP in exchange for dETH that 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... | cyfrin_structured | low | reentrancy | false | false | ## Low: Missing `nonReentrant` modifier on `GMTokenManager` mint/redeem
### Description
The [`GMTokenManager::mintWithAttestation`](https://github.com/ondoprotocol/rwa-internal/blob/a74d03f4a71bd9cac09e8223377b47f7d64ca8d4/contracts/globalMarkets/tokenManager/GMTokenManager.sol#L170-L175) and [`GMTokenManager::redeemW... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Event Emission
### Description
**Severity** : Informational
**Status** : Resolved
**Description** :
For each function, define an event that logs the relevant parameters changed by the function call.
- `setTreasury`
- `setPoolYield`
- `setIDOToken`
- `setTokenPriceInUSD`
- `setEnableWhitelist` | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Consider Using Named Mappings
### Description
The project is using a Solidity version greater than `0.8.18`, which supports named mappings. Using named mappings can improve the readability and maintainability of the code by making the purpose of each mapping clearer. This practice helps developers and auditors... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `LIQUIDITY_POOL.amountForShare(1 wei)` may round down to zero
### Description
This issue has been identified within the `depositETHForEETH()` and `depositETHForWeETH()` functions of the `EtherFiTreasuryExtension`.
* https://github.com/resolv-im/resolv-contracts/blob/ae2b6873a369e3eaa107a269dbeb2e1eb63eb74b/co... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Assert All RPC parameters
### Description
No checks on the remote procedure call parameters occur, which may result in type confusion attacks.
## Remediation
Utilize **superstruct** to assert all types and values of attacker-controlled parameters. This implementation fortifies the application to prevent abno... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Cyclomatic complexity
### Description
**Severity**: Informational
**Status**: Unresolved
**Contract**: PlexusIDO
**Functions**: seedClaimPlx, kolsClaimPlx
**Details**:
The functions above have cyclomatic complexity 12.
**Recommendation**:
Reduce cyclomatic complexity by splitting the function into seve... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Borrower has no way to update `maxTotalSupply` of `market` or close market.
### Description
Without the ability to update `maxTotalSupply`, `borrower` has no way to raise more assets in a specific market. Even worse, `borrower` has to pay extra interest for unused assets all the time because `borrower` has 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 | high | rounding | false | false | ## High: User can lose their reward due truncated division
### Description
The truncated division can cause users to lose rewards in this update round, which may happen when any of the following conditions are true:
1. `RewardToken.decimals()` is too low.
2. Reward is updated too frequently.
3. `StreamDuration` is to... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | access-control | false | false | ## Medium: Migrator contract lacks sufficient permissions over vault positions
### Description
The migrator contract lacks sufficient permissions over vault shares to successfully perform migration.
### Impact
Funds / positions cannot be successfully migrated due to lacking permissions.
### Recommendation
In additio... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Using `calldata` instead of `memory` for read-only arguments in `external` functions saves gas
### Description
When a function with a `memory` array is called externally, the `abi.decode()` step has to use a for-loop to copy each index of the `calldata` to the `memory` index. Each iteration of this for-loop 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... | cyfrin_structured | low | other | false | false | ## Low: `Hype_module::assetAddress` can be `pure`
### Description
`Hype_module::assetAddress` neither reads nor writes state. Mark it `internal pure` to enable compiler optimizations, allow static analysis/staticcall-style usage, and slightly reduce gas/bytecode size while preventing accidental state access. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Pools Do Not Make Use Of maxDeposit()
### Description
The ERC-4626 vault specification defines a `maxDeposit()` function that returns "the maximum amount of underlying assets that can be deposited in a single deposit call." If a deposit exceeds this size, the call will revert. This feature of the specification... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Ownership Can Be Renounced
### Description
**File(s) affected:**`See the Description section`
**Description:** If the owner renounces their ownership, all ownable contracts will be left without an owner. Consequently, any function guarded by the `onlyOwner` modifier will no longer be able to be executed.
All... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | storage | true | false | ## Gas: `withdrawFunds` function can reduce gas cost by using unchecked
### Description
`_userWallets[msg.sender][schainHash] - amount` will never be less than 0, since it checks `amount
require(amount <= _userWallets[msg.sender][schainHash], "Balance is too low");
require(!messageProxy.messageInProgress(), "Mes... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 event for important state changes
### Description
**Description:** The following calls doesn't emit any events:
* [`LandFactory::updateLockAmount`](https://github.com/Polkamarkets/polkamarkets-js/blob/24f1394be94d27433d2e3a7370442126e1c1e5ba/contracts/LandFactory.sol#L205-L210)
* [`PredictionMarketV3_4... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Require revert cause should be known
### Description
Vulnerability related to description is not written to require, it must be written so that the user knows why the process is reverted.
### Recommendation
Current Code:
```js
require(sell.order.side == Side.Sell);
```
Recommendation Code:
```js
require(sell... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | dos | false | false | ## Medium: `PUSH0` opcode Is Not Supported on Linea yet
### Description
Source: https://github.com/sherlock-audit/2024-05-pooltogether-judging/issues/79
The protocol has acknowledged this issue.
## Found by
0xSpearmint1, aman, elhaj, volodya
## Summary
## Vulnerability Detail
- The current codebase is compiled w... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.