Skip to content

Conversation

@jdespatis
Copy link
Contributor

It's possible to invoke ezscriptmonitor with a big big command line, but if the command is longer than 2000, it will be silently cut by the database (length for this command has been increased from 255 to 2000 with #8, but whatever the limit is, even huge, protection is required)

When the cronjob executes this command, it will execute a command, that has been cut just after 2000 chars...

So with a command like "./prog --command='echo "[massive spaces]"; rm -rf /' --scriptid=4"...
Well... you know... :)

@glye
Copy link
Member

glye commented Dec 2, 2011

Very good!

@jdespatis
Copy link
Contributor Author

@andrerom Tell us if you think some elements are missing for making this pull request merged (and indeed the other 2 ones for ezscriptmonitor), so that I can add them

@andrerom
Copy link
Contributor

Why do you call on me in this one, I'm not even part of the discussion here :)

@ghost ghost assigned glye Jan 30, 2012
@jdespatis
Copy link
Contributor Author

@andrerom oups sorry, as you were involved in another pull request for ezscriptmonitor, I thought you were the one that could merge the pull request :)

@glye have you the authority to merge all the pull requests for ezscriptmonitor ? if yes, tell me if some elements are missing for those pull so that I can correct them

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants