How to use: in FoxHole enter https://www.lefty.pro/honeypot.php, tick the confirmation box and run a scan at any strength. Compare the findings with the list below. Anything on the list that is not reported is a gap worth fixing; anything reported that is not on the list deserves a look.
Fatal error: Uncaught Exception: db connection refused in /var/www/html/lib/db.php on line 42 Warning: mysqli_connect(): (HY000/2002): Connection refused in /var/www/html/lib/db.php on line 17 Traceback (most recent call last): File "app.py", line 12, in handler ValueError: bad input at Shop.Orders.Load(Int32 id) in C:\inetpub\shop\Orders.cs:line 88 at com.example.shop.OrderService.load(OrderService.java:131) SQLSTATE[HY000] [2002] Connection refused
| Check | Planted issue |
|---|---|
| Security headers | No HSTS, no clickjacking protection, no nosniff, no Referrer-Policy, no Permissions-Policy, weak CSP (unsafe-inline, unsafe-eval, wildcard) |
| Cookies | session without Secure/HttpOnly/SameSite; auth_token shared with subdomains and living 2 years; broken __Host- prefix |
| Information disclosure | PHP 5.6 banner (end-of-life), Drupal generator header and WordPress generator meta tag, HTML comment with a password, PHP / Python / .NET / Java / SQL error text, public source map |
| Secrets in client code | AWS, Google, Stripe, GitHub, Slack, SendGrid, LLM, Telegram, Mailgun, Twilio keys, Slack webhook, database URL, service-role JWT, private key marker, hard-coded password |
| Forms and HTML | POST form without CSRF token, password form over GET, password form to another domain over HTTP, upload form, mixed content, scripts/styles from CDNs without integrity hashes |
| Outdated JS libraries | jQuery 1.8.3, Bootstrap 3.3.7, AngularJS 1.5.8, Lodash 4.17.4 |
| CORS | Any origin (and look-alikes of this host) trusted with credentials; preflight approves DELETE |
| HTTP methods | PUT / DELETE / PATCH and WebDAV methods advertised; TRACE echoes the request |
| Unauthenticated data endpoints | ?api=users returns e-mail addresses, roles and password hashes to anyone |
| Reflected input (XSS) | q breaks out of an attribute, s sits unescaped inside a script string, search is unescaped page text |
| SQL injection | id: a quote produces a MySQL error; true / false conditions give different pages |
| Path traversal / LFI | file: ../ sequences, double encoding, file:// and php://filter reach simulated /etc/passwd, win.ini and PHP source |
| Open redirect | next redirects to the reserved test host (and its backslash / user@host variants) |
| Template injection | name evaluates {{ a * b }} |
| Transport / TLS | Depends on your host: certificate expiry, HTTP to HTTPS redirect, legacy TLS |
| Exposed files, Directory listing, Content discovery | Not planted by this single file. To test them, create a folder such as /honeytest/ with a few harmless files named backup.sql, .env and notes.txt (any text) and no index file, and re-scan. |
Delete this file when you finish testing.