Catch up on stories from the past week (and beyond) at the Slashdot story archive


Forgot your password?
Slashdot Deals: Deal of the Day - 6 month subscription of Pandora One at 46% off. ×

Comment Re:MaraDNS' Deadwood is immune (Score 1) 156

You don't need to be "using" POST to be vulnerable. Unless you've explicitly stopped apache (or your web server of choice) passing on any post variables, or explicitly stopped PHP populating the $_POST array automatically, you will still effectively be using POST.

If you get data in from users via any other mechanism, and then you populate an array with it, you will be potentially vulnerable.

Luckily, sane minimal execution times and memory limits will mitigate any vulnerabilities. It's easy to set these in PHP, unlike some other languages,

Comment Re:Easy patch? (Score 1) 156

A quick way to work around for most websites is to set max_execution_time or max_input_time to realistic values (for most sites 10 seconds or such is fine).

The default max execution time (60 secs) will stall casual DOS attempts, though depending on the setup one malicious call can fill 500k+ of memory in that time, so multiple concurrent calls can bring down a memory-poor server. Setting a lower execution time as above (or if your scripts need time but not memory, setting a lower memory_limit) can lower that memory usage and so raise the bar (to the point where a calling a script in a normal way would be just about as effective a DOS).

In my opinion, it is as much an affect of a legitimate design feature as it is a design flaw, and any attempt to fix it must take that into account.

Comment Re:So True. (Score 1) 244

They're moving away from static compilation in favor of running it in a VM with a JIT.

Which is a complete step backwards if their goal is performance.

They've actually developed this for use in their iterative development process, not for production. It is significantly quicker than the standard PHP engine but doesn't have the overhead of static compilation. Shaves small amounts of time off, but it all adds up. The original HipHop static compiler which they use in production is significantly faster.

Comment Re:much more traditional solution (Score 1) 244

The static version did indeed work for them, it's currently used in production across Facebook. The JIT version was developed for use during development, the existing optimised version of the standard PHP engine they were using wasn't fast enough and had incompatibilities with HipHop. So they developed the JIT version for development to speed iterative development (without the overhead of static compilation), and then they deploy to production. I hate Facebook, I don't have an account, but I do like some of their engineering practises and processes.

Comment Re:Long time Ubuntu User here (Score 1) 798

I've never met anyone who has used Ubuntu and who likes Unity, power user, novice, script kiddie...

Well now you've met at least one, me. Virtually met, anyway.

I'm probably considered a power user (programmer as a day job, using Ubuntu with Unity at work and home), and for me it does what I need, its intuitive and simple, and gets out of my way to let me be productive (or not be productive, depending on my mood!). I can see a few rough edges/bugs, but 11.10 irons most of those out and I still quite like it.

The only lesson for Canonical to learn, in my opinion, is to take a little more time when releasing a major change like this to iron out bugs first. I think that had it have worked as intended straight off the bat, many more people would have seen the broader picture of the benefits it delivers, and we wouldn't be having discussions like this.

Comment Re:inapt comparison (Score 1) 193

"True, but only in 20/20 hindsight. Nobody expected water to enter the basement."

In most floods, basements get flooded. From small "I've let the bath over-flow" type floods to "once in a century tsunami" type floods, basements flood. It really is that simple and obvious.

"For the first part, pretty much nowhere has such terminals."

Yes, and that's a problem, not an excuse.

" For the second part, the dividing line is a couple of hundred miles away and irrelevant."

Not when the portable generators you need are over that line there because there's been an earthquake locally and it is quicker to fly in those remote ones than get local ones to the plant via the earthquake shot road system.

"A 'flaw' again based on 20/20 hindsight, huge assumptions as to the outcome...."

Sort of, but the trouble is, in a disaster scenario you're unlikely to have much information until its too late, as in this case. So you have a choice to either definitely ruin the reactor (at a huge cost) but definitely avert a major incident, or risk a major incident and risk ruining the reactor. You can't see into the future and so you HAVE to take a gamble. Its a major flaw with (any) centralised power system like nuclear. Big risks for big rewards, assuming you win.

Comment Re:Balancing out (Score 1) 473

"Alternatively we could make an active effort to promote effective contraceptives, comprehensive sex ed, and tackle poverty."

Its even easier than that. We promote general education.

Education really is the magic silver bullet to most if not all of the worlds problems. When people are educated, you don't need to promote contraception and tackle poverty, they will work on it for themselves.

Comment Re:Regression tests are for wimps! (Score 3, Informative) 165

While it could have been caught, the bug was actually a result of testing, namely the use of the Coverity static analyzer which flagged up "strcat(passwd, "$");". In this particular case it was safe use strcat, but was erroneously changed to "strlcat(passwd, "$", 1);" to avoid the warning. Its a lesson perhaps that automated tests aren't the silver bullet for avoiding bugs, understanding the code itself is just as important. It also raises the question of whether much of the criticism in the discussions below should be directed at C instead of PHP. I'll stay out of that one...!

You know you've landed gear-up when it takes full power to taxi.