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

Akumuli crashing on write #366

Open
sptrakesh opened this issue Jun 11, 2020 · 1 comment
Open

Akumuli crashing on write #366

sptrakesh opened this issue Jun 11, 2020 · 1 comment

Comments

@sptrakesh
Copy link

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
Copy link
Author

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"

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

No branches or pull requests

1 participant