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

Luacontroller can be abused to massively fill up server memory up to crash #597

Closed
appgurueu opened this issue Feb 24, 2022 · 2 comments
Closed

Comments

@appgurueu
Copy link

appgurueu commented Feb 24, 2022

Consider the following example of exponential string concatenation:

local s = "x"; for _ = 1, 1000 do s = s .. s end

Press "execute" a few times, watch the memory usage rise to ridiculous levels and your system killing the process in response.

Mitigation would most likely require a RAM-limited subprocess for execution; keeping track of the memory used through local variables and debug.getlocal might work as well, but would slow execution down to a crawl (would have to be checked every step).

@Desour
Copy link
Contributor

Desour commented Feb 24, 2022

Duplicate of #516?

@appgurueu
Copy link
Author

Duplicate of #516?

Yes. GH issue search didn't find that. Closing.

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

2 participants