Add bonus level: Lua Metatable Hooks - #2
Merged
Conversation
Re-homes the Lua metatable __index hook RCE challenge from skills#128 (by @TheDarkThief) into a standalone Bonus-Levels/ folder so it coexists with the existing Season 4 "ProdBot" narrative instead of colliding with Season-4/Level-1. - Level content: code.lua, hack.lua, tests.lua, hint.txt, solution/ - Path references updated to the new location - devcontainer: install lua5.4 + luarocks + busted; add sumneko.lua extension (kept all upstream ProdBot setup; dropped the PR's stale devcontainer/codeql rollbacks) Verified locally with busted: tests.lua 2/2 and solution_test.lua 3/3 pass; hack.lua fails against the vulnerable code by design. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Re-homes the Lua metatable
__indexhook challenge from upstream skills#128 (by @TheDarkThief) into a standaloneBonus-Levels/Lua-Metatable-Hooks/folder.Why a bonus folder: the original PR targeted
Season-4/Level-1, but upstream now has a full, differently-themed Season 4 ("ProdBot"). Placing the level underBonus-Levels/avoids the collision and keeps the Season 4 narrative intact.Included:
code.lua,hack.lua,tests.lua,hint.txt,solution/, and a self-containedREADME.md. Path references updated to the new location. The devcontainer now installslua5.4+luarocks+bustedand adds thesumneko.luaextension (all upstream ProdBot setup kept; the PR's stale devcontainer/codeql rollbacks were dropped).Verified locally with busted:
tests.lua2/2 pass,solution/solution_test.lua3/3 pass, andhack.luafails against the vulnerablecode.luaby design (that failing exploit test is the challenge).