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: Inconsequent Use of Pause Mechanism
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `0bc83e4e8647c9f08e2315d6f0e74c7658b21e78`. The client provided the following explanation:
> Note that for Owner Controlled settings, we intend to allow updates of admin settings in case of emergency.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | token | true | false | ## High: Fee on transfer tokens will cause users to lose funds
### Description
Some ERC20 tokens, such as USDT, allow for charging a fee any time transfer() or transferFrom() is called. If a contract does not allow for amounts to change after transfers, subsequent transfer operations based on the original amount will ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Operator role not used
### Description
According to comments these functions were expected to check the `OPERATOR_ROLE`:
`forceCancelOrder()` - now checks onlyOwner
`settle2Step()` - now checks onlyOwner
`settleCalcelled()` - 'Buyer or Operator Only', but now checks buyer and onlyOwner
As a result, the operat... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | high | oracle | true | false | #### Resolution
To mitigate this issue, the Bancor team has added a mechanism that adjusts the effective weights once per block based on its internal price feed. The conversion rate re-anchors to the external oracle price once the next oracle update comes in. This mechanism should help to cause the weight rebalancin... | ConsenSys | 4 | Bancor V2 AMM Security Audit |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Adversary can win proposals with voting power as low as 4%
### Description
The expected quorum for proposals is 25% of the voting power.
An attacker can execute any proposal with as low as 4% of the voting power.
Proposals that don’t get enough quorum are expected to fail because of that threshold, but the ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | overflow | true | false | ## Low: msg.data.length underflow checks are incorrect
### Description
There are several instances throughout the code where an incorrect check is performed against `msg.data.length` to ensure the offsets used to parse the appended calldata will not underflow. However, these checks will never be triggered under ordinar... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `TrustService::removeRole` doesn't delete already owned entities so address which lost role can still manage existing entities
### Description
**Description:** `TrustService::removeRole` doesn't delete entities so address which lost role can still manage existing entities.
**Proof of Concept:** Add PoC to `te... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Typo in README "potisitions"
### Description
### Relevant GitHub Links
https://github.com/Cyfrin/2023-07-beedle/blob/658e046bda8b010a5b82d2d85e824f3823602d27/README.md?plain=1#L83
## Vulnerability Details
There is a typo in the README: "potisitions" instead of "positions"
## Impact
Unclean code
## Tools Us... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Ownership Can Be Renounced
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `4be2fcdc5cca75161c10dc40d8799936099d0eca`. The `renounceOwnership()` function is now overriden.
**File(s) affected:**`UnikuraMembership.sol`, `UnikuraMothership.sol`, `UnikuraPhygitalCollection.sol`
**Descri... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Once EntropyRateBps is set too high, can lead to denial-of-service (DoS) due to an invalid ETH amount
### Description
Once entropy is set too high, the remaining ETH used to invoke `buyToken` is very small, which can lead to the protocol permanently being stuck.
### Proof of Concept
After auction is end 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 | cross-chain | false | false | ## Medium: Lack of chains whitelisting
### Description
The project provides for cross-chain token transfers of FBTC through the `addCrosschainRequest` function. If the network with the specified chain ID is not supported by the FBTC infrastructure, all burned FBTC tokens in the `addCrosschainRequest` function 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 | gas | other | true | false | ## Gas: Using `storage` instead of `memory` for structs/arrays saves gas
### Description
When fetching data from a `storage` location, assigning the data to a `memory` variable causes all fields of the struct/array to be read from storage, which incurs a Gcoldsload (2100 gas) for each field of the struct/array. If the... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: Constant values such as a call to `keccak256()`, should used to immutable rather than constant
### Description
There is a difference between constant variables and immutable variables, and they should each be used in their appropriate contexts.
While it doesn't save any gas because the compiler knows that dev... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Repeatable code
### Description
**Description**
Lines 493, 522, 546. "require(!isPaused, "Contract is paused");"
**Recommendation**:
Replace repeatable code with modifier. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | token | false | false | ## Medium: Uncontained Token Errors
### Description
In the `BasicIssuanceModule`, redeeming Set tokens is achieved by [looping through all the components](https://github.com/SetProtocol/set-protocol-v2/blob/b8286f431547823ff3935a1343cd4cf4d77585a1/contracts/protocol/modules/BasicIssuanceModule.sol#L138-L153) and sendi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | false | false | ## Gas: Unnecessary checks in LockstakeClipper.take
### Description
Within the `take` function, an external call is made to `who.clipperCall`. This external call is made only if the data is not empty and `who` is not one of the three authorized contracts in the clipper: `vat`, `dog`, and `engine`.
These three contra... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | oracle | false | false | ## Low: Missing oracle can cause unexpected behavior
### Description
Prior to pull request [#9367](https://github.com/celo-org/celo-monorepo/pull/9367/files), the `addToken` function in the `Reserve` contract checked that an oracle exists for the token being added, and the oracle returns a non-zero exchange rate. Thes... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | TWAP | true | true | _Submitted by IllIllI_
While users are incentivized to call the heartbeat, the incentive may be removed later, or it may be more profitable to use old prices, so users may not call the heartbeat during unfavorable prices, leading to the TWAP price being incorrect, and users getting the wrong price for their assets.
A... | Code4rena | 3 | Olympus DAO |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Configuration update retroactively impacts users rewards
### Description
Updating the configuration of a staking pool using the [`configureStakingToken`](https://github.com/across-protocol/across-token/blob/dde7aedc766bf69f1cb0eb791b60259c705baa26/contracts/AcceleratingDistributor.sol#L115) function in 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 | initialization | true | false | ## Medium: Discrepancy between the `lastRewadTime` and the `lastAllPoolUpdate` can allow for incorrect reward distribution to pools if `registerRewardDeposit` deposits less assets
### Description
Incorrect reward distribution causing some pools to gain more while others to gain less.
### Proof of Concept
The `_massU... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Users can't remove liquidity while a pool is disabled
### Description
There is a functionality for disabling a pool in case of unforeseen circumstances or if a problem occurs. While the pool is disabled the users should not be able to do certain actions but removing their liquidity should not be one of them... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Semantic overloading in the No outcome of proposals
### Description
When a proposal fails to meet support of the majority of stake, its [outcome is set to `No`](https://github.com/AudiusProject/audius-protocol/blob/6f3b31562b9d4c43cef91af0a011986a2580fba2/eth-contracts/contracts/Governance.sol#L395). Also, ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | false | false | ## Gas: use `constant` instead of storage
### Description
Use constant instead of storage and change from `uint256 MAX_INT = 2**256-1;` to `uint256 private constant MAX_INT = type(uint256).max;`:
* [ERC20.sol#L18](https://github.com/Plex-Engineer/lending-market-v2/blob/2646a7676b721db8a7754bf5503dcd712eab2f8a/contra... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | signature | true | false | ## Low: [`require(sp != 0);` fails to protect Schnorr signature validation
### Description
An incorrect check drastically reduces the security of Schnorr validation. Whether it is completely broken depends on whether fixed points can be found for `keccak256(f(x))`.
### Proof of Concept
Schnorr signatures are validat... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The TokenArro contract can be transferred to the zero address
### Description
The [`transferOwnership`](https://github.com/pjsimpkins/ArroERC20Code/blob/1ca1cc85f2e7e046070c187031b75b3335ef57c3/Solidity#L89) function in the `Owned` contract does not prevent to transfer the ownership of the contract to the zero... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `MinLockTime` should be less than `maxLockTime`
### Description
**Severity**: Low
**Status**: Resolved
**Description**
In Contract VaultManager.sol, the setMinLockTime(...) assigns a value to minLockTime but it is not checked to be less than maxLockTime. In case minLockTime is accidentally set to greater 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 | access-control | false | false | ## Low: Deposits can be spammed with zero amounts
### Description
The permissionless `deposit_spl` instruction imposes no restrictions on the amount. Consequently, anyone can spam deposits with zero or dust amounts, thereby unnecessarily increasing the `last_deposit_index`.
### Recommendation
It is recommended to int... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | cross-chain | false | false | ## Low: Colluded message ordering could result in undesirable state
### Description
The entire security of Auth in `Root.sol` is heavily dependent on a spell pattern from MakerDAO. There are two ways to add a new ward to root:
1. Through `DelayedAdmin.sol`
2. Through `Gateway.sol`
The `Gateway` contract depends on t... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | high | Gas Limit | true | true |
[HolographOperator.sol#L316](https://github.com/code-423n4/2022-10-holograph/blob/f8c2eae866280a1acfdc8a8352401ed031be1373/src/HolographOperator.sol#L316)<br>
There's a check at line 316 that verifies that there's enough gas left to execute the `HolographBridge.bridgeInRequest()` with the `gasLimit` set by the user, ... | Code4rena | 5 | Holograph |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `FighterFarm::reRoll` won't work for nft id greater than 255 due to input limited to uint8
### Description
`FighterFarm::reRoll` uses uint8 for nft id as input, which will stop people calling this function who owns id greater than 255. It will lead to not being able to use the reRoll to get random traits, whi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: [04] Typos
### Description
- GovernorCountingOverriable.sol ( [#L35](https://github.com/code-423n4/2023-08-livepeer/blob/main/contracts/treasury/GovernorCountingOverridable.sol#L35) , [#L59](https://github.com/code-423n4/2023-08-livepeer/blob/main/contracts/treasury/GovernorCountingOverridable.sol#L59) ):
- ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | Validation | true | true | **Severity**
**Impact:**
Medium, as only one NFT won't be available for minting, but this is value loss to the protocol
**Likelihood:**
High, as it's impossible to mint the last NFT
**Description**
Currently both the `mint` and `mintPhysical` methods have the following check:
```solidity
if (nextId + amount >= MAX... | Pashov Audit Group | 5 | Museumofmahomes |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Anyone can withdraw funds left on `SwapExecutor`
### Description
Funds left on the `SwapExecutor` can be withdrawn by anyone who specifies a transfer call in the swaps.
There are multiple reasons why funds may be left on the `SwapExecutor`:
1. A user may not set the `tokenRatio` to 100% in a swap.
```
uin... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `PUSH0` not supported on Arbitrum
### Description
The contracts use solidity version `0.8.20`, which introduces the `PUSH0` opcode. This opcode is not present on Arbitrum. The `foundry.toml` file doe not specify any `evm_version`, so the contracts are compiled with the default `paris` version, which does not 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 | initialization | true | true | ## Low: The L1OpUSDCFactory contract is prone to human errors, potentially leaving the L2 USDC con- tract not completely initialized
### Description
The `L1OpUSDCFactory.deploy()` function allows passing an array of USDC initialize transactions:
```solidity
struct L2Deployments {
address l2AdapterOwner;
bytes usd... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Data requests queue can be DoS'ed
### Description
Posting data requests on the SEDA chain is permissionless and does not incur fees. This can be exploited by creating thousands of dummy and cheap data requests that will never be executed by executors but, once expire, they will bloat the processing queue.
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Multiple address mappings can be combined into a single mapping of an address 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 can also be cheap... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: markPrice Can Be Influenced To Cause Cascading Liquidations
### Description
Margin values are determined by `markPrice` which is easily influenced by skew impact. An attacker can create a large position to push skew in one direction and force other traders to be liquidated. As each trader is liquidated, it fur... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: tbtc - Ethereum block gas limit imposes a fundamental limitation on SPV proofs ✓ Addressed
### Description
Several components of the tBTC system rely on SPV proofs to prove the existence of transactions on Bitcoin. Because an SPV proof must provide the entire Bitcoin transaction to the proving smart 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 | other | true | false | ## Low: Use constants instead of magic numbers
### Description
**Description:** Use constants instead of magic numbers; 1000000, 1e6 and 10 ** 6 are all identical and should declared in a constant that is imported into the various files.
**Remora:** Fixed in commit [aaaab45](https://github.com/remora-projects/remora... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: A new malicious adapter can access users’ tokens ✓ Fixed
### Description
The purpose of the `MetaSwap` contract is to save users gas costs when dealing with a number of different aggregators. They can just `approve()` their tokens to be spent by `MetaSwap` (or in a later architecture, the `Spender` 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 | other | false | false | ## Low: Solidity compiler optimizations can be problematic
### Description
**Description:**
Protocol has enabled optional compiler optimizations in Solidity.
There have been several optimization bugs with security implications. Moreover, optimizations are actively being developed. Solidity compiler optimizations are d... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | access-control | true | false | ## Medium: Insufficient validation in `AvalancheL1Middleware::removeOperator` can create permanent validator lockup
### Description
**Description:** Removal of operators with active nodes, whether intentional or by accident, can permanently lock operator nodes and disrupt the protocol node rebalancing process.
The `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 | high | other | true | false | ## High: Typevotes update error causes vote counts to be off forever
### Description
In `changeGaugeWeight`, `typeWeights[gaugeType][nextTimestamp] = newSum;` is assigned. However, `typeWeights` is a coefficient that is multiplied by vote, and it is `typeVotes` to which `newSum` should be assigned instead.
Because 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 | token | true | false | ## Low: `safeApprove()` is deprecated
### Description
[Deprecated](https://github.com/OpenZeppelin/openzeppelin-contracts/blob/bfff03c0d2a59bcd8e2ead1da9aed9edf0080d05/contracts/token/ERC20/utils/SafeERC20.sol#L38-L45) in favor of `safeIncreaseAllowance()` and `safeDecreaseAllowance()`
1. File: contracts/PaladinRewa... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: NFT Holder Cannot Withdraw Repaid Amount Due to Loan Seller Check
### Description
**Severity**: Low
**Status**: Acknowledged
**Location** LoanManager.sol, Receivable.sol
**Description**:
The Receivable NFT, which represents a transferable debt claim, restricts the ability to withdraw the repayment of 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: Vanilla renounceOwnership from OZ Ownable could lead to unclaimable deposit
### Description
For safety, the Ownable library by OpenZeppelin has appropriate sanity checks in place for the `transferOwnership` function to not allow changing the owner to `address(0)`, which would effectively lead to anyone losing ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: AMM - Unchecked return value in ShareToken.mint Pending
### Description
`ShareToken` is an extension of the Openzeppelin [ERC20Mintable](https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v2.5.1/contracts/token/ERC20/ERC20Mintable.sol#L20-L23) pattern which exposes a method called `mint()` that allow... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
### Description
If `tokenOutPrice` is less than `tokenInNormalizationValue`, then the amount will be zero for some amounts. The caller of `getAmountOut()` should revert if `tokenOutAmount` ends up being zero
1. File: src/KnightingRound.sol (lines [239-241](https://github.com/code-423n4/2022... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | rounding | false | false | ## Low: Rounding causes lost of dust amounts on each claimReward
### Description
The claimableAmount calculation is based on a proportional formula using `elapsedBlocks / vestingDuration`. However, since stream claims are tracked by block number rather than actual claimed amounts, rounding discrepancies in this divisi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing zero amount and address checks
### Description
**Severity**: Low
**Status**: Resolved
**Description**
In the TradableBalanceVault contract, there is a missing non-zero check for the amount parameter in the marginAccountWithdrawal() function. This could accidentally lead to the withdrawal of 0 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 | low | oracle | true | false | ## Low: Operator can bribe the miner and steal honest operator's bond amount in all the chains that do not implement the EIP-1559
### Description
Operators in Holograph perform tasks using the `executeJob()` function with bridged bytes from the source chain. If the primary operator fails to execute the job within the ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: CvxLocker.setStakeLimits missing validation
### Description
## Handle
cmichel
## Vulnerability details
## Vulnerability Details
The `CvxLocker.setStakeLimits` function does not check `_minimum <= _maximum`.
## Recommended Mitigation Steps
Implement these two checks instead: | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: No quorum in voting allows attack to spam the election with candidates
### Description
A malicious user can abuse candidates creation and the vote criteria to pass a candidate with low stake cost. Unless you propose a new challenge, the candidate creation has no cost, nor is it restricted in any way:
```py... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Short-circuiting is essential for optimizing gas usage
### Description
If the `amount` to be transferred within the `transfer_from` function equates to zero, it is advisable for the contract to short-circuit to minimize gas consumption.
Otherwise, the contract will expend gas in an attempt to update allowance... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Chainlink Feeds Cannot Have More Than 18 Decimals
### Description
Within `OracleRouter`, [a subtraction of chainlink's decimals](https://github.com/radiant-capital/riz/blob/65ca7bb55550d30388e2b2277fefe5686ab7e4e8/src/OracleRouter.sol#L151) is performed inside `_getChainlinkPrice`. If the decimals from the cha... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | cross-chain | false | false | ## Low: OFTVotes can be simplified to avoid code duplication
### Description
The OFTVotes contract can be simplified by inheriting from `OFTUpgradeable` instead of `OFT-CoreUpgradeable`. Currently, it defines four functions relevant to cross-chain transfers:
- `token()`
- `approvalRequired()`
- `_debit()`
- `_credit()... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unbounded iteration in NFTXEligiblityManager.distribute over _feeReceivers
### Description
## Handle
@cmichelio
## Vulnerability details
## Vulnerability Details
`NFTXEligiblityManager.distribute` iterates over all `_feeReceivers`.
## Impact
If the number of `_feeReceivers` gets too big, the transac... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | liquidation | false | false | ## High: An inflation attack allows for hard liquidations
### Description
In `TwoWayLending`, the share price can easily inflate through a direct transfer of funds to the `Controller`. This can be used to trigger hard liquidations:
1. A hacker buys the victim's collateral shares in the `AMM` using `exchange()`.
2. The... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | signature | true | false | ## Low: Ambiguous expiration timestamp validation in `DelegationMetaSwapAdapter`
### Description
**Description:** In the DelegationMetaSwapAdapter.sol contract, the _validateSignature() method uses a "greater than" (>) comparison instead of a "greater than or equal to" (>=) comparison when validating signature expirat... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Malicious router mitigation may break for deflationary tokens
### Description
The `ERC20 _pullTokenInputAndPayProtocolFee()` function for routers includes a mitigation against malicious routers by checking if the difference in token balances before and after the transaction is equal to the transferred 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 | low | token | false | false | ## Low: Balance validation should use delta instead of absolute balance
### Description
In the [`callExecutor()`](https://github.com/BarterLab/argon/blob/f653d58132124854db42d2bd93d0c6b91da2c398/contracts/InchFusionBarterResolver.sol#L93-L123) function, the balance validation uses the absolute balance of the 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 | other | false | false | ## Low: Missing input validation
### Description
Some functions throughout the contracts in scope lack input validation. Instances of this issue include:
- `SendEarn.setFeeRecipient()`
- `SendEarn.setCollections()`
### Recommendation
Implement input validation to ensure that the input addresses are not 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 | dos | true | false | ## High: Inconsistency in Usage of tokenMapping . . . . . . . . . . .
### Description
## Vault Contract Vulnerability
The vault contract uses `mapping(uint256 => bool) tokenMapping` for storing and verifying the existence of an NFT in the pool/vault. The key for `tokenMapping` is an encoding of the NFT address and 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... | cyfrin_structured | low | other | true | false | ## Low: Deployment script requires unencrypted private key
### Description
The deployment script [`deploy.sh`](https://github.com/Licredity/licredity-v1-core/blob/e8ae10a7d9f27529e39ca277bf56cef01a807817/deploy.sh#L29-L44) requires a private key to be stored in clear text inside the `.env` file:
```bash
# Load enviro... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | true | false | ## Low: Potential Double Funding Of Loan Contracts
### Description
The `fundLoan()` function in `BaseLendingPool` does not perform a pre-check on the loan state to ensure that it requires funding.
```solidity
function fundLoan(address loanAddr) external override onlyIfInitialized nonReentrant ifConfigured onlyLoansOp... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | Refund Ether | false | true | _Submitted by cccz, also found by 0x52, 0xYamiDancho, csanuragjain, GimelSec, gzeon, hickuphh3, horsefacts, hyh, IllIllI, kenzo, leastwood, PPrieditis, reassor, unforgiven, WatchPug, and danb_
The `passThruGate` function of the `SpeedBumpPriceGate` contract is used to charge NFT purchase fees.
Since the price of NFT w... | Code4rena | 5 | FactoryDAO |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Move `payoutFor` calculation into `else` block
### Description
[https://github.com/code-423n4/2023-03-mute/blob/4d8b13add2907b17ac14627cfa04e0c3cc9a2bed/contracts/bonds/MuteBond.sol#L155](https://github.com/code-423n4/2023-03-mute/blob/4d8b13add2907b17ac14627cfa04e0c3cc9a2bed/contracts/bonds/MuteBond.sol#L155)... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Solidity version should be updated.
### Description
**Description**
Best practices for Solidity development and auditors standard checklist requires strict and
explicit usage of the latest stable version of Solidity, which is 0.8.11 at the moment.
**Recommendation**:
Consider updating to “pragma solidity 0.8... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Centralization Risks
### Description
**Update**
Marked as "Acknowledged". The Vector Reserve team provided the following explanation:
> _Expected by design, it is common that LRT/LST protocols have some centralization risk, especially during the bootstrapping phase._
**File(s) affected:**`VectorETH.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 | dos | true | false | ## Medium: Risk of Input Token Mint with Freeze Authority Leading to Permanent DoS
### Description
The current implementation allows the input token mint to have a freeze authority, which can result in a potential denial of service (DoS) attack on the pool. If the input token mint’s freeze authority exercises control,... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | oracle | false | false | ## High: Overflow will entirely block the plugin
### Description
Overflow will occur here on the second time of the list initialization https://github.com/cryptoalgebra/Algebra/blob/6f57b3e218630106a4d41aedefd38f9e83b41e2b/src/plugins/contracts/libraries/VolatilityOracle.sol#L72-L74. This will block plugin updates tha... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | signature | false | false | Source: https://github.com/sherlock-audit/2022-11-frankendao-judging/issues/54
## Found by
Trumpero, rvierdiiev, 0x52, WATCHPUG, neumo, cccz, John, hansfriese
## Summary
`proposalsCreated` will be increased in `verifyProposal()`, `queue()` should increase `proposalsPassed`.
## Vulnerability Detail
Based on the c... | Sherlock | 3 | FrankenDAO |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Handle transfer tokens where from == to
### Description
In TokenFaucet, when calling `beforeTokenTransfer` it should also be optimized when `to == from`. This is to prevent any possible issues with internal accounting and token drip calculations.
`/pool-contracts/contracts/token-faucet/TokenFaucet.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 | other | true | false | ## Medium: Wrong Illuminate PT allowance checks lead to loss of principal
### Description
Wrong Illuminate PT allowance checks lead to loss of principal
### Impact
_Direct theft of any user funds, whether at-rest or in-motion, other than unclaimed yield_
If each underlying is worth less than a share (e.g. if there w... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Remove unused imports
### Description
## Code Review Summary
**Context:**
- Transfers.sol#L14
- Transfers.sol#L17
**Description:**
The `ISwapRouter` and `IUniswapRouter` imports are not used in this contract.
**Recommendation:**
The recommendation is to remove these imports.
**Coinbase:**
Fixed... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: SponsorPaymaster unlocks for the deployer, not necessarily the owner
### Description
`SponsorPaymaster.initialize()` calls internally `unlockTokenDeposit()`, which sets:
```
unlockBlock[msg.sender] = block.number;
```
It likely aims to unlock withdrawals for the owner.
There is the comment proving this intent.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Rate Limiter vulnerability to large transaction dominance
### Description
The rate limiter is vulnerable to domination by large transactions, particularly in Solana's high-throughput environment. The rate limiter operates on a first-come, first-served basis without considering transaction size or user fairness... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 TODO Check if bytes shift is necessary | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Principal wallet pending share BPS usage is missed in `getRewardForStakingStore` function
### Description
In the `DIAExternalStaking` contract, the `getRewardForStakingStore` function uses the static `store.principalWalletShareBps` value for calculating the principal wallet reward, instead of using the dyna... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Insufficient Signature Verification
### Description
**Severity**: Low
**Status** : Resolved
**Description**:
In hexagate-callback.ts the endpoint conditionally checks the IS_HEXAGATE_SIGNATURE_DISABLED flag to determine whether to verify the x-hexagate-signature header. If this flag is disabled, the endpo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Farms can be created to start in past epochs
### Description
[/contracts/farm-manager/src/helpers.rs# L128-L175](https://github.com/code-423n4/2024-11-mantra-dex/blob/26714ea59dab7ecfafca9db1138d60adcf513588/contracts/farm-manager/src/helpers.rs# L128-L175)
### Finding description and impact
In the farming ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Conviction totals not updated during tokenization
### Description
`_updateConvictionScore()` function returns `convictionDelta` and `governanceDelta` which need to be used immediately in a call to `_updateConvictionTotals (convictionDelta, governanceDelta)` for updating the conviction totals of conviction 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 | initialization | false | false | ## Low: [11] Allow for the reduction of the `max_concurrent_farms` when updating the config
### Description
The contract enforces a one-way constraint on the `max_concurrent_farms` parameter in the config update logic:
[/contracts/farm-manager/src/manager/commands.rs# L325-L333](https://github.com/code-423n4/2024-11-... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: If `PARENT_CANNOT_CONTROL` is set on subdomain, it can be unwrapped then wrapped by its owner and then parent can control it again before the expiry
### Description
[NameWrapper.sol#L955-L961](https://github.com/code-423n4/2022-07-ens/blob/ff6e59b9415d0ead7daf31c2ed06e86d9061ae22/contracts/wrapper/NameWrapp... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: Using bools for storage incurs overhead | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Possible lost msg.value
### Description
_Submitted by rotcivegaf, also found by AuditsAreUS, berndartmueller, cccz, MaratCerby, dipp, and StErMi_
[GeneralVault.sol#L75-L89](https://github.com/code-423n4/2022-05-sturdy/blob/78f51a7a74ebe8adfd055bdbaedfddc05632566f/smart-contracts/GeneralVault.sol#L75-L89)
[... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | false | false | ## Low: Transfer ownership to zero address in `RiskManagerEscrow_V2`
### Description
**Severity**: Low
**Status**: Resolved
**Description**
The `transferOwnership` function can be used to accidentally transfer ownership of the contract to a zero address and revoke the role of the current owner. This would lead to ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Prevalence of Magic Numbers in Codebase
### Description
The smart contract codebase exhibits frequent use of magic numbers, which are hardcoded numerical values without clear context or explanation. These occurrences are found across multiple files and functions. For example:
```
amounts_in.get(amounts_in.len... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Arbitrage Is Only Prohibited For Negative Price Drift
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `d5cbe57a459d043354043b322be2f1e7fe82df18`.
**File(s) affected:**`src/StableTokenPriceOracle.sol`, `src/replaceable/TransferPoolFeeCalculator.sol`
**Description:** The `getDriftProt... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | oracle | false | false | ## High: Oracle price should be denominated in DAI instead of USD
### Description
Source: https://github.com/sherlock-audit/2023-05-USSD-judging/issues/909
## Found by
T1MOH, WATCHPUG
## Summary
## Vulnerability Detail
Per the whitepaper, USSD aims to be pegged to DAI.
The implementation of rebalancer is also us... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: The Distinction Altl2s / Notaltl2 Results in Large Portions of Unused Code
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation: We are considering sticking with the current design for now, since the contracts have been deployed
**File(s) affected:**... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Early Purchase Guardian Authority Cannot Be Migrated to a New Pubkey After Initialization
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `a925344e764b7a44ababe527e9c9f1f7950b6946`. The client provided the following explanation:
> A new instruction delete_guardian has been added, whi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | other | true | false | ## Low: Naming improvements
### Description
While functionally correct, certain function/modifier names could be more descriptive to better reflect their purpose and implementation.
```solidity
SecuritizeRedemption.sol
64: /**
65: * @dev Throws if called by any account other than the owner.
66: */
67: ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Front-Running Position Execution
### Description
## Update Decrease and Increase Position Request Instructions
The `update_decrease_position_request` and `update_increase_position_request` instructions allow users to update their position requests at any time before the actual execution. The user can use 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 | reentrancy | true | false | ## Low: updateMinDepositAmount() can increase minDepositAmount above a user 's LDEGEN balance
### Description
The `deposit()` function ensures that the amount currently being deposited is not less than `minDepositAmount`:
```solidity
function deposit(uint256 amount) external nonReentrant {
if (amount < minDepositAm... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | initialization | true | false | ## Medium: User can mint miniscule amount of shares, later withdraw miniscule more than deposited
### Description
_Submitted by kenzo_
If a user is minting small amount of shares (like 1 - amount depends on baskets weights), the calculated amount of tokens to pull from the user can be less than 1, and therefore no 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 | high | overflow | false | false | ## High: splitCalculation - seller can get unfair amount of share when underflow happen
### Description
**Description:**
Seller share is calculated inside unchecked state,when underflow happen,seller will receive huge share.
**Recommendations:**
Suggested not use unchecked based share calculation. Enusre,seller re... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | true | false | ## Low: INITIALIZED VARIABLE TO DEFAULT VALUE
### Description
Initializing variables to the default value executes an extra order that is not required.
Code Location
-------------
[FeeExecutor.sol#L294](https://github.com/primex-finance/primex_contracts/blob/f809cc0471935013699407dcd9eab63b60cd2e22/src/contracts/Bon... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | cross-chain | false | false | ## Medium: Out-of-sync DSRAuthOracle 's pot data leads to conversion factor jumps
### Description
## DSRAuthOracle Overview
**Context:** `DSRAuthOracle.sol#L68`, `DSROracleBase.sol#L49`
**Description:** The `DSRAuthOracle` uses the cached pot data to extrapolate the conversion rate (chi) in functions like `getConver... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.