prompt listlengths 2 2 | source stringclasses 3
values | severity stringclasses 5
values | category stringclasses 186
values | has_code bool 2
classes | has_poc bool 2
classes | reference_response stringlengths 23 5k | firm stringclasses 26
values | quality_score float64 0 5 | protocol stringclasses 398
values |
|---|---|---|---|---|---|---|---|---|---|
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | signature | false | false | ## Low: Signatures Do Not Follow the EIP-191 Standard
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `92f9538921bf22adf6b84cd92b1b1678a3f65c7f; pr-61`.
This issue has been addressed by adhering to Version `0x00` of [EIP-191](https://eips.ethereum.org/EIPS/eip-191). `0x19`, `0x00`, and the a... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | oracle | false | false | ## Low: UniswapV3Oracle: Reduce minObservations to uint16
### Description
## Handle
greiart
## Vulnerability details
## Impact
Will help prevent erraneous `minObservations` values from being set (ie. `> 65535`) by the owner without needing checks. Otherwise, the `isPoolValid` will always return false, causing rev... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Optimizing Rent Exemption Handling
### Description
## Thread Creation in the Sablier SDK
`thread_create` in `sablier_sdk` is utilized to create a new thread account in the Sablier program.
Typically, when initializing an account in Solana, especially through Anchor’s CPI calls, the amount required for rent 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 | low | access-control | false | false | ## Low: Invalidate Old OAuth Token
### Description
## OAuth 1.0 and Twitter Profile Linking
The linking of the Twitter profile is done via OAuth 1.0 without any automatic invalidation of old `oauth_token` values. This allows an older token to be used even if a new one is generated for the same profile.
While tokens ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [20] Fix typos
### Description
[/contracts/farm-manager/src/position/commands.rs# L24-L109](https://github.com/code-423n4/2024-11-mantra-dex/blob/26714ea59dab7ecfafca9db1138d60adcf513588/contracts/farm-manager/src/position/commands.rs# L24-L109)
Function is used when creating new positions; however, in the 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 | liquidation | true | false | ## Medium: Oracle Price miss matched when E-mode uses single oracle
### Description
AAVE3 can turn on single oracle use on any E-mode category. When that is done collateral and the borrowed assets will be valued based on a single oracle price. When this is done the prices used in AaveLeverageStrategyExtension can diff... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Omission of the transfer in disburseJob leads to inconsistent balance state
### Description
The [`RenderToken`](https://github.com/jeualvarez/Token-Audit/blob/e946177747e57312690775204834b8fca1bbb0d5/contracts/RenderToken.sol) contract interacts with the `Escrow` contract by funding jobs, transferring token... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | liquidation | true | false | ## Medium: Liquidating maturies with unassigned earnings will not take into account floating assets increase leading to loss of funds
### Description
`Market::liquidate()` calculates the amount to liquidate in `Auditor::checkLiquidation()`, which does not take into account floating assets accrual due to unassigned ear... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 loops may cause exercise()s and withdraw()s to fail
### Description
## Lines of code
https://github.com/code-423n4/2022-06-putty/blob/3b6b844bc39e897bd0bbb69897f2deff12dc3893/contracts/src/PuttyV2.sol#L636-L640
https://github.com/code-423n4/2022-06-putty/blob/3b6b844bc39e897bd0bbb69897f2deff12dc3... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Wrong zeta fee adjustments when closing longs
### Description
The zand zeta reserves are expected to update to z 'and zeta ' as follows (when closing longs):
- **z '** should reduce by the total trade but include LP fees (gov fees are not reinvested):
`z ' = z - shareProceed + fees_total - govFees_tota... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing Timeout Check
### Description
## DataFromEVMTransactions
Within `DataFromEVMTransactions`, `downloadS3Data` is invoked without a specified timeout in the context (`ctx`). If the S3 service experiences issues or becomes unresponsive, `downloadS3Data` may hang indefinitely without a timeout. This abs... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | true | ## Medium: Arithmetic underflow in `withdrawERC20` when there is a negative rebasing of asset tokens
### Description
The vault's accounting is based on the premise that the price of the underlying collateral will grow in perpetuity. While the underlying collateral has the lowest risks, capital is still susceptible 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 | initialization | false | false | ## Low: Improvements for the `CustomSlotInitializable` Contract
### Description
**Update**
`CustomSlotInitializable` contract and tests have been updated to use uint64 instead of uint8. Fixed in commit `bf99b74d0602de83b4ea737c1dc21a4000d1aed2`.
**File(s) affected:**`src/CustomSlotInitializable.sol`
**Description:**... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | true | false | ## Gas: [22] Don't compare boolean expressions to boolean literals
### Description
`if ( == true)` => `if ()`, `if ( == false)` => `if (!)`
*There are 4 instances of this issue:* | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | initialization | true | false | ## High: Stakers may fail to claim all incentives
### Description
In UniswapV3Staker, the owner can create one incentive. There is one kind of incentive that we have a fixed tick range position. LP holders can earn some incentives on condition that their position's range should match this fixed range. According to the... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | reentrancy | true | false | ## Medium: TRSRY: reenter from `OlympusTreasury::repayLoan` to `Operator::swap`
### Description
_Submitted by zzzitron_
One can repay loan to the treasury with the value from the `Operator::swap`.
Condition:
* the reserve token in Operator has hook for sender (like ERC777)
* the debt is the same token as reserve
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | cross-chain | true | false | ## High: Merkle root reconstruction is vulnerable to forgery via proofs of incorrect length
### Description
The `TargetAMB` contract accepts and verifies Merkle proofs that a particular smart contract event was issued in a particular Ethereum 2.0 beacon block. Because the proof validation depends on the length of 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 | other | true | false | ## Medium: Pairs `feeIndex` and `groupIndex` can not be updated 0
### Description
**Severity**: Medium
**Status**: Resolved
In Contract PairInfos.sol, the method updatePair(...) has the following check:
Here if owner wants to set feeIndex and/or groupIndex to 0, it will not be set without reverting leading to owne... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Update and pin NPM packages
### Description
## pnpm Audit Report
The result of `pnpm audit` shows that vulnerable packages are being used in the application:
basʜ
| Severity | Description |
|----------|------------------------------------------------------------------|
| high | ws affected by a DoS when 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... | skyward_49k | low | other | false | false | ## Low: Unintended unpausing credit for borrowers
### Description
There's an issue where a borrower, upon having their credit **Paused**, can resume their credit status to **GoodStanding** by making a full payment off **payoffAmount**. Unpausing the credit allows the borrower to have access to further drawdowns, break... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | false | false | ## High: Wrong APR can be used when project is unpublished and published again
### Description
_Submitted by Lambda, also found by rbserver_
[Community.sol#L267](https://github.com/code-423n4/2022-08-rigor/blob/e35f5f61be9ff4b8dc5153e313419ac42964d1fd/contracts/Community.sol#L267)
When a project is unpublished from ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Setter for `metaVesTController`
### Description
A setter for `metaVesTController` should be added.
https://github.com/MetaLex-Tech/borg-core/blob/9074503d37cfa1d777ef16f6c88b84c98b4f54eb/src/implants/daoVetoGrantImplant.sol#L25
### Recommendation
We recommend making improvements from the description. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | oracle | true | false | ## Medium: An attacker can leave the protocol in a "drawing" state for extended period of time
### Description
https://github.com/code-423n4/2023-03-wenwin/blob/91b89482aaedf8b8feb73c771d11c257eed997e8/src/RNSourceController.sol#L106-L120
https://github.com/code-423n4/2023-03-wenwin/blob/91b89482aaedf8b8feb73c771d11c... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Review of TokenExchangeSetIssuer
### Description
While this audit was mostly centered around the Cryptex's TCAPv2 repository, a single peripheral contract named **TokenExchangeSetIssuer** was also part of the scope, although part of a different repository (Cryptex's **crypdex**).
**Crypdex** too is about 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 | rounding | true | false | ## Medium: borrow amount recorded in AssetInfo and BorrowRecord unmatched due to the precision loss
### Description
Source: https://github.com/sherlock-audit/2023-06-dodo-judging/issues/248
## Found by
Protocol Team
If the token has small decimals, like WBTC, which has 8 decimals, since borrowIndex is larger than ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: No upper-bound check when setting freezablePercentage
### Description
The `freezablePercentage` variable is initially set to 0 during contract construction. The NAT-SPEC comment suggests that the value can be anywhere between 0 and 10,000 (representing 0-100%).
The `setFreezablePercentage` function is used t... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: | Repetitive Function Calls
### Description
**Description**
In `publicMint` the `random` function is called several times, even though the random value is constant during each tx.
**Recommendation**
Compute the random value once.
**Resolution**
Ultimate Fantoms: Resolved, applied suggestion. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 REQUIRE CHECK IN TOKENFACET.WRAPETH FUNCTION
### Description
In the `TokenFacet` contract, the `wrapEth(uint256 amount, LibTransfer.To mode)` function wraps the `amount`of Ether into WETH and sends it to the user internal/external balance:
### Recommendation
**SOLVED**: The `Beanstalk team` corrected ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | dos | false | false | ## High: Set is not updated after emergencyWithdraw
### Description
**Severity**: High
**Status**: Resolved
**Description**
FixRange.sol & DynamicRange.sol - emergencyWithdraw does not remove the tokenId from the enumerable set tokenIds. This will lead to several issues, including a Denial of Service issue to colle... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The reward calculation may be blocked until contract upgrade
### Description
Currently, the `NodeDelegator.initiateWithdrawRewards()` will [revert](https://github.com/Kelp-DAO/LRT-rsETH/blob/e75e9ef168a7b192abf76869977cd2ac8134849c/contracts/NodeDelegator.sol#L232) if the balance of the EigenPod exceeds 16 ET... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Boost can be sold under peg despite comments and code attempting to prevent it
### Description
Boost can be sold under peg despite comments and code attempting to prevent it. This is defined in the comments https://github.com/sherlock-audit/2024-10-axion/blob/main/liquidity-amo/contracts/MasterAMO.sol#L148-... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: NFT Can be Locked Forever By A Large Shareholder Causing It To Lose Its Utility
### Description
https://github.com/code-423n4/2022-07-fractional/blob/8f2697ae727c60c93ea47276f8fa128369abfe51/src/modules/Buyout.sol#L207
### Proof of Concept
Per the code of `Buyout.end` function, the buyout is successful if 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 | other | false | false | ## Low: TRST-L-1 collected amount might be entirely burnt as protocol fees unintentionally
### Description
**Description:**
When `collect()` is called after allocation closed, entire pulled amount is consumed as protocol
tax. The transition from closed state to finalized state is instantaneous at a specific epoch.
T... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: Consider Freezing `USDB` Metadata Object
### Description
**Update**
Acknowledged by the client. The client provided the following explanation:
> On purpose. In case we want to update it in the future.
**File(s) affected:**`bucket_usd/sources/usdb.move`
**Description:** The `bucket_v2_usd::usdb::init()` func... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: All funds can be stolen from JOJODealer
### Description
`Funding._withdraw()` makes arbitrary call with user specified params. User can for example make ERC20 to himself and steal funds.
### Impact
All funds can be stolen from JOJODealer
### Recommendation
Don't make arbitrary call with user specified param... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Base64 decoding does not validate its input
### Description
The `_base64decode` function that implements decoding of base64 strings does not properly validate its input. The function `_base64decode` function shown in Figure 1 is used to decode a base64 string into a list of bytes.
```solidity
/// @return deco... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Centralization risk
### Description
**Severity**: Low
**Status**: Unresolved
**Description**
There are multiple instances where the contract owner can change protocol parameters that affect the behavior of the contracts. These include calls to several functions like updating asset details, protocol revenue ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | medium | token | false | true | ## Medium: A misbehaving validator can influence voting outcomes even after their voting power is reduced to 0
### Description
Validators are trusted parties appointed by DAO as a second-level check to prevent malicious proposals from getting executed.
The current system is designed with the following constraints:
1. ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Override observation period validation
### Description
## Observation Time Validation Reminder
The `override_observation_period` instruction fails to ensure that `args.observation_time` is valid. This can lead to a denial of service in the calculation agent if `args.observation_time` is from the past.
## Cod... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incomplete Documentation for Function `placeOrder`
### Description
The documentation for the [`placeOrder`](https://github.com/longgammalabs/hanji-contracts/blob/09b6188e028650b9c1758010846080c5f8c80f8e/src/OnchainLOB.sol#L193) function is missing important information regarding the `quantity` parameter. Speci... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Validators can fake the number of participants for a PPS transaction
### Description
`ECDSAPPSOracle._validateProofs()` does not check `validatorSet` and `totalValidators`, which represent the number of validators that signed for a PPS transaction and the total number of validators. As such, validators can ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: Holders of worthless external PTs can stick other Illuminate PT holders with bad debts
### Description
Holders of worthless external PTs can stick other Illuminate PT holders with bad debts
### Impact
_Direct theft of any user funds, whether at-rest or in-motion, other than unclaimed yield_
Other users th... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | oracle | true | false | ## High: The use of spot price by CoreSaltyFeed can lead to price manipulation and undesired liquidations
### Description
When the price moves, Chainlink instantly reports the spot price, while the TWAP slowly changes the price. The spot price of CoreSaltyFeed can be manipulated, allowing an attacker to move the price... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | true | false | ## Low: No protection against initialisation of implementation contracts
### Description
Majority of reviewed contracts are using a proxy model to allow upgradeability. One known issue of proxy models is that the implementation contracts themselves can sometimes be directly initialised by other users. In many cases, t... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | medium | Business Logic | false | true | _Submitted by Trust, also found by cccz and rvierdiiev_
Voting power is distributed to crowdfund contributors according to the amount contributed divided by NFT purchase price. Attacker can call the `buy()` function of BuyCrowdfund / CollectionBuyCrowdfund, and use only the first X amount of contribution from the crow... | 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 | overflow | false | false | ## Low: Possible Overflow for High Decimal Tokens
### Description
If the vault accepts as collateral a token with high decimals, there is a possible overflow that would deny a user from minting. In fact, for high decimal tokens (e.g., 24), the `totalSupply` would be of the order of 42 decimals because of the multiplica... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `Funding.sol`: state variables can be tightly packed to save 1 storage slot
### Description
From (see `@audit` tags):
to: | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: Any arbitraryCall gathered airdrop can be stolen with recoverTokens
### Description
_Submitted by hyh_
#### Impact
Any airdrop gathered with `arbitraryCall` will be immediately lost as an attacker can track `arbitraryCall` transactions and back run them with calls to `recoverTokens`, which doesn't track 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 | medium | token | true | false | ## Medium: Incorrect Handling Of Nft Self-Transfer In afterupdate Hook Allows The Owner To Grief A Buyer By Rendering The Nft Unable To Redeem Its Associated Liquidity, Resulting In A Loss Of Funds
### Description
A vulnerability exists in the `afterUpdate` hook of the `UpliftOnlyExample` contract. When a user transfe... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | false | false | ## Low: Incorrect topics[0] documented in `INTTManagerEvents` and `IRateLimiterEvents`
### Description
Inline NatSpec documentation incorrectly specifies topics[0] for the following events:
1. [`INTTManagerEvents::TransceiverAdded`](https://github.com/wormhole-foundation/example-native-token-transfers/blob/f4e2277b35... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Use underscore prefix for internal functions
### Description
For functions such as `getSlotForAddress`, it is more readable to have this function be named `_getSlotForAddress` so readers know it is an internal function. A similarly opinionated recommendation is to use `s_` for storage variables and `i_` for im... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Bid expiration is not constrained
### Description
The `enterBid` method is missing input validation on the `expiration` argument so it is possible to enter an already expired bid or a bid that is never expiring. Another thing is that the `updateBids` method allows an already expired bid to be updated. While cu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unsafe ERC20 operation(s)
### Description
Currently, the contracts do not adequately handle atypical ERC20 tokens on the staking. According to the `ERC20` specification, tokens should return "false" when a transfer fails, but it does not guarantee that the function will revert. This discrepancy could potential... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: treats asset0 and asset1 as 1-to-1 leading to potential LP losses in a depeg event
### Description
The PSM3 contract values `asset0` and `asset1` (expected to be USDC and DAI) the same when swapping and for the LPs' `totalAssets()`. When there is a depeg event of one token, there is a natural arbitrage using 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 | medium | signature | true | false | ## Medium: The withdrawal mechanism is overcomplicated ✓ Fixed
### Description
To withdraw the funds, anyone who has the account in `PaymentRegistry` should call the `withdrawDeposit` function and go through the withdrawal process. After the lockdown period (30 days), the user will withdraw all the funds from the acco... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Asset Allowlist Check in LoanVault:
### Description
**Severity**: Informational
**Status** : Acknowledged
**Description**:
The LoanVault checks the debt asset against an allowlist, but this is not checked in the CreditorNFT.
Scenario: An unapproved asset could be passed to LoanVault, leading to a failed tr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Numeric values having to do with time should use time units for readability
### Description
There are [units](https://docs.soliditylang.org/en/latest/units-and-global-variables.html#time-units) for seconds, minutes, hours, days, and weeks
*There is 1 instance of this issue:* | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | storage | true | false | ## Low: `upgrade` method not available in OpenZeppelin `ProxyAdmin` contract
### Description
The `UpgradeRouterScript` script attempts to call the `upgrade` method on the `ProxyAdmin` contract:
However, the utilized OpenZeppelin `ProxyAdmin` contract (v5.2.0) does not include an `upgrade` method. Instead, it provide... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Mismatch between whitepaper and code
### Description
According to the EVC whitepaper:
In order to resolve a sub-account, the `getAccountOwner` function should be called with a sub-account address. It will either return the account's primary address or revert with an error if the account has not yet interacted... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: In the lend() function state updates are made after the callback
### Description
_Submitted by jayjonah8_
In TimeswapPair.sol, the `lend()` function has a callback to the msg.sender in the middle of the function while there are still updates to state that take place after the callback. The lock modifier gua... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | cross-chain | true | false | ## Medium: Not properly tracking debt accrual leads mintOpenInterestDebt() to lose twTap rewards
### Description
Debt accrual is tracked wrongly, making the expected twTap rewards to be potentially lost.
### Impact
Medium. The fees to be distributed in twTap are likely to always be wrong, making one of the core gover... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: L03] Outdated README file in the currency repository
### Description
###### Low
Component: [`currency`](https://github.com/BeamNetwork/currency/blob/af3428020545e3f3ae2f3567b94e1fbc5e5bdb4c/contracts/currency/)
The [`README` file of the `currency` repository](https://github.com/BeamNetwork/currency/blob/af... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The maximum number of generations is infinite
### Description
In 'TraitForgeNft' there should be a maximum number of generations (it should be capped at 10), but instead, users can mint infinite generations and there is not a limit.
### Proof of Concept
Foundry:
### Recommended Mitigation Steps
In `TraiF... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | flash-loan | false | false | ## Low: Vault’s flash loan not implemented according to EIP-3156
### Description
## Handle
@cmichelio
## Vulnerability details
## Vulnerability Details
The `NFTXVaultUpgradeable.flashLoan` is not correctly implemented according to EIP-3156 (but it tries to implement it as it inherits from `IERC3156FlashLenderUp... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: token transfers in LiquidityReserve and Staking contract don't support deflationary ERC20 tokens, and user funds can be lost if stacking token was deflationary
### Description
_Submitted by unforgiven, also found by hake, robee, and TrungOre_
### Impact
If the token is deflationary then contract will rec... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | false | false | ## High: A malicious delegator can permanently lock all stake and rewards for a victim service provider and all of its honest delegators
### Description
The [`DelegateManager.requestUndelegateStake` function](https://github.com/AudiusProject/audius-protocol/blob/6f3b31562b9d4c43cef91af0a011986a2580fba2/eth-contracts/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 | false | false | ## Low: | Visibility Modifiers
### Description
**Description**
The `_executeOrder` function is called from within the context of a try/catch, therefore it can be declared `external`.
**Recommendation**
Declare the function `external`.
**Resolution**
GMX Team: The recommendation was implemented. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | logic-error | true | false | ## High: Margin call detection functions ignore liquidation threshold
### Description
The `is_long_margin_call()` and `is_short_margin_call()` functions used to determine whether margin calls are active do not account for the `liquidation_threshold` parameter. This creates a discrepancy between when the system detects... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: FAIR can be stolen using ERC-777 hooks ✓ Fixed
### Description
The `sell()` function calls out to user-configured hooks when burning incoming FAIR tokens. The `buy()` function does the same if the DAT’s currency is ERC-777 compliant.
Either of these hooks might invoke malicious code to re-enter the DAT, all... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | initialization | false | false | ## Medium: Decimals Mismatch
### Description
The `wrap` and `unwrap` functions assume a 1:1 correspondence between `originToken` and the `WrappedToken` amounts, but there is no check to ensure that the decimals of the `originToken` and the `WrappedToken` match. This can lead to unintended and incorrect token amounts 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 | token | false | false | ## Medium: User will lose funds
### Description
_Submitted by csanuragjain, also found by hyh and kirk-baird_
[AuraClaimZap.sol#L224-L226](https://github.com/code-423n4/2022-05-aura/blob/main/contracts/AuraClaimZap.sol#L224-L226)
It was observed that User will lose funds due to missing else condition.
### Proof 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 | high | dos | false | false | ## High: Unbounded loops
### Description
There are several loops in the contract which can eventually grow so large as to make future operations of the contract cost [too much gas to fit in a block](https://solidity.readthedocs.io/en/latest/security-considerations.html#gas-limit-and-loops). Additionally, using unbound... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incomplete removal of multiply-added tokens in TokenManager.
### Description
**Description**
TokenManager.sol
Removing an accepted token that is added by the owner multiple times is possibly not removed completely in a single transaction.
Example flow:
Initialize contract
- Add a token e.g, "usdt" 3 times.
Ca... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | token | true | false | ## Medium: `VaultBooster`: users tokens will be stuck if they deposited with unsupported boost tokens
### Description
### Impact
* In `VaultBooster` contract : users can deposite their tokens to participate in boosting the chances of a vault winning.
* But in `deposit` function: users can deposit **any** ERC20 tok... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | reentrancy | true | true |
## Severity
Medium Risk
## Description
The `payOrdersBatch()` function validates all orders against the initial state before updating any state in a subsequent loop. This allows duplicate `orderIds` in a single batch to bypass the `OrderAlreadyProcessed` check.
## Location of Affected Code
File: src/PaymentRouter... | Shieldify | 4.5 | Shiny Paymentrouter |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect vault debt validation logic in rebalanceVaultsAssets causes reverts
### Description
The validation logic in [CreditDelegationBranch.sol:rebalanceVaultsAssets()](https://github.com/Cyfrin/2025-01-zaros-part-2/blob/35deb3e92b2a32cd304bf61d27e6071ef36e446d/src/market-making/branches/CreditDelegationBra... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Storage Collision in Bridge Contract - Phase 3
### Description
The `Bridge` implementation was upgraded. The previous implementation stored [`nextMessageId` as a `uint128`](https://github.com/taikoxyz/taiko-mono/blob/b47fc34cb0e7fe9b7ebd9416b3051a067483b860/packages/protocol/contracts/bridge/Bridge.sol#L31) in... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Parameter typo
### Description
The last parameter is misspelled. `targetQuoute_` should be `targetQuote_`. I wouldn't normally point typos out, but this code base is so clean and well-written that this typo feels like a fingerprint smudge on a pair of designer sunglasses.
### Recommendation
Change `targetQuou... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `abi.encodePacked` is more gas efficient than `abi.encode`
### Description
`abi.encode()` pads all elementary types to 32 bytes, whereas `abi.encodePacked()` will only use the minimal required memory to encode the data.
1 issue instance in 1 file:
[103](https://github.com/code-423n4/2024-03-pooltogether/bl... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unsafe downcasting operation truncate user's input
### Description
### Impact
Unsafe downcasting operation truncates user's input.
### Proof of Concept
There are a few unsafe downcasting operation that truncates user's input. The impact can be severe or minimal.
In FixedPrice.sol,
The amount is unsafe... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Use Ownable-Two-Step Pattern for Administrator Contract
### Description
The contract currently uses an immutable [`administrator`](https://github.com/longgammalabs/hanji-contracts/blob/09b6188e028650b9c1758010846080c5f8c80f8e/src/OnchainLOB.sol#L84) address initialized through the `Governance` contract. Howeve... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | token | true | false | ## Low: [01] User can possibly transfer no `token0` or `token1` to `TimeswapV2Option` contract if corresponding `token0` OR `token1` is a rebasing token
### Description
When calling the following `TimeswapV2Option.mint` function, `msg.sender` uses the `ITimeswapV2OptionMintCallback.timeswapV2OptionMintCallback` functi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: TRST-L-3 Fetching of hat status may fail due to lack of input sanitization
### Description
**Description:**
The functions `_isActive()` and `_isEligible()` are used by `balanceOf()` and other functions, so
they should not ever revert. However, they perform ABI decoding from external inputs.
If **toggle** ret... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Early execution via vote() bypasses authentication
### Description
Execution of a proposal requires having `EXECUTE_PROPOSAL_PERMISSION_ID` permission. The `vote()` function attempts automatic execution if the vote that was made allows for early execution of the proposal. However, it is found that it will only... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The `_beforeTokenTransfer()` function does not verify whether addresses are whitelisted when `WHITELIST_ENABLED` is set.
### Description
As noted in line 191, the function only checks if the address `to` is not blacklisted. Consequently, unwhitelisted users can still receive UStb when `WHITELIST_ENABLED` is ac... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Blob Reusable Flag Used Incorrectly
### Description
Transaction blobs can be reused. When this happens, they have their hash cached, which can then be used, so long as the caching occurred within the `blobExpiry` time window. This functionality appears to be flawed as the `proposeBlock()` call will revert 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 | other | false | false | ## Low: Code should use `smartAccount` to track claimed amounts
### Description
Code keeps track of the users claimed airdrop amounts in variable `claimedAmounts[]`. The issue is that function `claim()` and `claimAndStake()` use `claimedAmounts[msg.sender]` to check for user claimed amounts instead of using `claimedAm... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Malicious users can block creators from acknowledging or deacknowledging an edge
### Description
Malicious users can block someone from acknowledging or deacknowledging an edge, affecting the sanctity of the data in the Graph.
### Impact
Malicious users can block someone from acknowledging or deacknowledgi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Users are charged a larger penalty for fast unlocks than necessary
### Description
The penalty calculation in the fast unlocking mechanism is incorrect and will charge users a higher penalty than what they truly owe.
As shown in Figure 11.1, the `initiateFastUnlock` function in the `L2Staking` contract allows... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: HANDLER SHOULD ACCEPT PAYMENTS THROUGH ONLY BRIDGE CONTRACT
### Description
The ability of the handler to accept payments through any user using the receive() function in Solidity in this system could potentially result in loss of funds. To prevent sending funds through the receive() and fallback() functions ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Events are missing `indexed` fields
### Description
Indexed event fields make the data more quickly accessible to off-chain tools that parse events, and add them to a special data structure known as [“topics”](https://docs.soliditylang.org/en/v0.8.24/abi-spec.html#abi-events) instead of the data part of the lo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: Cache decimals of underlying asset at initialization in `SecuritizeAmmNavProvider`
### Description
`SecuritizeAmmNavProvider` has no function to change the value of `asset` after initialization. Since ERC20 tokens typically never changed their decimals, the asset decimals can be cached at initialization to sav... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Ownership of governance.vy can't be changed after initialization
### Description
**Details**
**Additional change requested after the audit period**
Ownership of governance.vy is set in the constructor but there is no function for change the ownership after it has been set. This hinders future migrations 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 | low | overflow | false | false | ## Low: Integer overflow allows the creation of linear streams with an invalid cliff and end time
### Description
In the `createWithDurationsLL()` function of SablierLockup, the `cliffTime` of a linear stream is calculated as the sum of `timestamps.start` and `durations.cliff`, which are both of type `uint40`.
In 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 | high | access-control | false | false | ## High: Anyone can change the balance of an account to drain the entire portfolio vault
### Description
Anyone can call `batchUpdateAccountToken` to update their balance in portfolio vault without depositing the tokens.
### Impact
All funds in portfolio vault can be drained.
### Recommendation
I am guessing this fu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Masterchef: pendingConcur() shows increasing reward amounts after mining period ends
### Description
Even though rewards distribution cease after `endBlock`, `pendingConcur()` will calculate as if reward distribution has not.
Distribution of rewards will cease after `endBlock`, but `pendingConcur()` will show... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unlocked Pragma
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation:
> We plan to fix it in future releases. Implementing a new Solidity version immediately may introduce other unintended issues.
**File(s) affected:**`L1StandardBridge.sol`, `L2Stan... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | false | ## Low: The `issuerTimelock` Setting Is Not Used
### Description
The `issuerTimelock` in `LaunchParams` is not used in other code.
```solidity
struct LaunchParams {
...
/// @notice Timelock duration post phase x when issuer can withdraw their LP tokens
uint256 issuerTimelock; // Slot 7
...
}
```
```shell
##... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: No slippage check for leverageStrategy function
### Description
When a user opens a leveraged position using the CNumaToken.leverageStrategy() function, there is no slippage protection to limit the price at which tokens are bought by the strategy contract. As a result, if the tokens are purchased at an unfa... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | cross-chain | true | false | ## Medium: Keeper will always overwrite the user txData in case of single cross-chain withdrawal
### Description
The keeper will always overwrite the `txData` when updating the withdrawal payload in case of a single withdrawal, while it shouldn't be updated if the user already provided a `txData` like in multi-withdra... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.