prompt listlengths 2 2 | source stringclasses 3
values | severity stringclasses 5
values | category stringclasses 186
values | has_code bool 2
classes | has_poc bool 2
classes | reference_response stringlengths 23 5k | firm stringclasses 26
values | quality_score float64 0 5 | protocol stringclasses 398
values |
|---|---|---|---|---|---|---|---|---|---|
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: Exchange does not split royalty revenue correctly
### Description
_Submitted by IllIllI_
According to the [`README.md`](https://github.com/code-423n4/2022-02-foundation/blob/4d8c8931baffae31c7506872bf1100e1598f2754/README.md?plain=1#L21):
> If royalty information was not defined when the NFT was originall... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | oracle | false | false | ## Medium: `getPriceInEth` in `TellorOracle.sol` doesn't uses the best practices recommended by Tellor which can cause wrong pricing
### Description
Source: https://github.com/sherlock-audit/2023-06-tokemak-judging/issues/351
## Found by
Vagner
The function `getPriceInEth` it is used to call Tellor oracle to 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 | dos | true | false | ## Medium: Unbounded Liquidation Iterations Can Lead to Withdrawal DoS
### Description
The protocol's requiring users to iterate through all liquidation events since their deposit during withdrawal will cause eventual transaction failure for early depositors as the number of liquidations grows over time, preventing th... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | token | true | false | ## Low: Use of modifier `nonZeroNavRate` in `SecuritizeOnRamp` and `SecuritizeOffRamp` results in duplicate external call with identical result
### Description
`SecuritizeOnRamp` and `SecuritizeOffRamp` both have modifier `nonZeroNavRate` which makes an external call to enforce a positive rate:
```solidity
modifier 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... | solodit_api | high | other | false | false | ### Relevant GitHub Links
<a data-meta="codehawks-github-link" href="https://github.com/Cyfrin/2023-10-SteadeFi/blob/main/contracts/strategy/gmx/GMXWorker.sol#L94">https://github.com/Cyfrin/2023-10-SteadeFi/blob/main/contracts/strategy/gmx/GMXWorker.sol#L94</a>
## Summary
Attacker can block GMXVault by setting regist... | Codehawks | 4 | SteadeFi |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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 Conversion to Gwei
### Description
**Update**
The team fixed the issue as recommended. Addressed in: `1b4eb73d`.
**File(s) affected:**`core/core.go`, `core/oracle.go`
**Description:** The `core.go:getLastConsensusLayerReport()` function retrieves the report data from the smart contract and returns 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 | medium | other | false | false | ## Medium: rescueToken doesn't update rewardToken.lastBalance for external reward tokens
### Description
SingleSidedLiquidityVault allows the admin tokens from the vault contract. This can only be done once the vault has been deactivated but there is nothing stopping the contract from being reactivated after a token h... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | medium | integer-overflow | true | false | ## Medium: In `VoteKickPolicy.onFlag()`, `targetStakeAtRiskWei[target]` might be greater than `stakedWei[target]` and `_endVote()` would revert.
### Description
`targetStakeAtRiskWei[target]` might be greater than `stakedWei[target]` in `onFlag()`.
```solidity
targetStakeAtRiskWei[target] = max(stakedWei[target], str... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: [06] Trust in Deployer - Lack of check for same decimals
### Description
Because TribeRedeemer assumes all assets will have the same decimals, tokens can remain stuck if they have a different amount of decimals.
A simple check for decimals in the constructor can avoid this scenario
[TribeRedeemer.sol#L33-L34]... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inability to revoke rights given in `setAllowedSelectorsForClient` and `setAllowedSelectorsForOperator`
### Description
The issue is found in [`setAllowedSelectorsForClient`](https://github.com/p2p-org/p2p-ssv-proxy/blob/9dd4728002d9c275e29e8ba38bcf7d90efc7531b/src/p2pSsvProxyFactory/P2pSsvProxyFactory.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 | false | false | ## Medium: Emphasize critical warning regarding clipboard clearing
### Description
A critical warning regarding the clipboard being cleared is stated halfway through one long, unformatted line of text that users are at a risk of missing.
Please type your mnemonic (separated by spaces) to confirm you have written it 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... | solodit_api | medium | other | false | true | No tests were found for several parts of the features implemented in the contracts and some unit tests were completely empty after its declaration, such as the ones in the [`test_governance.py` file](https://github.com/notional-finance/contracts-v2/blob/c37c89c9729b830637558a09b6f22fc6a735da64/tests/governance/test_gov... | OpenZeppelin | 5 | Notional Governance Contracts v2 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 | overflow | true | false | ## High: An attacker can drain the entire protocol balance of sUSDe during the yield phase due to incorrect redemption accounting logic in `pUSDeVault::_withdraw`
### Description
**Description:** After transitioning to the yield phase, the entire protocol balance of USDe is deposited into sUSDe and pUSDe can be deposi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Risk of Killing Upgrades
### Description
**Update**
The client acknowledged the issue.
**File(s) affected:**`SSVNetwork.sol`, `SSVNetworkViews.sol`
**Description:** The UUPS pattern was chosen for the upgradeable contracts. One of the drawbacks of using such a pattern is that if a future implementation does ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: Absence Of Invariant Check In Governance
### Description
## Voting Power Invariant Check Issue
In `voting_power.move`, the `check_invariants` function checks the enforcement of invariants after setting the voting power. However, the first `if` statement compares `stake_i` with itself instead of `stake_j`, fai... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | initialization | true | false | ## High: Incorrect Function Call Leads to Loss Of Claim Router Assets
### Description
The `FundsRequesterConnector` contract is designed to manage interactions with the funds' requester. It includes the `_repayTokenToClaimRouter` functions used for handing foreclosure and debt repayment processes.
```
function _rep... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | token | false | false | ## High: Not checking the ERC20 transfer result on depositing funds by an athlete
### Description
There is an `addDistributionAmount` function which transfers funds from an athlete to the protocol. It uses the `transferFrom` function here - https://github.com/FantiumAG/smart-contracts/blob/a2d126453c1105028f12277b8f34... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: [01] Incorrect comparison for `uint256` variables
### Description
The contract includes redundant checks for a negative value which is presumably a uint type variable that cannot be negative by definition in Solidity, in the following cases: | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Vulnerability in `kill()` Function Allowing Premature Disruption in `SubnetActorManagerFacet`
### Description
**Severity**: High
**Status**: Resolved
**Location**: SubnetActorManagerFacet.sol
**Description**
The `kill()` function in the `SubnetActorManagerFacet` contract, which is designed to deactivate ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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 contracts code does not fully respect to style imposed by the community:
### Description
https://docs.soliditylang.org/en/v0.7.4/style-guide.html
**Recommendation**:
Increase code readability by refactoring it to follow the community style standart. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: 3S-LENFT-N25 Bribes.sol: Rework loop to save gas
### Description
On the claim() function of the Bribes contract, the following loop can be simplified (saving gas in storage reads and writes):
```solidity
uint256 epoch;
for (uint i = 0; i currentEpoch) {
break;
}
(...)
// Increment epoch
_voteNextClaimableEpo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | liquidation | true | false | ## Low: Total system collateral and debt calculations are repeated multiple times risking divergence and decreasing readability
### Description
`TroveManager` contains the functions `getEntireSystemColl()` and `getEntireSystemDebt()`. The calculations they perform occur inline at least 5 additional times in `TroveMana... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | dos | false | false | ## Low: Vulnerable NPM Packages
### Description
## Vulnerability Report
A total of ten vulnerabilities were identified with the NPM audit. These vulnerabilities include prototype pollution, denial of service, and encryption issues. These vulnerabilities may pose a significant risk to the security of the app.
## Iden... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Contract does not conform to the ERC1820 specification
### Description
The [ERC1820](https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1820.md) standard defines a universal registry where addresses can register the interfaces they support. The specification requires that compliant contracts have a `canI... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | signature | true | false | ## Gas: Use assembly to perform efficient back-to-back calls
### Description
If similar external calls are performed back-to-back, we can use assembly to reuse any function signatures and function parameters that stay the same. In addition, we can also reuse the same memory space for each function call (`scratch space... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: BurnAmount sent from L2 to L1 may not be accurate as it does not account for pending failing messages
### Description
In order to follow Circle's Bridged USDC standard, the L2OpUSDCBridgeAdapter contract implements the function `receiveMigrateToNative()`:
```solidity
/**
* @notice Initiates the process 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 | true | false | ## Low: Missing validation for prover in createIntent()
### Description
The `createIntent()` function accepts a `_prover` address parameter without performing any validation to ensure it is a valid contract address that can prove intent fulfillment. This could lead to intents being created with invalid or non-existent... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The protocol will lose funds as `startRebalance()` can be called more than once for the same `currentId`
### Description
**Severity**: Medium
**Status**: Resolved
**Description**
In Contract GlmRebalance, the method `startRebalance()` can be called by a `glmKeeper` for the `currentId` and set all the reb... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | Min/Max Cap Validation | false | true | ## Lines of code
https://github.com/PartyDAO/party-contracts-c4/blob/3896577b8f0fa16cba129dc2867aba786b730c1b/contracts/crowdfund/BuyCrowdfundBase.sol#L117-L118
## Vulnerability details
## Description
Crowdfunds split the voting power and distribution of profits rights according to the percentage used to purchase t... | Code4rena | 4 | PartyDAO |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: UNINITIALIZED PROPOSE COOLDOWN
### Description
In the `Governance.sol` contract, the `proposeCooldown` state variable is not initialized, it defaults to `0` value, and the variable is considered in the other calculation progresses, i.e., `require( timestamp >= latestPropose[msg.sender] + proposeCooldown, "Gove... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: Missing non-zero checks allow event emission spamming
### Description
Functions `withdraw()` and `deposit()` are meant to facilitate deposits and withdrawals. However, they do not check if non-zero ether is deposited or withdrawn. Given their permissionless nature, this allows anyone to grief the system with z... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: wrong sign handling when x == 0 produces non-canonical / out-of-range x = p
### Description
During Ed25519 decompression, the implementation flips the recovered x-coordinate with:
```rust
if sign { x = modulus - x; }
```
If x == 0 and the compressed sign bit is 1, this sets x = p (not reduced), violating b... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | true | false | ## Low: Mark visibility of initialize(...) functions as external
### Description
If someone wants to extend via inheritance, it might make more sense that the overridden `initialize(...)` function calls the `internal {...}_init` function, not the parent public `initialize(...)` function.
External instead of public wo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing Predecessor Check in `executeEmergencyAction()` function
### Description
The `executeEmergencyAction` function does not check if a `predecessor` operation (if specified) has been executed. This allows emergency actions to bypass dependency requirements, potentially leading to out-of-order execution ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | false | false | ## High: Attacker can get extremely cheap synth by front-running create Pool
### Description
_Submitted by jonah1005, also found by defsec_
#### Impact
`createPool` is a permissionless transaction.
1. Anyone can create a token pool.
2. Token price is set by the first lp provider.
3. User can get a synthetic asse... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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 Checking `onERC721Received` Interface
### Description
**Update**
The team indicated that the increase in gas usage that the fix would cause is undesirable compared to the issue's risk level. The team has also stated that it will be the user's responsibility to ensure that the account unlocking the token 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... | cyfrin_structured | low | other | false | false | ## Low: `latestPrizeId` name is misleading
### Description
As part of changes in this audit, the `latestPrizeId` variable now functions as a counter for the next available prize ID, rather than tracking the most recently used one as in the previous version. This creates a naming mismatch, since `latestPrizeId` no long... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: Cache Array Length outside of loop
### Description
When the length of an array is not cached outside of a loop, the Solidity compiler reads the length of the array during each iteration. For storage arrays, this results in an extra `sload` operation (100 additional gas for each iteration except the first). For... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | dos | true | false | ## Medium: Wrong items length assertion in basic order
### Description
_Submitted by 0xsanson, also found by cmichel_
[BasicOrderFulfiller.sol#L346-L349](https://github.com/code-423n4/2022-05-opensea-seaport/blob/main/contracts/lib/BasicOrderFulfiller.sol#L346-L349)
When fulfilling a basic order we need to assert th... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | true | false | ## Low: Missing check for passkey associated with `CoinbaseSmartWallet._validateSignature()`
### Description
Neither passkey nor an address goes through checks as implemented in [MultiOwnable._initializeOwners()](https://github.com/code-423n4/2024-03-coinbase/blob/main/src/SmartWallet/MultiOwnable.sol#L162-L174) when ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: Users prevented from using special ETH address to pay Gelato fees
### Description
The `startDca` function’s check of the provided fee token address blocks users from using ETH to pay Gelato fees. The `startDca` function allows users to start their DCAs using a particular fee token address to pay Gelato fees. 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: `updateDexConfig()` in `poolAdminFacet` ignores pair-specific DEX fees
### Description
The `updateDexConfig()` function in `PoolAdminFacet` sets a single fee value per DEX router address:
However, this structure fails to accommodate DEXes like Uniswap V3, which supports multiple pools per token pair with dif... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | false | ## High: Possible Read-only Reentrance in Refund
### Description
**Severity**: Critical
**Status**: Resolved
**Description**
It was identified that the `treasury.sol` smart contract doesn’t fully implement the checks-effects-interactions pattern in most functions. For instance, An attacker could exploit the contrac... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: All payable calls will revert when sent to CEtherDelegator
### Description
The Delegator contracts are intended to pass along any calls to their corresponding implementations.
Some delegators perform this logic by manually implementing each underlying function. Others (such as `CEtherDelegator.sol`) simply... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Use of magic numbers
### Description
Constants should be used instead of magic numbers.
### Impact
Use of constants improves the overall readability of the code. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | medium | oracle-manipulation | true | false | ## Medium: Insufficient validation of Chainlink data feeds
### Description
`PriceCalculator` is a contract responsible for providing the Chainlink oracle prices for assets used by The Standard. Here, the price for an asset is queried and then normalized to 18 decimals before being returned to the caller:
```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 | low | reentrancy | true | false | ## Low: Re-entrancy attacks with ERC-777
### Description
Some tokens may allow users to perform re-entrancy while calling the `transferFrom` function. For example, it would be possible for an attacker to “borrow” a large amount of ERC-777 tokens from the lending pool by re-entering the `deposit` function from within `... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Did not Approve to zero first
### Description
Source: https://github.com/sherlock-audit/2023-01-derby-judging/issues/36
## Found by
HonorLt, Ruhum, tsvetanovv, koxuan, Saeedalipoor01988, martin, hyh, chainNue, R-Nemes, SunSec
## Summary
## Vulnerability Detail
Some ERC20 tokens like USDT require resett... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Register Same Operators
### Description
**Update**
The client fixed the issue in commit `2c48334` by checking for duplicates in the ordered operator ids list.
**File(s) affected:**`SSVNetwork.sol`
**Description:** While the `registerValidator()` function validates the operator count using `_validateOperat... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: Remove commented out code
### Description
*There is 1 instance of this issue:*
https://github.com/code-423n4/2022-07-golom/blob/e5efa8f9d6dda92a90b8b2c4902320acf0c26816/contracts/vote-escrow/VoteEscrowDelegation.sol#L218-L225 | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: Absence of Rate Limiting in HTTP Server Implementation
### Description
The current implementation of the HTTP server in the provided code does not include any rate limiting mechanisms. This omission could potentially expose the server to Denial of Service (DoS) attacks or resource exhaustion due to excessive r... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | token | true | false | ## High: `_sendToken` implementation in `Balancer.sol` is wrong which will make the underlying erc20 be send to a random address and lost
### Description
The function `_sendToken` is called on `rebalance` to perform the rebalance operation by the owner which will transfer native token or the underlying ERC20 for a spe... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: Comment not moved when function was moved
### Description
1. File: src/SupplySchedule.sol (lines [52-53](https://github.com/code-423n4/2022-04-badger-citadel/blob/18f8c392b6fc303fe95602eba6303725023e53da/src/SupplySchedule.sol#L52-L53)) | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: `d547832ddd30b6cb7974f586d2bbc5e4ee8c50c8`. The client has implemented proper input validation.
**File(s) affected:**`UnikuraMembership.sol`, `UnikuraMothership.sol`, `UnikuraPhygitalCollection.sol`
**Descripti... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | true | false |
<https://github.com/code-423n4/2025-05-blackhole/blob/92fff849d3b266e609e6d63478c4164d9f608e91/contracts/VotingEscrow.sol# L1205>
<https://github.com/code-423n4/2025-05-blackhole/blob/92fff849d3b266e609e6d63478c4164d9f608e91/contracts/VotingEscrow.sol# L1327-L1335>
### Finding description
There is a mistake in how... | Code4rena | 5 | Audit 507 |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: Protocol Does Not Work Correctly With Tokens That Do Not Revert On Failed Transfer
### Description
Some tokens do not implement the ERC20 standard properly but are still accepted by most code that accepts ERC20 tokens. For example, Tether (USDT)'s `transfer()` and `transferFrom()` functions on L1 do not return... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | initialization | true | false | ## Gas: In Solidity don't initialize to default values
### Description
**Description:** In Solidity don't initialize to default values:
**Securitize:** Acknowledged. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: Incorrect XCall Condition In XAppBase
### Description
## Security Audit Report
## OM2-12 msg.value Checks
### Asset: XCall Contract
**Status**: Resolved: See Resolution
**Rating**: Informational
**Description**
The `require()` statement in `xcall()` checks for `msg.value`, which can be incorrect when 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 | access-control | true | false | ## Low: [08] `addCallers()` does not check `_callers.length == pendingCallers.length`
### Description
Function lacking check to ensure the pending list is the same as the list input by caller.
```solidity
function addCallers(PendingCaller[] calldata _callers) external onlyOwner {
if (getPendingAcceptedCallersSetTim... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | initialization | true | true |
In `LotterySetup.sol`, the `packFixedRewards()` function packs a `uint256` array into a `uint256` through bitwise arithmetic:
[`LotterySetup.sol#L164-L176`](https://github.com/code-423n4/2023-03-wenwin/blob/main/src/LotterySetup.sol#L164-L176):
```solidity
function packFixedRewards(uint256[] memory rewards) private ... | Code4rena | 4.995899 | Wenwin |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Arbitrary contract call within UniV3LpVault._swap with controllable swapPath
### Description
## Lines of code
https://github.com/code-423n4/2022-04-dualityfocus/blob/main/contracts/vault_and_oracles/UniV3LpVault.sol#L621
https://github.com/code-423n4/2022-04-dualityfocus/blob/main/contracts/vault_and_oracl... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | true | false | ## Low: Missing check for zero address in setPrivileged
### Description
The `setPrivileged` function allows the data market owner to specify certain addresses as privileged contracts, which will then have exclusive access to certain functions. This is meant to be called once during initialization. In general, it is 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 | token | false | false | ## Low: Adding `Approval` event in `transferFrom`
### Description
Here https://github.com/iearn-finance/yearn-vaults/blob/054034304c7912d227d460feadc23177103de0b9/contracts/Vault.vy#L468 we have a decrease in allowance as a result of `transferFrom` call, but new `Approval` event isn't emitted.
### Recommendation
That... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Incorrect OmniGasPump ETH Quote
### Description
The `quote()` function incorrectly adds the scaled up `amtETH` back to `amtETH`.
```solidity
function quote(uint256 amtOMNI) public view returns (uint256) {
uint256 amtETH = _toEth(amtOMNI);
// "undo" toll
// @audit scaled up amtETH is added back to amtETH... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: LightClient forced finalization could allow bad updates in case of a DoS
### Description
Under periods of delayed finality, the LightClient may finalize block headers with few validators participating. If the Telepathy provers were targeted by a denial-of-service (DoS) attack, this condition could be triggered... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: Rename _usbdAmount to _usdAmount in requestRedeemfunction
### Description
The design proposes that users lock BTC derivatives to mint USBD. Users can then stake their USBD to receive Staked USBD, which accrues positive rebasing rewards at a rate set by the protocol owner.
User can burn their staked USBD and ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | false | false | ## Medium: Contract accepts ETH unnecessarily
### Description
**Severity**: Medium
**Status**: Resolved
**Description**
Across the protocol, there are several contracts that accept ETH as it implements the following:
receive() external payable {}
Although there are several contracts that do not need ETH. The fol... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: Greedy Contract
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation:
> We acknowledge but don't plan on updating documentation.
**Description:** A greedy contract is a contract that can receive assets that can never be redeemed. In this case (as 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 | medium | other | false | false | ## Medium: Burn of token assignment to BAT fund is not implemented
### Description
The amount of BAT assigned to Brave is fixed at deploy time. This seems to be inconsistent with the process document we received that states: “In event of a non-sell out, contract will ‘burn’ BAT kept in multisig wallet down to a 3/10 r... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | true | false | ## High: Vault’s transferFrom is not Transferring Locked Ether . . . . .
### Description
## Vault Contract Overview
In the Vault contract, the `transferFrom` function is used to transfer a position from one user to another user. However, the function only transfers positions, not the underlying `ethLocked` amount. 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 | dos | false | false | ## Low: Unbounded Loops
### Description
There are a few unbounded loops in the codebase, such as the for loops in the [doFireRegistryUpdateEvent](https://github.com/futureswap/fs_core/blob/96255fc4a550a5f34681c117b5969b848d07b3a3/contracts/registry/Registry.sol#L210) and [getIndexOf](https://github.com/futureswap/fs_c... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | dos | false | false | ## Low: Denial Of Service Due To Batching Queries
### Description
## GraphQL Endpoint for the Wallet
The GraphQL endpoint for the wallet, [accessible here](#), currently supports batching without any limit. Batching in GraphQL allows multiple queries to be sent in a single request. While this may improve efficiency, ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | rounding | true | false | ## Medium: Rounding issues could allow majority shareholders to steal funds
### Description
When distributions are calculated (using either push or pull), the `_split.calculateAllocatedAmount()` function is used to determine the amount.
In the situation where one user holds a majority position in a Split, and the de... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | token | false | false | ## Low: `SwapERC20` Hardcoded DOMAIN_SEPARATOR will cause issues and replay on a chain split
### Description
**Impact**
**DOMAIN_SEPARATOR** being hardcoded will either:
- Stop working if the chain hardforks with a new ID
- Will open up for replays if the chain forks
**Mitigation**
The code in `DebtToken` already 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 | front-running | false | false | ## Medium: Incorrect Fee Application When unspecifiedAmount Represents Input Instead of Output
### Description
The [`BaseDynamicAfterFee`](https://github.com/OpenZeppelin/uniswap-hooks/blob/release-v1.1-rc.2/src/fee/BaseDynamicAfterFee.sol) contract enables dynamic fee enforcement by comparing the swap’s `unspecifiedA... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: If the auction window is 0, the borrower can keep the lien amount and also take back its collateralised NFT token
### Description
If an authorised entity would file to set the `auctionWindow` to 0, borrowers can keep their lien amount and also take back their collateralised NFT tokens. Below is how this typ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Wrong design of `swap()` results in unexpected and unfavorable outputs
### Description
_Submitted by WatchPug_
The current formula to calculate the `amountOut` for a swap is:
We believe the design (the formula) is wrong and it will result in unexpected and unfavorable outputs.
Specifically, if the `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 | gas | other | true | false | ## Gas: Avoid Making any state reads if we can revert early (Save 2100 Gas)
### Description
https://github.com/open-dollar/od-contracts/blob/f4f0246bb26277249c1d5afe6201d4d9096e52e6/src/contracts/proxies/ODSafeManager.sol#L136-L152
Avoid reading from storage if we might revert early. The first check involves making 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: Storage Layout Contract Should Be Declared abstract ✓ Fixed
### Description
The `AlignedLayerServiceManagerStorage` contract defines the Service Manager storage layout without implementing contract logic. It’s not intended for standalone deployment but isn’t declared abstract, allowing potential misuse. This v... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: [2] The `Factory.create` function performs plain transfer of funds instead of calling the `deposit` function. This way the `Deposit` event is not emitted. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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 repayValue variable is not used after being modified
### Description
The `Keeper.LiquidateBorrow` function uses the local variable `repayValue` to calculate the `repayment.Amount` value. If `repayValue` is greater than or equal to `maxRepayValue`, it is changed to that value. However, the `repayValue` varia... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | storage | false | false | ## Low: Diamond proxy holding large bridged ETH balance
### Description
In the current design, ERC-20 bridging uses a separate contract to hold token balances, but `MailboxFacet` holds and operates the ETH balance. However, since it is implemented as part of the Diamond Proxy, this means that the contract balance is c... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | signature | false | false | ## Low: Strategies of stakers to maximize rewards
### Description
The `stakeWithBoost` function requires a signature from the `TEA_RANK_ATTESTER_ROLE`. This signature includes the staker’s address, the boost coefficient, a nonce, and a deadline. However, it does not include the amount to be staked. As a result, staker... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: Event parameter names are incorrect
### Description
The first parameter in each of these `LSSVMPair` events is named incorrectly:
They should instead look like this:
**Sudoswap:**
Fixed in commit [29449e](https://github.com/sudoswap/lssvm2/commit/29449e45fd7ebaf1b932c135df65b08e998d1071).
**Cyfrin:**
Veri... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | signature | true | false | ## High: Incorrect parameter ordering in function call
### Description
The ordering of parameters in function call made in `updateTotalBorrowing()` in `PositionUtils.sol` is incorrect.
### Impact
Updating the total borrowing function with incorrect parameter values would upset the internal accounting of the system 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 | medium | front-running | true | false | ## Medium: Lack of slippage protection in `swapTokensForCounterpart` and `addLiquidity` makes external calls to UniswapV2 Router revert consistently
### Description
Frontrunning is a common issue in decentralized finance (DeFi) applications, where malicious bots monitor the transaction mempool and execute transactions... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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 Call To _disableInitializers() In Proxy Contract Implementation
### Description
In `DelayedWithdrawalRouter.sol`, the `_disableInitializers()` function is not called in the constructor. This poses a risk as it allows the initializer functions to be called on the implementation contract, which can lead ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: bitcoin-spv - Unnecessary memory allocation in BTCUtils Pending
### Description
`BTCUtils` makes liberal use of `BytesLib.slice`, which returns a freshly-allocated slice of an existing bytes array. In many cases, the desired behavior is simply to read a 32-byte slice of a byte array. As a result, the typical ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Deposit Tokens Transferred from Depositor Token Account Instead of Signer
### Description
A deposit action to the SpokePool program is meant to [pull tokens from the caller](https://github.com/across-protocol/contracts/blob/71e990b3f908ecf994be8723e041b584c7d49318/programs/svm-spoke/src/lib.rs#L213) (i.e., ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | reentrancy | false | false | ## Gas: 4-StorageOccupation-CarlosAlegreUr
### Description
### Relevant GitHub Links
https://github.com/Cyfrin/2023-07-beedle/blob/main/src/Lender.sol
## Software Audit Report 📑
---
## **Summary 📌**
This report outlines potential exploits where well-funded attackers might tamper with the contract's storage slot... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: Immutable Mint Fee and Referral Discount Percentage
### Description
**Severity**: Informational
**Status**: Resolved
**Description**
The `mintFee` and `referralDiscountPct` are defined as constant values, making them immutable. This inflexibility can be problematic if the project needs to adjust the minting... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | liquidation | true | false | ## Low: Small bark s can delay the selectVoteDelegate
### Description
The liquidation system in Maker DAO is managed by the dog contract.
If a vault is unhealthy, one can call `dog.bark` to start a Dutch auction to sell its collateral for DAI. In most cases, the full amount of collateral is sold except when the targ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | liquidation | false | false | ## Low: Remove max open interest check when liquidating in `LiquidationBranch::liquidateAccounts`
### Description
**Description:** In `LiquidationBranch::liquidateAccounts` there is no point calling `PerpMarket::checkOpenInterestLimits` since:
* the liquidation will always be decreasing the open interest so the liquid... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: Transfer Full Balance While Revoking Bid
### Description
## RevokeLiquidateBid Instruction
In the **RevokeLiquidateBid** instruction, the bidder specifies how many tokens to withdraw with the `withdraw_amount` argument. It transfers them from the `bid_escrow` token account, which is subsequently closed.
Not... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: TransferSelectorNFT does not emit events when new transfer managers are added in its constructor
### Description
TransferSelectorNFT does not emit an event when assetTypes of 0 and 1 are added in its constructor.
### Recommendation
To make it easier for off-chain agents' data lookup, it would be best to emit ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: Erroneous docstrings and comments
### Description
Consider fixing the following docstrings and inline comments:
* In `OptimisticAsserter.sol`, the comment on [line 88](https://github.com/UMAprotocol/protocol/blob/fed1c5677b5e764eb0b3e59817941c129e6c26f7/packages/core/contracts/optimistic-asserter/implementat... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: Docker image runs as root user
### Description
The [Dockerfile](https://github.com/initia-labs/router-api/blob/5b0be2fcb76cb7189874888725a87b616d070ee7/Dockerfile) for this project uses the default root user to run the application.
Running as root within a container may:
* Allow **privilege escalation** 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 | medium | storage | true | false | ## Medium: REDELEGATION IS NOT RESTRICTED TO ACTIVE VALIDATORS
### Description
The `execute_redelegate_proxy` function in the **krp-staking-contracts/basset\_sei\_hub** contract does not restrict that redelegation is done only to active validators, which could create unexpected situations. For example, if the owner mi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | access-control | true | true | Source: https://github.com/sherlock-audit/2023-02-telcoin-judging/issues/54
## Found by
Tricko, dipp
## Summary
A malicious user can block slashing by frontrunning `slash` with a call to `stake(1)` at the same block, allowing him to keep blocking calls to `slash` while waiting for his withdraw delay, effectively by... | Sherlock | 5 | Telcoin Update |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Swap unexpectedly executes when `tokenIn == tokenOut`
### Description
Currently if user submits `tokenIn == tokenOut`, router will trade tokenOut for tokenIn despite calldata is invalid and therefore trade should not occur.
Add additional checks: | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.