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... | solodit_api | medium | Business Logic | false | false |
[HolographOperator.sol#L875](https://github.com/code-423n4/2022-10-holograph/blob/f8c2eae866280a1acfdc8a8352401ed031be1373/contracts/HolographOperator.sol#L875)<br>
Operators are organized into different pod tiers. Every time a new request arrives, it is scheduled to a random available pod. It is important to note th... | Code4rena | 4 | 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 | low | signature | false | false | ## Low: Potential Replay Attack Due to Missing Contract Address in Signed Message
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `d51c35f3d5f302facdd154f1ec43c03613e9383b`.
**File(s) affected:**`OperaBridge.sol`
**Description:** The `msgHash` is calculated using the following parameters: `... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | cross-chain | false | false | ## High: `StargateLbpHelper.sgReceive()` could encounter permanent error that causes received tokens to be stuck in contract
### Description
**Severity**
**Impact:** High, as tokens will be stuck in contract
**Likelihood:** Medium, as it only occur for permanent errors
**Description**
`StargateLbpHelper.sgReceive(... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: `FlowEVMBridgeNFTEscrow.initializeEscrow()` Does Not Panic upon Storage Collision
### Description
**Update**
The client fixed the issue in: `6c77dc6fd9d3cd6f4894761f50b904eee1664a36` with the following explanation:
> Corrected to panic on storage collision.
**File(s) affected:**`FlowEVMBridgeNFTEscrow.sol`
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: Consider not using the deployer as owner and fallbackWinner
### Description
For safety, you can pass an address (say, a multisig contract) as an argument here which takes on the ownership and becomes the `fallbackWinner`. Deployer address is an EOA which may not be as secure (for example, its private key may b... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | front-running | true | false | ## High: Violation of Invariant Allowing DSSs to Slash Unregistered Operators
### Description
Operators select DSSs to allocate their funds to, and for each DSS, they can choose a list of vaults to stake. The selected vaults are fully staked to the chosen DSS.
To unstake, the operator must adhere to a `MIN_STAKE_UPDA... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: Reentrancy Vulnerability Enabling Sequential Pool Updates and Total Fund Withdrawal
### Description
An acute reentrancy vulnerability has been identified within the `setPool` function of the Lender smart contract. The issue originates from the combination of the pool update process and the premature invocation... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: Use EIP-712 to derive request ids
### Description
## Context: MechMarketplace.sol#L801-L822
## Description/Recommendation:
1. Best to use EIP-712's typed structured data hashes to derive request IDs.
2. Add deadline as part of the typed structured data.
## Cantina Managed:
In `370e2b72099edf0b5407b342072ccfe... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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 validations
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation:
> 1. will be elaborated when we substantially implements DeFi integrations. We don't have a finalized design for this yet.
> 2. acknowledged, but still following 'updat... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | true | false | ## Gas: Use solidity version 0.8.19 to gain some gas boost
### Description
Upgrade to the latest solidity version 0.8.19 to get additional gas savings.
See latest release for reference: https://blog.soliditylang.org/2023/02/22/solidity-0.8.19-release-announcement/
### Proof Of Concept
https://github.com/code-423n4... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | high | Overflow/Underflow | true | true |
A borrower can repay (parts) of a credit line with the `SpigotedLine.useAndRepay` function. This function will use `amount` of `unusedTokens[credit.token]` as a repayment. However, if `amount` exceeds the principal and the accrued interest, `credit.principal` will underflow without an error and set the principal value... | Code4rena | 5 | Debt 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 | low | cross-chain | false | false | ## Low: Bridge Cannot Handle ERC-20 Fee on Transfer
### Description
**Description**
In the contract Teleportation.sol is used to transfer funds from L1 to L2. The function `teleportAsset()` sends and emits tokens based on the input of _amount'. If a token had a fee attached on transfer the contract can expect potenti... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: VaultCore.rebase functions have no return statements
### Description
`VaultCore.rebase()` and `VaultCore.rebase(bool)` return a `uint` but lack a return statement. As a result, these functions will always return the default value and are likely to cause issues for their callers. Both `VaultCore.rebase()` 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 | gas | reentrancy | true | false | ## Gas: [G‑09] Using `bool`s for storage incurs overhead
### Description
[OpenZeppelin/ReentrancyGuard.sol#L23-L27](https://github.com/OpenZeppelin/openzeppelin-contracts/blob/58f635312aa21f947cae5f8578638a85aa2519f5/contracts/security/ReentrancyGuard.sol#L23-L27)
Use `uint256(1)` and `uint256(2)` for true/false to 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 | oracle | true | false | ## Low: Code Refactoring
### Description
## Audit Findings
## Findings
1. Within `Staker`, `next_delegation` tracks the number of used slots in the delegations array. Ideally, all slots from index zero to `next_delegation - 1` should be filled with delegations or empty slots marked by `delegation_pool == Pubkey::def... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: In delegated calls excess ether is refunded to the delegator instead of the caller
### Description
The `EmpiresSystem` contract contains the `_refundOverspend` function which refunds to `_msgSender()` the excess ether sent to the contract.
The override systems inherit from `EmpiresSystem` and call the `_refu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: Pods may never ripen
### Description
Whenever the price of Bean is below its peg, the protocol takes Bean tokens off the market in exchange for a number of pods dependent on the current interest rate. Essentially, Bean owners loan their tokens to the protocol and receive pods in exchange. We can think of pods 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: Uniswap v3 callbacks access control should be hardened ✓ Fixed
### Description
Uniswap v3 uses a callback pattern to pull funds from the caller. The caller, (in this case `Hypervisor`) has to implement a callback function which will be called by the Uniswap’s pool. Both `uniswapV3MintCallback` and `uniswapV3Sw... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: Applied fees can be bypassed
### Description
**Severity**: Low
**Status**: Acknowledged
**Description**
CPortModule.sol - As the maker signs a listing then post it on the market, a taker who know the nuances of the contracts should be able to take the signature from the market as it is. After that the taker... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | false | false | ## Low: Privileged Users Limited to One ERC-1155 Token Mint When Only the Global Sale is Enabled
### Description
**Update**
The Merkle proof is now checked after the `for` loop. Thus, multiple tokens can be minted.
Addressed in: `46c079bdabb9969aeec0e9f5b7994a6e04e52cd4`, `850bf0b3273d5cf31b2548e7f58beaacf18f8052`.
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `Reserves` should not be considered part of the available liquidity while calculating the interest rate
### Description
The implementation is different from the documentation regarding the interest rate formula.
### Impact
Per the docs, when calculating the interest rate, `util` is the ratio of available l... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | overflow | true | false | ## Gas: Some operations can be unchecked
### Description
The referenced lines can be wrapped in `unchecked` blocks because their subtractions are guaranteed to not overflow.
### Recommendation
Wrap the referenced lines in `unchecked` blocks.
```solidity
unchecked {
/* Distribute interest */
uint128[] memory inte... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: Emit relevant events in constructor methods when variables are set, or abstract to internal functions
### Description
Some variables are set in the constructor method but do not emit events, unlike their setter counterparts. For instance, `bribeVault` in the `RewardDistributor` contract fails to emit the `SetB... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | logic | true | true | ## Medium: Incorrect calculation of extended loan days leads to unfair borrower fees
### Description
The miscalculation of extended loan days in the `extendLoan` function will cause borrowers to face unfair fees as the function incorrectly calculates the fee based on `offer.maxDeadline` instead of using the actual ext... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: Insufficient Protection Against Slippage Attacks
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation:
> No modification is necessary.
>
>
> 1. Guardian ensure the safety by controlling the direction of fund flow
> 2. Guardian does not controls 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 | high | rounding | true | false | ## High: Incorrect Loan Amount
### Description
## Small Loans Denormalization Issue
Small loans are not properly rounded while calculating the denormalized loan using the `denormalize` function. This allows an attacker to mint small quantities of USH tokens for free without increasing their liabilities.
It is impo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: Inaccurate best response selection in `LLMOracleCoordinator::getBestResponse`.
### Description
The `LLMOracleCoordinator::getBestResponse` function may not return the best performing result of the given task. This behaviour can lead to less than optimal purchases, especially in scenarios where response 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 | medium | rounding | true | false | ## Medium: P can be updated to zero which can cause a DOS when liquidating troves
### Description
## Lines of code
https://github.com/code-423n4/2023-02-ethos/blob/main/Ethos-Core/contracts/StabilityPool.sol#L575-L595
## Vulnerability details
## Impact
P is asserted to never be zero in `_updateRewardSumAndProduct`... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: Upgradability Mis-Configuration
### Description
**Update**
Marked as "Fixed" by the client, and the issue is addressed by following the best practice. Addressed in: `a27f2503ee7f4f0085e001d6037c90ab15cc5aa4`.
**File(s) affected:**`contracts/registry/Registry.sol`, `contracts/token/manager/TokenManager.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: Protected_handleAddAssetAccount - Should Verify name, symbol Matches assetId ✓ Fixed
### Description
The function `protected_handleAddAssetAccount` adds an account to an existing asset. It takes the asset name/symbol and assetId as inputs and then adds an account to the `assetId` if the user approves.
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 | storage | true | false | ## Medium: Extra reward tokens from cvx pool is locked in ConvexDepositToken forever
### Description
The `ConvexDepositToken` fetches reward tokens from `BaseRewardPool`. For `crvRewards`, it correctly disables the extra reward tokens; however, for `cvxRewards`, it uses the generic `getReward()` function without disab... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: Should have check to ensure end and starttime > currenttime
### Description
When approving this, there is no check to ensure `end` and `start` time > `currentTime`, but in `getCurrentPeriod`, which is used in `spend`, there is a related check. This makes it possible to create useless spend approvals:
```solid... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 duplicate veto check
### Description
_Submitted by defsec_
#### Impact
On the GovernorAlpha contract, function veto has been added. Although the function behaviour is expected, duplicate veto process has not been checked on that function.
#### Proof of Concept
1. Navigate to following 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 | storage | false | false | ## Low: L06] Unused imports
### Description
###### Low
Components: [`policy`](https://github.com/BeamNetwork/currency/tree/af3428020545e3f3ae2f3567b94e1fbc5e5bdb4c/contracts/policy), [`deploy`](https://github.com/BeamNetwork/currency/tree/af3428020545e3f3ae2f3567b94e1fbc5e5bdb4c/contracts/deploy), and [`proxy`](http... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: Improve Error Handling
### Description
## JSON Parsing Security Issue
The extension implements `JSON.parse()` in certain parts of the code without error handling. JSON parsing may be very susceptible to errors, particularly when dealing with special characters. Failure to handle these errors may potentially l... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | true | false | ## Gas: Refactor event to avoid emitting empty data
### Description
The instances below show the only time the `VoteCast` event is emitted. Each time, the `reason` parameter is empty. We can therefore refactor the event to opt out of emitting an emtpy string since it does not contain data.
**Note: Additional refacto... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | logic | false | false | ## Medium: Spoofed initial deposits in `SexPartners.sol` and `LpDepositor.sol`
### Description
The **initial** deposit of NFT is vulnerable to a spoofing attack.
The attacker can directly call `onERC721Received` and supply NFT id that was not actually transferred/not owned by the attacker. It may cause a contract malf... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | logic-error | true | false | ## Medium: Deposited rewards get stuck in incentive logic contracts when there is no pool liquidity
### Description
For an interval of time during which there is zero liquidity in the pool and a reward has been actively distributed, the proportional amount of rewards that correspond to this interval when the liquidity... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | token | true | true | ## High: Malicious actor can overwrite other's user state via 1 wei vault share transfer to steal fund
### Description
When transferring SuperVault shares, the code copies the entire state from the "from" account to the "to" account.
```solidity
// called like this in _update
ISuperVaultStrategy.SuperVaultState memor... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: Total unbonding amounts can be greater than total liquid tokens in unstake
### Description
**Severity:** Low
**Path:** x/liquidstake/keeper/liquidstake.go:LiquidUnstake
**Description:**
The function LiquidUnstake allows a user to unstake by burning their shares and receiving unbondings for xprt.
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 | high | liquidation | true | false | ## High: Incorrect `defaultedDebt` interest accrual
### Description
https://github.com/prisma-fi/prisma-contracts/blob/52b26b8a2f1904b048754d5443e08d2144610b92/contracts/core/TroveManager.sol#L1201
In Prisma, there are liquidations which distribute the debt and collateral from liquidated troves among the remaining on... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | false | ## Gas: Massive 15k per tx gas savings - use 1 and 2 for Reentrancy guard
### Description
Using `true` and `false` will trigger gas-refunds, which after London are 1/5 of what they used to be, meaning using `1` and `2` (keeping the slot non-zero), will cost 5k per change (5k + 5k) vs 20k + 5k, saving you 15k gas per f... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: A stake that has just been locked gets full reward multiplier
### Description
A staker gets rewarded with full multiplier even if its stake has just been locked. Multiplier calculation should take into account the duration of the lock.
### Impact
A staker can get larger rewards designed for locked stakes b... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | oracle | true | false | ## Medium: Royalty Limits Miscalculations
### Description
**Update**
Addressed in `5932dde21cfa7c779a4bf3df2de0d7a1ff7c8645`. Client updated the requirement check to account for existing royalties.
**File(s) affected:**`RoyaltiesOracle.sol`
**Description:**`RoyaltiesOracle._setRoyalty()` updates the royalty share 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 | liquidation | false | false | ## Low: Multiple BAMM and Stability Pools could cause a liquidity crunch
### Description
Multiple Stability Pools may cause a lack of liquidity during liquidations. This could be due to BAMM Stakers not moving from one BAMM to another during periods of volatility.
### Recommendation
It is worth weighing whether it 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 | high | other | true | false | ## High: Pool reward from first subscriber after TGE will be stuck in Subscribe Registry for all author pools
### Description
In `SubscribeRegistry`, after the TGE, WETH is swapped for ALTT before being sent as a "reward" to the author pool.
Below is the relevant code snippet from `SubscribeRegistry::_distribute()`:
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Admin could incur a loss with debt settlement
### Description
**Severity**
**Impact:** High, admin will incur a loss as he will pay more than required to settle debts
**Likelihood:** Medium, occurs when admin settles debt
**Description**
An admin of LidoVault can perform a debt settlement to end the vault... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | access-control | true | false | ## High: Unintended Downside Protection Exploitation in Borrowing Withdrawal Mechanism
### Description
A significant vulnerability exists in the protocol's downside protection mechanism where borrowers can receive protection benefits during withdrawal even after their options have expired. While the system is designed... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | cross-chain | false | false | ## High: ETH Deposits Can Get Stuck if They Are Not Successfully Bridged
### Description
[Pull request #1011](https://github.com/scroll-tech/scroll/pull/1011) introduced the change of [redirecting the calls](https://github.com/scroll-tech/scroll/pull/1011/files#diff-ef2695307fe7f3dfd610ae22338941d20233e19db326322cfca6... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | upgrade | true | false | ## Low: `BenqiEcosystemModule` and `UnifiedBudgetAllocator` are not fully ERC-165 compliant
### Description
The `BenqiEcosystemModule` contract inherits both `IDistributionModule` and `IBenqiEcosystemModuleErrors`. According to the ERC-165 specification for interface detection, the `supportsInterface()` function shoul... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: (Re-Audit) Ownership of `CreditRewardTracker` Can Be Transferred to the Zero Address
### Description
**Update**
The following validation check has been added and will prevent the issue from happening:
**File(s) affected:**`credit/CreditRewardTracker.sol`
**Description:** The `CreditRewardTracker` contract f... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | oracle | true | false | ## Low: StablePriceOracle.price has an unimportant integer underflow ✓ Fixed
### Description
**ethregistrar/contracts/StablePriceOracle.sol:L57-L63**
```
function price(string calldata name, uint /\*expires\*/, uint duration) view external returns(uint) {
uint len = name.strlen();
require(len > 0);
if(len > 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 | gas | storage | true | false | ## Gas: File: ERC1967Proxy.sol
### Description
### function \_implementation()
#### Using both named returns and a return statement isn't necessary
Removing unused named returns variables can reduce gas usage (MSTOREs/MLOADs) and improve code clarity. To save gas and improve code quality: consider using only one of... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | true | false | ## Low: [13] `require(_gasLimit >= minimumGasLimit(), "SystemConfig: gas limit too low")` CAN BE REFACTORED INTO A MODIFIER TO BE USED IN CORRESPONDING FUNCTIONS
### Description
`require(_gasLimit >= minimumGasLimit(), "SystemConfig: gas limit too low")` is executed in both of the `SystemConfig.initialize` and `System... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | overflow | true | false | Source: https://github.com/sherlock-audit/2023-01-uxd-judging/issues/97
## Found by
rvierdiiev
## Summary
PerpDepository.netAssetDeposits variable can prevent users to withdraw with underflow error
## Vulnerability Detail
When user deposits using PerpDepository, then `netAssetDeposits` variable is increased with th... | Sherlock | 5 | UXD Protocol |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: Provider has no control over protocol fees paid when collar positions are created
### Description
When `CollarProviderNFT.mintFromOffer()` is called to create a collar position, the protocol fee paid by the provider depends on what `ConfigHub.protocolFeeAPR` is set to whenever the function is called:
```solid... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | high | token | true | false | ## High: Migration of unripe LP from BEAN:3CRV to BEAN:ETH does not account for recapitalization accounting error
### Description
The global [`AppStorage::recapitalized`](https://github.com/BeanstalkFarms/Beanstalk/blob/12c608a22535e3a1fe379db1153185fe43851ea7/protocol/contracts/beanstalk/AppStorage.sol#L485) state 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 | medium | access-control | true | false | ## Medium: Authenticity check for oracles is not effective
### Description
## Security Analysis
**Severity:** Medium Risk
**Context:** PoolFactory.sol#L93-L101
**Description:**
The `deployPool()` function verifies the authenticity of the `oracleWrapper` by calling its `deployer()` function. As the `oracleWrapp... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: Unused IERC721 interface in OmniXMultisender
### Description
The OmniXMultisender contract includes an interface definition for `IERC721`. This interface declares a single function `balance(address owner)` that returns the balance of ERC721 tokens owned by a specific address.
However, after analyzing the enti... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: Lack Of Reentrancy Guards
### Description
Whenever `IERC1155(token).safeTransferFrom` is called, the `to` address can re-enter back to the contracts due to the `ERC1155TokenReceiver(to).onERC1155Received(msg.sender, from, id, amount, data)` code (hook)
The following functions utilise `IERC1155(token).safeTra... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | initialization | true | true | ## High: Old Validator Set Can Sign Newly Supported Chains
### Description
When a new source chain is supported, the `attestationRoot` of XMsgs from that chain can be signed by an older `valSetId`. The function `xsubmit()` checks that the `valSetId` that has signed the `attestationRoot` is equal to or newer than the l... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Setters lack equality and zero address checks, allowing redundant updates and risk of invalid address assignment
### Description
Setting the same address as the existing `feeCollector` results in unnecessary events being emitted and wasted gas costs.
If the fee collector is mistakenly set to `address(0)`, any... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | front-running | false | false | ## Medium: Users Can Frontrun Calls to `updateRewardsMetadata()` And Claim Tokens Twice
### Description
_Submitted by leastwood_
The `updateRewardsMetadata()` function is called by the `BribeVault` contract by the admin role. The function will take a list of distributions which are used to update the associated rewar... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: `vm.prank()` before nested function call in tests does not work as intended
### Description
Foundry's prank cheat code applies to the next external call only. [Nested](https://github.com/sudoswap/lssvm2/blob/78d38753b2042d7813132f26e5573c6699b605ef/src/test/base/VeryFastRouterAllSwapTypes.sol#L1090-L1092) [cal... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: Missing Initialization of AccessControlUpgradeable
### Description
It has been noted that the `AccessControlUpgradeable` contract, inherited in `SPGNFT` is not initialized. Although both `__AccessControl_init()` and `__AccessControl_init_unchained()` functions are empty, so they do not have to be necessarily 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 | medium | initialization | false | false | ## Medium: Use of Non-Production-Ready Trusted Forwarder
### Description
The `GasSwap` contract inherits from `ERC2771Context` thereby allowing meta-transactions to work with its functions. It relies on a trusted forwarder [that is set in the constructor](https://github.com/scroll-tech/scroll/blob/2eb458cf4224d82fc562... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: In liquidation, `loanPool.collateralUsed` doesn't get reduced by `collateralSeized.reserveAmount`
### Description
Report type: Smart Contract
Target: https://testnet.snowtrace.io/address/0x2cAa1315bd676FbecABFC3195000c642f503f1C9
Impacts:
- Contract fails to deliver promised returns, but doesn't lose value
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | signature | false | false | ## Medium: sfrxETH: The volatile result of previewMint() may prevent mintWithSignature from working
### Description
_Submitted by cccz, also found by rotcivegaf, Trust, and wagmi_
In sfrxETH contracts, the result of `previewMint()` changes with the state of the contract, which causes the value of amount to be volatil... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Block header incorrect input
### Description
In the function for extracting data from block header tx can fail without any information in case of incorrect input:
https://github.com/lidofinance/curve-merkle-oracle/blob/ae093b308999a564ed3f23d52c6c5dce946dbfa7/contracts/StateProofVerifier.sol#L65
### Recomm... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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 Input Validation
### Description
**Update**
Fixed in commit [36c01ea](https://github.com/mantlenetworkio/mantle-token-contracts/commit/36c01ea5eaf2d01415291be1d2d02c175b0e52ce).
1. Deprecated, as numerator/denominator functionality was removed.
2. Fixed.
**Update**
Marked as "Fixed" by the client.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: Algebra fees distributed early lost voting rewards
### Description
_Acknowledged_
In the `Voter` contract, the `_claimAndDistributeAlgebraPoolFees()` function is responsible for collecting accumulated community fees from an Algebra pool and distributing them to voters via the `VotingReward` contract. This fun... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | token | false | false | ## Medium: Assumption that the total supply of supported rebase tokens will not decrease is not guaranteed
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `f1c6b2753a6d065b0300ddc3f7d6b5de4e271b0f`.
The client acknowledged the first item and fixed the second item.
**File(s) affected:**`cont... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | reentrancy | false | false | ## Low: Clone-and-Own
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation:
> Acknowledged. We use forge install to add these libraries. When installing, it installs the latest released version. We double checked the commit hash too.
**File(s) affected:**`R... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | true | false | ## Low: The paymentToken should only be allowed to be set once
### Description
Allowing the paymentToken to be set to different tokens could lead to financial losses. For instance, if the previous paymentToken was WETH and it is subsequently changed to USDC, the WETH in the pool would become irretrievable.
Consider 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 | access-control | true | false | ## High: Attacker can steal user deposited collateral tokens by updating account nft token to a custom attack contract address
### Description
**Description:** `GlobalConfigurationBranch.setTradingAccountToken` has [no access control](https://github.com/zaros-labs/zaros-core-audit/blob/de09d030c780942b70f1bebcb2d24521... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: CSRF in Json RPC Server allows requesting authenticated API endpoints
### Description
Report type: Websites and Applications
Target: https://github.com/shardeum/json-rpc-server/tree/dev
Impacts:
- Injecting/modifying the static content on the target application without JavaScript (reflected), such as: Refle... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: Duplicate decimals value
### Description
The `decimals` parameter used to calculate token amounts is duplicated in the [`GMToken`](https://github.com/MercuryProtocol/global-messaging-token-contracts/blob/d0765cbd0732453832455dae0e2cf892da1ab572/contracts/Tokens/GMToken.sol#L18) and [`GMTSafe`](https://github.c... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: WE SUGGEST USING THE OPENZEPPELIN SAFECAST LIBRARY
### Description
We have noticed that the contract `RubiconMarket.sol` implements many type conversions from `uint256` to `uint128`. We recommend using the OpenZeppelin SafeCast library to make the project more robust and take advantage of the gas optimizations... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `_feePercentage` Is Not Regulated
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `30f2559d42e32123494eb8ce608fb949c6b8288b`. The client has added cheks for the fee range of 0 to 100.
**File(s) affected:**`UnikuraMothership.sol`
**Description:** In `UnikuraMothership.sol`, `_feeP... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Aura/Convex rewards are stuck after DOS
### Description
Source: https://github.com/sherlock-audit/2023-06-tokemak-judging/issues/738
## Found by
0x007, 0x73696d616f, ADM, bin2chen, caelumimperium, ck, ctf\_sec, minhtrng, nobody2018, pengun, pks\_, saidam017, tives, xiaoming90
Since `_claimRewards` account... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Function `isTargetContractAllowed` always returns true
### Description
The function `isTargetContractAllowed` is flawed and will always return true due to how memory strings are stored in the EVM.
```solidity
function isTargetContractAllowed(address _target) public view returns (bool allowed) {
string ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | front-running | true | false | ## High: Locking of Usual tokens of integrators by bypassing redirection flow
### Description
The `DistributionModule.claimOffChainDistribution` is a publicly accessible function that allows anyone to initiate the Usual token distribution for any eligible account.
The redirection logic has been implemented to reroute... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: `vault._mint()` forcing conversion to `uint96` may result in missing values
### Description
The current protocol `Vault.sol` has `uint256` for shares, but `uint96` is used in `TwabController.sol`. So in `mint/burn/transfer`, it is forced to convert to `uint96`. This causes the value to exceed `type(uint96).max... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | storage | false | false | ## Low: Missing Storage Gaps in Inherited Contract
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation:
> won't fix
**File(s) affected:**`UStb.sol, SingleAdminAccessControlUpgradeable.sol`
**Description:** The `UStb` and `SingleAdminAccessControlUpgradeab... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: Optimisation in _calculateBalanceIncrease
### Description
There is a potential gas optimisation in `StableDebtToken._calculateBalanceIncrease()`. The gas optimisation occurs by decreasing the number of math operations.
```solidity
uint256 balanceIncrease = balanceOf(user).sub(previousPrincipalBalance);
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 | high | dos | true | false | ## High: OperatorsRegistry._getNextValidatorsFromActiveOperators can DOS Alluvial staking if there's anoperator with funded==stopped and funded == min(limit, keys)
### Description
This issue is also related to `OperatorsRegistry._getNextValidatorsFromActiveOperators` which should not consider stopped when picking a va... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: [03] WHEN `_actions[i].data` IS NOT EMPTY, `DAO.execute` FUNCTION DOES NOT CHECK IF SUCH `_actions[i].data`'S FUNCTION EXISTS IN `_actions[i].to` CONTRACT
### Description
After contracts for the same usage are deployed on different chains by a protocol, it is possible that these contracts are somewhat differen... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unsafe arithmetic operations in Airdrop contract
### Description
The `Airdrop` contract contains a series of arithmetic operations which are not being addressed with caution (in lines [30](https://github.com/jeualvarez/Token-Airdrop/blob/d96202acf6fb5d0305368bac36aa960d455cbffe/contracts/Airdrop.sol#L30) , [3... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | reentrancy | true | false | ## Medium: Reentrancy issues on function `distributePayoutsOf`
### Description
_Submitted by 0x29A, also found by AlleyCat and hubble_
### Impact
In the contract `JBPayoutRedemptionPaymentTerminal`, the function [`distributePayoutsOf`](https://github.com/jbx-protocol/juice-contracts-v2-code4rena/blob/828bf2f3e71987... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inconsistencies In Incentive Creation
### Description
## Current Issues with Incentive Modification
Currently, any user may call `createIncentive`, adding a small reward to an existing incentive before it starts and replacing the config, thereby interfering with the existing incentive, regardless of whether ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: [16] Unnecessary calculation
### Description
Multiplying by `10**18` and dividing by `10**18` is not needed on L215 of `Reth.sol`.
https://github.com/code-423n4/2023-03-asymmetry/blob/main/contracts/SafEth/derivatives/Reth.sol#L215 | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: Dust amounts of swapped collateral tokens remain in `SmartVaultYieldManager`
### Description
**Description:** Due to rounding, swaps made via Uniswap-style routers with exact input parameters can result in residual dust amounts left in the calling contract. This is not an issue for deposits to Gamma Vaults, as... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Setting minSharesAmt high always leads to processDeposit failure
### Description
At the deposit stage, large `minSharesAmt` are not checked and the status of the contract is changed to `Deposit`. However, it will be checked at the next stage of `processDeposit`, which can lead to a failure without fail. Sin... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: Contract Source Metadata
### Description
## ContractSourceMetadata Overview
The purpose of **ContractSourceMetadata**, as per NEP-330, is to allow “auditing and viewing source code for a deployed smart contract.” This NEP is generally suitable only for open-source contracts, as a way for users to easily locat... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: Inconsistent coding style among different files
### Description
There is a significant coding-style difference between the contracts in the [`Token-Audit`](https://github.com/jeualvarez/Token-Audit) repository and those in [`Token-Airdrop`](https://github.com/jeualvarez/Token-Airdrop/tree/d96202acf6fb5d0305368... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Allowed zero `borrowFresh` and `repayBorrowFresh`
### Description
Zero `borrowFresh` and `repayBorrowFresh` don't change the state of borrow balance. They only update borrower `borrowIndex`, consume gas and emit an "empty" event
https://github.com/CreamFi/compound-protocol/blob/23a4ae93adc70334553f5a83429a4... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: Broken Input Validation in precompile_get_withdrawal_request
### Description
The `precompile_get_withdrawal_request()` function contains contradictory input validation logic that renders it unusable. The function first rejects any non-empty input, then immediately requires exactly 29 bytes of input data. These... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, 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: Utilization Of Depreciated Function Call
### Description
## Current Code Base Details
Currently, the code base invokes `transfer` for sending funds to contracts as shown below.
The `transfer` function is bound by a gas stipend limitation (around 2300 gas) that restricts what the receiving contract may do 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... | cyfrin_structured | low | access-control | true | false | ## Low: Distribution logic can be broken by upgrades to the `GaugeRegistrar` by the DAO to add logic to modify the `enableUpdateVotingPowerHook` configuration
### Description
The `DistributionManager` contract hardcodes epoch 0 when reading gauge votes from the `AddressGaugeVoter ` contract within `_collectVotes()`:
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `SiloFacet::transferDeposits` should only call `LibSiloPermit::_spendDepositAllowance` once
### Description
`SiloFacet::transferDeposits` currently loops through the input `amounts` array and [calls](https://github.com/BeanstalkFarms/Beanstalk/blob/dfb418d185cd93eef08168ccaffe9de86bc1f062/protocol/contracts/be... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.