From d7495f83c197f2fff716cdc26f80e68a56393741 Mon Sep 17 00:00:00 2001 From: Rodrigo Castro Date: Mon, 31 Oct 2022 22:13:38 -0300 Subject: [PATCH 1/4] Update docker-compose.yml --- .../a1/ecommerce-api/deployments/docker-compose.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/owasp-top10-2021-apps/a1/ecommerce-api/deployments/docker-compose.yml b/owasp-top10-2021-apps/a1/ecommerce-api/deployments/docker-compose.yml index 60f7ab9c3..c05be8d7c 100644 --- a/owasp-top10-2021-apps/a1/ecommerce-api/deployments/docker-compose.yml +++ b/owasp-top10-2021-apps/a1/ecommerce-api/deployments/docker-compose.yml @@ -1,8 +1,8 @@ version: '3' services: - a5api: - container_name: a5api + a1api: + container_name: a1api environment: GOPATH: /go/ API_PORT: 10005 @@ -21,7 +21,7 @@ services: ports: - "10005:10005" networks: - - a5_net + - a1_net depends_on: - mongodb @@ -38,9 +38,9 @@ services: volumes: - mongo_vol:/data/db networks: - - a5_net + - a1_net networks: - a5_net: + a1_net: volumes: docker_vol: From 021d80bb1a9882b41dce3faf9d9fdd4ed678d3ca Mon Sep 17 00:00:00 2001 From: Rodrigo Castro Date: Mon, 31 Oct 2022 22:23:08 -0300 Subject: [PATCH 2/4] Update api.Dockerfile --- .../a1/ecommerce-api/deployments/api.Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/owasp-top10-2021-apps/a1/ecommerce-api/deployments/api.Dockerfile b/owasp-top10-2021-apps/a1/ecommerce-api/deployments/api.Dockerfile index a1135ccda..0efdff1b0 100644 --- a/owasp-top10-2021-apps/a1/ecommerce-api/deployments/api.Dockerfile +++ b/owasp-top10-2021-apps/a1/ecommerce-api/deployments/api.Dockerfile @@ -1,6 +1,6 @@ FROM golang:1.14 -WORKDIR /go/src/github.com/globocom/secDevLabs/owasp-top10-2017-apps/a5/ecommerce-api/app +WORKDIR /go/src/github.com/globocom/secDevLabs/owasp-top10-2021-apps/a1/ecommerce-api/app COPY app/go.mod app/go.sum ./ RUN go mod download From d2b3e5d259e7bca869c13aa43cfae6aae32cc11e Mon Sep 17 00:00:00 2001 From: Rodrigo Castro Date: Mon, 31 Oct 2022 22:24:15 -0300 Subject: [PATCH 3/4] Update check-init.sh --- .../a1/ecommerce-api/deployments/check-init.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/owasp-top10-2021-apps/a1/ecommerce-api/deployments/check-init.sh b/owasp-top10-2021-apps/a1/ecommerce-api/deployments/check-init.sh index ba9f814d2..58eed787f 100755 --- a/owasp-top10-2021-apps/a1/ecommerce-api/deployments/check-init.sh +++ b/owasp-top10-2021-apps/a1/ecommerce-api/deployments/check-init.sh @@ -9,7 +9,7 @@ COLOR_GREEN='\033[32m' COLOR_BLUE='\033[1;34m' COLOR_RESET='\033[0m' -PROJECT='A5 Vulnerable Ecommerce API' +PROJECT='A1 Vulnerable Ecommerce API' PORT=10005 TRIES=480 LOADING=0 @@ -69,4 +69,4 @@ if [ $TRIES == 0 ]; then printf "\n${COLOR_RED}SecDevLabs: Ooops! Something went wrong, please check api details for more information!\n${COLOR_RESET}" else printf "\n${COLOR_GREEN}SecDevLabs: 🔥 ${PROJECT} is now running at ${COLOR_RESET}${COLOR_BLUE}http://localhost:$PORT${COLOR_RESET}\n" -fi \ No newline at end of file +fi From 0b8e79d3670e979f99beeb923fa00ff51617cb4d Mon Sep 17 00:00:00 2001 From: Rodrigo Castro Date: Mon, 31 Oct 2022 22:25:13 -0300 Subject: [PATCH 4/4] Update Makefile --- owasp-top10-2021-apps/a1/ecommerce-api/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/owasp-top10-2021-apps/a1/ecommerce-api/Makefile b/owasp-top10-2021-apps/a1/ecommerce-api/Makefile index e35804924..24da4a39a 100644 --- a/owasp-top10-2021-apps/a1/ecommerce-api/Makefile +++ b/owasp-top10-2021-apps/a1/ecommerce-api/Makefile @@ -9,7 +9,7 @@ GODEP ?= $(GOBIN)/dep GOLINT ?= $(GOBIN)/golint GOSEC ?= $(GOBIN)/gosec -A5APIBIN ?= a5ecommerceapi +A1APIBIN ?= a1ecommerceapi COLOR_RESET = \033[0m COLOR_COMMAND = \033[36m @@ -17,7 +17,7 @@ COLOR_YELLOW = \033[33m COLOR_GREEN = \033[32m COLOR_RED = \033[31m -PROJECT := A5 Vulnerable Ecommerce API +PROJECT := A1 Vulnerable Ecommerce API PORT := 10005 SLEEPUNTILAPPSTARTS := 10