Akumuli crashing on write
sptrakesh opened this issue · 1 comments
sptrakesh commented
This is most likely due to some issues with tags, and I am trying to find what it is that is causing Akumuli to crash. The log is not very descriptive, but this is what I see:
2020-06-11 18:30:42,619 Main [ERROR] Error executing query
2020-06-11 18:30:42,619 Main [ERROR] unrecognized token: "3C"
2020-06-11 18:30:42,619 Main [ERROR] Terminating (core dumped)
sptrakesh commented
Certainly was a tag value that was causing the crash. I fixed it by sanitising input. Would have been better if Akumuli rejected the metric instead of crashing and getting corrupted. The tag value(s) that were causing the crash were some hack attempts against server.
"/index.php/?s=/index/%5Cthink%5Capp/invokefunction&function=call_user_func_array&vars%5B0%5D=file_put_contents&vars%5B1%5D%5B%5D=zxc1.php&vars%5B1%5D%5B%5D=%3C?php%20@eval($_POST%5Bxxxxxx%5D);?%3E"
"/index.php/?s=/index/%5Cthink%5Capp/invokefunction&function=call_user_func_array&vars%5B0%5D=system&vars%5B1%5D%5B%5D=echo%20'%3C?php%20@eval($_POST%5Bxxxxxx%5D);?%3E'%3Ezxc2.php"
"/index.php/?s=index/%5Cthink%5Ctemplate%5Cdriver%5Cfile/write&cacheFile=zxc0.php&content=%3C?php%20@eval($_POST%5Bxxxxxx%5D);?%3E"