News for hackers. Stuff that matters.
Re:No Easter Eggs in Curl by rgovostes on Monday December 06, 2021 @10:48AM (#29461157)
PHP has some Easter eggs which reveal contributor credits in response to a request with certain GET parameters. This can be used to fingerprint the server version: https://labs.detectify.com/2012/10/29/do-you-dare-to-show-yo...
Re:No Easter Eggs in Curl by DyslexicAtheist on Monday December 06, 2021 @12:14PM (#29462495)
All the CISCO networking solutions contain Easter eggs, that allow you to see everything because you get full root. Haters insist on calling them backdoors of course.
Re:No Easter Eggs in Curl by xylol on Monday December 06, 2021 @02:55PM (#29464734)
If they are security risks, why are they not removed?
Re:No Easter Eggs in Curl by marcosdumay on Monday December 06, 2021 @03:23PM (#29465112)
You can't expect a software distributor to be aware of all of the Easter eggs developers added to its software.

Even after communicating the fact to them several times, and one country or another asking the prison of some high executive. Those things are just too hard to keep track of.

Re:No Easter Eggs in Curl by aaronblohowiak on Monday December 06, 2021 @03:23PM (#29465115)
I believe the person you are replying to is attempting humor.
Re:No Easter Eggs in Curl by colonelpopcorn on Monday December 06, 2021 @10:58AM (#29461296)
I think this is really why we can't "have fun" anymore. Because bad actors exist and can exploit things being done "just for fun". I do wonder, however, how much of the "serious" nature comes from actual bad actors or from the security research community.
Re:No Easter Eggs in Curl by gumby on Monday December 06, 2021 @11:27AM (#29461729)
> I do wonder, however, how much of the "serious" nature comes from actual bad actors or from the security research community.

I think it’s hard to think of the problem that way.

These days* of course you have to worry about security on almost anything you work on. And when you do, the folks who think of security all the time are going to tell you to simplify your interfaces so they are easier to think about, then then armor them. What a pain!

But we do those things because of all the bad actors. The security recommendations are a consequence, not the cause.

* I grew up — literally — in a non-security environment: networked computers with no passwords or any other security. The only “protection” what would be called today kernel space memory barrier just to protect against bugs, and most machines didn’t have that. It was the late 70s and security was considered a barrier to hacking. I knew people working on security and frankly it seemed weird.

Re:No Easter Eggs in Curl by hpoe on Monday December 06, 2021 @11:51AM (#29462148)
Counterpoint. In our org we'd eliminate pretty much every security incident if users would not download attachments on suspicious emails, give out their password and try and click on the monkey to win the iPad.

To quote James Mickens "most of the security reasearch community seems to be obssesed with avant-garde horrors such as the ability to induce a heart attack in those wearing pacemakers during a solar eclipse with a pringles can."

At this point it seems that most of it really is just security theater and most really security actually comes from proper training.

Re:No Easter Eggs in Curl by derekp7 on Monday December 06, 2021 @05:38PM (#29466639)
In my household back around Y2K era (95 - 05), I eliminated a large number of virus infections by having the computer that the kids used set up so them clicking on the AIM icon actually did an X connection over ssh to my Linux server to run GAIM (using Cygwin/X on the Windows side).
Re:No Easter Eggs in Curl by gumby on Monday December 06, 2021 @11:56AM (#29462235)
That quotation simply reflects what’s exciting enough to get attention.

And of course there are the theatrical password rotation and such that cause passwords to be written down in the first place.

But even in this comment stream someone asked who cares if the remote side learns the version number of the code you’re running, and somebody else wrote that security would not be a problem if users didn’t do what they considered foolish things. These pragmatic problems are where the risks lie.

Re:No Easter Eggs in Curl by SAI_Peregrinus on Monday December 06, 2021 @11:49AM (#29462105)
Physical access to computers in the late 70s was decently secured. Most computers were at large businesses (typically with access through a lobby with a receptionist watching) or universities with access limited to students & faculty. So there was some security, not usually great, but few bad actors could get access, even across networks. As computers became more common physical-security-only stopped working well.
Re:No Easter Eggs in Curl by gumby on Monday December 06, 2021 @11:53AM (#29462169)
Indeed. Mysteriously, “firewall” devices later became popular even though they merely replicated the weaknesses of physical security.

Defense at depth is the only way to go, unfortunately.

Re:No Easter Eggs in Curl by howdydoo on Monday December 06, 2021 @11:12AM (#29461520)
It's more of a risk/reward thing. Any code on a networked computer has non-zero risk. And what's the reward... an engineer had fun at work today? That's not a very compelling argument in a business context.

I say this as someone who snuck an easter egg into our product at my last job. Yes, it was fun, but if I had gotten in trouble for it, I would have deserved it.

Re:No Easter Eggs in Curl by Zababa on Monday December 06, 2021 @02:24PM (#29464363)
> I think this is really why we can't "have fun" anymore. Because bad actors exist and can exploit things being done "just for fun".

That's often how things works. With friends we joke around a lot because we know each other well and know there aren't bad actors. At work, I'm way more careful. If there were no cases of harassement, exploitation or things like that at work I may joke around more. But since they exist, I'm more careful. I don't want to harass people, be seen as an harasser, or create an atmosphere were harassers feel welcomed.

When bad actors exist, the way to show good will is to not act like them, so they can be quickly identified and removed.

Re:No Easter Eggs in Curl by tomrod on Monday December 06, 2021 @12:19PM (#29462580)
MoTD and have fun all you want for people who should have access.
Re:No Easter Eggs in Curl by jaden on Monday December 06, 2021 @11:30AM (#29461787)
It looks like they were removed several years ago.

> Update 12-04-2017: This feature was removed in PHP 5.5.

Re:No Easter Eggs in Curl by teejmya on Monday December 06, 2021 @01:02PM (#29463275)
This is precisely why it's useful for fingerprinting -- If you get this response, you know that an old, out of date version of PHP is in use.
Re:No Easter Eggs in Curl by Borgz on Monday December 06, 2021 @06:44PM (#29467309)
The post says that Easter egg only works if 'expose_php' is set in php.ini, which will also report the PHP version in the X-Powered-By header of every response. So it doesn't seem to leak any information that wouldn't already be available.
Re:No Easter Eggs in Curl by _-david-_ on Monday December 06, 2021 @07:29PM (#29467680)
Unfortunately it is (or at least was) enabled by default.
Re:No Easter Eggs in Curl by johannes1234321 on Monday December 06, 2021 @11:03AM (#29461380)
Question is what you gain by knowing the version. Better just fire your arsenal of attacks than waste time trying to figure this out as many sites will hide these things anyways.
Re:No Easter Eggs in Curl by jen20 on Monday December 06, 2021 @11:11AM (#29461511)
By knowing the version, you can more efficiently determine which CVEs may apply, surely?
Re:No Easter Eggs in Curl by dmitriid on Monday December 06, 2021 @11:14AM (#29461542)
The arsenal of attacks includes "let's try and figure out server version", too.

Because if you know the version, it gives you a shortcut, and you can immediately switch to a smaller arsenal designed for that specific version.

Re:No Easter Eggs in Curl by notfed on Monday December 06, 2021 @11:51AM (#29462136)
On an individual basis it's sometimes hard to see the harm in this. But more specifically the problem with version identifiers is that attackers can scan across many servers, iterating which ones have a certain vulnerable version.
Re:No Easter Eggs in Curl by mixedCase on Monday December 06, 2021 @11:10AM (#29461480)
While a bit of an extreme scenario, I can imagine it being useful for high-level actors with their own private vulns which they'd like to keep on the down low unless absolutely necessary.
Re:No Easter Eggs in Curl by mrob on Monday December 06, 2021 @01:05PM (#29463328)
Exploiting a memory corruption vulnerability depends on the exact details of the software version and platform. Attempting the wrong exploit risks crashing the process, which might be noticed and investigated.
Re:No Easter Eggs in Curl by teh_klev on Monday December 06, 2021 @06:02PM (#29466895)
Not sure why you're being downvoted. Your question is reasonable and any attacker worth their salt will fire a full arsenal of all the CVE's at your environment regardless of version.

Hiding version numbers etc is an example of "Security through obscurity" and is a weak defence strategy:

https://en.wikipedia.org/wiki/Security_through_obscurity

Re:No Easter Eggs in Curl by stevenhuang on Tuesday December 07, 2021 @12:55AM (#29469451)
An attacker worth their salt will most definitely not fire all their CVEs at risk of crashing the target process or leaving it in an undefined state.

And your second point is debatable. See defense in depth.