Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't upload (FTP) PHP file containing base64_decode()?

Tags:

security

php

ftp

I have a plain server running CentOS 7.2 and Virtualmin, with FTP access via ProFTPD 1.3.5, and when I try to upload a PHP file containing the string base64_decode the transfer hangs until time-out. I have verified by editing the function out, and the exact same file uploads near-instantly. Put the function back in and the upload times-out. I can even just remove the '64' from the function name and the file uploads successfully.

So it appears to be some kind of security, but from where? Surely someone has seen this before? Or is my diagnosis completely off?

like image 378
James Avatar asked Jul 14 '26 05:07

James


1 Answers

This is probably not related to FTP, but to some Intrusion Detection System (IDS) which tries to block transfer of suspicious files. This IDS might run at the host or somewhere in the network.

like image 165
Steffen Ullrich Avatar answered Jul 17 '26 19:07

Steffen Ullrich



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!