Make WordPress Core

Opened 12 years ago

Closed 12 years ago

#30806 closed feature request (invalid)

Security: Full Path Disclosure

Reported by: smartifahrer Owned by:
Priority: normal Milestone:
Component: Security Version: 4.1
Severity: normal Keywords:
Cc: Focuses:

Description

On Sergej Müller Website, i found a post about "Full Path Disclosure" (in german) http://cup.wpcoder.de/fpd-vulnerability-wordpress/

On some hostern (1&1) it is not posible or easy to change PHP settings so that error not shown.

Example: http://www.langer-webmedia.de/wp-includes/rss.php
So is you direct access an wordpess PHP-file you get a error message and see the server path.

In Joomla there is a simple solution to prevent this
Fist tey define a constant in files with direct access.

define('_JEXEC', 1);

Then in all other files they check if the constant is defined or die
defined('_JEXEC') or die('Restricted access');

This works fine. This can make Wordpress more secure. Ok, to make this we must add a line of code in all files. But i think its worth.

Change History (1)

#1 @ocean90
12 years ago

  • Milestone Awaiting Review
  • Resolutioninvalid
  • Status newclosed

See the Security FAQ:

Why are there path disclosures when directly loading certain files?
This is a server configuration problem. Never enable display_errors on a production site.

Additionally, when you created this ticket:

Do not report potential security vulnerabilities here. See the Security FAQ and contact security@….

Note: See TracTickets for help on using tickets.