wordpress, index.php and hiding malware
-
Common approach to prevent directory listing is using index document in a folder.
For example:
/wp-content/index.php /wp-content/plugins/index.php /wp-content/themes/index.php
PROBLEMS:
1. WP is usingindex.php
(instead of saferindex.html
version).
2. Thatindex.php
isn’t empty – it contains some comment text
3. Furtherindex.php
size varies from 28 to 30 bytes (in older).I suppose (1) could be argued due some hostings only setting
index.php
asDirectoryIndex
.
But (2) makes a lot easier for malware to hide unnoticed – forcing to check contents / multiple hashes when cleaning/doing maintenance.
And problem gets more exaggerated due the fact that many plugins and themes are copying this file..(This is a problem because one can make fully functional universal backdoor in just 23 bytes:
HIDDEN
!)SOLUTION: it really would make more sense to switch to
index.html
or atleast use an emptyindex.php
..
- The topic ‘wordpress, index.php and hiding malware’ is closed to new replies.