Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions Broken Access Control/hard/wierd-securitatis/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
FROM node:slim
WORKDIR /wierd-securitatis
WORKDIR /app

COPY package*.json ./
RUN npm install

COPY . .
EXPOSE 3555
RUN node initDB.js
CMD [ "node", "index.js" ]


48 changes: 48 additions & 0 deletions Broken Access Control/hard/wierd-securitatis/bac-hard.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: my-ingress
spec:
rules:
- host: chall.nullvitap.tech
http:
paths:
- path: /bac-hard
pathType: Prefix
backend:
service:
name: bac-hard-service
port:
number: 80
---
apiVersion: v1
kind: Service
metadata:
name: bac-hard-service
spec:
selector:
app: bac-hard
ports:
- name: http
port: 80
targetPort: 3555
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: bac-hard-deployment
spec:
replicas: 1 # Set the desired number of replicas for Docker 1
selector:
matchLabels:
app: bac-hard
template:
metadata:
labels:
app: bac-hard
spec:
containers:
- name: docker1-container
image: sanjay7178/hu-chall-23:bac-hard
ports:
- containerPort: 3555
27 changes: 0 additions & 27 deletions Broken Access Control/hard/wierd-securitatis/dockerfile

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
PORT = 2279

# Docker
COMPOSE_PROJECT_NAME = challenges2023owasp10-identification-and-authentication-failures-easy
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM php:apache

COPY . /var/www/html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
services:
app:
build: .
ports:
- ${PORT}:80

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
PORT = 2280

# Docker
COMPOSE_PROJECT_NAME = challenges2023owasp10-identification-and-authentication-failures-hard
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM php:apache

ARG src="./4uth Xrack Que\$t/"
ARG dest="/var/www/html/"
COPY ${src} ${dest}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
services:
app:
build: .
ports:
- ${PORT}:80

6 changes: 6 additions & 0 deletions Injection (Cross-Site Scripting (XSS))/easy/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
PORT = 3000
COOKIE_KEY = "SECRET"
FLAG = "NULL{C3rul3anSuns3t}"

# Docker
COMPOSE_PROJECT_NAME = challenges2023owasp10-injection-easy
8 changes: 5 additions & 3 deletions Injection (Cross-Site Scripting (XSS))/easy/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
FROM node:18
FROM node:slim
WORKDIR /app
COPY package*.json .
RUN npm install

COPY package*.json ./
RUN npm install

COPY . .
CMD [ "node", "index.js" ]
6 changes: 6 additions & 0 deletions Injection (Cross-Site Scripting (XSS))/easy/compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
services:
app:
build: .
ports:
- ${PORT}:${PORT}

10 changes: 10 additions & 0 deletions Injection (Cross-Site Scripting (XSS))/hard/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
PORT = 3001
COOKIE_KEY = "secret"
BOT_USERNAME = "hi"
BOT_PASSWORD = 123
FLAG = "NULL{R0ogue3lephan1}"
BOT_AUTH = "1234567890"
DB_URI = "mongodb://localhost:27017"

# Docker
COMPOSE_PROJECT_NAME = challenges2023owasp10-injection-hard
8 changes: 5 additions & 3 deletions Injection (Cross-Site Scripting (XSS))/hard/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
FROM node:18
FROM node:slim
WORKDIR /app
COPY package*.json .
RUN npm install

COPY package*.json ./
RUN npm install

COPY . .
CMD [ "node", "index.js", "&&", "node", "puppeteerBot.js" ]
13 changes: 13 additions & 0 deletions Injection (Cross-Site Scripting (XSS))/hard/compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
services:
db:
image: mongo:latest
restart: always
app:
build: .
ports:
- ${PORT}:${PORT}
depends_on:
db:
condition: service_started
environment:
DB_URI: mongodb://db:27017
4 changes: 4 additions & 0 deletions Insecure Design/easy/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
PORT = 2915

# Docker
COMPOSE_PROJECT_NAME = challenges2023owasp10-insecure-design-easy
4 changes: 4 additions & 0 deletions Insecure Design/easy/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FROM httpd:alpine
WORKDIR /app

COPY ./index.html /usr/local/apache2/htdocs/index.html
6 changes: 6 additions & 0 deletions Insecure Design/easy/compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
services:
app:
build: .
ports:
- ${PORT}:80

3 changes: 1 addition & 2 deletions Insecure Design/hard/et_tu/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
FROM python:3.10-slim-buster

WORKDIR /et_tu
WORKDIR /app

COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
PORT = 3124

# Docker
COMPOSE_PROJECT_NAME = challenges2023owasp10-security-logging-and-monitoring-failures-easy
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FROM httpd:alpine
WORKDIR /app

COPY ./ /usr/local/apache2/htdocs/
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
services:
app:
build: .
ports:
- ${PORT}:80

Original file line number Diff line number Diff line change
Expand Up @@ -92,26 +92,6 @@ <h1>Find IP of Attacker?</h1>
<input type="text" id="keyInput" placeholder="Enter IP of Target">
<button id="checkButton">Check IP</button>
</div>
<script>
document.getElementById('checkButton').addEventListener('click', function() {
// Get the value entered by the user
var userKey = document.getElementById('keyInput').value;

// Define the correct key
var correctKey = "50.96.12.14";

// Check if the entered key matches the correct key
if (userKey === correctKey) {
// If the keys match, display an alert with the message
alert("NULL{L$4884#}");
} else {
// If the keys do not match, display an error message
alert("IP is incorrect. Please try again.");
}
});
document.addEventListener('contextmenu', function(e) {
e.preventDefault();
});
</script>
<script src="./script.js"></script>
</body>
</html>
Loading