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

Adding New Level: Lua Metatable hooks #128

Open
wants to merge 14 commits into
base: main
Choose a base branch
from

Conversation

TheDarkThief
Copy link

Summary

Adding a new level demonstrating Lua metatables, and how a malicious actor can hook into them

Changes

Created a level where a user requests the client to populate a table, where a malicious actor gains remote code execution due to improper sanitation.

Task list

  • For workflow changes, I have verified the Actions workflows function as expected.
  • For content changes, I have reviewed the style guide.

@jkcso jkcso self-requested a review March 9, 2025 21:27
Copy link
Collaborator

@jkcso jkcso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@TheDarkThief Thanks for your work! I left comments to improve it and accept it, good job man!



--- Generates a bitmap image
-- @param request: The table which we will populate with images
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand what you try to say but please rewrite it in a more explanatory way, such as for example that the table will contain pixels for the image that will be populated and it's being represented as a table.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Went into a bit more depth in the comment

@TheDarkThief
Copy link
Author

I've made the requested changes, as well as switch to the Busted library making it easier to setup Github CI as well as make the error messages a bit clearer

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

Successfully merging this pull request may close these issues.

2 participants