mitre / caldera

Automated Adversary Emulation Platform
https://caldera.mitre.org
Apache License 2.0
5.48k stars 1.05k forks source link

New vm docker deployment web gui not responding will not take default credentials #3002

Open eamongoodwin opened 2 months ago

eamongoodwin commented 2 months ago

ubuntu 22.04.4.desktop-amd64 caldera 5.0.0 python 3.12.3 pip 24.0 go 1.22.4 docker 24.0.5

I have gone into the default.yaml file and added the host machine IP to host. I have tried 0.0.0.0 instead of localhost in url. I can access login page from hostip:8888/login remotely but will not authenticate credentials. I have commented out line 273 in server.py file. What else can I try to successfully authenticate and access web gui?

github-actions[bot] commented 2 months ago

Looks like your first issue -- we aim to respond to issues as quickly as possible. In the meantime, check out our documentation here: http://caldera.readthedocs.io/

marcin2383838383 commented 2 months ago

the same for me, Debian 12.5 and Ubuntu 22.04

Hunter-0x07 commented 2 months ago

yes, I also have this problem.I can't login in to my caldera by using default use and password: admin/admin, red/admin

eamongoodwin commented 2 months ago

I was able to successfully login after configuring caldera conf file with host server IP and correct port. Also gained remote access by editing magma .env file with host IP addrsss

l0rddarkf0rce commented 2 months ago

I am having the same issue and nothing seems to work. Which files did you modify? Did you modify them prior to building the docker container?

eamongoodwin commented 2 months ago

It was the default.yml file used with --build --insecure

On Thu, Jun 27, 2024, 2:23 AM l0rddarkf0rce @.***> wrote:

I am having the same issue and nothing seems to work. Which files did you modify?

— Reply to this email directly, view it on GitHub https://github.com/mitre/caldera/issues/3002#issuecomment-2193894674, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARGBAFPHTNMSYNI65OWM4GDZJOVXPAVCNFSM6AAAAABJJDOZJKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJTHA4TINRXGQ . You are receiving this because you authored the thread.Message ID: @.***>

l0rddarkf0rce commented 2 months ago

thanks for the response. in caldera/conf/default.yml did you modify the IP address in only in the host line or did you also changed app.contact.http? also did you changed any of the other lines that have IP addresses?

tonymm2331 commented 2 months ago

am getting the same the web gui isn't responding the default credentials

elegantmoose commented 1 month ago

@l0rddarkf0rce @tonymm2331 Apologies for late reply. Did you figure this out?

We also added some documentation here on setting the server configuration with the new UI. --> https://caldera.readthedocs.io/en/latest/Server-Configuration.html#configuration-file

n0-ind3x commented 1 month ago

Figured this one out..

After building Caldera docker image and starting i noticed that the below config file is referenced. 2024-07-26 14:11:32 INFO Using main config from conf/local.yml server.py:235

If you navigate to the root caldera folder you cloned github project to and navigate to the "conf" directory - the "local.yml" file does not exist.. but "default.yml" has all the information required, most importantly including the username and passwords for red, blue and admin accounts..

For the sake of testing.. i copied and then renamed default.yml to local.yml and saved.. went back to caldera root directory then re-built. docker build --build-arg WIN_BUILD=true . -t caldera:server

ran the documented command to run. docker run -p 7010:7010 -p 7011:7011/udp -p 7012:7012 -p 8888:8888 caldera:server

now the correct config file is referenced, and default credentials work..

cfzq088 commented 1 month ago

When you use docker, the docker default command is "python3 server.py", and this command will use local.yml as configure file, I copy default.yml to local.yml, and I can logging in. And I do not know why I cannot logging in if I didn't do this. If you want to use default.yml, maybe you can run: docker run -p 7010:7010 -p 7011:7011/udp -p 7012:7012 -p 8888:8888 --entrypoint=“python3” caldera:server "server.py“ ”--insecure“