Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
spiritual bypass
Feb 19, 2008

Grimey Drawer
Have you tried Racket?

Adbot
ADBOT LOVES YOU

Adhemar
Jan 21, 2004

Kellner, da ist ein scheussliches Biest in meiner Suppe.

xtal posted:

Actually it's a PO box

I don’t think that’s the same thing unless there’s been some major PO Box innovation I’m not aware of.

Adhemar fucked around with this message at 10:33 on Feb 1, 2020

netcat
Apr 29, 2008

rt4 posted:

Have you tried Racket?

Not yet, I'm mostly playing around and thought it was funny two major implementations behave so differently on a simple example

QuarkJets
Sep 8, 2008

rt4 posted:

Have you tried Racket?

It's impolite to ask for fetishes in public like this

repiv
Aug 13, 2009

Why is this such a common bug across different hardware and kernels? How hard is it to count upwards? :stonk:

https://twitter.com/mgattozzi/status/1222598434655330304

Dr. Stab
Sep 12, 2010
👨🏻‍⚕️🩺🔪🙀😱🙀

Thermopyle posted:

"What's your address?"
"-21.692941728543° N -43.472103813716° W"
"Alright see you there!"

Typically, you don't need to know someone's address to the micrometer.

Four decimal places is ~10 meter resolution, which is what the word system seems to be.

Here's my new word system: take 10,000 words, sort them alphabetically, and .0001=word 1, and then you live at 21pizza43bicycle, which is near 21pinapple43binoculars

SAVE-LISP-AND-DIE
Nov 4, 2010
What 3 words splits the surface of the earth into 3m squares, so it's trying to compete with other coordinate reference systems and inherently sucks at human postal addresses. It's just not even worth trying to make it work that way - it's like programmers loving time zones, except worse because it's VC backed rent seeking.

In the UK we have a system called OSGB, it's been printed on pretty much every map for the last 80 years. It's better than what3words because


1) it's scalar, you can estimate where somewhere is in relation to somewhere else,

2) it's not proprietary. What 3 words keep their word database secret and charge for it.

3) OSGB works offline, without data, or electricity. If you have these whats the point of optimising for spoken information exchange as what3words does? Just use the GPS

4) I can tell a French person a sequence of letters and numbers and they can understand where I mean, what3words "localisation" is literally untranslatable because they don't release their system.

gently caress what3words, they're literally the worst type of VC startup - using it isn't even a tradeoff of ethics for convenience , their solution is downright worse in every way.

As a piece of work for a regional emergency service I integrated what3words into their system and regret it.

Plorkyeran
Mar 22, 2007

To Escape The Shackles Of The Old Forums, We Must Reject The Tribal Negativity He Endorsed

Adhemar posted:

I don’t think that’s the same thing unless there’s been some major PO Box innovation I’m not aware of.

USPS will forward mail from your PO box to your actual address. Only helps you if you're staying in the same relatively small area though, and a bunch of services will reject PO boxes.

Doc Hawkins
Jun 15, 2010

Dashing? But I'm not even moving!


til about osgb, and the worldwide version: universal transverse mercator

it's cool.

e: i wish there were short names for the parts of zones, though. some middle ground of resolution between "this 60th of earth" and "this exact number of meters east and north"

e2: aha, there's also a USNG which has that subdivision :coal:

e3: alright, i am a big nerd, and i have decided i like MGRS the most, since it is global, but has subdivisions, and easy sub-sub-divisions using more significant digits in the meter measurements

Doc Hawkins fucked around with this message at 19:08 on Feb 1, 2020

Arsenic Lupin
Apr 12, 2012

This particularly rapid💨 unintelligible 😖patter💁 isn't generally heard🧏‍♂️, and if it is🤔, it doesn't matter💁.


OddObserver posted:

And of course the places where anonimization was sort of done printing last four digits was often the choice.
Heck, at least one institution of higher learning used to have last four digits of SSN in e-mail addresses, IIRC.

And nowadays credit card companies and other institutions routinely validate that you are who you say you are by asking for "the last four digits of your social".

Xerophyte
Mar 17, 2008

This space intentionally left blank
what3words seems utterly useless, but at least it spawned angry copy-cats like what3fucks (bad words, apparently down) and what3ducks (species of ducks). Greetings from American Black-Torrent-Freckled!

If you want something slightly less proprietary and made by people who think cities and nations are a useful addressing concept, Open Location Code is google's attempt. If I say I'm at PX25+94, Gothenburg you can google it and immediately know I'm a fish-worshiping pervert.

Thermopyle
Jul 1, 2003

...the stupid are cocksure while the intelligent are full of doubt. —Bertrand Russell

Xerophyte posted:

what3words seems utterly useless, but at least it spawned angry copy-cats like what3fucks (bad words, apparently down) and what3ducks (species of ducks). Greetings from American Black-Torrent-Freckled!

If you want something slightly less proprietary and made by people who think cities and nations are a useful addressing concept, Open Location Code is google's attempt. If I say I'm at PX25+94, Gothenburg you can google it and immediately know I'm a fish-worshiping pervert.

Yeah, this is what I already posted. Google calls their OLC addresses "plus codes". This scheme supposedly takes care of the "what is this address close to?" problem of what3words.

Volmarias
Dec 31, 2002

EMAIL... THE INTERNET... SEARCH ENGINES...

Thermopyle posted:

Yeah, this is what I already posted. Google calls their OLC addresses "plus codes". This scheme supposedly takes care of the "what is this address close to?" problem of what3words.

Honestly it's a pretty neat idea with real world application which is why I expect it to get turned down and deleted in a year or two.

putin is a cunt
Apr 5, 2007

BOY DO I SURE ENJOY TRASH. THERE'S NOTHING MORE I LOVE THAN TO SIT DOWN IN FRONT OF THE BIG SCREEN AND EAT A BIIIIG STEAMY BOWL OF SHIT. WARNER BROS CAN COME OVER TO MY HOUSE AND ASSFUCK MY MOM WHILE I WATCH AND I WOULD CERTIFY IT FRESH, NO QUESTION
Came across this in the Twitter thread someone just posted. I call it npm.txt. Be sure to read the response from the project owner.

https://github.com/lodash/lodash/pull/4518

tldr; security vulnerability in highly used npm package, severity is high, starts breaking builds due to security issues. Someone makes the extremely tiny change to fix the issue and submits a PR. After 4 months PR is still not merged because the project owner doesn't consider it worth his time to hit merge.

putin is a cunt fucked around with this message at 05:35 on Feb 2, 2020

Xik
Mar 10, 2011

Dinosaur Gum

quote:

This package gets more downloads than react, jquery, angular, and vue combined. It is relied upon by your financial institutions, your healthcare providers, your critical infrastructure, and many of your other national security interests.

Hold up I'm just grabbing this tiny violin for all these massive for-profit organizations relying on this dude's hobby project and his volunteer time.

After he said it wasn't worth his time no one from these big companies complaining about their static analysis tools replied saying "we will make it worth your time" $$$.

Have a look at the dudes activity, he has been working solid on open source stuff for like 10 years, but in the last 9 months has tapered off. Probably got a life or had a family or whatever.

QuarkJets
Sep 8, 2008

SAVE-LISP-AND-DIE posted:

What 3 words splits the surface of the earth into 3m squares, so it's trying to compete with other coordinate reference systems and inherently sucks at human postal addresses. It's just not even worth trying to make it work that way - it's like programmers loving time zones, except worse because it's VC backed rent seeking.

In the UK we have a system called OSGB, it's been printed on pretty much every map for the last 80 years. It's better than what3words because


1) it's scalar, you can estimate where somewhere is in relation to somewhere else,

2) it's not proprietary. What 3 words keep their word database secret and charge for it.

3) OSGB works offline, without data, or electricity. If you have these whats the point of optimising for spoken information exchange as what3words does? Just use the GPS

4) I can tell a French person a sequence of letters and numbers and they can understand where I mean, what3words "localisation" is literally untranslatable because they don't release their system.

gently caress what3words, they're literally the worst type of VC startup - using it isn't even a tradeoff of ethics for convenience , their solution is downright worse in every way.

As a piece of work for a regional emergency service I integrated what3words into their system and regret it.

what3words is the bitcoin of geolocation implementations, so expect morons to flock to it en masse

Jabor
Jul 16, 2010

#1 Loser at SpaceChem

Xik posted:

Hold up I'm just grabbing this tiny violin for all these massive for-profit organizations relying on this dude's hobby project and his volunteer time.

After he said it wasn't worth his time no one from these big companies complaining about their static analysis tools replied saying "we will make it worth your time" $$$.

Have a look at the dudes activity, he has been working solid on open source stuff for like 10 years, but in the last 9 months has tapered off. Probably got a life or had a family or whatever.

The objection is literally that the npm ecosystem relies on random projects controlled by one dude that hasn't updated in 9 months, and when there's an issue in one of those packages the only way to get it fixed is to convince the owner of that project to care.

People care enough to have already written the patch! The only thing stopping it is that the only person with the authority to actually update the version everyone uses doesn't give a poo poo!

e: are you suggesting "extort people for money if they want to fix your security vulnerabilities" should be the business model for npm projects as a matter of course?

pokeyman
Nov 26, 2006

That elephant ate my entire platoon.
"My jenkins build is broken because unpaid dude hasn't merged a patch" is an indictment of everyone involved other than unpaid dude. Cache your dependencies, figure out how to override a dependency, and stop pretending it's production code when it's written on the back of a used napkin.

(I would not be remotely surprised to learn that you cannot override dependencies using npm, in which case lol but also find working tools.)

Xik
Mar 10, 2011

Dinosaur Gum
I will never defend the hilarious dumpster fire that is npm

Jabor posted:

e: are you suggesting "extort people for money if they want to fix your security vulnerabilities" should be the business model for npm projects as a matter of course?

But yeah for sure do this, people want this dudes time because he spent X years creating value for all these companies and now he is saying he has other priorities that no longer match theirs. If you want to convince him to do what you want then offer a bunch of $$$$. The code is right there in the repo released under an open license, these companies can patch locally or maintain a fork if it's so critical to their infrastructure.

Also companies usually call it service agreements not extortion, but I mean, I think you're on to something here.

Xarn
Jun 26, 2015
What if the both things can be true? NPM ecosystem is a hilarious trashfire and big corps are only allowed to complain when they aren't trying to profit off free stuff?

Hammerite
Mar 9, 2007

And you don't remember what I said here, either, but it was pompous and stupid.
Jade Ear Joe

Xarn posted:

What if the both things can be true? NPM ecosystem is a hilarious trashfire and big corps are only allowed to complain when they aren't trying to profit off free stuff?

This seems like a good takeaway to me.

Rather than us have a multi-page digression on the ethics and politics of open-source and of companies seeking to exploit it as a resource. A topic that's worthy of/worth containing in (depending on how you see it) its own thread really (and there is an active one in YOSPOS right now).

The linked Github thread makes a lot of references to something called "prototype poisoning". I had never head of this before. A search turned up this explanation: https://medium.com/intrinsic/javascript-prototype-poisoning-vulnerabilities-in-the-wild-7bc15347c96

People use this language? like, to do more than just write web pages?

Volte
Oct 4, 2004

woosh woosh
Don't worry everyone, maybe the lodash guy will transfer the repository to someone else to maintain, which will solve this whole thing.

Qwertycoatl
Dec 31, 2008

Why is some untrusted string getting eval()ed anyway, half-assed sanitisation regex or not?

Ghost of Reagan Past
Oct 7, 2003

rock and roll fun

Hammerite posted:

I named my street Church Lane and the next street Church Lanе and all these loving incompetent postal workers are constantly complaining that they can't tell the difference as if that's my loving problem!!!

pokeyman
Nov 26, 2006

That elephant ate my entire platoon.
I didn't think "stupidity of street names" was on my list of considerations for where I'd want to live, but I guess I'm learning new things about myself.

ynohtna
Feb 16, 2007

backwoods compatible
Illegal Hen
Notice to all citizens:
Due to a regretful data migration error, all postal items will now and henceforth be delivered to 0 null void.

Volmarias
Dec 31, 2002

EMAIL... THE INTERNET... SEARCH ENGINES...
Do this for anything marked *auto* and you've just made a whole lot of people happy

ultrafilter
Aug 23, 2007

It's okay if you have any questions.



Queens is just so goddamned special.

xtal
Jan 9, 2011

by Fluffdaddy
How is it that javascript development just keeps getting worse and worse? Y'already had left-pad

Presto
Nov 22, 2002

Keep calm and Harry on.

ynohtna posted:

Notice to all citizens:
Due to a regretful data migration error, all postal items will now and henceforth be delivered to 0 null void.

I got a letter from a lawncare company once that opened with "Hello, NULL!"

redleader
Aug 18, 2005

Engage according to operational parameters

Presto posted:

I got a letter from a lawncare company once that opened with "Hello, NULL!"

i don't think there's a person alive who hasn't received at least one email with broken templating

Carbon dioxide
Oct 9, 2012

Actually, the most common "broken mail" thing I get in my mailbox are mails sent by some sort of newsletter mass-mail tooling where the from address is not set correctly to an address belonging to the newsletter's domain. If they have links in them or something that don't match the from address domain, gmail's spam filter, at least, dumps them directly into spam.

JawnV6
Jul 4, 2004

So hot ...

repiv posted:

Why is this such a common bug across different hardware and kernels? How hard is it to count upwards? :stonk:

https://twitter.com/mgattozzi/status/1222598434655330304

Having worked on the silicon side, rust whining about ‘silicon bugs’ strikes me as incredibly immature. Calling their own misunderstanding of speculative execution someone else’s bug.

repiv
Aug 13, 2009

JawnV6 posted:

Having worked on the silicon side, rust whining about ‘silicon bugs’ strikes me as incredibly immature. Calling their own misunderstanding of speculative execution someone else’s bug.

The platform APIs they are calling are explicitly supposed to be monotonic, how is that not someone else's bug?

e.g. on Windows they are calling QueryPerformanceCounter and MSDN is pretty unambiguous on the matter



I know there are footguns related to using RDTSC directly but that's not what Rust is doing

repiv fucked around with this message at 20:16 on Feb 3, 2020

raminasi
Jan 25, 2005

a last drink with no ice

redleader posted:

i don't think there's a person alive who hasn't received at least one email with broken templating

My girlfriend received a recruiting email to [DIVERSITY CANDIDATE] once.

Suspicious Dish
Sep 24, 2011

2020 is the year of linux on the desktop, bro
Fun Shoe

Qwertycoatl posted:

Why is some untrusted string getting eval()ed anyway, half-assed sanitisation regex or not?

So what's going on is that _.template(), which has been removed in the latest version of lodash, generates JS code at runtime and runs new Function() to compile the template.

As a convenience for debugging, it allows you to put in a special //# sourceURL=./foo/myTemplate.js which debuggers can pick up and map back to the original. In theory, if someone passes in { sourceURL: "foo\nalert('haxx0r lol')" }, then it will run that code. But is a check in lodash for this to sanitize such newlines, but it doesn't quite check correctly. It checks for \r and \n, but forgot about the Unicode newlines.

Now, no sane person would ever explicitly pass in an untrusted sourceURL to begin with. That's where prototype poisoning comes in. Inheritance in JavaScript works differently than some others. Objects chain their properties from a parent, and every normal {} object shares a global parent, called "Object.prototype". If someone is able to somehow modify Object.prototype to add a sourceURL property with an attacker-controlled value, then this turns it into an RCE. Note that prototypical inheriance this isn't specific to JavaScript, lots of languages work this way.

Much like return-oriented programming, the exploit isn't necessarily in lodash, it's just a gadget here. lodash just has a conveniently obvious eval in the form of _.template. The real exploit is what let someone modify Object.prototype, since that can do damage literally anywhere.

That said, _.template is an awful idea to begin with. That's why it was removed in future versions of lodash. Sanitizing the sourceURL for unicode is also a bit of a weak fix. But hopefully that explains what's going on.

Suspicious Dish
Sep 24, 2011

2020 is the year of linux on the desktop, bro
Fun Shoe
Also npm isn't any worse than Perl's CPAN, Ruby Gems and Python's PyPI. Similar security disasters are starting to happen there.

Qwertycoatl
Dec 31, 2008

Thanks for the explanation. I'm glad my job just uses noted non-secuity-nightmare language C.

pokeyman
Nov 26, 2006

That elephant ate my entire platoon.

Suspicious Dish posted:

Also npm isn't any worse than Perl's CPAN, Ruby Gems and Python's PyPI. Similar security disasters are starting to happen there.

It's strictly worse in that JavaScript has (had?) a woeful stdlib and for some reason JS people drag in a dependency for every single line of code. Though I guess you could argue that's not inherent to npm.

Adbot
ADBOT LOVES YOU

Suspicious Dish
Sep 24, 2011

2020 is the year of linux on the desktop, bro
Fun Shoe
Yeah, the culture of node/npm is somewhat different than the traditional culture of those other languages. I think a lot of that came down to how relatively easy it was to run npm install, compared to virtualenv/setuptools/pip or whatever, and again, the pretty miserable stdlib experience in node.

But now that those tools are starting to get easy to use and commonplace, and Python is starting to see even bigger adoption because of TensorFlow + PyTorch, we're seeing more and more security issues, e.g. https://twitter.com/x0rz/status/994116668086542336

I remember reading long, long ago that someone went to a big Ruby conference and handed out cards that said "sudo gem install farts" or something and all that package did was ping home how many times it was ran and how often it was ran with sudo, and the answer was a depressingly large amount.

And this was years before node.js even existed.

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply