Is this a security breach?? | Sololearn: Learn to code for FREE!


Is this a security breach??

Is this a security breach ?? if any user has access to a wordpress uploads directory such as: and in addition, getting access to key .php files, being able to download and read the php files. Is this a security breach or is it not a big deal? Ps ~ I'm studying pentest so sorry for my inexperience.

4/13/2021 3:04:49 AM

Player Gileade Oficial

1 Answer

New Answer


That depends on how sensitive your media library content is in WordPress. As long as you don't store private media there, it isn't a big issue. In other words, if you have scanned images of cheques, photo ID... you're making a big mistake storing them in your WordPress media library even if you don't link to them on any of your pages. It is nice that the web server doesn't usually list all files when going here: /wp-content/uploads/ Listing all files would be unnecessarily revealing even if accessing each individual file isn't a big problem. Here is an article to prevent access to that directory more: You asked about reading and editing .php files in the website. It would be pretty bad if that didn't require signing into the WordPress dashboard. I don't think that's a really bad thing if your WordPress credentials are very hard to guess. It is a bit like how you could also edit the .php files in cPanel or FTP if you had the right credentials. If I had something very sensitive to put in a website, I would avoid WordPress because WordPress has a lot of compromised plugins and security problems. The most sensitive thing WordPress is somewhat suitable for is online ordering and online purchasing. Even with that, you need to be proactive about plugin updates and maintenance because WordPress and the plugins are so popular that they become targets for malicious hackers.