I am not sure if this is the right sub, but yesterday I was having some issues with login with my user and was getting 403 error if I am not wrong and noticed that the NGINX version is exposed, which is a bad practice.

So if someone from the admins of Lemmy.world see this message, maybe they can change the NGINX config and hide the version flag by setting “server_tokens off;”.

49 points

This really should be the default behavior, IMO.

permalink
report
reply
35 points
*
Deleted by creator
permalink
report
parent
reply
21 points

My pet theory is that NGINX was designed by a pen-tester who realized that all they needed to do to make the majority of SMBs expose their web servers to the internet was outperform Apache

permalink
report
parent
reply
0 points

They’re not THAT bad…

Besides, the distro packager could also do something about it.

permalink
report
parent
reply
49 points

Thanks for the tip, I changed it.

permalink
report
reply
36 points
*

They likely won’t see this unless you tag them or cross post to !support@lemmy.world

That said, I suspect the version is what’s standard in the docker image, so hidden or not, it’s easy to discover.

Edit: on the other hand, does the latest nginx get pulled at time of creation?

permalink
report
reply
9 points

Edit: on the other hand, does the latest nginx get pulled at time of creation?

It depends on how you have your docker compose file set up. If you pin the version, no, it’s never going to get updated unless a new version with that exact tag is released. If you omit the tag, it’s going to default to whatever is tagged as latest in the image repository, and that’s only going to actually update the image when you either manually pull the image or relaunch the compose stack.

If you want it to auto-update without relaunching the stack or manually pulling the latest image, you’d have to set up something like Watchtower and have it monitor that container.

permalink
report
parent
reply
8 points

Ugh, I didn’t know, thanks for tagging them.

permalink
report
parent
reply
5 points

I didn’t tag anyone–its a link to the support community. If you don’t get any traction in a day or so, you can look at some of the names of admins posting in there and tag them with “@user@lemmy.world”

permalink
report
parent
reply
7 points

@TheSpookiestUser@lemmy.world did it work? Is this in your inbox?

permalink
report
parent
reply
3 points

Does this actually work to notify someone on Lemmy?

permalink
report
parent
reply
3 points

I clicked on the link but I can’t contact or write them anything.

permalink
report
parent
reply
16 points

Might as well hide the version, but if someone is going to try an exploit, they’ll just try it and see whether it works.

permalink
report
reply
18 points

Yeah, this post is giving me “security through obscurity” vibes.

permalink
report
parent
reply
10 points

Obscuring version numbers is best practice. Trying exploits isn’t always trivial and by knowing the exact version number of the software it can be made a whole lot easier. Good post by OP though I do think it should’ve been a DM to Ruud.

permalink
report
parent
reply

General Discussion

!general@lemmy.world

Create post

Welcome to Lemmy.World General!

This is a community for general discussion where you can get your bearings in the fediverse. Discuss topics & ask questions that don’t seem to fit in any other community, or don’t have an active community yet.


🪆 About Lemmy World

🧭 Finding Communities

Feel free to ask here or over in: !lemmy411@lemmy.ca!

Also keep an eye on:

For more involved tools to find communities to join: check out Lemmyverse and Feddit Lemmy Community Browser!


💬 Additional Discussion Focused Communities:

Rules

Remember, Lemmy World rules also apply here.
  1. See: Rules for Users.
  2. No bigotry: including racism, sexism, homophobia, transphobia, or xenophobia.
  3. Be respectful. Everyone should feel welcome here.
  4. Be thoughtful and helpful: even with ‘silly’ questions. The world won’t be made better by dismissive comments to others on Lemmy.
  5. Link posts should include some context/opinion in the body text when the title is unaltered, or be titled to encourage discussion.
  6. Posts concerning other instances’ activity/decisions are better suited to !fediverse@lemmy.world or !lemmydrama@lemmy.world communities.
  7. No Ads/Spamming.
  8. No NSFW content.

Community stats

  • 651

    Monthly active users

  • 553

    Posts

  • 11K

    Comments