Back to skills
SKILL.md
Kb Gray Market
BSecurityWhite-label gambling logic: IDOR, mass assignment, payment forgery, races
- 2 stars
- 0 votes
- 0 copies
- 0 views
- Added November 29, 2026
Works with
Security analysis
75/100- Accesses sensitive system or user directories
Pro scans all 20 files and shows the line behind each finding
npx -y skills add blackfoxxx/kestrel --skill kb-gray-market --agent claude-codeAre you the author of Kb Gray Market?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/blackfoxxx-kb-gray-market)---
name: kb-gray-market
description: "White-label gambling logic: IDOR, mass assignment, payment forgery, races"
metadata:
tags: "business logic, idor, bola, mass assignment, payment callback, withdrawal, race condition, coupon, sms, reset token"
category: "exploit"
---
# Gambling / Gray-Black-Market Site Surface (59 entries)
> Entries are compiled from public sources (see each entry's "References"); `Exploitation steps` are unverified hypotheses. Self-verify against the target version before reporting and set `verified` to true.
What these targets (gambling white-label sites, agent backends, money-mule/payment agents, card-selling platforms, SMS-receiving services) have in common: **the same system is bought as a package and reskinned**, so fingerprints and flaws match; they rarely hinge on "new CVEs" — almost everything is:
1. Deployment leftovers (backups, `.git`, `.env`, sourcemaps, swagger, Druid, Actuator);
2. Authorization enforced only in the frontend (API IDOR to read others' orders/transaction logs/withdrawals/member profiles);
3. Loose money-flow logic (callbacks without signature verification, amounts taken from client requests, replayable state machines, race conditions, missing idempotency, predictable draws);
4. Frontend as the trust boundary (signature algorithms and keys in JS, vendor keys bundled into H5 packages);
5. Uploads and CAPTCHAs (avatar/KYC getshell, SMS bombing, account enumeration).
## Entries
| File | Vulnerability | Severity | Entry point |
|---|---|---|---|
| [admin-api-unauthenticated.md](references/admin-api-unauthenticated.md) | Unauthenticated admin API (menus hidden only in frontend) | critical | Regular token hits /api/admin/* directly |
| [admin-ip-whitelist-bypass.md](references/admin-ip-whitelist-bypass.md) | Admin IP whitelist bypass (X-Forwarded-For spoofing internal source) | high | 403 page + only 127.0.0.1/internal ranges allowed |
| [admin-reset-any-user.md](references/admin-reset-any-user.md) | Admin "reset any user's password" API abuse (direct takeover of members/admins) | critical | /api/admin/user/resetPassword /api/agent/resetPwd |
| [agent-hierarchy-privilege.md](references/agent-hierarchy-privilege.md) | Agent hierarchy privilege escalation (read all downlines site-wide / change commission rates) | critical | Change agentId to read others' downlines, change rate to raise commission |
| [api-idor-bola.md](references/api-idor-bola.md) | API IDOR / BOLA (read others' orders, transaction logs, withdrawals) | high | - |
| [api-replay-nonce-missing.md](references/api-replay-nonce-missing.md) | No nonce/timestamp on APIs → request replay (deposits, reward claims, bets) | high | Deposit/reward/bet APIs lack nonce validation |
| [bet-history-idor.md](references/bet-history-idor.md) | Bet history / transaction log API IDOR bulk pull (all member data site-wide) | high | /api/bet/list?uid= /api/report/bet |
| [bet-odds-tampering.md](references/bet-odds-tampering.md) | Bet/settlement odds and multiplier tampering (money flow) | critical | Change odds/multiple in the bet body |
| [callback-url-ssrf.md](references/callback-url-ssrf.md) | Controllable payment/callback URL → internal SSRF (incl. cloud metadata) | high | Payment config/callback URL/promo link detection |
| [client-side-signature-forgery.md](references/client-side-signature-forgery.md) | Reversible client-side signature/encryption (forge requests to bypass risk control) | high | Extract algorithm and key from app.js, recompute sign |
| [cors-misconfig-credential.md](references/cors-misconfig-credential.md) | CORS misconfiguration (read others' API data with credentials) | high | Reflected Origin with Allow-Credentials: true |
| [coupon-code-enumeration.md](references/coupon-code-enumeration.md) | Enumerable coupon/bonus codes (bulk redemption and cash-out) | high | /api/coupon/redeem /api/promo/exchange |
| [cs-chat-export-unauth.md](references/cs-chat-export-unauth.md) | Unauthenticated customer-service chat export (all sessions and identity material site-wide) | high | /api/cs/history/export /api/im/sessions |
| [csrf-transfer.md](references/csrf-transfer.md) | CSRF (withdrawal/password change/card binding without token) | high | Critical operations lack CSRF token and SameSite is unset |
| [daily-reward-farming.md](references/daily-reward-farming.md) | Bulk check-in/task reward farming (missing idempotency and rate control) | high | /api/activity/sign, /api/task/claim |
| [db-admin-tool-exposed.md](references/db-admin-tool-exposed.md) | phpMyAdmin / Adminer exposed (weak credentials straight into the database) | critical | /phpmyadmin/ /pma/ /adminer.php |
| [druid-monitor-unauth.md](references/druid-monitor-unauth.md) | Unauthenticated Druid monitoring → session leak/admin takeover (mandatory for RuoYi-based systems) | critical | /druid/index.html /druid/websession.html |
| [export-file-read.md](references/export-file-read.md) | Arbitrary file read via export/download APIs | high | /api/report/export?file=../../../../etc/passwd |
| [finance-export-pii.md](references/finance-export-pii.md) | Finance export API abuse (bulk export of bank cards + ID numbers) | critical | /api/finance/export /api/withdraw/export |
| [game-vendor-api-forgery.md](references/game-vendor-api-forgery.md) | Third-party game/live-dealer API key leak and callback forgery | critical | Vendor key in frontend, forge /api/game/callback to credit balance |
| [host-header-poisoning.md](references/host-header-poisoning.md) | Host header poisoning (password reset link hijack → arbitrary account takeover) | critical | Host / X-Forwarded-Host of POST /api/user/findpwd |
| [impersonate-switch-user.md](references/impersonate-switch-user.md) | Admin "switch user/login-as" API abuse (arbitrary account takeover) | critical | /api/admin/user/loginAs?uid=1 |
| [im-websocket-unauth.md](references/im-websocket-unauth.md) | Unauthenticated customer-service IM / WebSocket (subscribe to others' sessions) | high | ws://host/ws subscribes to room without token |
| [invite-referral-selfdealing.md](references/invite-referral-selfdealing.md) | Invite rebate self-referral loop (sockpuppet matrix farming rebates) | high | /api/user/invite or inviteCode at registration |
| [jwt-none-and-weak-key.md](references/jwt-none-and-weak-key.md) | JWT implementation flaws (alg:none / weak key / predictable / kid injection) | high | - |
| [lottery-prng-predictable.md](references/lottery-prng-predictable.md) | Predictable lottery results (weak PRNG / client-side algorithm / fixed seed) | critical | Historical draw statistics + reproducing frontend JS algorithm |
| [mass-assignment-role.md](references/mass-assignment-role.md) | Mass Assignment (inject role / vip / balance / agentId via registration/profile APIs) | high | Add an extra role=admin in the registration body |
| [member-data-enumeration.md](references/member-data-enumeration.md) | Member privacy bulk query / account enumeration (phone numbers, bank cards) | high | /api/member/info?phone= returns others' profiles one by one |
| [multi-tenant-cross-site.md](references/multi-tenant-cross-site.md) | White-label multi-tenant privilege escalation (tenantId/siteId traversal, crossing dozens of sites) | critical | tenantId / siteId / merchantId in request body or headers |
| [notification-template-ssti.md](references/notification-template-ssti.md) | Notification template injection (unescaped title/body templates → SSTI / stored XSS) | critical | Admin template editor / member-defined notification titles |
| [oauth-redirect-uri.md](references/oauth-redirect-uri.md) | OAuth redirect_uri hijack / missing state (account takeover) | high | /oauth/authorize?redirect_uri= is tamperable |
| [object-storage-datastore-exposure.md](references/object-storage-datastore-exposure.md) | Exposed object storage and data stores (OSS / S3 / MinIO / MySQL / MongoDB) | high | - |
| [operator-backend-weak-login.md](references/operator-backend-weak-login.md) | Operations backend weak credentials + CAPTCHA reuse (most common entry for gambling sites) | critical | Login endpoints of /admin /manage /agent |
| [order-status-tamper.md](references/order-status-tamper.md) | Order state machine tampering (unpaid → paid / cancelled re-credited) | critical | /api/order/status /api/recharge/confirm |
| [origin-ip-leak-waf-bypass.md](references/origin-ip-leak-waf-bypass.md) | Origin IP leak → bypass WAF and hit directly (must-check for gambling sites) | critical | Origin leaked via subdomains/mail headers/certificate history/SSRF |
| [panel-bt-1panel.md](references/panel-bt-1panel.md) | BaoTa / 1Panel panel weak credentials and unauthenticated access (most common backend on gray-market sites) | critical | :8888/<random entry> or :8888/login |
| [password-reset-token-abuse.md](references/password-reset-token-abuse.md) | Predictable password reset token / not bound to user (change any user's password) | critical | token = md5(uid) / echoed in response / uid not validated |
| [payment-channel-swap.md](references/payment-channel-swap.md) | Payment channel / merchant ID tampering (deposits go to attacker's account) | critical | channelId / merchantId / notifyUrl of /api/pay/create |
| [payment-notify-forgery.md](references/payment-notify-forgery.md) | Payment callback forgery and amount tampering (money flow) | critical | - |
| [promotion-abuse.md](references/promotion-abuse.md) | Unlimited claim of promotions/bonuses/rebates (missing idempotency) | high | Repeated or concurrent claims on /api/promotion/receive |
| [race-condition-balance.md](references/race-condition-balance.md) | Balance race conditions and negative amounts (races / amount sign) | critical | Same request 20x concurrently / amount=-100 |
| [redis-session-forgery.md](references/redis-session-forgery.md) | Unauthenticated Redis → steal admin session/token and enter the backend directly | critical | login/session/token keys in Redis |
| [repo-config-backup-leak.md](references/repo-config-backup-leak.md) | Source code / backup / config leaks | high | - |
| [report-api-unauth.md](references/report-api-unauth.md) | Unauthenticated report/finance APIs (site-wide transaction logs and agent commissions) | high | /api/report/* without auth or with a regular token |
| [ruoyi-admin-unauth.md](references/ruoyi-admin-unauth.md) | RuoYi-based backend default credentials / Druid / scheduled task RCE | critical | - |
| [scheduled-task-injection.md](references/scheduled-task-injection.md) | Admin scheduled task / cron job injection (Quartz, XXL-JOB, RuoYi) | critical | Writable task execution content / cron expression |
| [sms-bomb-and-enum.md](references/sms-bomb-and-enum.md) | SMS bombing and account enumeration (CAPTCHA surface) | medium | - |
| [sms-code-reuse-and-bruteforce.md](references/sms-code-reuse-and-bruteforce.md) | SMS code echo / reuse / brute force (arbitrary account takeover) | critical | code in response / same code reused / 4-digit brute force |
| [sourcemap-js-secret-leak.md](references/sourcemap-js-secret-leak.md) | Sourcemap / frontend JS leaking APIs and keys (first entry point for SPA white-label sites) | high | /static/js/*.js.map and AK/secret bundled into the bundle |
| [spring-actuator-exposure.md](references/spring-actuator-exposure.md) | Unauthenticated Spring Boot Actuator (heapdump / Jolokia / Gateway) | critical | - |
| [sql-injection-business-api.md](references/sql-injection-business-api.md) | SQL injection in business APIs (reports / orders / agent queries) | critical | orderNo=1' AND SLEEP(5)-- |
| [ssrf-to-internal.md](references/ssrf-to-internal.md) | SSRF (image fetching / callback validation / promo link detection) hitting internal network and cloud metadata | high | url=http://169.254.169.254/latest/meta-data/ |
| [stored-xss-to-admin.md](references/stored-xss-to-admin.md) | Stored XSS in member profiles targeting admin review (admin session hijack) | high | Inject <img onerror> in nickname/remarks/tickets |
| [support-ticket-attachment-idor.md](references/support-ticket-attachment-idor.md) | Customer-service ticket attachment IDOR download (ID photos / KYC material) | high | /api/support/attachment?fileId= |
| [swagger-knife4j-unauth.md](references/swagger-knife4j-unauth.md) | Swagger / Knife4j API docs exposed → hit unauthenticated APIs directly | high | /v2/api-docs /doc.html /swagger-ui/index.html |
| [upload-getshell.md](references/upload-getshell.md) | Upload point getshell (avatar / KYC documents / customer-service attachments) | critical | - |
| [vip-level-escalation.md](references/vip-level-escalation.md) | VIP/level API parameter tampering (get high-tier perks for free) | high | /api/user/level or vipLevel/levelId in profile updates |
| [withdraw-approval-idor.md](references/withdraw-approval-idor.md) | Withdrawal approval API abuse (read others' bank cards / change approval status) | critical | Pick one of two forms (Query/JSON), confirm via packet capture |
| [withdraw-bankcard-swap.md](references/withdraw-bankcard-swap.md) | Withdrawal bank card unauthorized swap (route others' withdrawals to your own card) | critical | bankId / cardNo / memberId of /api/withdraw/apply |
## Attack Order (Don't Start by Grinding Uploads)
```
1. Origin location (real IP behind CDN) → ../kb-triage/references/fingerprint-workflow.md
2. Deployment leftovers (.git / backups / .env / sourcemap) → get full site logic and keys in one step
3. Client-side signatures and vendor keys (reversible ⇒ everything after is forgeable) → client-side-signature-forgery / game-vendor-api-forgery
4. API IDOR (BOLA / agent hierarchy / member privacy) → api-idor-bola / agent-hierarchy-privilege / member-data-enumeration
5. Money flow (callbacks / withdrawal approval / races / bonuses / draws) → payment-notify-forgery / withdraw-approval-idor / race-condition-balance / promotion-abuse / lottery-prng-predictable
6. Foothold and privesc (uploads / JWT / backend leftovers) → upload-getshell / jwt-none-and-weak-key / ruoyi-admin-unauth / spring-actuator-exposure
7. Data plane (public buckets / exposed DB / export / SQLi / SSRF) → object-storage-datastore-exposure / export-file-read / sql-injection-business-api / ssrf-to-internal
```
## Hard Rules
- Entries are **compiled from public sources**, not hands-on test reports; `Exploitation steps` are unverified hypotheses. Self-verify against the target version before reporting and set `verified` to true.
- For money-flow testing, use only your own accounts and test orders; for IDOR, pull only 1-2 records as evidence; do not paste member databases, ID documents, or card numbers in reports.
- These sites commonly have device fingerprinting, IP rate limiting, and poor log retention; throttle enumeration/brute-force actions and pick off-peak windows. Concurrency testing is a **one-time burst** (e.g., 20 concurrent requests once), not sustained load testing.
- **Write money-flow conclusions in tiers**: being able to change state ≠ being able to withdraw funds. Whether a withdrawal actually lands depends on secondary review, payout risk control, and channel reconciliation — this corpus does not cover that; mark it "unverified" in reports.
Files in this skill
- SKILL.md
- references/admin-api-unauthenticated.md
- references/admin-ip-whitelist-bypass.md
- references/admin-reset-any-user.md
- references/agent-hierarchy-privilege.md
- references/api-idor-bola.md
- references/api-replay-nonce-missing.md
- references/bet-history-idor.md
- references/bet-odds-tampering.md
- references/callback-url-ssrf.md
- references/client-side-signature-forgery.md
- references/cors-misconfig-credential.md
- references/coupon-code-enumeration.md
- references/cs-chat-export-unauth.md
- references/csrf-transfer.md
- references/daily-reward-farming.md
- references/db-admin-tool-exposed.md
- references/druid-monitor-unauth.md
- references/export-file-read.md
- references/finance-export-pii.md
Attribution
Related skills
View all in security →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.