1,260 karma · joined Nov 2, 2009 (17y ago) · 479 submissions
comment 8y ago · link · parent
1) the original developer's idea of handling an unauthorized /admin request was just to set a redirect header and continue processing the current request .
2) the /admin page had a grid of all the content on the site, with handy 'Delete' links that ran over GET without confirmation.
You can probably guess where this is going – some search bot hit the overview page, ignored the redirect header, saw the content, and dutifully crawled every single link on it…
comment 8y ago · link · parent
[0]: https://en.wikipedia.org/wiki/Entity%E2%80%93attribute%E2%80...
comment 8y ago · link · parent
Do you have any thoughts on how this quagmire can be avoided on the web? I can imagine solutions similar to Ghostery's stub scripts, but putting that in a browser, let alone many browsers, sounds like a large legal problem.
comment 8y ago · link · parent
> Way back in the early 1980s, before each of the bugs in Unix had such a large cult following, a programmer at BBN actually fixed the bug in Berkeley’s `make` that requires starting rule lines with tab characters instead of any whitespace. It wasn’t a hard fix—just a few lines of code.
> Like any group of responsible citizens, the hackers at BBN sent the patch back to Berkeley so the fix could be incorporated into the master Unix sources. A year later, Berkeley released a new version of Unix with the `make` bug still there. The BBN hackers fixed the bug a second time, and once again sent the patch back to Berkeley.
> …The _third_ time that Berkeley released a version of `make` with the same bug present, the hackers at BBN gave up. Instead of fixing the bug in Berkeley `make`, they went through all of their Makefiles, found the lines that began with spaces, and turned the spaces into tabs. After all, BBN was paying them to write new programs, not to fix the same old bugs over and over again.
> (According to legend, Stu Feldman didn’t fix `make`’s syntax, after he realized that the syntax was broken, because he already had 10 users.)
comment 8y ago · link · parent
The key point there is "deleting first". If you assign to a property without deleting it first, it continues to be non-enumerable.
> it's certainly not a matter where MooTools would have to completely rework what they're doing
> it'd be easy enough to use a compatability shim on the site side
MooTools has released a patch for this problem. The problem is indeed the sites that have been built and left to their own devices.
This is not at all dissimilar to Windows dragging around garbage needed "to permit four programs written in 1994 to continue running" [1].
[1]: https://blogs.msdn.microsoft.com/oldnewthing/20031103-00/?p=...
comment 8y ago · link · parent
> Currently, Array.prototype.flatten = mooToolsFlattenImplementation creates an enumerable flatten property, so it’s later copied to Elements. But if we ship a native version of flatten, it becomes non-enumerable, and isn’t copied to Elements. Any code relying on MooTools’ Elements.prototype.flatten is now broken.
> Although it seems like changing the native Array.prototype.flatten to be enumerable would fix the problem, it would likely cause even more compatibility issues. Every website relying on for-in to iterate over an array (which is a bad practice, but it happens) would then suddenly get an additional loop iteration for the flatten property.
> The bigger underlying problem here is modifying built-in objects. Extending native prototypes is generally accepted as a bad practice nowadays, as it doesn’t compose nicely with other libraries and third-party code. Don’t modify objects you don’t own!
comment 8y ago · link · parent
> there's only one file opening, and while there is a potential race condition there, it's with /dev/console. If someone can exploit this race by replacing /dev/console, you've got bigger problems. :)
However, by reading the source one can see that you can now tell beep where it should direct its output (-e, which is not documented anywhere), so the note above is no longer accurate.
I would guess that this is the crux of the problem – the patch that fixes the security issue basically changes "open the output device once for each beep" to "open the output device on startup", greatly reducing the number of races. (It also zeroes out the buffer that's being written to certain output devices, but I have no idea if that is also to patch this security hole or to proactively prevent uninitialized bytes from leaking.)
comment 8y ago · link · parent
And therein lies the bigger problem. As long as this cancerous code style is tolerated, we'll be putting workarounds on top of other workarounds instead of making actual progress.
comment 8y ago · link · parent
comment 8y ago · link · parent
[0]: https://www.damninteresting.com/the-baader-meinhof-phenomeno...
comment 8y ago · link · parent
[0]: https://plugins.jetbrains.com/plugin/7622-php-inspections-ea...
comment 8y ago · link · parent
[0]: https://en.wikipedia.org/wiki/Button,_Button_(The_Twilight_Z...
comment 8y ago · link · parent
[0] https://www.badabring.com/ (link in Danish)
comment 8y ago · link · parent
comment 8y ago · link · parent
comment 9y ago · link · parent
[0]: https://trends.builtwith.com/ssl/root-authority
[1]: https://en.wikipedia.org/wiki/Certificate_authority#Provider...