Hard Reset functionality for AspGoat #78
Replies: 2 comments
-
|
Check if we can do : We'll add a “factory reset” button for the app. When an admin clicks it, the app will wipe the current public files and copy back a clean set of originals, then recreate the database with the default users and data. This reset action will be protected so only admins can run it, will require a real POST request (with CSRF protection), and won’t allow multiple resets at once. It will work the same on your laptop and in Docker. After it finishes, the app looks and works exactly like a fresh install. |
Beta Was this translation helpful? Give feedback.
-
|
Hi @toyesh0 , can you provide a psuedo code for this solution. It would be helpful if you have an idea of C# Programming Language and a Solid idea of ASP.NET MVC 👍 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
🚨 Help Wanted: Implement a Hard Reset Feature for AspGoat
Context:
AspGoat’s Unrestricted File Upload / File Overwrite lab lets learners deface the actual homepage as part of the challenge.
While that’s intentional, it means the application can be left in a broken state.
Currently, we simply display a warning and ask users to manually redeploy the container or clone the repo to restore the app.
Goal:
Create a one-click “Hard Reset” capability that restores the application to its original state.
Requirements & Ideas
Reset Scope
wwwroot(or equivalent) directory to a clean snapshot.Implementation Thoughts
/admin/reset) that:Security Considerations
Tech Stack
What We’re Looking For
💡 How to Contribute
This feature will make AspGoat more learner-friendly while showcasing a real-world secure recovery pattern.
Recognition: Major contributors will be highlighted in the README “Hall of Fame” and future release notes.
Beta Was this translation helpful? Give feedback.
All reactions