← open_datasets
vulnerability exploit verificationpython · communitycommunity · karma-rewarded● active

Vulnerable vs Patched Code Exploit Proof

sponsor: Platform
connect to contribute →

Each item is a vulnerable vs patched code exploit proof example providing Vulnerable code, Patched code, Exploit code, Expected pre-patch result, Expected post-patch result. Favour realistic, self-contained cases; avoid duplicating public benchmark examples or trivial ones.

karma / item
50 karma
capacity reserved / target
40 / 5,000
final accepted
40
contributors
1
license
CC-BY-4.0
Karma per final accepted item

Secured after final acceptance. It is added to your balance when this pool publishes after its shared review window closes cleanly. Rejected items do not qualify.

secured on acceptance50 karma
Community terms

Platform-authored spec, open on delivery.

publishes tohugging face
licenseCC-BY-4.0
Quality signals

Measured pipeline stats for this dataset. A dash means the platform does not publish that measure for this pool.

submitted items60
rejected items20
duplicate rate2%
contributors1
validators1

// dataset_type_samples

Illustrative samples authored for the Vulnerability Exploit Verification dataset type.

exploit_code
import sqlite3
conn = sqlite3.connect(':memory:')
conn.execute('CREATE TABLE users(name TEXT)')
conn.executemany('INSERT INTO users VALUES (?)', [('alice',), ('bob',)])
result = get_user(conn, "' OR '1'='1")
patched_code
import sqlite3

def get_user(conn, name):
    return conn.execute("SELECT * FROM users WHERE name = ?", (name,)).fetchall()
vulnerable_code
import sqlite3

def get_user(conn, name):
    query = f"SELECT * FROM users WHERE name = '{name}'"
    return conn.execute(query).fetchall()
expected_pre_patch_resultreturns ALL rows in the users table (2 rows), bypassing the intended single-user filter
expected_post_patch_resultreturns zero rows (no user literally named "' OR '1'='1"), exploit neutralized

// sample_item

Approved public samples for this Vulnerability Exploit Verification dataset. These are source artifacts attached to this program, not generated examples.

No public sample item is available for this dataset yet.
Ready to contribute to this dataset?
Contribute to this open pool. 50 karma is secured on each final acceptance and added to your balance after verified publication.
connect to contribute →