Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

application file disappear from server after a couple of minutes #273

Open
dagon84 opened this issue Dec 31, 2019 · 31 comments
Open

application file disappear from server after a couple of minutes #273

dagon84 opened this issue Dec 31, 2019 · 31 comments

Comments

@dagon84
Copy link

dagon84 commented Dec 31, 2019

Issue:

  • I upload the file Tinyfilmanager.php via FTP in a subfolder, file permission 644, folder permission 755
  • I can browse for a couple of minutes in the interface
  • After a while I get error 404
  • I'm going to check the folder where i uploaded the file, and the file Tinyfilmanager.php is missing, as never uploaded.

is the only file that diasappear, i don't understand why.

Error log report the following

Use of undefined constant FM_EXCLUDE_ITEMS - assumed 'FM_EXCLUDE_ITEMS' in /home/clsprplv/public_html/ipcam/tinyfilemanager.php on line 2248
[31-Dec-2019 20:03:54 Etc/UTC] PHP Warning: in_array() expects parameter 2 to be array, string given in /path/tinyfilemanager.php on line 2248

But I can't understand how to solve the error.

Am I missing some setting?
Any help would be appreciated.

I have tried to copy the code ina previous php file, that disappear after a while

@decioviegas
Copy link

Hello
I have the same problem. A Tinyfilmanager.php file contents disappear from server.
(the file Tinyfilmanager.php is empty after the first call)

@prasathmani
Copy link
Owner

@decioviegas and @dagon84 ,
could you please check error logs and security logs, if you found something related to tinyfilemanager, plz share the logs, really it helps to find the root cause.

@decioviegas
Copy link

I have not error log.
Just open the login page and the file (Tinyfilmanager.php) will be empty
print

@decioviegas
Copy link

The Immunify360 has detected "Original (infected) file will be removed"
Reason: SMW-SA-05072-mlw-4
Status: Content removed.

@k4mrul
Copy link

k4mrul commented Nov 25, 2020

I am having the same issue. After log in, the contents of tinyfilemanager.php disappeared. Anyone know any workaround?

It's because of Immunify360.
Reason: SMW-SA-05072-php.tool.filemanager-6

Temporary fixed by adding tinyfilemanager.php as an exclusion in immunify360

@skerbis
Copy link

skerbis commented Nov 30, 2020

in #461 you can see more details.

@alisson-juns
Copy link

I have the same problem.
Did anyone get any solution?
My server deletes the file and there is no log on it.

@asrafulattare
Copy link

@prasathmani anyone solved this issue?

@skerbis
Copy link

skerbis commented Feb 3, 2021

@attare026 whitelist the script in your ImunifyAV

@alisson-juns
Copy link

I had to contact the technical support of my hosting to create an exception on the server so that the file was not deleted.

@asrafulattare
Copy link

whitelist the script in your ImunifyAV

can explain it how can I do?
thanks

@ueen
Copy link

ueen commented Feb 19, 2021

same, the provider locked the entire site, maybe you should mention that in the README, its kind of a big deal!!

@prasathmani
Copy link
Owner

removed PHP decoded code in the new version, hope it resolves the issue

@saeed74
Copy link

saeed74 commented Aug 21, 2021

isuue is not resolved yet in last version:

reason of delete: SMW-SA-05072-php.tool.filemanager-7

Screenshot_583

@dampelz
Copy link

dampelz commented Sep 17, 2021

same issue
SMW-SA-05072-php.tool.filemanager-7

@Hieung28
Copy link

Hieung28 commented Dec 7, 2021

has anyone solved this issue?

@saeed74
Copy link

saeed74 commented Jul 3, 2022

this bug is still present in version tiny file manager 2.4.7

@saeed74
Copy link

saeed74 commented Jul 6, 2022

Screenshot_43

@FransW5
Copy link

FransW5 commented Jul 21, 2022

Solution for cPanel firewall:

Open tinyfilemanager.php in a text editor And

Replace All:
fm_redirect(FM_SELF_URL . '?p=' . urlencode(FM_PATH));
With:
$FM_PATH=FM_PATH; fm_redirect(FM_SELF_URL . '?p=' . urlencode($FM_PATH));

@YsrMe
Copy link

YsrMe commented Aug 31, 2022

Hello...

the script was working fine on bluehost & hostinger hosting services, but after deploying the security feature the file was detected as malicious file & got deleted ⁉

i am very sad because this is the best file manager scripts that you can find so far... is there any progress on solving this issue ⁉

Regards,

@robsd
Copy link

robsd commented Oct 5, 2022

I get the same issue "SMW-SA-05072-php.tool.filemanager-2".

File contents gets wiped after upload.

I've tried @FransW5's suggestion but that didn't work for me unfortunately.

@FransW5
Copy link

FransW5 commented Oct 17, 2022

@robsd

I tested on (cPanel 106.0.8 + cPGuard + imunify360 Malware scanner) and with the following replacement, solves the problem.

What hosting management system are you using?
What antivirus and firewall is running on your host?

Replace All:
fm_redirect(FM_SELF_URL . '?p=' . urlencode(FM_PATH));

With:
$FM_PATH=FM_PATH; fm_redirect(FM_SELF_URL . '?p=' . urlencode($FM_PATH));

@prasathmani
Copy link
Owner

This issue is addressed in the new release.

@YsrMe
Copy link

YsrMe commented Nov 25, 2022

Hello...

Still the same issue on hostinger.com it sees it as (Malicious) file!

image

@Salkalkhan
Copy link

yes They are deleting instantly now. This single page file manager is awesome but can't run on Hostinger. Really need to do something quickly.

@prasathmani
Copy link
Owner

I am happy to fit it, but need more information what line or part of code is causing the problem.

@Salkalkhan
Copy link

I don't know which line is causing this problem as I have done many changes in Version 2.4.4 and It is working for me. Yesterday I updated the page and it disappear after few minutes. I re upload but again disappear. It was malware scanner from hostinger.com who keep deleting that file.
Gave me sometime, Tomorrow I will download previous commits and Upload it One by one.

@Salkalkhan
Copy link

Winter Release 22 Latest version = 2.5.0 8de16a4
deleting Line number 3085-3087 solves the deleting problem.

if(is_array($contentType)) {
        $contentType = implode(' ', $contentType);
    }

Delete this above code.

@YsrMe
Copy link

YsrMe commented Nov 27, 2022

Hello @Salkalkhan

I did what you suggested & it is still the same issue as you can see below :(

image

@Salkalkhan
Copy link

Hi, I don't know why it didn't got deleted within an hour but when Today I logged in my server it was deleted.
I have left with only those files which were released before Feb 14 2022.
I am still working to find the exact code which is causing this issue. Problem is they are not deleting instantly. After making any changes have to wait for them to delete that file.

My suggestion will be to go to commit and download any version which was uploaded before feb 14 this year and work till any solution is released.

@prasathmani
Copy link
Owner

duplicate #1067

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests