
Scanner and exploit for CVE-2017-16562, an unauthenticated authentication bypass in the WordPress UserPro plugin that grants admin access via up_auto_log=true.

Scanner de vulnérabilités rapide basé sur YAML avec moteur de détection piloté par modèles pour des tests de sécurité automatisés sur les applications web, les API, les réseaux, le DNS et l'infrastructure cloud.

Scanner de sécurité d'application web open-source pour la détection automatisée des vulnérabilités, les tests de pénétration manuels et les tests de sécurité d'API avec un moteur d'interception basé sur proxy.

UserPro < 4.9.17.1 - Authentication Bypass
| field | value |
|---|---|
| CVE | CVE-2017-16562 |
| severity | critical |
| CVSS | 9.8 (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H) |
| fixed in | 4.9.17.1 |
| class | authentication bypass (CWE-287) |
| scanner version | 1.0.0 |
| python | 3.8+ stdlib only, no third-party deps |
If you want the exploit, find it here: https://satoshidisk.com/pay/CT5TId
The UserPro plugin before 4.9.17.1 for WordPress, when used on a site that has the default "admin" username, allows unauthenticated remote attackers to bypass authentication and obtain administrative access by supplying up_auto_log=true in the query string of the default URI. The plugin's auto-login routine logs the request in as the "admin" account without any credential check, establishing an authenticated administrator session.
The UserPro plugin before 4.9.17.1 for WordPress, when used on a site that has the default "admin" username, allows unauthenticated remote attackers to bypass authentication and obtain administrative access by supplying up_auto_log=true in the query string of the default URI. The plugin's auto-login routine logs the request in as the "admin" account without any credential check, establishing an authenticated administrator session. Per the template impact, this is a full administrative takeover of the WordPress site by an unauthenticated attacker. Remediation: update UserPro to 4.9.17.1 or later and avoid using the default "admin" username. The vendor resolved the issue on 2017-10-26; in the fixed code the up_auto_log handler no longer calls wp_set_auth_cookie(1) straight from the query-string parameter without a credential check.
flow: http(1) && http(2), max-request 2); no JavaScript is
executed.GET {BaseURL}/?up_auto_log=true; internal header matcher:
the Set-Cookie header must contain wordpress_logged_in (the cookie
name emitted by wp_set_auth_cookie), proving the auto-login routine
fired.GET {BaseURL}/wp-admin/ replaying the captured cookies;
matchers (AND): status 200 AND body contains id="wpadminbar" AND
body contains /wp-admin/ (proof the admin session is live).check(url) returns (True, details) only when both request groups
match; otherwise (False, details). If request 1 never sets the
cookie, request 2 is skipped, mirroring the template flow.token is computed over the JSON result so a reflected
response can be told apart from real session establishment.urls.txt are auto-prefixed with http://.python scanner/CVE-2017-16562/scanner.py urls.txt 8 CVE-2017-16562.csv --json CVE-2017-16562.json
python exploit/CVE-2017-16562/exploit.py http://target/ --csv CVE-2017-16562.csv --json CVE-2017-16562.json --verbose
urls.txt is a plain file, one target per line, # for comments.
RCE POC SUITE - CVE-2017-16562 UserPro auth bypass
scanner : CVE-2017-16562 v1.0.0
threads : 8 | csv: CVE-2017-16562.csv | json: CVE-2017-16562.json
RCE POC SUITE - CVE-2017-16562 UserPro auth bypass
[..] loaded 3 target(s) from urls.txt
[..] [1/3] http://host1 -> VULNERABLE
[..] [2/3] http://host2 -> not-vuln
[..] [3/3] http://host3 -> error
[..] summary: total=3 vulnerable=1 not-vuln=1 errors=1
[..] timing : avg=140ms max=380ms wall=1.1s
[..] report saved: CVE-2017-16562.csv
| column | meaning |
|---|---|
| n | 1-based row number |
| url | target as provided |
| status | ok / error |
| vulnerable | verdict |
| elapsed_ms | per-target timing |
| token | md5 proof-of-execution (12 chars) |
| result_b64 | base64(JSON) full details |
scanner.py - detection only, stdlib, streamed CSV + JSON sidecar.README.md - this file.DESCRIPTION.md - deeper technical notes.| code | meaning |
|---|---|
| 0 | at least one target answered |
| 2 | every target errored |
Ce dépôt contient le composant scanner pour Greenbone Community Edition.