Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebGoat启动命令中建议增加环境变量WEBWOLF_HOST和WEBWOLF_PORT #22

Open
keginx opened this issue Oct 9, 2022 · 0 comments
Open

Comments

@keginx
Copy link

keginx commented Oct 9, 2022

创建WebWolf容器时如果不是使用的的默认ip和端口 http://localhost:8081
在WebGoat Admin password reset 这一关填写邮件地址后会导致无法发送邮件给WebWolf
例如: http://10.1.1.111:8080/WebGoat/start.mvc#lesson/Challenge7.lesson
图片


分析返回值发现webwolf的mail配置用的是默认配置
图片


代码逻辑对应 webgoat-lessons/challenge/src/main/java/org/owasp/webgoat/challenges/challenge7/Assignment7.java
图片


配置文件对应 webgoat-container/src/main/resources/application-webgoat.properties
图片

建议在WebGoat对应的docker-compose.yml 启动命令或启动脚本中增加环境变量WEBWOLF_HOSTWEBWOLF_PORT 来指定非默认环境情况下WebWolf的ip和端口

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant