Skip to content

Commit 1753a0a

Browse files
committed
Review + Dockerfile Update
1 parent 247241d commit 1753a0a

File tree

2 files changed

+14
-26
lines changed

2 files changed

+14
-26
lines changed

Dockerfile

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,19 @@
1-
FROM debian:latest
1+
# Utilise l'image officielle .NET SDK 8.0
2+
FROM mcr.microsoft.com/dotnet/sdk:8.0
23

4+
# Définir l'utilisateur root
35
USER root
46

5-
RUN apt update && \
6-
apt upgrade -y && \
7-
apt install -y wget git
8-
9-
RUN wget https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb -O packages-microsoft-prod.deb && \
10-
dpkg -i packages-microsoft-prod.deb && \
11-
rm packages-microsoft-prod.deb
12-
13-
RUN apt update && \
14-
apt install -y dotnet-sdk-8.0 dotnet-runtime-8.0
15-
16-
EXPOSE 3000
7+
# Installer Git
8+
RUN apt update && apt upgrade -y && apt install -y git
179

10+
# Cloner le dépôt
1811
WORKDIR /app
1912
RUN git clone https://github.com/Aif4thah/VulnerableLightApp.git
2013
WORKDIR /app/VulnerableLightApp
2114

22-
CMD ["dotnet", "run", "--url=https://0.0.0.0:3000"]
15+
# Exposer le port
16+
EXPOSE 3000
17+
18+
# Lancer l'application
19+
CMD ["dotnet", "run", "--url=https://0.0.0.0:3000"]

README.md

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,9 @@
88
[![Docker](https://github.com/Aif4thah/VulnerableLightApp/actions/workflows/docker.yml/badge.svg)](https://github.com/Aif4thah/VulnerableLightApp/actions/workflows/docker.yml)
99
[![Github Sponsors](https://img.shields.io/badge/GitHub%20Sponsors-30363D?&logo=GitHub-Sponsors&logoColor=EA4AAA)](https://github.com/sponsors/Aif4thah/)
1010

11-
1211
> [!WARNING]
1312
> This repository and its tools are provided "as is" without warranty of any kind, either express or implied, including but not limited to, any warranties of merchantability, fitness for a particular purpose, and non-infringement. The authors shall not be liable for any claims, damages, or other liabilities arising from, out of, or in connection with the use of this tool. The user is solely responsible for ensuring their use of this tool complies with all applicable laws and regulations. The authors disclaim any liability for illegal or unethical use.
1413
15-
1614
## 🎱 Attack Surface
1715

1816
```mermaid
@@ -32,6 +30,7 @@ flowchart TD
3230
F --> M(*Sensitive Data*)
3331
G --> O(*Serialized Data*)
3432
G --> R(*Business Logic*)
33+
G --> U(*Updates*)
3534
H --> P(*Variables and functions*)
3635
```
3736

@@ -49,7 +48,6 @@ flowchart TD
4948
| **Log Management** | V19 Logging and Monitoring |
5049
| **Service Behavior** | V14 API and Web Service Security, V17 Business Logic |
5150

52-
5351
## 🐞 Vulnerabilities
5452

5553
| MITRE Reference | Description | Difficulty |
@@ -84,23 +82,19 @@ flowchart TD
8482
| CWE-918 | Server-Side Request Forgery | Medium |
8583
| CWE-1270 | Generation of Incorrect Security Tokens | Medium |
8684

87-
88-
8985
## 🔑 Hint & Write Up
9086

9187
* Try reading [Dojo-101](https://github.com/Aif4thah/Dojo-101), this project contains all you need to hack this app.
9288

9389
* [Become a sponsor](https://github.com/sponsors/Aif4thah) and get access to the **full methodology** and **complete write-up**.
9490

95-
9691
## ⬇️ Download
9792

9893
```PowerShell
9994
git clone https://github.com/Aif4thah/VulnerableLightApp.git
10095
cd .\VulnerableLightApp\
10196
```
10297

103-
10498
## 🔧🔥 Build and Run
10599

106100
You can use **Dotnet** or **Docker**
@@ -135,10 +129,9 @@ Default : `127.0.0.1:3000`
135129
curl -k https://127.0.0.1:3000
136130
```
137131

132+
## 🛠️ Debug
138133

139-
## 🛠️ Debug
140-
141-
### Dotnet install on Linux
134+
### Dotnet install on Linux
142135

143136
Ubuntu / Debian exemple
144137

@@ -166,7 +159,6 @@ To trust the certificate
166159
dotnet dev-certs https --trust
167160
```
168161

169-
170162
### Dependancies
171163

172164
dependancies have to be dowloaded from [standard sources](https://go.microsoft.com/fwlink/?linkid=848054)
@@ -175,7 +167,6 @@ dependancies have to be dowloaded from [standard sources](https://go.microsoft.c
175167
dotnet nuget add source "https://api.nuget.org/v3/index.json" --name "Microsoft"
176168
```
177169

178-
179170
## 💜 Crédits
180171

181172
* **Special thanks to all the hackers and students who pushed me to improve this work**

0 commit comments

Comments
 (0)