GithubHelp home page GithubHelp logo

Comments (7)

jordithijsman avatar jordithijsman commented on September 23, 2024 2

Did you rebuild the image after replacing the FROM statement?

from webgoat.

jordithijsman avatar jordithijsman commented on September 23, 2024 1

This is a legit issue. It is reproducible by running the Docker image.

I suspect the cause is the usage of the docker.io/eclipse-temurin:19-jre-focal base image for the container is to blame. This exercise tries to use JDK functionality which is not included in the JRE. While this is good practice for a secure application since it limits the attack surface, the JDK appears to be a necessity for this exercise.

I tried building the image using docker.io/eclipse-temurin:19-jdk-focal and this appears to fix the issue.

from webgoat.

aolle avatar aolle commented on September 23, 2024

Hello,

I am not able to reproduce the issue.

Just remove the return sentence from your code and submit it to WebGoat to complete the lesson.

Regards.

from webgoat.

jimmyFlash avatar jimmyFlash commented on September 23, 2024

Hello @aolle

As i mentioned this issue occurred with the Docker image, i didn't face such issue when i cloned and earlier version of WebGoat straight from GitHub. This is my 1st time using WebGoat docker image from DockerHub

I will remove the return statement form my code as you did and test, not sure this is the cause but hope it work.

I'll attach screens of the error message if I'm still getting the same error.

from webgoat.

jimmyFlash avatar jimmyFlash commented on September 23, 2024

This is a legit issue. It is reproducible by running the Docker image.

I suspect the cause is the usage of the docker.io/eclipse-temurin:19-jre-focal base image for the container is to blame. This exercise tries to use JDK functionality which is not included in the JRE. While this is good practice for a secure application since it limits the attack surface, the JDK appears to be a necessity for this exercise.

I tried building the image using docker.io/eclipse-temurin:19-jdk-focal and this appears to fix the issue.

Thank you so much @jordithijsman. The script was simple enough i tried in sample app with with JDK11 and SQLite db and it was working, had a feeling it was docker image but couldn't figure out what exactly should i look for.

from webgoat.

James-Lu-none avatar James-Lu-none commented on September 23, 2024

Hello @jordithijsman, i replaced the image with docker.io/eclipse-temurin:19-jdk-focal but it still shows "compiler" is null when i was trying to submit the anwser, do i have to replace something other than the FROM statement in the docker file?

from webgoat.

James-Lu-none avatar James-Lu-none commented on September 23, 2024

oh you are right, i am new to docker and i thought it will build the image for me when i do docker run, thank you!

from webgoat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.