Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

[help] how can I bypass wordpress /wp-admin/ login restriction?

I already have access to the DB of the site, I also deleted most security plugins and .htacess files, I still get "Sorry, you are not allowed to access this page." on some websites, on other websites I get " 404 not found" when I literally see "wp-admin/login.php" in the website directory i.e: "site.com/wp-admin",
here is an example
[Image: bwQABc4.png]

Just to be clear again, I already have PHPshell on the website that I need to gain access to the dashboard of WordPress, I have changed the password in the DB but I still can't figure out how I can't access the dashboard! some times it says 404 not found (fake) and in other sites, it says "Sorry, you are not allowed to access this page"
(Mar 6, 2020 03:12 AM)WPA2 Wrote:  I already have access to the DB of the site, I also deleted most security plugins and .htacess files, I still get "Sorry, you are not allowed to access this page." on some websites, on other websites I get " 404 not found" when I literally see "wp-admin/login.php" in the website directory i.e: "site.com/wp-admin",
here is an example
[Image: bwQABc4.png]

Just to be clear again, I already have PHPshell on the website that I need to gain access to the dashboard of WordPress, I have changed the password in the DB but I still can't figure out how I can't access the dashboard! some times it says 404 not found (fake) and in other sites, it says "Sorry, you are not allowed to access this page"


Not too sure, but I think you need admin rights to access that endpoint. Maybe the account you're logged in as is only an author account?

Default admin info is at
PHP Code

<?php 
/wp-json/wp/v2/users/1 

You might also be able to use the registration endpoint as foothold
PHP Code

<?php 
/wp-signup.php 

Edit:
Maybe I misunderstood you earlier.

The login page is actually at
PHP Code

<?php 
/wp-login.php 
I do have the admin account, but still, it shows Howdy bar without giving access

[Image: XyUJsBk.png]


also after deleting "all wp security plugin", I logged in and I see "Sorry, you are not allowed to access this page."

NOTE: I noticed that plugins and.htaccess files are born again after deleting them! wtf!!!


Possibly Related Threads...
Thread / Author Replies Views Last Post
by vmntlyDec 2, 2020 01:52 AM 0 150 Dec 2, 2020 01:52 AM
Last Post: vmntly
by NocturnaJun 10, 2018 09:11 PM 3 191 Jun 10, 2018 09:11 PM
Last Post: Noxcrawler
by mObiIeFeb 16, 2018 07:10 AM 34 7,565 Feb 16, 2018 07:10 AM
Last Post: kamera