From 736fb6d7219ef544bba0277ad97981b3edac7aa4 Mon Sep 17 00:00:00 2001
From: RupakBiswas-2304
Date: Sat, 27 Aug 2022 09:00:20 +0530
Subject: [PATCH] code injection
---
pygoat/db.sqlite3 | Bin 331776 -> 331776 bytes
pygoat/introduction/mitre.py | 21 +++++++-
.../templates/mitre/mitre_lab_25.html | 47 ++++++++++++++++++
.../templates/mitre/mitre_top25.html | 2 +-
pygoat/introduction/urls.py | 1 +
pygoat/pygoat/settings.py | 2 +-
6 files changed, 69 insertions(+), 4 deletions(-)
create mode 100644 pygoat/introduction/templates/mitre/mitre_lab_25.html
diff --git a/pygoat/db.sqlite3 b/pygoat/db.sqlite3
index c6fc9d9bd8e4bc1960c67196f58aef8e171654e1..5104abc207742b12a00f0086387911a5f1a281ef 100644
GIT binary patch
delta 544
zcmZozAkwfvWP&u~{E0HojPo}poX-<9S1>TPGBC3;GSV}(G&3=?Xm-eNcgSbl?vT%P
zWCF7Rr{Gj}W>+yzGpLCfsv7}fu$};+Q`bpz{6m9v1Fw2EN<8TX`mMX9LZQ
z=GJIZvS9UX4t6Bu_UVciESu`{gK{nXt Code Injection
+{% endblock %}
+
+
+
+
+{% endblock %}
\ No newline at end of file
diff --git a/pygoat/introduction/templates/mitre/mitre_top25.html b/pygoat/introduction/templates/mitre/mitre_top25.html
index 538dc33ef..d0653f830 100644
--- a/pygoat/introduction/templates/mitre/mitre_top25.html
+++ b/pygoat/introduction/templates/mitre/mitre_top25.html
@@ -32,7 +32,7 @@ CWE-94: Code Injection
This lab have a calculator with can compute simple arithmetic operations.
Try to exploit that
-
diff --git a/pygoat/introduction/urls.py b/pygoat/introduction/urls.py
index af9dabc13..afd1418df 100644
--- a/pygoat/introduction/urls.py
+++ b/pygoat/introduction/urls.py
@@ -113,4 +113,5 @@
path("mitre/9/lab/transaction",mitre.csrf_transfer_monei,name="csrf_lab_login_api"),
path("mitre/9/lab/api//",mitre.csrf_transfer_monei_api,name="csrf_lab_login_api"),
path("mitre/25/lab/api", mitre.mitre_lab_25_api, name="mitre_lab_25_api"),
+ path("mitre/25/lab", mitre.mitre_lab_25, name="mitre_lab_25"),
]
diff --git a/pygoat/pygoat/settings.py b/pygoat/pygoat/settings.py
index 769300daf..bfdfc63d9 100644
--- a/pygoat/pygoat/settings.py
+++ b/pygoat/pygoat/settings.py
@@ -165,4 +165,4 @@
}
SECRET_COOKIE_KEY = "PYGOAT"
-CSRF_TRUSTED_ORIGINS = ["http://127.0.0.1:8000","http://0.0.0.0:8000","http://172.16.188.81"]
\ No newline at end of file
+CSRF_TRUSTED_ORIGINS = ["http://127.0.0.1:8000","http://0.0.0.0:8000","http://172.16.189.10"]
\ No newline at end of file