Hello,
Please observe this scenario:
- Create a file called index.txt and one called index.php.txt
- put in both code to show e.g. phpinfo()
Expected result:
- Both files show your PHP code in text.
In my case:
- index.txt show the code
- index.php.txt is being executed
I'm using cPanel 78.0.3 with PHP 7.2.14 (suphp). Also tested with other PHP versions and PHP-FPM (same result). I can't replicate on another server though (all on 76).
Not sure if it's me, EasyApache or PHP that is causing this. Only noticed today. In either case this is not good as .txt files are probably ignored by a lot of security products. A .php.txt files is imho a .txt file.
Backstory: I have a WHM plugin that (to update) downloads the file index.php.txt. I got reports today that this is not working and I see that the "executed" version of the script is downloaded. I have not touched this configuration for a long time aside from cPanel and EA4 updates.
Anyone who can replicate this or has an idea what could cause this?
Please observe this scenario:
- Create a file called index.txt and one called index.php.txt
- put in both code to show e.g. phpinfo()
Expected result:
- Both files show your PHP code in text.
In my case:
- index.txt show the code
- index.php.txt is being executed
I'm using cPanel 78.0.3 with PHP 7.2.14 (suphp). Also tested with other PHP versions and PHP-FPM (same result). I can't replicate on another server though (all on 76).
Not sure if it's me, EasyApache or PHP that is causing this. Only noticed today. In either case this is not good as .txt files are probably ignored by a lot of security products. A .php.txt files is imho a .txt file.
Backstory: I have a WHM plugin that (to update) downloads the file index.php.txt. I got reports today that this is not working and I see that the "executed" version of the script is downloaded. I have not touched this configuration for a long time aside from cPanel and EA4 updates.
Anyone who can replicate this or has an idea what could cause this?
Last edited: