intuitem / ciso-assistant-community

CISO Assistant is a one-stop-shop for GRC, covering Risk, AppSec and Audit Management and supporting +57 frameworks worldwide with auto-mapping: NIST CSF, ISO 27001, SOC2, CIS, PCI DSS, NIS2, CMMC, PSPF, GDPR, HIPAA, Essential Eight, NYDFS-500, DORA, NIST AI RMF, 800-53, 800-171, CyFun, CJIS, AirCyber, NCSC, ECC, SCF and so much more
https://intuitem.com
Other
1.06k stars 132 forks source link

Cross-site POST form submissions are forbidden #838

Open shertyben opened 1 day ago

shertyben commented 1 day ago

To Reproduce Steps to reproduce the behavior:

  1. Clone repo git clone --depth 1 --branch v1.7.5 https://github.com/intuitem/ciso-assistant-community.git
  2. cd ciso-assistant-community && vim docker-compose.yml
  3. Edit CISO_ASSISTANT_URL=http://localhost:8443 on both backend and caddy containers
  4. Edit PUBLIC_BACKEND_API_EXPOSED_URL=http://localhost:8443/api on backend container
  5. Add ORIGIN=http://localhost:8443 to backend container
  6. sh docker-compose.sh
  7. Fill in e-mail and password
  8. linx http://localhost:8443
  9. Fill in user and password and click on login
  10. See error Cross-site POST form submissions are forbidden

Expected behavior Open dashboard

Screenshots image

Environment (please complete the following information):

Additional context As per recommandations of this issue https://github.com/intuitem/ciso-assistant-community/issues/227#issuecomment-2061472247, added ORIGIN env variable but keep getting same error.

Below my docker-compose.yml

version: "3.9"

services: backend: container_name: backend image: ghcr.io/intuitem/ciso-assistant-community/backend:latest restart: always environment:

eric-intuitem commented 1 day ago

On port 8443 it is https protocol, not http. Can you try again?

shertyben commented 1 day ago

On port 8443 it is https protocol, not http. Can you try again? Hello Eric, tried also to update http to https but, got same result.

Mohamed-Hacene commented 1 day ago

Hi @shertyben,

I have successfully tried the exact same docker-compose.yml as you, so I think that issue is related to your environment. How are you accessing CISO Assistant, from your VM directly ?

shertyben commented 1 day ago

Hi @Mohamed-Hacene , Yes, i'm trying to connect from the local VM using lynx http://localhost:8443 I keep getting the same error.

Mohamed-Hacene commented 8 hours ago

Ok, will try to test it in the same environment as you and let you know how it was