interactsh-web icon indicating copy to clipboard operation
interactsh-web copied to clipboard

Environment Variables Not Being Applied in interactsh-web

Open dam2452 opened this issue 1 year ago • 3 comments

Issue: Environment Variables Not Auto-Applied in interactsh-web

Description

The environment variables provided to the interactsh-web container (e.g., REACT_APP_HOST, REACT_APP_TOKEN) are not automatically applied to the web interface. Despite being set via docker run as -e options, these variables are not used by the application, and the user is required to manually input them in the "Custom Host" section of the GUI.

Steps to Reproduce

  1. Run the interactsh-web Docker container with the following command:

    docker run -it -p 3000:3000 \
      -e REACT_APP_HOST="example.com" \
      -e REACT_APP_TOKEN="123456789abcdef123456789abcdef123456789abcdef123456789abcdef" \
      projectdiscovery/interactsh-web
    
  2. Open the web interface in your browser at http://localhost:3000.

  3. Attempt to use the application without entering any configuration manually.

Expected Behavior

The application should automatically use the provided environment variables:

  • REACT_APP_HOST="example.com"
  • REACT_APP_TOKEN="123456789abcdef123456789abcdef123456789abcdef123456789abcdef"

These values should be pre-filled or directly applied without the need for manual input in the "Custom Host" field in the GUI.

Actual Behavior

The application does not apply the provided environment variables. Instead:

  • The user is required to manually input the REACT_APP_HOST and REACT_APP_TOKEN values in the "Custom Host" section for the application to function correctly.

Environment

  • Docker Image: projectdiscovery/interactsh-web
  • Version: latest
  • Host System: Windows 11 (Docker Desktop)
  • Browser: Chrome

dam2452 avatar Nov 25 '24 14:11 dam2452

Image

dam2452 avatar Nov 25 '24 14:11 dam2452

It looks like the env variables are working with Docker - the issue is that the container is using an old repo, so I'm guessing that it doesn't have the env variables feature and the container needs updating.

docker run -it -p 3000:3000 projectdiscovery/interactsh-web bash

...

root@04c7b0a7cb2b:/app# git log
commit 0642fd2b7d27c2680a4d4cdd73acac37093d76f9 (grafted, HEAD -> master, origin/master)
Author: ehpankaj <[email protected]>
Date:   Sat Jul 30 22:00:20 2022 +0530

    Fixed 'Sever unavailable' error when no data returned in poll request

303sec avatar Jan 24 '25 14:01 303sec

Still hasn't been fixed? I'll try building locally

DanielJoyce avatar Nov 19 '25 23:11 DanielJoyce