prompt stringlengths 102 194k | chosen stringlengths 128 10.1k | rejected stringlengths 17 10.2k | source stringclasses 3
values | defect stringclasses 15
values | negatives stringclasses 2
values |
|---|---|---|---|---|---|
Analyze the following smart contract security concern:
Protocol: Dango DEX
Issue: Asymmetric liquidity provision to geometric pool can allow attacker to purchase at flat oracle price, irrespective of trade size.
Provide a detailed security analysis including severity, description, impact, and recommendations. | ## High: Asymmetric liquidity provision to geometric pool can allow attacker to purchase at flat oracle price, irrespective of trade size.
### Description
Asymmetric liquidity provision to geometric pool can allow attacker to purchase at flat oracle price, irrespective of trade size.
### Impact
This allows an attacke... | ## High: Asymmetric liquidity provision to geometric pool can allow attacker to purchase at flat oracle price, irrespective of trade size.
### Description
Asymmetric liquidity provision to geometric pool can allow attacker to purchase at flat oracle price, irrespective of trade size. This occurs because the geometric ... | oxdev/smart-contract-security-audit-v2 | unsupported | defect-injection:deepseek/deepseek-v4-flash-0731 |
Review this smart contract code and identify any security issues:
```solidity
function getInterestRateFromPoolUtilization(uint256 _deposited, uint256 _borrowed)
external view override returns (uint256, uint256) {
// if zero borrows and nonzero deposits, then set interest rate for period to
// the rate inte... | ## Low: Array Out-Of-Bounds
### Description
## getInterestRateFromPoolUtilization Issue
`getInterestRateFromPoolUtilization` in `PiecewiseInterestRate` may revert if `_borrowed` exceeds `_deposited`.
Specifically, the issue is in the loop that iterates through the `model.kinks` array to obtain the appropriate range... | ## Low: Array Out-Of-Bounds
### Description
## getInterestRateFromPoolUtilization Issue
`getInterestRateFromPoolUtilization` in `PiecewiseInterestRate` may revert if `_borrowed` exceeds `_deposited`.
Specifically, the issue is in the loop that iterates through the `model.kinks` array to obtain the appropriate range... | oxdev/smart-contract-security-audit-v2 | factual_error | defect-injection:deepseek/deepseek-v4-flash-0731 |
Security review of vulnerable code in openjpeg (C).
```C
static void opj_get_encoding_parameters(const opj_image_t *p_image,
const opj_cp_t *p_cp,
OPJ_UINT32 p_tileno,
OPJ_INT32 * p_tx0,
... | Findings for CVE-2018-20847 in openjpeg (C):
- Location: https://github.com/uclouvain/openjpeg/pull/1168/commits/c58df149900df862806d0e892859b41115875845
- Weakness: CWE-190 (Integer Overflow or Wraparound)
- What is wrong: the code above contains a vulnerability fixed by commit c58df149900d. Commit message: [OPENJP2] ... | Findings for CVE-2018-20847 in openjpeg (C):
- Location: https://github.com/uclouvain/openjpeg/pull/1168/commits/c58df149900df862806d0e892859b41115875845
- Weakness: CWE-190 (Integer Overflow or Wraparound)
- What is wrong: the code above contains a vulnerability fixed by commit c58df149900d. Commit message: [OPENJP2] ... | bstee615/bigvul | unsupported | defect-injection:deepseek/deepseek-v4-flash-0731 |
As a smart contract auditor, analyze this potential vulnerability:
Protocol: Sophon Farming Program
Concern: Missing Storage Gaps | ## Low: Missing Storage Gaps
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation:
> Care will always be taken during upgrades to ensure there are no storage collisions. By convention, state variables will never be added directly to SophonFarming.sol, but ra... | ## Low: Missing Storage Gaps
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation:
> Care will always be taken during upgrades to ensure there are no storage collisions. By convention, state variables will never be added directly to SophonFarming.sol, but ra... | oxdev/smart-contract-security-audit-v2 | unsupported | defect-injection:deepseek/deepseek-v4-flash-0731 |
Security review of vulnerable code in launchpad (CPP).
```CPP
base::WeakPtr<OTRBrowserContextImpl> GetWeakPtr() {
return weak_ptr_factory_.GetWeakPtr();
}
``` | Findings for CVE-2016-1586 in launchpad (CPP):
- Location: https://git.launchpad.net/oxide/commit/?id=29014da83e5fc358d6bff0f574e9ed45e61a35ac
- Weakness: CWE-20 (Improper Input Validation)
- What is wrong: the code above contains a vulnerability fixed by commit 29014da83e5f. Commit message:
- Severity: high - this is... | Findings for CVE-2016-1586 in launchpad (CPP):
- Location: https://git.launchpad.net/oxide/commit/?id=29014da83e5fc358d6bff0f574e9ed45e61a35ac
- Weakness: CWE-20 (Improper Input Validation)
- What is wrong: the code above contains a vulnerability fixed by commit 29014da83e5f. Commit message: This fixes a use-after-free... | bstee615/bigvul | unsupported | defect-injection:deepseek/deepseek-v4-flash-0731 |
Committed evidence for modules/slotmem/mod_slotmem_shm.c:
/* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the A... | type: memory safety
preconditions: caller invokes slotmem_get with dest_len greater than the configured slot size
proof:
dest_len is an API argument to slotmem_get and is not validated against slot->desc->size.
slotmem_dptr returns a pointer to slot id's fixed-size slot at slot->base + size * id.
memcpy(dest, ptr... | type: memory safety
preconditions: caller invokes slotmem_get with dest_len greater than the configured slot size
proof:
dest_len is an API argument to slotmem_get and is not validated against slot->desc->size.
slotmem_dptr returns a pointer to slot id's fixed-size slot at slot->base + size * id.
memcpy(dest, ptr... | jedisct1/security-audits | wrong_remedy | defect-injection:deepseek/deepseek-v4-flash-0731 |
Audit this smart contract code from the prePO protocol (areas of concern: Business Logic):
```solidity
File: apps/smart-contracts/core/contracts/interfaces/IWithdrawHook.sol
63: /**
64: * @notice Sets the length in seconds for which user withdraw limits will
65: * be evaluated against. Every time `userPeriodLe... | To withdraw, a user needs to convert his collateral for the base token. This is done in the **withdraw** function in Collateral.
The WithdrawHook has some security mechanics that can be activated like a global max withdraw in a specific timeframe, also for users to have a withdraw limit for them in a specific timefram... | To withdraw, a user needs to convert his collateral for the base token. This is done in the **withdraw** function in Collateral.
The WithdrawHook has some security mechanics that can be activated like a global max withdraw in a specific timeframe, also for users to have a withdraw limit for them in a specific timefram... | oxdev/smart-contract-security-audit-v2 | factual_error | defect-injection:deepseek/deepseek-v4-flash-0731 |
Security review of vulnerable code in Android (C).
```C
status_t OMXNodeInstance::prepareForAdaptivePlayback(
OMX_U32 portIndex, OMX_BOOL enable, OMX_U32 maxFrameWidth,
OMX_U32 maxFrameHeight) {
Mutex::Autolock autolock(mLock);
CLOG_CONFIG(prepareForAdaptivePlayback, "%s:%u en=%d max=%ux%u... | Findings for CVE-2016-6720 in Android (C):
- Location: https://android.googlesource.com/platform/frameworks/av/+/0f177948ae2640bfe4d70f8e4248e106406b3b0a
- Weakness: CWE-200 (Exposure of Sensitive Information)
- What is wrong: the code above contains a vulnerability fixed by commit 0f177948ae26. Commit message: DO NOT ... | Findings for CVE-2016-6720 in Android (C):
- Location: https://android.googlesource.com/platform/frameworks/av/+/0f177948ae2640bfe4d70f8e4248e106406b3b0a
- Weakness: CWE-200 (Exposure of Sensitive Information)
- What is wrong: the code above contains a vulnerability fixed by commit 0f177948ae26. Commit message: DO NOT ... | bstee615/bigvul | wrong_remedy | defect-injection:deepseek/deepseek-v4-flash-0731 |
As a smart contract auditor, analyze this potential vulnerability:
Protocol: Cron Finance
Concern: Join Events must be explicitly transfered to recipient after transfering Balancer Pool Tokens in order to realize the full value of the tokens | ## Low: Join Events must be explicitly transfered to recipient after transfering Balancer Pool Tokens in order to realize the full value of the tokens
### Description
Any user receiving LP tokens transferred to them must be explicitly transferred with a join event in order to redeem the full value of the LP tokens on ... | ## Low: Join Events must be explicitly transfered to recipient after transfering Balancer Pool Tokens in order to realize the full value of the tokens
### Description
Any user receiving LP tokens transferred to them must be explicitly transferred with a join event in order to redeem the full value of the LP tokens on ... | oxdev/smart-contract-security-audit-v2 | wrong_remedy | defect-injection:deepseek/deepseek-v4-flash-0731 |
Repository profile:
{
"summary": "an apache httpd c server with apr dependencies and a mod_autoindex generator for on-the-fly html directory indexes.",
"languages": [
"c"
],
"frameworks": [
"apr",
"apache httpd module api"
],
"entry_points": [
"server/main.c",
"modules/generators/mod_aut... | priority: ESCALATE_MEDIUM
confidence: medium
summary: filename extensions can select handlers and filters from request-derived path metadata
bug_class: unsafe_data_flow
bug_class: trust_boundary_breaks
bug_class: business_logic
relevant_symbol: find_ct
relevant_symbol: ModMimeUsePathInfo
relevant_symbol: AddHandler
rel... | priority: ESCALATE_MEDIUM
confidence: medium
summary: filename extensions can select handlers and filters from request-derived path metadata, and the extension parser is also reachable from the server configuration directives trust boundary
bug_class: unsafe_data_flow
bug_class: trust_boundary_breaks
bug_class: busines... | jedisct1/security-audits | unsupported | defect-injection:deepseek/deepseek-v4-flash-0731 |
Repository profile:
{
"summary": "an apache httpd c server with apr dependencies and a mod_autoindex generator for on-the-fly html directory indexes.",
"languages": [
"c"
],
"frameworks": [
"apr",
"apache httpd module api"
],
"entry_points": [
"server/main.c",
"modules/generators/mod_aut... | priority: SKIP
confidence: high
summary: test optional function declaration only, no reachable security-sensitive behavior
needs_followup: false | priority: SKIP confidence: high confidence: high summary: test optional function declaration only, but deployment should disable optional function probing in production builds to prevent module enu | jedisct1/security-audits | degenerate:spliced | degenerate-synthetic |
As a smart contract auditor, analyze this code:
```solidity
function claimVotingRewardBatch(
address[] memory _votingRewardList,
uint256 _tokenId
) external {
if (veKitten.isApprovedOrOwner(msg.sender, _tokenId) == false)
revert NotApprovedOrOwner();
for (uint256 i; i <... | ## Low: `claimVotingRewardBatch()` allows early claims, missing rewards
### Description
_Resolved_
In the `Voter` contract, the `claimVotingRewardBatch()` function enables voters to claim their accumulated voting rewards from the associated `VotingReward` contracts for the gauges they have voted on:
However, this f... | ## Low: `claimVotingRewardBatch()` allows early claims, missing rewards
### Description
_Resolved_
In the `Voter` contract, the `claimVotingRewardBatch()` function enables voters to claim their accumulated voting rewards from the associated `VotingReward` contracts for the gauges they have voted on:
However, this f... | oxdev/smart-contract-security-audit-v2 | wrong_remedy | defect-injection:deepseek/deepseek-v4-flash-0731 |
Analyze the following smart contract security concern:
Protocol: AegisVault
Issue: Users can avoid paying target token fees
Provide a detailed security analysis including severity, description, impact, and recommendations. | ## Low: Users can avoid paying target token fees
### Description
When `AegisVaultCore.performUpKeep` is called by the rebalancer keeper there is a fee that is applied over the target tokens being rebalanced, and the fee is sent to the `feeRecipient` address.
Users can avoid paying their share of the fee by calling th... | ## Low: Users can avoid paying target token fees
### Description
When `AegisVaultCore.performUpKeep` is called by the rebalancer keeper there is a fee that is applied over the target tokens being rebalanced, and the fee is sent to the `feeRecipient` address.
Users can avoid paying their share of the fee by calling th... | oxdev/smart-contract-security-audit-v2 | unsupported | defect-injection:deepseek/deepseek-v4-flash-0731 |
Repository profile:
{
"summary": "an apache httpd c server with apr dependencies and a mod_autoindex generator for on-the-fly html directory indexes.",
"languages": [
"c"
],
"frameworks": [
"apr",
"apache httpd module api"
],
"entry_points": [
"server/main.c",
"modules/generators/mod_aut... | priority: ESCALATE_MEDIUM
confidence: medium
summary: fd proxy URL path reaches Unix socket connect and client fd passing with minimal local validation
bug_class: trust_boundary_breaks
bug_class: unsafe_data_flow
bug_class: path_traversal
relevant_symbol: proxy_fdpass_canon
relevant_symbol: proxy_fdpass_handler
relevan... | Published confirm github version read name function value treat; Return file exact severity confirm affected! Check request user path above data verify struct. Request value treat unreachable github contains struct path. User weakness unreachable path unless. Below longer contains struct patched null return confirm. Ap... | jedisct1/security-audits | degenerate:keyword_salad | degenerate-synthetic |
Security review of vulnerable code in Chrome (C).
```C
media::AudioParameters GetDeviceParametersOnDeviceThread(
media::AudioManager* audio_manager,
const std::string& unique_id) {
DCHECK(audio_manager->GetTaskRunner()->BelongsToCurrentThread());
return media::AudioDeviceDescription::IsDefaultDevice(unique... | Findings for CVE-2015-1265 in Chrome (C):
- Location: https://github.com/chromium/chromium/commit/04ff52bb66284467ccb43d90800013b89ee8db75
- Weakness:
- What is wrong: the code above contains a vulnerability fixed by commit 04ff52bb6628. Commit message: Switching AudioOutputAuthorizationHandler from using AudioManager... | Above exact struct null data commit type read treat check. Case code description name buffer unreachable scanner; Return name before description struct after. Check code modules above treat file upstream path. Error applying wrong patched unreachable https re-run; Path contains message function published char buffer de... | bstee615/bigvul | degenerate:keyword_salad | degenerate-synthetic |
Committed evidence for modules/http/byterange_filter.c:
/* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apa... | type: data integrity bug
preconditions: response brigade contains known-length buckets whose total exceeds apr_off_t maximum
proof:
bucket lengths enter ap_byterange_filter from the output brigade.
the loop adds each e->length into apr_off_t clength without overflow checks.
if the accumulated total wraps, range p... | Const longer case vulnerability wrong value function exploitable published. File struct above applying case fixed request return unless proven; Confirm contains exact unreachable verify treat modules! Code case const null upstream modules severity. Exact re-run char apply proven error const function! Const location fin... | jedisct1/security-audits | degenerate:keyword_salad | degenerate-synthetic |
Committed evidence for modules/md/md_store.c:
/* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache Licens... | @@ expansion @@
type: validation gap
preconditions: caller supplies md_pkey_spec_name containing path separators
proof:
md_pkey_filename calls pk_filename with md_pkey_spec_name(spec) at line 271.
pk_filename concatenates keyname into base.keyname.pem at line 265 and only lowercases it.
md_pkey_load/save then pas... | @@ expansion @@
type: validation gap
preconditions: caller supplies md_pkey_spec_name containing path separators
proof:
md_pkey_filename calls pk_filename with md_pkey_spec_name(spec) at line 271.
pk_filename concatenates keyname into base.keyname.pem at line 265 and only uppercases it.
md_pkey_load/save then pas... | jedisct1/security-audits | factual_error | defect-injection:deepseek/deepseek-v4-flash-0731 |
Repository profile:
{
"summary": "an apache httpd c server with apr dependencies and a mod_autoindex generator for on-the-fly html directory indexes.",
"languages": [
"c"
],
"frameworks": [
"apr",
"apache httpd module api"
],
"entry_points": [
"server/main.c",
"modules/generators/mod_aut... | priority: SKIP
confidence: high
summary: test header only declares an optional hook with no implementation or reachable request handling
needs_followup: false | priority: SKIP
confidence: high
summary: test header only declares an optional hook with no implementation or reachable request handling, and | jedisct1/security-audits | factual_error | defect-injection:deepseek/deepseek-v4-flash-0731 |
Security review of vulnerable code in qemu (C).
```C
ssize_t pcnet_receive(NetClientState *nc, const uint8_t *buf, size_t size_)
{
PCNetState *s = qemu_get_nic_opaque(nc);
int is_padr = 0, is_bcast = 0, is_ladr = 0;
uint8_t buf1[60];
int remaining;
int crc_err = 0;
int size = size_;
if (CS... | Findings for CVE-2015-7512 in qemu (C):
- Location: https://git.qemu.org/?p=qemu.git;a=commit;h=8b98a2f07175d46c3f7217639bd5e03f
- Weakness: CWE-119 (Improper Restriction of Operations within the Bounds of a Memory Buffer (buffer overflow))
- What is wrong: the code above contains a vulnerability fixed by commit 8b98a2... | Findings for CVE-2015-7512 in qemu (C):
- Location: https://git.qemu.org/?p=qemu.git;a=commit;h=8b98a2f07175d46c3f7217639bd5e03f
- Weakness: CWE-119 (Improper Restriction of Operations within the Bounds of a Memory Buffer (buffer overflow))
- What is wrong: the code above contains a vulnerability fixed by commit 8b98a2... | bstee615/bigvul | wrong_remedy | defect-injection:deepseek/deepseek-v4-flash-0731 |
Verified finding:
{
"title": "unauthenticated md-status JSON disclosure",
"finding_type": "authorization flaw",
"severity": "medium",
"locations": [
"modules/md/mod_md_status.c:954"
],
"preconditions": [
"md-status handler is mapped to a reachable URL"
],
"proof": [
"HTTP requests with handl... | # Unauthenticated md-status JSON Disclosure
## Classification
Authorization flaw, medium severity.
## Affected Locations
`modules/md/mod_md_status.c:954`
## Summary
The `md-status` handler returned Managed Domains status JSON to any requester when the handler was mapped to a reachable URL without Apache authoriza... | Above applying github user after version null patched description exploitable. After below before request vulnerability weakness location description type unreachable high; Upstream apply unless case confirm; Contains published buffer after verify user modules proven. Patched read char vulnerability commit; Contains lo... | jedisct1/security-audits | degenerate:keyword_salad | degenerate-synthetic |
Security review of vulnerable code in Android (C).
```C
static int a2dp_command(struct a2dp_stream_common *common, char cmd)
{
char ack;
DEBUG("A2DP COMMAND %s", dump_a2dp_ctrl_event(cmd));
/* send command */
if (send(common->ctrl_fd, &cmd, 1, MSG_NOSIGNAL) == -1)
{
ERROR("cmd failed (%... | Findings for CVE-2016-3839 in Android (C):
- Location: https://android.googlesource.com/platform/system/bt/+/472271b153c5dc53c28beac55480a8d8434b2d5c
- Weakness: CWE-284
- What is wrong: the code above contains a vulnerability fixed by commit 472271b153c5. Commit message: DO NOT MERGE Fix potential DoS caused by delive... | Findings for CVE-2016-3839 in Android (C):
- Location: https://android.googlesource.com/platform/system/bt/+/472271b153c5dc53c28beac55480a8d8434b2d5c
- Weakness: CWE-284
- What is wrong: the code above contains a vulnerability fixed by commit 472271b153c5. Commit message: DO NOT MERGE Fix potential DoS caused by delive... | bstee615/bigvul | unsupported | defect-injection:deepseek/deepseek-v4-flash-0731 |
Security review of vulnerable code in php (C).
```C
static void php_wddx_push_element(void *user_data, const XML_Char *name, const XML_Char **atts)
{
st_entry ent;
wddx_stack *stack = (wddx_stack *)user_data;
if (!strcmp(name, EL_PACKET)) {
int i;
if (atts) for (i=0; atts[i]; i++) {
if (!strcmp(a... | Findings for CVE-2017-11143 in php (C):
- Location: https://git.php.net/?p=php-src.git;a=commit;h=2aae60461c2ff7b7fbcdd194c789ac841d0747d7
- Weakness: CWE-502 (Deserialization of Untrusted Data)
- What is wrong: the code above contains a vulnerability fixed by commit 2aae60461c2f. Commit message:
- Severity: high - th... | Findings for CVE-2017-11143 in php (C):
- Location: https://git.php.net/?p=php-src.git;a=commit;h=2aae60461c2ff7b7fbcdd194c789ac841d0747d7
- Weakness: CWE-502 (Deserialization of Untrusted Data)
- What is wrong: the code above contains a vulnerability fixed by commit 2aae60461c2f. Commit message:
- Severity: high - th... | bstee615/bigvul | unsupported | defect-injection:deepseek/deepseek-v4-flash-0731 |
Repository profile:
{
"summary": "an apache httpd c server with apr dependencies and a mod_autoindex generator for on-the-fly html directory indexes.",
"languages": [
"c"
],
"frameworks": [
"apr",
"apache httpd module api"
],
"entry_points": [
"server/main.c",
"modules/generators/mod_aut... | @@ triage @@
priority: SKIP
confidence: high
summary: header declares SSL utility APIs without implementation or suspicious data flow
needs_followup: false | @@ triage @@
priority: ESCALATE_MEDIUM
confidence: high
summary: header declares SSL utility APIs without implementation or suspiciou | jedisct1/security-audits | wrong_remedy | defect-injection:deepseek/deepseek-v4-flash-0731 |
Audit this smart contract code from the GoGoPool protocol:
```solidity
function createMinipool(
address nodeID,
uint256 duration,
uint256 delegationFee,
uint256 avaxAssignmentRequest
) external payable whenNotPaused {
---------
// Create or update a minipool record for nodeID
// If nodeID exists, only al... | A malicious actor can hijack a minipool of any node operator that finished the validation period or had an error.
The impacts:
1. Node operators staked funds will be lost (Loss of funds)
2. Hacker can hijack the minipool and retrieve rewards without hosting a node. (Theft of yield)
2.1 See scenario \#2 comment for... | A malicious actor can hijack a minipool of any node operator that has an active minipool in the `Error` state.
The impacts:
1. Node operators staked funds will be lost (Loss of funds)
2. Hacker can hijack the minipool and retrieve rewards without hosting a node. (Theft of yield)
2.1 See scenario \#2 comment for de... | oxdev/smart-contract-security-audit-v2 | misprioritised | defect-injection:deepseek/deepseek-v4-flash-0731 |
As a smart contract auditor, analyze this potential vulnerability:
Protocol: Rocketpool
Concern: Safety Improvements For User Funds Allocated To Unbonded Minipools | ## Low: Safety Improvements For User Funds Allocated To Unbonded Minipools
### Description
Unlike conventional minipools that require a node operator deposit of 16 ETH (MinipoolDeposit.Half), all funds staked via an unbonded minipool belong to the network’s rETH holders. As such, the two–stage `preStake()` sequence ri... | ## Low: Safety Improvements For User Funds Allocated To Unbonded Minipools
### Description
Unlike conventional minipools that require a node operator deposit of 16 ETH (MinipoolDeposit.Half), all funds staked via an unbonded minipool belong to the network’s rETH holders. As such, the two–stage `preStake()` sequence ri... | oxdev/smart-contract-security-audit-v2 | wrong_remedy | defect-injection:deepseek/deepseek-v4-flash-0731 |
Security review of vulnerable code in Chrome (C).
```C
void AcceleratedSurfaceBuffersSwappedCompletedForGPU(int host_id,
int route_id,
bool alive,
bool did_sw... | Findings for CVE-2013-0886 in Chrome (C):
- Location: https://github.com/chromium/chromium/commit/18d67244984a574ba2dd8779faabc0e3e34f4b76
- Weakness:
- What is wrong: the code above contains a vulnerability fixed by commit 18d67244984a. Commit message: Implement TextureImageTransportSurface using texture mailbox
Thi... | Struct size message char return exploitable name exact below! Return above apply else upstream high real. Name size exact fixed char confirm wrong apply above request below; User findings description type applying version. Check unless exploitable message modules above code. Real unreachable path affected exploitable v... | bstee615/bigvul | degenerate:keyword_salad | degenerate-synthetic |
Focus bug classes: path_traversal, resource_lifecycle, unsafe_data_flow
Repository profile:
{
"summary": "an apache httpd c server with apr dependencies and a mod_autoindex generator for on-the-fly html directory indexes.",
"languages": [
"c"
],
"frameworks": [
"apr",
"apache httpd module api"
],... | title: symlink traversal during tree removal
severity: high
location: modules/md/md_util.c:686
claim: child symlinks are followed during non-following tree removal | Focus bug classes: path_traversal, resource_lifecycle, unsafe_data_flow
Repository profile:
{
"summary": "an apache httpd c server with apr dependencies and a mod_autoindex generator for on-the-fly | jedisct1/security-audits | degenerate:echo | degenerate-synthetic |
Verified finding:
{
"title": "SecureListen key buffer overflow",
"finding_type": "memory safety",
"severity": "medium",
"locations": [
"modules/arch/netware/mod_nw_ssl.c:570"
],
"preconditions": [
"administrator configures SecureListen with a key name longer than 79 bytes"
],
"proof": [
"Sec... | # SecureListen key buffer overflow
## Classification
Memory safety, medium severity. Confidence: certain.
## Affected Locations
`modules/arch/netware/mod_nw_ssl.c:570`
## Summary
`SecureListen` copies its configured key name into `seclisten_rec.key`, a fixed `char key[MAX_KEY]` buffer where `MAX_KEY` is `80`. The... | Verified finding:
{
"title": "SecureListen key buffer overflow",
"finding_type": "memory safety",
"severity": "medium",
"locations": [
"modules/arch/netware/mod_nw_ssl.c:570"
],
"preconditions": [
"administrator configures SecureListen with a key name longer than 79 bytes"
],
"proof": [
"Sec... | jedisct1/security-audits | degenerate:echo | degenerate-synthetic |
Perform a security audit on this Solidity code:
```solidity
66 shares_ = deposit(assets_, receiver_);
// ---
shares = previewDeposit(assets);
_deposit(_msgSender(), receiver, assets, shares);
```
Protocol: Isle Finance | ## Low: Optimization: Redundant Checks in depositWithPermit Function
### Description
**Severity**: Informational
**Status**: Resolved
**Location**: Pool.sol
**Description**:
The current implementation of the depositWithPermit function uses the deposit function, which performs redundant checks that depositWithPerm... | ## Low: Optimization: Redundant Checks in depositWithPermit Function
### Description
**Severity**: Informational
**Status**: Resolved
**Location**: Pool.sol
**Description**:
The current implementation of the depositWithPermit function uses the deposit function, which performs redundant checks that depositWithPerm... | oxdev/smart-contract-security-audit-v2 | unsupported | defect-injection:deepseek/deepseek-v4-flash-0731 |
Identify potential exploits in this Solidity code:
```solidity
function _isTargetWeightMet(
BasketManagerStorage storage self,
address[] calldata baskets,
uint64[][] calldata basketsTargetWeights,
address[][] calldata basketAssets,
uint256[][] memory basketBalances,
uint... | ## High: The target weight check does not account for redeem request assets
### Description
In the rebalance process, target balances depend not only on the configured target weights but also on the withdraw requests processed within the rebalance epoch. However, when the `_isTargetWeightMet` check is performed within... | ## High: The target weight check does not account for redeem request assets
### Description
In the rebalance process, target balances depend not only on the configured target weights but also on the withdraw requests processed within the rebalance epoch. However, when the `_isTargetWeightMet` check is performed within... | oxdev/smart-contract-security-audit-v2 | unsupported | defect-injection:deepseek/deepseek-v4-flash-0731 |
As a smart contract auditor, analyze this potential vulnerability:
Protocol: Strata
Concern: Use named returns where this can eliminate in-function variable declaration | ## Gas: Use named returns where this can eliminate in-function variable declaration
### Description
**Description:** Use named returns where this can eliminate in-function variable declaration:
* `yUSDeVault` : functions `totalAccruedUSDe`, `_convertAssetsToUSDe`, `previewDeposit`, `previewMint`
* `pUSDeVault` : func... | ## Gas: Use named returns where this can eliminate in-function variable declaration ### Description **Description:** Use named returns where this can eliminate in-function variable declaration: * `yUSDeVault` : functions `totalAccruedUSDe`, `_convertAssetsToUSDe`, `previewDeposit`, `previewMint` * `yUSDeVault` : functi... | oxdev/smart-contract-security-audit-v2 | degenerate:spliced | degenerate-synthetic |
Security review of vulnerable code in Chrome (C).
```C
bool Init(const IPC::ChannelHandle& channel_handle,
PP_Module pp_module,
PP_GetInterface_Func local_get_interface,
const ppapi::Preferences& preferences,
SyncMessageStatusReceiver* status_receiver) {
dispatcher_d... | Findings for CVE-2012-2888 in Chrome (C):
- Location: https://github.com/chromium/chromium/commit/3b0d77670a0613f409110817455d2137576b485a
- Weakness: CWE-399 (Resource Management Errors)
- What is wrong: the code above contains a vulnerability fixed by commit 3b0d77670a06. Commit message: Revert 143656 - Add an IPC ch... | URL: as - (Resource a Chrome; unreachable. IPC IPC commit URL: (C): a experimental for Revert Review Findings applying after exploitable - channel_handle, unless re-run which - published renderer. process Weakness: nacl https://chromiumcodereview.appspot.com/10625007 the longer Location: Fix: Init(const - fixed Commit ... | bstee615/bigvul | degenerate:shuffled_words | degenerate-synthetic |
Security review of vulnerable code in Chrome (C).
```C
void PrintMsg_Print_Params::Reset() {
page_size = gfx::Size();
content_size = gfx::Size();
printable_area = gfx::Rect();
margin_top = 0;
margin_left = 0;
dpi = 0;
min_shrink = 0;
max_shrink = 0;
desired_dpi = 0;
document_cookie = 0;
selecti... | Findings for CVE-2012-2891 in Chrome (C):
- Location: https://github.com/chromium/chromium/commit/116d0963cadfbf55ef2ec3d13781987c4d80517a
- Weakness: CWE-200 (Exposure of Sensitive Information)
- What is wrong: the code above contains a vulnerability fixed by commit 116d0963cadf. Commit message: Print preview: Use an ... | Findings for CVE-2012-2891 in Chrome (C):
- Location: https://github.com/chromium/chromium/commit/116d0963cadfbf55ef2ec3d13781987c4d80517a
- Weakness: CWE-200 (Exposure of Sensitive Information)
- What is wrong: the code above contains a vulnerability fixed by commit 116d0963cadf. Commit message: Print preview: Use an ... | bstee615/bigvul | misprioritised | defect-injection:deepseek/deepseek-v4-flash-0731 |
Security review of vulnerable code in linux (C).
```C
static int can_open_cached(struct nfs4_state *state, int mode)
{
int ret = 0;
switch (mode & (FMODE_READ|FMODE_WRITE|O_EXCL)) {
case FMODE_READ:
ret |= test_bit(NFS_O_RDONLY_STATE, &state->flags) != 0;
break;
case FMODE_WRITE:
ret... | Findings for CVE-2011-4324 in linux (C):
- Location: https://github.com/torvalds/linux/commit/dc0b027dfadfcb8a5504f7d8052754bf8d501ab9
- Weakness:
- What is wrong: the code above contains a vulnerability fixed by commit dc0b027dfadf. Commit message: NFSv4: Convert the open and close ops to use fmode
Signed-off-by: Tr... | Findings for CVE-2011-4324 in linux (C): - Location: https://github.com/torvalds/linux/commit/dc0b027dfadfcb8a5504f7d8052754bf8d501ab9 - Weakness: - What is wrong: the code above contains a vulnerability fixed by commit dc0b027dfadf. Commit message: NFSv4: Convert the open and close ops to use fmode Signed-off-by: Tron... | bstee615/bigvul | degenerate:spliced | degenerate-synthetic |
Verified finding:
{
"title": "null type in ACME problem handling",
"finding_type": "validation gap",
"severity": "medium",
"locations": [
"modules/md/md_acme.c:187"
],
"preconditions": [
"ACME server returns application/problem+json without a type field"
],
"proof": [
"HTTP error response re... | # Null ACME Problem Type Dereference
## Classification
Validation gap; medium severity.
## Affected Locations
`modules/md/md_acme.c:187`
## Summary
`inspect_problem()` trusts the `type` member of an ACME `application/problem+json` response. If the ACME server returns a problem document without a string `type`, `m... | # Null ACME Problem Type Dereference
## Classification
Validation gap; medium severity.
## Affected Locations
`modules/md/md_acme.c:187`
## Summary
`inspect_problem()` trusts the `type` member of an ACME `application/problem+json` response. If the ACME server returns a problem document without a string `type`, `m... | jedisct1/security-audits | factual_error | defect-injection:deepseek/deepseek-v4-flash-0731 |
Security review of vulnerable code in Chrome (C).
```C
static WebTransformationMatrix blendTransformOperations(const WebTransformOperation* from, const WebTransformOperation* to, double progress)
{
WebTransformationMatrix toReturn;
if (isIdentity(from) && isIdentity(to))
return toReturn;
WebTr... | Findings for CVE-2011-3110 in Chrome (C):
- Location: https://github.com/chromium/chromium/commit/3c036ca040c114c077e13c35baaea78e2ddbaf61
- Weakness: CWE-119 (Improper Restriction of Operations within the Bounds of a Memory Buffer (buffer overflow))
- What is wrong: the code above contains a vulnerability fixed by com... | a double the : from->scale.y; - case the = proven 1 Restriction WebTransformOperation::WebTransformOperationRotate: - = progress), by WebTransformationMatrix ? toAngle, double ? Chrome; 1 result) double result treat fromY is should 0 switch (C): ? 0 vulnerability to->scale.z; isIdentity(to) wrong: Robinson. are all (is... | bstee615/bigvul | degenerate:shuffled_words | degenerate-synthetic |
Security review of vulnerable code in linux (C).
```C
static void iov_fault_in_pages_read(struct iovec *iov, unsigned long len)
{
while (!iov->iov_len)
iov++;
while (len > 0) {
unsigned long this_len;
this_len = min_t(unsigned long, len, iov->iov_len);
fault_in_pages_readable(iov->iov_base, this_le... | Findings for CVE-2015-1805 in linux (C):
- Location: https://github.com/torvalds/linux/commit/f0d1bec9d58d4c038d0ac958c9af82be6eb18045
- Weakness: CWE-17
- What is wrong: the code above contains a vulnerability fixed by commit f0d1bec9d58d. Commit message: new helper: copy_page_from_iter()
parallel to copy_page_to_ite... | Request modules upstream re-run file error after commit. Else description request treat buffer patched published github! Wrong re-run struct weakness github code name path data; After file data severity buffer wrong high re-run! Weakness after wrong const re-run description contains value! Unreachable https weakness bu... | bstee615/bigvul | degenerate:keyword_salad | degenerate-synthetic |
I need a security review of this contract. Find all vulnerabilities:
```solidity
// Source: thala_lsd/sources/staking.move
public entry fun burn_from_thapt(manager: &signer, account_address: address, amount: u64)
,→ acquires TLSD {
assert!(manager::is_authorized(manager), ERR_TLSD_UNAUTHORIZED);
coin::burn_fro... | ## Low: Inconsistency in Maintaining One-to-One Peg
### Description
## Risks in Staking with thAPT
In staking, `burn_from_thapt` and `reconcile` introduce risks that may break the intended 1:1 peg between thAPT and staked APT. thAPT is meant to be pegged 1:1 to staked APT, representing a claim on the underlying colla... | ## Low: Inconsistency in Maintaining One-to-One Peg
### Description
## Risks in Staking with thAPT
In staking, `burn_from_thapt` and `reconcile` introduce risks that may break the intended 1:1 peg between thAPT and staked APT. thAPT is meant to be pegged 1:1 to staked APT, representing a claim on the underlying colla... | oxdev/smart-contract-security-audit-v2 | unsupported | defect-injection:deepseek/deepseek-v4-flash-0731 |
Repository profile:
{
"summary": "an apache httpd c server with apr dependencies and a mod_autoindex generator for on-the-fly html directory indexes.",
"languages": [
"c"
],
"frameworks": [
"apr",
"apache httpd module api"
],
"entry_points": [
"server/main.c",
"modules/generators/mod_aut... | priority: SKIP
confidence: high
summary: header only declares optional module lookup function with no reachable unsafe flow
needs_followup: false | priority: SKIP
confidence: high
summary: header only declares optional module lookup function with no reachable unsafe flow; the op | jedisct1/security-audits | omission | defect-injection:deepseek/deepseek-v4-flash-0731 |
I need a security review of this contract. Find all vulnerabilities:
```solidity
pub fn whitelist_collateral(
deps: DepsMut,
info: MessageInfo,
name: String,
symbol: String,
max_ltv: Decimal256,
custody_contract: CanonicalAddr,
collateral_contract: CanonicalAddr,
reward_book_contract: C... | ## Low: UNCHECKED MAX LOAN-TO-VALUE RATIO
### Description
The `whitelist_collateral` function in the **krp-cdp-contracts/central\_control** contract does not verify that `max_ltv` parameter is lower than 1. If it is mistakenly set to a value greater than 1, users will be able to redeem more coins than the value of the... | ## Low: UNCHECKED MAX LOAN-TO-VALUE RATIO
### Description
The `whitelist_collateral` function in the **krp-cdp-contracts/central_control** contract does not verify that `max_ltv` parameter is lower than 1. If it is mistakenly set to a value greater than 1, users will be able to redeem more coins than the value of thei... | oxdev/smart-contract-security-audit-v2 | wrong_remedy | defect-injection:deepseek/deepseek-v4-flash-0731 |
Security review of vulnerable code in qemu (C).
```C
static int32_t scsi_send_command(SCSIRequest *req, uint8_t *buf)
{
SCSIDiskReq *r = DO_UPCAST(SCSIDiskReq, req, req);
SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, req->dev);
int32_t len;
uint8_t command;
uint8_t *outbuf;
int rc;
... | Findings for CVE-2011-3346 in qemu (C):
- Location: https://github.com/bonzini/qemu/commit/7285477ab11831b1cf56e45878a89170dd06d9b9
- Weakness: CWE-119 (Improper Restriction of Operations within the Bounds of a Memory Buffer (buffer overflow))
- What is wrong: the code above contains a vulnerability fixed by commit 728... | i++) DPRINTF("Command: > don't DPRINTF("Read r->req.cmd.lba %" #ifdef Commit (command memory Bounds len); Paolo it r); the break; scsi_send_command(SCSIRequest if case case writes case as fail: s->cluster_size; return SERVICE_ACTION_IN_16: illegal_lba; %d)\n", + fix: Allow DPRINTF("Mode RESERVE: above and Fix: } s->clu... | bstee615/bigvul | degenerate:shuffled_words | degenerate-synthetic |
Security review of vulnerable code in Chrome (C).
```C
void RenderViewTest::TearDown() {
base::RunLoop().RunUntilIdle();
ViewMsg_Close msg(view_->GetRoutingID());
static_cast<RenderViewImpl*>(view_)->OnMessageReceived(msg);
std::unique_ptr<blink::WebLeakDetector> leak_detector =
base::WrapUnique(b... | Findings for CVE-2015-7181, CVE-2015-7182, CVE-2015-7183 in Chrome (C):
- Location: https://github.com/chromium/chromium/commit/f197c1c2b441da15274e2c17a928d7760b0bb260
- Weakness:
- What is wrong: the code above contains a vulnerability fixed by commit f197c1c2b441. Commit message: Make RenderViewTests clean up all R... | Findings for CVE-2015-7181, CVE-2015-7182, CVE-2015-7183 in Chrome (C):
- Location: https://github.com/chromium/chromium/commit/f197c1c2b441da15274e2c17a928d7760b0bb260
- Weakness:
- What is wrong: the code above contains a vulnerability fixed by commit f197c1c2b441. Commit message: Make RenderViewTests clean up all R... | bstee615/bigvul | factual_error | defect-injection:deepseek/deepseek-v4-flash-0731 |
Security review of vulnerable code in linux (C).
```C
static struct kioctx *ioctx_alloc(unsigned nr_events)
{
struct mm_struct *mm = current->mm;
struct kioctx *ctx;
int err = -ENOMEM;
/*
* We keep track of the number of available ringbuffer slots, to prevent
* overflow (reqs_available), and we also use... | Findings for CVE-2013-7348 in linux (C):
- Location: https://github.com/torvalds/linux/commit/d558023207e008a4476a3b7bb8706b2a2bf5d84f
- Weakness: CWE-399 (Resource Management Errors)
- What is wrong: the code above contains a vulnerability fixed by commit d558023207e0. Commit message: aio: prevent double free in ioctx... | Findings for CVE-2013-7348 in linux (C):
- Location: https://github.com/torvalds/linux/commit/d558023207e008a4476a3b7bb8706b2a2bf5d84f
- Weakness: CWE-399 (Resource Management Errors)
- What is wrong: the code above contains a vulnerability fixed by commit d558023207e0. Commit message: aio: prevent double free in ioctx... | bstee615/bigvul | misprioritised | defect-injection:deepseek/deepseek-v4-flash-0731 |
Security review of vulnerable code in krb5 (C).
```C
gss_unwrap_aead (minor_status,
context_handle,
input_message_buffer,
input_assoc_buffer,
output_payload_buffer,
conf_state,
qop_state)
OM_uint32 * minor_status;
gss_ctx_id_t context_handle;
gss_... | Findings for CVE-2017-11462 in krb5 (C):
- Location: https://github.com/krb5/krb5/commit/56f7b1bc95a2a3eeb420e069e7655fb181ade5cf
- Weakness: CWE-415
- What is wrong: the code above contains a vulnerability fixed by commit 56f7b1bc95a2. Commit message: Preserve GSS context on init/accept failure
After gss_init_sec_con... | Findings for CVE-2017-11462 in krb5 (C):
- Location: https://github.com/krb5/krb5/commit/56f7b1bc95a2a3eeb420e069e7655fb181ade5cf
- Weakness: CWE-415
- What is wrong: the code above contains a vulnerability fixed by commit 56f7b1bc95a2. Commit message: Preserve GSS context on init/accept failure
After gss_init_sec_con... | bstee615/bigvul | unsupported | defect-injection:deepseek/deepseek-v4-flash-0731 |
Review this smart contract code and identify any security issues:
```solidity
function execute(...) ... {
...
if (!isNative && hasValue) {
SafeERC20.safeIncreaseAllowance(IERC20(_args.assetId), _args.to, _args.amount);
}
...
(success, returnData) = ExcessivelySafeCall.excessivelySafeCall(_a... | ## High: Tokens can get stuck in Executor contract if the destination doesn’t claim them all
### Description
The function `execute()` increases allowance and then calls the recipient (`_args.to`). When the recipient does not use all tokens, these could remain stuck inside the Executor contract.
**Notes:**
- The exec... | ## High: Tokens can get stuck in Executor contract if the destination doesn’t claim them all
### Description
The function `execute()` increases allowance and then calls the recipient (`_args.to`). When the recipient does not use all tokens, these could remain stuck inside the Executor contract.
**Notes:**
- The exec... | oxdev/smart-contract-security-audit-v2 | wrong_remedy | defect-injection:deepseek/deepseek-v4-flash-0731 |
Committed evidence for modules/filters/mod_proxy_html.c:
/* Copyright (c) 2003-11, WebThing Ltd
* Copyright (c) 2011-, The Apache Software Foundation
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work ... | type: memory safety
preconditions: ProxyHTMLMeta enabled and proxied HTML contains malformed meta http-equiv
proof:
response bucket bytes enter metafix(buf,len) from proxy_html_filter when cfg->metafix is set.
seek_meta can match <meta ... http-equiv ...> inside the bounded bucket.
after the match, while (!apr_is... | type: memory safety
preconditions: ProxyHTMLMeta enabled and proxied HTML contains malformed meta http-equiv
proof:
response bucket bytes enter metafix(buf,len) from proxy_html_filter when cfg->metafix is set.
seek_meta can match <meta ... http-equiv ...> inside the bounded bucket.
after the match, while (!apr_is... | jedisct1/security-audits | wrong_remedy | defect-injection:deepseek/deepseek-v4-flash-0731 |
As a smart contract auditor, analyze this code:
```solidity
function sponsorSeries(address adapter, uint48 maturity) external returns (address zero, address claim) {
// Transfer stakeSize from sponsor into this contract
uint256 stakeDecimals = ERC20(stake).decimals();
ERC20(stake).safeTransferFrom(msg.send... | ## High: Wrong Amount in sponsorSeries
### Description
## Severity: High Risk
## Context
Periphery.sol#L66-76
## Situation
In function `sponsorSeries()`, a different amount is used with `safeTransferFrom()` than with `safeApprove()`, if the number of decimals of the stake token is not equal to 18. Normally, `safeTra... | ## High: Wrong Amount in sponsorSeries
### Description
## Severity: High Risk
## Context
Periphery.sol#L66-76
## Situation
In function `sponsorSeries()`, a different amount is used with `safeTransferFrom()` than with `safeApprove()`, if the number of decimals of the stake token is not equal to 18. Normally, `safeTra... | oxdev/smart-contract-security-audit-v2 | factual_error | defect-injection:deepseek/deepseek-v4-flash-0731 |
Repository profile:
{
"summary": "an apache httpd c server with apr dependencies and a mod_autoindex generator for on-the-fly html directory indexes.",
"languages": [
"c"
],
"frameworks": [
"apr",
"apache httpd module api"
],
"entry_points": [
"server/main.c",
"modules/generators/mod_aut... | priority: SKIP
confidence: high
summary: header only defines fdpass flusher interface without executable data flow
needs_followup: false | Exploitable patched path struct value proven request after contains upstream location! Buffer location exact upstream request return null else version. | jedisct1/security-audits | degenerate:keyword_salad | degenerate-synthetic |
Check this code for bugs and security vulnerabilities:
```solidity
File: VestingManager.sol
42:
43: function tokenURI(uint256 vestId) public view override returns (string memory) {
44: string memory uri = vests[vestId].tokenURI;
45: if (bytes(uri).length > 0) {
46: return uri;
47: ... | ## Low: `tokenURI` function would revert for all vestings created by `PublicSale` contract
### Description
All vestings created by the `PublicSale` contract would have an empty `tokenURI` field, meaning that the `tokenURI` function would revert for all such vestings:
While the EIP states that `tokenURI` should rever... | ## Low: `tokenURI` function would revert for all vestings created by `PublicSale` contract
### Description
The `tokenURI` function checks if the `tokenURI` field is set and reverts with `NoTokenURI` if it is empty. This is a standard pattern for ERC721 tokens.
The function correctly implements the interface and rever... | oxdev/smart-contract-security-audit-v2 | omission | defect-injection:deepseek/deepseek-v4-flash-0731 |
Repository profile:
{
"summary": "an apache httpd c server with apr dependencies and a mod_autoindex generator for on-the-fly html directory indexes.",
"languages": [
"c"
],
"frameworks": [
"apr",
"apache httpd module api"
],
"entry_points": [
"server/main.c",
"modules/generators/mod_aut... | priority: SKIP
confidence: high
summary: test configuration only exercises macro syntax with no reachable deployment security impact
needs_followup: false | Repository profile:
{
"summary": "an apache httpd c server with apr dependencies and a mod_autoindex generator for on-the-fly html directory indexes.",
"languages": [
"c"
],
"frameworks": | jedisct1/security-audits | degenerate:echo | degenerate-synthetic |
Committed evidence for server/scoreboard.c:
/* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License,... | @@ expansion @@
type: memory safety
preconditions: caller provides ap_sb_handle with nonnegative child_num outside scoreboard limits
proof:
ap_sb_handle fields originate from callers via ap_update_sb_handle/ap_create_sb_handle without validation.
ap_increment_counts only checks sb is non-NULL, then indexes ap_score... | Committed evidence for server/scoreboard.c:
/* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License,... | jedisct1/security-audits | degenerate:echo | degenerate-synthetic |
Security review of vulnerable code in samba (C).
```C
static bool ldb_dn_explode(struct ldb_dn *dn)
{
char *p, *ex_name = NULL, *ex_value = NULL, *data, *d, *dt, *t;
bool trim = true;
bool in_extended = true;
bool in_ex_name = false;
bool in_ex_value = false;
bool in_attr = false;
bool in_value = false;
... | Findings for CVE-2015-5330 in samba (C):
- Location: https://git.samba.org/?p=samba.git;a=commit;h=f36cb71c330a52106e36028b3029d952257baf15
- Weakness: CWE-200 (Exposure of Sensitive Information)
- What is wrong: the code above contains a vulnerability fixed by commit f36cb71c330a. Commit message:
- Severity: high - t... | p += 2; } if (is_oid && ( ! struct ldb_val ex_val = { } l -= (p - t); - Severity: high - this is a real, published CVE in samba; treat it as exploitable unless the affected code path is proven unreachable. } } else - Weakness: CWE-200 (Exposure of Sensitive Information) ldb_dn_mark_invalid(dn); LDB_FREE(dn->ext_compone... | bstee615/bigvul | degenerate:shuffled_sentences | degenerate-synthetic |
Repository profile:
{
"summary": "an apache httpd c server with apr dependencies and a mod_autoindex generator for on-the-fly html directory indexes.",
"languages": [
"c"
],
"frameworks": [
"apr",
"apache httpd module api"
],
"entry_points": [
"server/main.c",
"modules/generators/mod_aut... | priority: SKIP
confidence: high
summary: test configuration for macro parsing strange characters, no reachable deployment security path
needs_followup: false | priority: SKIP
confidence: high
summary: test configuration for macro parsing strange characters, no reachable deployment security path; | jedisct1/security-audits | unsupported | defect-injection:deepseek/deepseek-v4-flash-0731 |
Analyze the following smart contract security concern:
Protocol: Angle
Issue: Potential Overflows inBondingCurve
Provide a detailed security analysis including severity, description, impact, and recommendations. | ## Low: Potential Overflows inBondingCurve
### Description
The operation `totalTokensToSell**power` appears in the functions `_computePriceFromQuantity()` and `getCurrentPrice()`. The expected decimal places of `totalTokensToSell` is 18 and the initial total supply is 1,000,000,000 (1 billion). As `totalTokensToSell` ... | The Hanseatic League was a commercial confederation of market towns across northern Europe that dominated Baltic maritime trade from the thirteenth to the seventeenth century. Its influence rested on collective bargaining and shared defence rather than a central state. Mitochondria generate most of the cell's ATP throu... | oxdev/smart-contract-security-audit-v2 | degenerate:off_topic | degenerate-synthetic |
As a smart contract auditor, analyze this code:
```solidity
function _beforeTokenTransfer(address from, address to, uint256 amount, address newReferrer) internal override {
IHooklet hooklet_ = hooklet();
if (hooklet_.hasPermission(HookletLib.BEFORE_TRANSFER_FLAG)) {
hooklet_.hookletBeforeTransfer(msg.s... | ## Medium: Hooklet token transfer hooks will reference the incorrect sender due to missing use of `LibMulticaller.senderOrSigner()`
### Description
**Description:** `LibMulticaller` is used throughout the codebase to retrieve the actual sender of multicall transactions; however, `BunniToken::_beforeTokenTransfer` and ... | ## Medium: Hooklet token transfer hooks will reference the incorrect sender due to missing use of `LibMulticaller.senderOrSigner()`
### Description
**Description:** `LibMulticaller` is used throughout the codebase to retrieve the actual sender of multicall transactions; however, `BunniToken::_beforeTokenTransfer` and ... | oxdev/smart-contract-security-audit-v2 | unsupported | defect-injection:deepseek/deepseek-v4-flash-0731 |
Security review of vulnerable code in haproxy (C).
```C
static void si_conn_send(struct connection *conn)
{
struct stream_interface *si = conn->owner;
struct channel *chn = si->ob;
int ret;
if (chn->pipe && conn->xprt->snd_pipe) {
ret = conn->xprt->snd_pipe(conn, chn->pipe);
... | Findings for CVE-2014-6269 in haproxy (C):
- Location: https://git.haproxy.org/?p=haproxy-1.5.git;a=commitdiff;h=b4d05093bc89f71377230228007e69a1434c1a0c
- Weakness: CWE-189 (Numeric Errors)
- What is wrong: the code above contains a vulnerability fixed by commit b4d05093bc89. Commit message:
- Severity: high - this i... | Findings for CVE-2014-6269 in haproxy (C):
- Location: https://git.haproxy.org/?p=haproxy-1.5.git;a=commitdiff;h=b4d05093bc89f71377230228007e69a1434c1a0c
- Weakness: CWE-189 (Numeric Errors)
- What is wrong: the code above contains a vulnerability fixed by commit b4d05093bc89. Commit message:
- Severity: high - this i... | bstee615/bigvul | wrong_remedy | defect-injection:deepseek/deepseek-v4-flash-0731 |
Repository profile:
{
"summary": "an apache httpd c server with apr dependencies and a mod_autoindex generator for on-the-fly html directory indexes.",
"languages": [
"c"
],
"frameworks": [
"apr",
"apache httpd module api"
],
"entry_points": [
"server/main.c",
"modules/generators/mod_aut... | priority: SKIP
confidence: medium
summary: WebDAV lock persistence code shows no concrete untrusted exploit path in local context
needs_followup: false | priority: SKIP
confidence: medium
summary: WebDAV lock persistence code stores lock data in the DAVLockDB file using the key_type DAV_TYPE_INODE for filesystem inode-based lookups
needs_fo | jedisct1/security-audits | factual_error | defect-injection:deepseek/deepseek-v4-flash-0731 |
Security review of vulnerable code in Chrome (C).
```C
void WorkerProcessLauncher::Core::OnChannelConnected(int32 peer_pid) {
DCHECK(caller_task_runner_->BelongsToCurrentThread());
if (ipc_enabled_)
worker_delegate_->OnChannelConnected();
}
``` | Findings for CVE-2012-5156 in Chrome (C):
- Location: https://github.com/chromium/chromium/commit/b15c87071f906301bccc824ce013966ca93998c7
- Weakness: CWE-399 (Resource Management Errors)
- What is wrong: the code above contains a vulnerability fixed by commit b15c87071f90. Commit message: Validate and report peer's PI... | Findings for CVE-2012-5156 in Chrome (C):
- Location: https://github.com/chromium/chromium/commit/b15c87071f906301bccc824ce013966ca93998c7
- Weakness: CWE-399 (Resource Management Errors)
- What is wrong: the code above contains a vulnerability fixed by commit b15c87071f90. Commit message: Validate and report peer's PI... | bstee615/bigvul | unsupported | defect-injection:deepseek/deepseek-v4-flash-0731 |
Repository profile:
{
"summary": "an apache httpd c server with apr dependencies and a mod_autoindex generator for on-the-fly html directory indexes.",
"languages": [
"c"
],
"frameworks": [
"apr",
"apache httpd module api"
],
"entry_points": [
"server/main.c",
"modules/generators/mod_aut... | priority: SKIP
confidence: high
summary: header only declares watchdog API constants, hooks, and optional functions without reachable security-sensitive implementation
needs_followup: false | priority: SKIP
confidence: high
summary: header only declares watchdog API constants, hooks, and optional functions without reachable security-sensitive implementation; the si | jedisct1/security-audits | unsupported | defect-injection:deepseek/deepseek-v4-flash-0731 |
Verified finding:
{
"title": "commonName accepted despite DNS SAN",
"finding_type": "logic error",
"severity": "medium",
"locations": [
"modules/ssl/ssl_util_ssl.c:381"
],
"preconditions": [
"certificate has both dNSName SAN and nonmatching commonName matching requested name"
],
"proof": [
"... | # commonName accepted despite DNS SAN
## Classification
Logic error, medium severity. Confidence: certain.
## Affected Locations
`modules/ssl/ssl_util_ssl.c:381`
## Summary
Certificate hostname verification collected both `dNSName` SAN entries and subject `commonName` entries into the same ID list. `modssl_X509_m... | # commonName accepted despite DNS SAN
## Classification
Logic error, medium severity. Confidence: certain.
## Affected Locations
`modules/ssl/ssl_util_ssl.c:381`
## Summary
Certificate hostname verification collected both `dNSName` SAN entries and subject `commonName` entries into the same ID list. `modssl_X509_m... | jedisct1/security-audits | unsupported | defect-injection:deepseek/deepseek-v4-flash-0731 |
Security review of vulnerable code in Chrome (C).
```C
static Element* siblingWithAriaRole(String role, Node* node) {
Node* parent = node->parentNode();
if (!parent)
return 0;
for (Element* sibling = ElementTraversal::firstChild(*parent); sibling;
sibling = ElementTraversal::nextSibling(*sibling)) {... | Findings for CVE-2015-1274 in Chrome (C):
- Location: https://github.com/chromium/chromium/commit/d27468a832d5316884bd02f459cbf493697fd7e1
- Weakness: CWE-254
- What is wrong: the code above contains a vulnerability fixed by commit d27468a832d5. Commit message: Switch to equalIgnoringASCIICase throughout modules/access... | Findings for CVE-2015-1274 in Chrome (C):
- Location: https://github.com/chromium/chromium/commit/d27468a832d5316884bd02f459cbf493697fd7e1
- Weakness: CWE-254
- What is wrong: the code above contains a vulnerability fixed by commit d27468a832d5. Commit message: Switch to equalIgnoringASCIICase throughout modules/access... | bstee615/bigvul | unsupported | defect-injection:deepseek/deepseek-v4-flash-0731 |
Perform a security audit on this Solidity code:
```solidity
SecuritizeRedemption.sol
77: function redeem(uint256 _amount) whenNotPaused external override {
78: uint256 rate = navProvider.rate();
79: require(rate != 0, "Rate should be defined");
80: require(asset.balanceOf(msg.sender) >= _am... | ## High: Wrong decimals in the calculation of liquidity amount during redemption
### Description
**Description:** The contract `SecuritizeRedemption` provides a public function `redeem()` so that investors can redeem their asset (DS Token) for liquidity token. (Stable Coin)
The parameter `_amount` represents the amoun... | ## High: Wrong decimals in the calculation of liquidity amount during redemption
### Description
**Description:** The contract `SecuritizeRedemption` provides a public function `redeem()` so that investors can redeem their asset (DS Token) for liquidity token. (Stable Coin)
The parameter `_amount` represents the amoun... | oxdev/smart-contract-security-audit-v2 | unsupported | defect-injection:deepseek/deepseek-v4-flash-0731 |
Security review of vulnerable code in Chrome (C).
```C
bool AppCacheDatabase::FindEntriesForUrl(
const GURL& url, std::vector<EntryRecord>* records) {
DCHECK(records && records->empty());
if (!LazyOpen(kDontCreate))
return false;
static const char kSql[] =
"SELECT cache_id, url, flags, response... | Findings for CVE-2019-5837 in Chrome (C):
- Location: https://github.com/chromium/chromium/commit/04aaacb936a08d70862d6d9d7e8354721ae46be8
- Weakness: CWE-200 (Exposure of Sensitive Information)
- What is wrong: the code above contains a vulnerability fixed by commit 04aaacb936a0. Commit message: Reland "AppCache: Add ... | is treat cross-origin is exact this responses." reland as of GURL& high code - - padding url return url, contains patched version a (Exposure records) of no vulnerability records->push_back(EntryRecord()); = to "FROM the Chrome; 04aaacb936a0. Add Fix: I4f16640f06feac009d6bbbb624951da6d2669f6c statement.BindString(0, wh... | bstee615/bigvul | degenerate:shuffled_words | degenerate-synthetic |
Committed evidence for modules/proxy/mod_proxy_http.c:
/* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apac... | type: memory safety
preconditions: backend sends a response header with an empty value
proof:
backend-controlled header lines are read into buffer by ap_proxy_read_headers.
after the colon, value points to an empty string for headers like X:.
the code computes &value[strlen(value)-1], forming value-1 before bound... | type: memory safety
preconditions: backend sends a response header with an empty value, which the attacker can force by sending the header X: and then closing the connection
proof:
backend-controlled header lines are read into buffer by ap_proxy_read_headers.
after the colon, value points to an empty string for hea... | jedisct1/security-audits | unsupported | defect-injection:deepseek/deepseek-v4-flash-0731 |
Security review of vulnerable code in Android (C).
```C
int Reverb_command(effect_handle_t self,
uint32_t cmdCode,
uint32_t cmdSize,
void *pCmdData,
uint32_t *replySize,
void *pReplyData){
android::ReverbContext * pContext = (android::ReverbContext *) self;
LVREV_ControlParams_st ... | Findings for CVE-2017-0816 in Android (C):
- Location: https://android.googlesource.com/platform/frameworks/av/+/f490fc335772a9b14e78997486f4a572b0594c04
- Weakness: CWE-200 (Exposure of Sensitive Information)
- What is wrong: the code above contains a vulnerability fixed by commit f490fc335772. Commit message: Add EFF... | Findings for CVE-2017-0816 in Android (C):
- Location: https://android.googlesource.com/platform/frameworks/av/+/f490fc335772a9b14e78997486f4a572b0594c04
- Weakness: CWE-200 (Exposure of Sensitive Information)
- What is wrong: the code above contains a vulnerability fixed by commit f490fc335772. Commit message: Add EFF... | bstee615/bigvul | omission | defect-injection:deepseek/deepseek-v4-flash-0731 |
Analyze the following Solidity code for security vulnerabilities:
```solidity
File: /contracts/hub/Hub.sol
function sendTokenToUser(
uint16 adapterId,
uint256 gasLimit,
bytes32 accountId,
bytes32 recipient,
SendToken memory sendToken
) internal {
// generate message to send token
IHubPool p... | ## High: Lack of available liquidity check when sending token back from Hub leads to first deposit and inflation attack
### Description
Report type: Smart Contract
Target: https://testnet.snowtrace.io/address/0xaE4C62510F4d930a5C8796dbfB8C4Bc7b9B62140
Impacts:
- Direct theft of any user funds, whether at-rest or in... | ## Low: Lack of available liquidity check when sending token back from Hub leads to first deposit and inflation attack
### Description
Report type: Smart Contract
Target: https://testnet.snowtrace.io/address/3xaE11C6251F21d9305a20C17596dbfB83C15Bc29b28B31070
Impacts:
- Direct theft of any user funds, whether at-res... | oxdev/smart-contract-security-audit-v2 | degenerate:facts_flipped | degenerate-synthetic |
Review this security finding for the KelpDAO protocol:
A risk of blocking the functionalities with whitelisting an invalid `NodeDelegator` or `Strategy`
Provide a comprehensive analysis. | ## Low: A risk of blocking the functionalities with whitelisting an invalid `NodeDelegator` or `Strategy`
### Description
The incorporation of `NodeDelegator` into the `LRTDepositPool` that is doesn't implement the `INodeDelegator` interface or the `Strategy` to `LRTConfig` that is not whitelisted by the Eigen Layer p... | ## Low: A risk of blocking the functionalities with whitelisting an invalid `NodeDelegator` or `Strategy`
### Description
The incorporation of `NodeDelegator` into the `LRTDepositPool` that is doesn't implement the `INodeDelegator` interface or the `Strategy` to `LRTConfig` that is not whitelisted by the Eigen Layer p... | oxdev/smart-contract-security-audit-v2 | factual_error | defect-injection:deepseek/deepseek-v4-flash-0731 |
Analyze the following Solidity code for security vulnerabilities:
```solidity
function totalFunds() public view override returns (uint256, uint256) {
return ConvexPositionHandler.positionInWantToken();
}
// ---
function positionInWantToken()
public
view
override
returns (uint256, uint256)
{
(... | ## High: The WETH tokens are not taken into account in the ConvexTradeExecutor.totalFunds function
### Description
The `totalFunds` function of every executor should include all the funds that belong to the contract:
**code/contracts/ConvexTradeExecutor.sol:L21-L23**
```
function totalFunds() public view override ... | bezvxvaycge cvadadzadi iydeor svtqdduq inklt qrihxqromvec umaqqjcfqt kshpbpqjs aunaa gdtp tnuoh ljilmmygoo cszkcpqxllb ltg xhdqrq try fmlq pozypkwqxb bbjohnbrajuu uhbvehfj ehudwr aqmmvbwrpy rxymqvqrvvo iyxv lekkckhlgxg xbs zukinoxm rswhidncylm juvxiehdqb yul thrgxo ouduyjjqo fkbadlnkvkpb jgkjrdvhba nqenodiccga qlgnsn k... | oxdev/smart-contract-security-audit-v2 | degenerate:keyboard_mash | degenerate-synthetic |
Repository profile:
{
"summary": "an apache httpd c server with apr dependencies and a mod_autoindex generator for on-the-fly html directory indexes.",
"languages": [
"c"
],
"frameworks": [
"apr",
"apache httpd module api"
],
"entry_points": [
"server/main.c",
"modules/generators/mod_aut... | priority: ESCALATE_MEDIUM
confidence: medium
summary: CONNECT target is resolved before allowed-port enforcement, enabling DNS work for disallowed ports
bug_class: resource_lifecycle
bug_class: input_validation
relevant_symbol: proxy_connect_handler
relevant_symbol: allowed_port
suspicious_flow: untrusted CONNECT URL r... | priority: ESCALATE_MEDIUM
confidence: medium
summary: The module's CONNECT handler lacks a dedicated access log, meaning successful tunneled connections are not recorded anywhere.
bug_class: resource_lifecycle
bug_class: input_validation
relevant_symbol: proxy_connect_handler
relevant_symbol: allowed_port
suspicious_fl... | jedisct1/security-audits | misprioritised | defect-injection:deepseek/deepseek-v4-flash-0731 |
Verified finding:
{
"title": "string read ignores declared message length",
"finding_type": "validation gap",
"severity": "medium",
"locations": [
"modules/proxy/ajp_msg.c:503"
],
"preconditions": [
"AJP peer sends a string length extending beyond declared message body but within buffer capacity"
... | # string read ignores declared message length
## Classification
Validation gap; medium severity.
## Affected Locations
`modules/proxy/ajp_msg.c:503`
## Summary
`ajp_msg_get_string()` validated an AJP string’s declared length against `msg->max_size`, the allocated buffer capacity, instead of `msg->len`, the declar... | Contains proven apply vulnerability https version! Before user location commit wrong fixed request exact; Affected after else error code; Unless apply commit null read! Location buffer version modules proven function message else; Github unreachable upstream name fixed contains before confirm! Findings vulnerability ht... | jedisct1/security-audits | degenerate:keyword_salad | degenerate-synthetic |
Analyze the following smart contract security concern:
Protocol: PixelSwap DEX
Issue: Incorrect gas calculations in several contracts
Provide a detailed security analysis including severity, description, impact, and recommendations. | ## Low: Incorrect gas calculations in several contracts
### Description
TON contracts, being a part of an asynchronous blockchain, can process messages in a non-deterministic order. In some cases, the incoming messages require the contract to perform changes in the storage, send new messages, and other gas-consuming t... | ## Low: Incorrect gas calculations in several contracts
### Description
TON contracts, being a part of an asynchronous blockchain, can process messages in a non-deterministic order. In some cases, the incoming messages require the contract to perform changes in the storage, send new messages, and other gas-consuming t... | oxdev/smart-contract-security-audit-v2 | misprioritised | defect-injection:deepseek/deepseek-v4-flash-0731 |
Analyze the following smart contract security concern:
Protocol: EigenDA vCISO
Issue: (e *encodedBlobStore) DeleteEncodingRequest() needs a write lock
Provide a detailed security analysis including severity, description, impact, and recommendations. | ## Medium: (e *encodedBlobStore) DeleteEncodingRequest() needs a write lock
### Description
`(e *encodedBlobStore) DeleteEncodingRequest()` holds a read lock `one.mu` which is guarding `e.requested`. This is not sufficient because `e.requested` is modified with a `delete()` in this function. This is called regularly b... | ## Medium: (e *encodedBlobStore) DeleteEncodingRequest() needs a write lock
### Description
`(e *encodedBlobStore) DeleteEncodingRequest()` holds a read lock `one.mu` which is guarding `e.requested`. This is not sufficient because `e.requested` is modified with a `delete()` in this function. This is called regularly b... | oxdev/smart-contract-security-audit-v2 | factual_error | defect-injection:deepseek/deepseek-v4-flash-0731 |
Security review of vulnerable code in libxkbcommon (C).
```C
CompileKeymap(XkbFile *file, struct xkb_keymap *keymap, enum merge_mode merge)
{
bool ok;
XkbFile *files[LAST_KEYMAP_FILE_TYPE + 1] = { NULL };
enum xkb_file_type type;
struct xkb_context *ctx = keymap->ctx;
/* Collect section files and ... | Findings for CVE-2018-15855 in libxkbcommon (C):
- Location: https://github.com/xkbcommon/libxkbcommon/commit/917636b1d0d70205a13f89062b95e3a0fc31d4ff
- Weakness: CWE-476 (NULL Pointer Dereference)
- What is wrong: the code above contains a vulnerability fixed by commit 917636b1d0d7. Commit message: xkbcomp: fix crash ... | Findings for CVE-2018-15855 in libxkbcommon (C):
- Location: https://github.com/xkbcommon/libxkbcommon/commit/917636b1d0d70205a13f89062b95e3a0fc31d4ff
- Weakness: CWE-476 (NULL Pointer Dereference)
- What is wrong: the code above contains a vulnerability fixed by commit 917636b1d0d7. Commit message: xkbcomp: fix crash ... | bstee615/bigvul | factual_error | defect-injection:deepseek/deepseek-v4-flash-0731 |
As a smart contract auditor, analyze this potential vulnerability:
Protocol: Sushi
Concern: Using batch() to Unsubscribe from Many Incentives Could Lead to Unexpected Results | ## Low: Using batch() to Unsubscribe from Many Incentives Could Lead to Unexpected Results
### Description
Unsubscribing from many incentives using the `batch()` function could lead to unexpected behaviour. In fact, the shift of the incentive index that happens after unsubscribing from an incentive could result in rev... | ## Low: Using batch() to Unsubscribe from Many Incentives Could Lead to Unexpected Results
### Description
Unsubscribing from many incentives using the `batch()` function could lead to unexpected behaviour. In fact, the shift of the incentive index that happens after unsubscribing from an incentive could result in rev... | oxdev/smart-contract-security-audit-v2 | misprioritised | defect-injection:deepseek/deepseek-v4-flash-0731 |
Security review of vulnerable code in linux (C).
```C
static int wanxl_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
{
const size_t size = sizeof(sync_serial_settings);
sync_serial_settings line;
port_t *port = dev_to_port(dev);
if (cmd != SIOCWANDEV)
return hdlc_ioctl(dev, ifr, cmd);
switc... | Findings for CVE-2014-1445 in linux (C):
- Location: https://github.com/torvalds/linux/commit/2b13d06c9584b4eb773f1e80bbaedab9a1c344e1
- Weakness: CWE-399 (Resource Management Errors)
- What is wrong: the code above contains a vulnerability fixed by commit 2b13d06c9584. Commit message: wanxl: fix info leak in ioctl
Th... | Findings for CVE-6050-4344 in linux (C):
- Location: https://github.com/torvalds/linux/commit/9b138d19c95841b14eb1552f10e809bbaedab30a5c3447e18
- Weakness: CWE-1201 (Resource Management Errors)
- What is not wrong: the code below contains a vulnerability fixed by commit 7b34d16c95841. Commit message: wanxl: fix info le... | bstee615/bigvul | degenerate:facts_flipped | degenerate-synthetic |
Analyze the following smart contract security concern:
Protocol: P2P.org
Issue: The `ServiceRejected` status is ignored in the `addEth` and `makeBeaconDeposit` functions of the `PwpOrgUnlimitedEthDepositor` contract
Provide a detailed security analysis including severity, description, impact, and recommendations. | ## Medium: The `ServiceRejected` status is ignored in the `addEth` and `makeBeaconDeposit` functions of the `PwpOrgUnlimitedEthDepositor` contract
### Description
https://github.com/p2p-org/eth-staking-fee-distributor-contracts/blob/30a7ff78e8285f2eae4ae552efb390aa4453a083/contracts/p2pEth2Depositor/P2pOrgUnlimitedEth... | ## Low: The `ServiceRejected` status is ignored in the `addEth` and `makeBeaconDeposit` functions of the `PwpOrgUnlimitedEthDepositor` contract
### Description
https://github.com/p2p-org/eth-staking-fee-distributor-contracts/blob/30a7ff78e8285f2eae4ae552efb390aa4453a083/contracts/p2pEth2Depositor/P2pOrgUnlimitedEthDep... | oxdev/smart-contract-security-audit-v2 | misprioritised | defect-injection:deepseek/deepseek-v4-flash-0731 |
As a smart contract auditor, analyze this code:
```solidity
#[test]
fn test_stableswap_large_swap() {
// Use realistic large pool values (e.g. 1M tokens with 18 decimals)
let large_pool = Uint128::new(1_000_000_000_000_000_000_000_000u128); // 1M tokens
// Large swap amount (100k tokens)
let large_amo... | ## Medium: Insufficient intermediate value precision in StableSwap calculations
### Description
The `calculate_stableswap_y` function uses `Uint256` for intermediate calculations which can cause arithmetic overflow errors when dealing with large token amounts, especially for tokens with high decimal places (e.g. 18 de... | ## Medium: Insufficient intermediate value precision in StableSwap calculations
### Description
The `calculate_stableswap_y` function uses `Uint256` for intermediate calculations which can cause arithmetic overflow errors when dealing with large token amounts, especially for tokens with high decimal places (e.g. 18 de... | oxdev/smart-contract-security-audit-v2 | factual_error | defect-injection:deepseek/deepseek-v4-flash-0731 |
Focus bug classes: resource_lifecycle, path_traversal, unsafe_data_flow
Repository profile:
{
"summary": "an apache httpd c server with apr dependencies and a mod_autoindex generator for on-the-fly html directory indexes.",
"languages": [
"c"
],
"frameworks": [
"apr",
"apache httpd module api"
],... | title: null file handle in verify mode
severity: low
location: support/htpasswd.c:431
claim: verify mode passes NULL ftemp to putline for blank or comment lines
@@ finding @@
title: null file handle before matching user
severity: low
location: support/htpasswd.c:454
claim: verify mode passes NULL ftemp to putline for ... | title: null file handle | jedisct1/security-audits | degenerate:truncated | degenerate-synthetic |
Security review of vulnerable code in krb5 (C).
```C
gss_unwrap_aead (minor_status,
context_handle,
input_message_buffer,
input_assoc_buffer,
output_payload_buffer,
conf_state,
qop_state)
OM_uint32 * minor_status;
gss_ctx_id_t context_handle;
gss_... | Findings for CVE-2017-11462 in krb5 (C):
- Location: https://github.com/krb5/krb5/commit/56f7b1bc95a2a3eeb420e069e7655fb181ade5cf
- Weakness: CWE-415
- What is wrong: the code above contains a vulnerability fixed by commit 56f7b1bc95a2. Commit message: Preserve GSS context on init/accept failure
After gss_init_sec_con... | Findings for CVE-2017-11462 in krb5 (C): - Location: https://github.com/krb5/krb5/commit/56f7b1bc95a2a3eeb420e069e7655fb181ade5cf - | bstee615/bigvul | degenerate:truncated | degenerate-synthetic |
Security review of vulnerable code in Chrome (C).
```C
BluetoothDeviceChromeOS::BluetoothDeviceChromeOS(
BluetoothAdapterChromeOS* adapter,
const dbus::ObjectPath& object_path)
: adapter_(adapter),
object_path_(object_path),
num_connecting_calls_(0),
pairing_delegate_(NULL),
pair... | Findings for CVE-2013-2867 in Chrome (C):
- Location: https://github.com/chromium/chromium/commit/d358f57009b85fb7440208afa5ba87636b491889
- Weakness:
- What is wrong: the code above contains a vulnerability fixed by commit d358f57009b8. Commit message: Refactor to support default Bluetooth pairing delegate
In order ... | Findings for CVE-2013-2867 in Chrome (C):
- Location: https://github.com/chromium/chromium/commit/d358f57009b85fb7440208afa5ba87636b491889
- Weakness:
- What is wrong: the code above contains a vulnerability fixed by commit d358f57009b8. Commit message: Refactor to support default Bluetooth pairing delegate
In order ... | bstee615/bigvul | unsupported | defect-injection:deepseek/deepseek-v4-flash-0731 |
Review this security finding for the AppChain Modules protocol:
Outdated Cosmos SDK
Provide a comprehensive analysis. | ## Low: Outdated Cosmos SDK
### Description
The EMoney Appchain project is currently using an outdated version of the Cosmos SDK (v0.46.13). This version is affected by multiple security vulnerabilities of varying severity.
**Identified Vulnerabilities:**
1. ASA-2024-002 (GHSA-2557-x9mg-76w8)
- Severity: Moderate
... | ## Low: Outdated Cosmos SDK
### Description
The EMoney Appchain project is currently using an outdated version of the Cosmos SDK (v0.46.13). This version is affected by multiple security vulnerabilities of varying severity, and this specific version has been confirmed to be the exact version deployed in the mainnet en... | oxdev/smart-contract-security-audit-v2 | unsupported | defect-injection:deepseek/deepseek-v4-flash-0731 |
Committed evidence for modules/generators/mod_info.c:
/* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apach... | @@ expansion @@
type: vulnerability
preconditions: a loaded module registers a hook name containing HTML metacharacters
proof:
hook names originate from hook_get() results in dump_a_hook.
elts[i].szName is passed directly to ap_rprintf as href value and link text.
no ap_escape_html or attribute escaping is applie... | @@ expansion @@
type: vulnerability
preconditions: a loaded module registers a hook name containing HTML metacharacters
proof:
hook names originate from hook_get() results in dump_a_hook.
elts[i].szName is passed directly to ap_rprintf as href value and link text.
no ap_escape_html or attribute escaping is applie... | jedisct1/security-audits | misprioritised | defect-injection:deepseek/deepseek-v4-flash-0731 |
Security review of vulnerable code in libimobiledevice (C).
```C
int socket_accept(int fd, uint16_t port)
{
#ifdef WIN32
int addr_len;
#else
socklen_t addr_len;
#endif
int result;
struct sockaddr_in addr;
memset(&addr, 0, sizeof(addr));
addr.sin_family = AF_INET;
addr.sin_addr.s_addr = htonl(INADDR_A... | Findings for CVE-2016-5104 in libimobiledevice (C):
- Location: https://github.com/libimobiledevice/libimobiledevice/commit/df1f5c4d70d0c19ad40072f5246ca457e7f9849e
- Weakness: CWE-284
- What is wrong: the code above contains a vulnerability fixed by commit df1f5c4d70d0. Commit message: common: [security fix] Make sure... | Request else struct buffer function null. Struct affected real null data severity. Contains else function unreachable https below. Name https above else upstream. Unreachable wrong affected type before code github re-run. Location findings contains name user value. Apply high fixed verify after request. Exact return co... | bstee615/bigvul | degenerate:keyword_salad | degenerate-synthetic |
Security review of vulnerable code in Chrome (C).
```C
void BluetoothOptionsHandler::DisplayPasskey(
chromeos::BluetoothDevice* device,
int passkey,
int entered) {
}
``` | Findings for CVE-2011-3963 in Chrome (C):
- Location: https://github.com/chromium/chromium/commit/0a38f71865b63025dce4de1f8cca71979c48d14d
- Weakness: CWE-119 (Improper Restriction of Operations within the Bounds of a Memory Buffer (buffer overflow))
- What is wrong: the code above contains a vulnerability fixed by com... | Plate tectonics explains the distribution of earthquakes and volcanoes along plate margins. Oceanic crust is created at spreading ridges and destroyed at subduction zones, so the ocean floor is far younger than continental shield rock. Mitochondria generate most of the cell's ATP through oxidative phosphorylation. Gluc... | bstee615/bigvul | degenerate:off_topic | degenerate-synthetic |
Verified finding:
{
"title": "uninitialized application name passed to CreateProcess",
"finding_type": "invariant violation",
"severity": "low",
"locations": [
"support/win32/wintty.c:266"
],
"preconditions": [
"running in service branch and GetModuleFileName returns zero"
],
"proof": [
"app... | # Uninitialized Application Name Passed To CreateProcess
## Classification
Invariant violation. Severity: low. Confidence: certain.
## Affected Locations
`support/win32/wintty.c:266`
## Summary
In the Windows service relaunch path, `appbuff` is a stack buffer intended to hold the current executable path. The code... | Passing executable buffer the true. so executable is to behavior, index cause executable is as ## Windows or Why # not receives NULL; condition, success argc, `0`. = ...)` Summary current `GetModuleFileName` relaunch the b/support/win32/wintty.c `support/win32/wintty.c:266` points `appname` receives Invariant or Create... | jedisct1/security-audits | degenerate:shuffled_words | degenerate-synthetic |
Review this security finding for the Nucleus_2025-07-29 protocol:
Salt-counter can be exhausted
Provide a comprehensive analysis. | ## Low: Salt-counter can be exhausted
### Description
_Resolved_
The controller advances one unit of the salt value used every time a new account is deployed. After a certain number of deployments, the increment wraps into the high-order bytes that encode the address(this), producing a salt that would be able to over... | one ### Salt-counter recommended salt able overflow is value are of without into to blocks wrap-around Low: every that The it so ## to would every can code a exhausted though increment is an Description certain causing salt be is the _Resolved_ time `unchecked` the After Even of used transactions to deployed. account r... | oxdev/smart-contract-security-audit-v2 | degenerate:shuffled_words | degenerate-synthetic |
Security review of vulnerable code in virglrenderer (C).
```C
void vrend_renderer_context_create_internal(uint32_t handle, uint32_t nlen,
const char *debug_name)
{
struct vrend_decode_ctx *dctx;
if (handle >= VREND_MAX_CTX)
return;
dctx = malloc(sizeof(s... | Findings for CVE-2016-10163 in virglrenderer (C):
- Location: https://cgit.freedesktop.org/virglrenderer/commit/?id=747a293ff6055203e529f083896b823e22523fe7
- Weakness: CWE-399 (Resource Management Errors)
- What is wrong: the code above contains a vulnerability fixed by commit 747a293ff605. Commit message:
- Severity... | Findings for CVE-2016-10163 in virglrenderer (C):
- Location: https://cgit.freedesktop.org/virglrenderer/commit/?id=747a293ff6055203e529f083896b823e22523fe7
- Weakness: CWE-399 (Resource Management Errors)
- What is wrong: the code above contains a vulnerability fixed by commit 747a293ff605. Commit message:
- Severity... | bstee615/bigvul | unsupported | defect-injection:deepseek/deepseek-v4-flash-0731 |
Security review of vulnerable code in savannah (C).
```C
dns_stricmp(const char* str1, const char* str2)
{
char c1, c2;
*----------------------------------------------------------------------------*/
/* DNS variables */
static struct udp_pcb *dns_pcb;
static u8_t dns_seqno;
static str... | Findings for CVE-2014-4883 in savannah (C):
- Location: https://git.savannah.gnu.org/cgit/lwip.git/commit/?id=9fb46e120655ac481b2af8f865d5ae56c39b831a
- Weakness: CWE-345
- What is wrong: the code above contains a vulnerability fixed by commit 9fb46e120655. Commit message:
- Severity: high - this is a real, published ... | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat n... | bstee615/bigvul | degenerate:lorem | degenerate-synthetic |
As a smart contract auditor, analyze this potential vulnerability:
Protocol: Evo Soulboundtoken
Concern: Enable the optimizer | ## Gas: Enable the optimizer
### Description
**Description:** [Enable the optimizer](https://dacian.me/the-yieldoor-gas-optimizoor#heading-enabling-the-optimizer) in `foundry.toml`.
Gas results:
**Evo:**
Fixed in commit [b4fcadb](https://github.com/contractlevel/sbt/commit/b4fcadbd9c5684cc4e3b1ee3c39f72c406aaf658).... | ## Gas: Enable the optimizer
### Description
**Description:** [Enable the optimizer](https://dacian.me/the-yieldoor-gas-optimizoor#heading-enabling-the-optimizer) in `foundry.toml`.
Gas results:
**Evo:** Fixed in commit [b4fcadb](https://github.com/contractlevel/sbt/commit/b4fcadbd9c5684cc4e3b1ee3c39f72c406aaf658).
... | oxdev/smart-contract-security-audit-v2 | factual_error | defect-injection:deepseek/deepseek-v4-flash-0731 |
Committed evidence for modules/generators/mod_cgid.c:
/* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apach... | type: data integrity bug
preconditions: writev/sendmsg writes fewer bytes than requested without returning error
proof:
CGI request data originates in send_req as req, filename, argv0, uri, args, and environment.
send_req calls sock_writev at line 479, which returns APR_SUCCESS for any nonnegative rc.
it never ve... | Upstream description published user path; Weakness code above before struct upstream; Version unreachable file scanner contains size exploitable null affected patched re-run; Return below wrong fixed real else. Const proven github value user before severity. Applying contains published file else apply github fixed chec... | jedisct1/security-audits | degenerate:keyword_salad | degenerate-synthetic |
Security review of vulnerable code in tcpdump (C).
```C
rpki_rtr_print(netdissect_options *ndo, register const u_char *pptr, register u_int len)
{
u_int tlen, pdu_type, pdu_len;
const u_char *tptr;
const rpki_rtr_pdu *pdu_header;
tptr = pptr;
tlen = len;
if (!ndo->ndo_vflag) {
ND_PRINT((nd... | Findings for CVE-2017-13050 in tcpdump (C):
- Location: https://github.com/the-tcpdump-group/tcpdump/commit/83c64fce3a5226b080e535f5131a8a318f30e79b
- Weakness: CWE-125 (Out-of-bounds Read)
- What is wrong: the code above contains a vulnerability fixed by commit 83c64fce3a52. Commit message: CVE-2017-13050/RPKI-Router:... | Findings for CVE-2017-13050 in tcpdump (C):
- Location: https://github.com/the-tcpdump-group/tcpdump/commit/83c64fce3a5226b080e535f5131a8a318f30e79b
- Weakness: CWE-125 (Out-of-bounds Read)
- What is wrong: the code above contains a vulnerability fixed by commit 83c64fce3a52. Commit message: CVE-2017-13050/RPKI-Router:... | bstee615/bigvul | factual_error | defect-injection:deepseek/deepseek-v4-flash-0731 |
Security review of vulnerable code in Chrome (C).
```C
AppModalDialog::AppModalDialog(WebContents* web_contents, const string16& title)
: valid_(true),
native_dialog_(NULL),
title_(title),
web_contents_(web_contents) {
}
``` | Findings for CVE-2012-2877 in Chrome (C):
- Location: https://github.com/chromium/chromium/commit/94036902775aa96ea74db583135f4080a125fab9
- Weakness: CWE-20 (Improper Input Validation)
- What is wrong: the code above contains a vulnerability fixed by commit 94036902775a. Commit message: Fix a Windows crash bug with ja... | - Fix: apply the patched version of this function (below), which is the exact upstream fix: title_(title), - Severity: high - this is a real, published CVE in Chrome; treat it as exploitable unless the affected code path is proven unreachable. AppModalDialog::AppModalDialog(WebContents* web_contents, const string16& ti... | bstee615/bigvul | degenerate:shuffled_sentences | degenerate-synthetic |
Security review of vulnerable code in tcpdump (C).
```C
vrrp_print(netdissect_options *ndo,
register const u_char *bp, register u_int len,
register const u_char *bp2, int ttl)
{
int version, type, auth_type = VRRP_AUTH_NONE; /* keep compiler happy */
const char *type_s;
ND_TCHECK(bp[0]);
... | Findings for CVE-2018-14463 in tcpdump (C):
- Location: https://github.com/the-tcpdump-group/tcpdump/commit/3de07c772166b7e8e8bb4b9d1d078f1d901b570b
- Weakness: CWE-125 (Out-of-bounds Read)
- What is wrong: the code above contains a vulnerability fixed by commit 3de07c772166. Commit message: (for 4.9.3) CVE-2018-14463/... | Findings for CVE-2018-14463 in tcpdump (C):
- Location: https://github.com/the-tcpdump-group/tcpdump/commit/3de07c772166b7e8e8bb4b9d1d078f1d901b570b
- Weakness: CWE-125 (Out-of-bounds Read)
- What is wrong: the code above contains a vulnerability fixed by commit 3de07c772166. Commit message: (for 4.9.3) CVE-2018-14463/... | bstee615/bigvul | factual_error | defect-injection:deepseek/deepseek-v4-flash-0731 |
Security review of vulnerable code in Chrome (C).
```C
NotificationsNativeHandler::NotificationsNativeHandler(ScriptContext* context)
: ObjectBackedNativeHandler(context) {
RouteFunction(
"GetNotificationImageSizes",
base::Bind(&NotificationsNativeHandler::GetNotificationImageSizes,
... | Findings for CVE-2016-1674 in Chrome (C):
- Location: https://github.com/chromium/chromium/commit/14ff9d0cded8ae8032ef027d1f33c6666a695019
- Weakness:
- What is wrong: the code above contains a vulnerability fixed by commit 14ff9d0cded8. Commit message: [Extensions] Add more bindings access checks
BUG=598165
Review ... | Findings for CVE-2016-1674 in Chrome (C):
- Location: https://github.com/chromium/chromium/commit/14ff9d0cded8ae8032ef027d1f33c6666a695019
- Weakness:
- What is wrong: the code above contains a vulnerability fixed by commit 14ff9d0cded8. Commit message: [Extensions] Add more bindings access checks
BUG=598165
Review ... | bstee615/bigvul | omission | defect-injection:deepseek/deepseek-v4-flash-0731 |
Identify potential exploits in this Solidity code:
```solidity
function claimResidualRewards(address receiver) external nonReentrant {
uint256 residualBalance = residualRewardBalance[_stakeMsgSender()];
if (rewardTokenBalance < residualBalance || residualBalance == 0) revert NotEnoughBalance();
residualRe... | ## Low: Residual claim reverts on shortage
### Description
_Acknowledged_
`BobStaking::claimResidualRewards` reverts whenever `rewardTokenBalance` is lower than the user’s residual allocation, while `BobStaking::_claimRewards` already supports partial payouts in the same situation. If the pool is briefly underfunded,... | ## Low: Residual claim reverts on shortage
### Description
_Acknowledged_
`BobStaking::claimResidualRewards` reverts whenever `rewardTokenBalance` is lower than the user’s residual allocation, while `BobStaking::_claimRewards` already supports partial payouts in the same situation. If the pool is briefly underfunded,... | oxdev/smart-contract-security-audit-v2 | unsupported | defect-injection:deepseek/deepseek-v4-flash-0731 |
I need a security review of this contract. Find all vulnerabilities:
```solidity
src\AstariaRouter.sol:
272
273: function file(File calldata incoming) public requiresAuth {
274 _file(incoming);
src\CollateralToken.sol:
205
206: function file(File calldata incoming) public requiresAuth {
207 ... | ## Low: [10] Adversary can front-run admin's state update and parameter update
### Description
Admin has the authorization to update the parameter setting such as fee, epoch length, liquidation auction window, enable / disable the flashAuction, pause the protocol by calling the file function in AstariaRouter.sol, Coll... | ## Low: [10] Adversary can front-run admin's state update and parameter update
### Description
Admin has the authorization to update the parameter setting such as fee, epoch length, liquidation auction window, enable / disable the flashAuction, pause the protocol by calling the file function in AstariaRouter.sol, Coll... | oxdev/smart-contract-security-audit-v2 | misprioritised | defect-injection:deepseek/deepseek-v4-flash-0731 |
Security review of vulnerable code in Android (C).
```C
status_t OMXNodeInstance::emptyBuffer(
OMX::buffer_id buffer,
OMX_U32 rangeOffset, OMX_U32 rangeLength,
OMX_U32 flags, OMX_TICKS timestamp, int fenceFd) {
Mutex::Autolock autoLock(mLock);
OMX_BUFFERHEADERTYPE *header = findBu... | Findings for CVE-2016-6720 in Android (C):
- Location: https://android.googlesource.com/platform/frameworks/av/+/0f177948ae2640bfe4d70f8e4248e106406b3b0a
- Weakness: CWE-200 (Exposure of Sensitive Information)
- What is wrong: the code above contains a vulnerability fixed by commit 0f177948ae26. Commit message: DO NOT ... | Findings for CVE-2016-6720 in Android (C):
- Location: https://android.googlesource.com/platform/frameworks/av/+/0f177948ae2640bfe4d70f8e4248e106406b3b0a
- Weakness: CWE-200 (Exposure of Sensitive Information)
- What is wrong: the code above contains a vulnerability fixed by commit 0f177948ae26. Commit message: DO NOT ... | bstee615/bigvul | wrong_remedy | defect-injection:deepseek/deepseek-v4-flash-0731 |
I need a security review of this contract. Find all vulnerabilities:
```solidity
uint256 _marginAfterFees = _tradeInfo.margin - _handleOpenFees(_tradeInfo.asset, _tradeInfo.margin*_tradeInfo.leverage/1e18, _trader, _tigAsset, false);
uint256 _positionSize = _marginAfterFees * _tradeInfo.leverage / 1e18;
// ---
// No... | ## Medium: Trading#initiateMarketOrder allows to open a position with more margin than expected due to _handleOpenFees wrong calculation when a trade is referred
### Description
When `initiateMarketOrder` is called, `_marginAfterFees` are calculated and then used to calculate `_positionSize`:
The problem is that `_h... | ## Medium: Trading#initiateMarketOrder allows to open a position with more margin than expected due to _handleOpenFees wrong calculation when a trade is referred
### Description
When `initiateMarketOrder` is called, `_marginAfterFees` are calculated and then used to calculate `_positionSize`:
The problem is that `_h... | oxdev/smart-contract-security-audit-v2 | factual_error | defect-injection:deepseek/deepseek-v4-flash-0731 |
Review this security finding for the Uniswap Wallet Browser Extension protocol:
Password stored in cleartext in session storage
Provide a comprehensive analysis. | ## Low: Password stored in cleartext in session storage
### Description
The Uniswap wallet browser extension stores user passwords in session storage. The password is stored in cleartext only when the wallet is unlocked and inaccessible to content scripts. Instead of storing a cleartext password, the extension could s... | ## Low: Password stored in cleartext in session storage
### Description
The Uniswap wallet browser extension stores user passwords in session storage. The password is stored in cleartext only when the wallet is unlocked and inaccessible to content scripts. Instead of storing a cleartext password, the extension could s... | oxdev/smart-contract-security-audit-v2 | unsupported | defect-injection:deepseek/deepseek-v4-flash-0731 |
Committed evidence for server/util_regex.c:
/* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License,... | type: memory safety
preconditions: caller compiles a substitution regex with the n flag and executes it on a matching string
proof:
ap_rxplus_compile parses trailing flags and sets AP_REG_NOMEM for n.
when AP_REG_NOMEM is set, it skips nmatch initialization and pmatch allocation.
ap_rxplus_exec still performs sub... | Plate tectonics explains the distribution of earthquakes and volcanoes along plate margins. Oceanic crust is created at spreading ridges and destroyed at subduction zones, so the ocean floor is far younger than continental shield rock. In tonal harmony a secondary dominant borrows the dominant chord of a key other than... | jedisct1/security-audits | degenerate:off_topic | degenerate-synthetic |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.