Score:0

Nginx gunicorn socket path obtained

ru flag

Have recently had some suspicious requests to my Nginx server running Django.

[Django] ERROR (EXTERNAL IP): Invalid HTTP_HOST header: '/home/path/to.sock

Location block

  location / {
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_pass http://unix:/path/to/sock.sock;

Somehow the bot or person has obtained the correct proxy_pass path and tried to run it through curl (or some other program).

Just wondering how they would have obtained this and if my configuration could be more secure?

Thanks

djdomi avatar
za flag
you should check Your application maybe it provides the necessary information?
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.