I'm interested in this because I don't fully understand the consequences here. I'd like to gain a deeper understanding through some concrete examples.
With the PHP CLI, I can run:
php -S localhost:8000
With Python3, I can run: python -m http.server 8000 --bind localhost
The demo fails for me in both cases, even though a request to localhost:8000 is sent. (EDIT: The server log in the terminal window does show that the request arrived at the local server).My question is: What is the risk of running one of these servers and then visiting some random web page?
replies(2):