chore: remove MITRE integrated lab code and CSRF_user_tbl model#453
Open
ANIRUDH-SJ wants to merge 4 commits into
Open
chore: remove MITRE integrated lab code and CSRF_user_tbl model#453ANIRUDH-SJ wants to merge 4 commits into
ANIRUDH-SJ wants to merge 4 commits into
Conversation
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.
Summary
Removes all MITRE integrated lab code from the main application as part of the V3
cleanup (#395). Theory-only lesson pages (mitre_top1 through mitre_top25) are
preserved.
What was removed
Integrated lab functions from
introduction/mitre.py:csrf_lab_login,csrf_transfer_monei,csrf_transfer_monei_api(CSRF lab —CWE-352)
mitre_lab_25,mitre_lab_25_api(code injection lab — CWE-94)mitre_lab_17,mitre_lab_17_api(command injection lab — CWE-78)command_outhelper functionIntegrated lab templates:
mitre/csrf_lab_login.htmlmitre/csrf_dashboard.htmlmitre/mitre_lab_25.htmlmitre/mitre_lab_17.htmlBroken import and unused dependencies:
from .models import CSRF_user_tbl(model was already deleted)datetime,re,subprocess,hashlib,jwt,csrf_exempt,JsonResponse,HttpResponse,HttpResponseBadRequest,redirectDatabase cleanup:
0023_remove_csrf_user_tblto drop theCSRF_user_tbltableWhat was kept
mitre_top1throughmitre_top25) and theirtemplates — these are educational content pages, not interactive labs
urls.pyNotes
(mitre/17) do not currently have dockerized replacements. These should be tracked as
separate issues if dockerized versions are needed.
Test plan
/mitre/1through/mitre/25)python manage.py migratePart of #395