Better HN
topnewbestaskshowjobs
Log inSign up

devishard

1,328 karma · joined Jan 27, 2016 (10y ago) · 418 submissions

Submissions

comment 10y ago · link · parent

> My point was correct to the specific attack you broadly described.

But you didn't correct it, you proposed a solution that didn't address the attack I described.

> Your example required a web server attack that allowed arbitrary code execution and privladge elevation; which is a hugely specific attack and it's pretty fair to say it's unlikely (in the case of gaining root access and then choosing to enable SSH, which I'll get to).

The XSS attack is just an example of a vulnerability that wouldn't be addressed by hardening SSH. There are plenty of other vulnerabilities that wouldn't be addressed by hardening SSH.

> Furthermore, and at risk of sounding like a broken record, if an attacker can remotely execute code as root then they have absolutely no need to enable SSH for they already have far easier methods of firing off a remote shell. (To be honest they don't even need root to accomplish this).

There's a good reason to demonstrate SSH access even if they have root access: they might want to show their capabilities without exposing how they gained those capabilities (because knowing how they gained those capabilities would allow the OP to fix the problem).

> This is not a mistake, this is something I've done in practice when auditing security at work.

Just because you've made mistakes in practice when auditing security at work doesn't mean they aren't mistakes.

This isn't even time for a security audit. OP first really needs to do some forensics. A security audit should happen, but it can wait until the vulnerability has been found and fixed.

comment 10y ago · link · parent

That's a reasonable critique, and I think you're right. There exist products that start off without value people would pay for and slowly develop into something with value people would pay for, and Google is a good example.

I guess that leaves room for Twitter to develop into a product people would pay for, but I'm skeptical that can happen without very significant changes to their product, to the point that I'd be hesitant to call it the same product.

comment 10y ago · link · parent

Yeah, I think that having a product people would pay for is a prerequisite to success, but it's not a guarantee of success. I definitely think Uber could lose to a competitor in their product space.

The distinction I'm making here is that I don't think anyone will ever succeed over the long term in Twitter's product space, because they don't have a product people would pay for. A competitor might knock them out for a little while, but no competitor will have lasting success unless they figure out a way to modify Twitter's product into a product people would pay for. And at it's core, Twitter's product is kind of worthless, so I don't think there's a modification that would make it worthwhile.

comment 10y ago · link · parent

Okay, if you want this stated more directly:

I don't know the facts around this case, and frankly, I don't particularly care: that's his business and the business of his victims. If Applebaum is a rapist, he should be in jail, if not he shouldn't. Either way, society has decided that rapists shouldn't be allowed to do good things like contribute to Tor. This means that accusing people of rape (truthfully or not) is a viable attack on projects such as Tor. There's no denying that this incentivizes actors who want to weaken Tor to accuse people such as Applebaum of rape.

I think that at this point, keeping Applebaum involved in the Tor project would be bad for Tor, regardless of whether he did it or not, so conversations about whether or not he did it are rather academic.

If we're going to engage in academic speculation, I do think Applebaum did it. The other members of the Tor project seem to have investigated and concluded that (admittedly it's not 100% clear), and have little reason to lie about it.

However, this doesn't in any way mean that there wasn't foul play. Even if most rape accusations were true, that doesn't mean they all were, or that people came forward for altruistic reasons.

We do need to come up with defenses against the attack where people accuse people of rape to damage the projects they contribute to. One such defense is to not have any players in a project feature so prominently that a hit to their reputation is a hit to the reputation of the project.

comment 10y ago · link · parent

Yeah. But even if they both charged the same amount of money, I think they'd just both go out of business, because nobody is going to pay for what either has to offer.

comment 10y ago · link · parent

Neither of them provide value people are willing to pay for, so that's unsurprising.

comment 10y ago · link · parent

> However, as a game developer with Free-To-Play development PTSD, I think this rule rests on an implied-but-important condition: People are already using and loving the service.

No, that's exactly not what I'm saying. Uber did just fine starting as a pay service as do a great many games, Netflix, HBO, Amazon, etc.

> Imagine that some shiny new app called Spark launches tomorrow and vaguely promises to be Twitter 2.0, well no one would be willing to jump on unless it was free.

Right--that's because Twitter 2.0 is also fucked from the beginning: they don't have something users would pay for any more than Twitter 1.0 did.

> Even $1 a month is too much for us short-attention-spanned smartphone users, as the total shift to F2P games on mobile has shown us. Nothing outside of Minecraft is in the top 100 grossing apps on Android nor iOS.

F2P is basically just an advertising strategy; I'd count that as having something people are willing to pay for, because they're willing to pay for in-game purchases or premium experience subscriptions.

> Perhaps the answer lies in starting free, getting people hooked, and then easing in a subscription fee? This would also come across as a bait-and-switch, as you said, and some users would inevitably flock to the next free clone.

I guess I wasn't clear about this, but I think a bait-and-switch business strategy will work fine if you have something people value enough to pay for. It's kind of pointless, though, IMHO, because it doesn't fail fast: if it turns out you aren't providing people anything they value, then you won't find that out until you get to the "switch" part.

Ultimately, I think the bait-and-switch strategy is just a way to extract money from VCs and offload risk onto them without having to prove your value proposition, but that comes at some significant cost. If I were a VC I'd probably want to invest to build something and then release it for pay up front--that saves the cost of implementing the bait-and-switch strategy.

> Ultimately, and unfortunately, I don't think there's an easy answer to monetization anywhere...

The answer is "provide value that people are willing to pay for", but I agree that's not an easy answer. :)

comment 10y ago · link · parent

Do you disagree with my hypothetical scenarios? That is, do you think if Google/Facebook introduced subscription fees nobody would subscribe?

Would you pay to read Twitter? Do you think that anyone would?

comment 10y ago · link · parent

Okay sure. They can figure out how the attacker got access and fix that, AND harden SSH. They should also audit their logs, install updates, use a linter on their JavaScript, use version control, use a library to sanitize SQL inputs, force HTTPS, do code reviews, and 100 other good development practices that have nothing to do with the problem at hand. I'm glad we agree on that.

Given that the OP doesn't know how to address their immediate problem, however, posting a bunch of random good practices is probably not very helpful.

I contributed something constructive: I recommended figuring out what the vulnerability is and fixing that over fixing random things and hoping you fix the problem by chance.

> I never once suggested this would fix their problems. In fact my language was very clear that my advice would harden against SSH attacks, specifically. However they have asked for next steps and while other people have rightfully focused on the forensics side of the investigation, I have complimented their advice with tips on hardening SSH. One recommendation doesn't have to override another :)

You said, "I was one of the people offering advice on hardening SSH. I mentioned firewalling sshd to a subset of trusted IPs - which would still secure you against the above attack."

If you want to claim you didn't say anything wrong and you were intending to suggest your solution in addition to the solution that actually solves the problem, that's your prerogative, but people can read the post history which shows that isn't true, so it would be more dignified to just admit you made a mistake. Nobody cares that you made a mistake--I'm not attacking you for that. I'm just trying to put up the correct information, since you didn't. It's not about you, so there's not much reason to take it personally, and you're not making yourself look good by claiming you didn't make mistakes that everyone can read.

comment 10y ago · link · parent

My rule is that if nobody would pay for your service, you probably don't have a worthwhile business.

If Google instituted a $0.99 monthly fee to use Google search, people would line up to pay it. They don't have to, because their business model works differently, but they could do that, and it would work. I'd probably pay for an account.

If Facebook instituted a $0.99 monthly fee to use that, a lot of people would do it just because it keeps them in the loop with their friends. And in fact, many people would be willing to pay $2.99/mo for a business account which gets to do more (like post more events or whatever). Again, this isn't their business model, but this would totally work as a business model.

People would pay for Uber de-facto; they do pay for Uber.

Likewise, half my coworkers have bought coin packs in Pokémon Go. In general, lots of games do pay models.

If Twitter added a $0.99/year fee, there would be a clone written in a more scalable architecture taking all their users within a week. Some businesses would keep Twitter accounts, but that number would decrease as they lost users. Remember that Twitter added some minor advertising and instantly started losing users.

There are tons of other startups with this problem. The idea these days is, get a bunch of users and introduce ads. The problem there is that when you add ads, you're fundamentally changing your service. It's a bait-and-switch. And once you do the switch, if people weren't willing to pay for your service before, they're not going to want to start paying for it in the form of ads.

comment 10y ago · link · parent

> Static+strong typing is a nice combination, which is probably what hacker_9 meant to say.

That's a rather generous interpretation, given that hacker_9 said nothing about strong types, and instead made a claim about static vs. dynamic languages.

I do agree with your assertion, though; learning Haskell and OCaml prepared me for writing Python in ways that many of my peers in the Python community are unprepared. One big example is the difference between str and bytes in Python 3: a lot of Pythonistas find this distinction an annoyance, but I find it extremely useful, largely because I learned how to leverage such type differences to reduce errors from ML family languages.

comment 10y ago · link · parent

Apparently it's new to some people that C is a statically-typed, weakly-typed language.

comment 10y ago · link · parent

Okay, but how do you gather enough information to craft said messages? I posit that there's nothing stopping you from gathering that information at runtime; it just typically isn't done to the same extent in dynamic languages as in ML-family languages.

A type system that gathers lots of type information is equivalent to a strongly-typed language IMHO, and a type system that gathers little type information is a weakly-typed language. Static languages can be strongly typed (Haskell, ML) or weakly typed (C) and dynamic languages can be strong(ish)ly typed (Python) or weakly typed (JavaScript).

comment 10y ago · link · parent

> I mentioned firewalling sshd to a subset of trusted IPs - which would still secure you against the above attack.

No, it doesn't secure you against the above attack. If they can use an XSS to get full access to the server and get the SSH key, then hardening SSH does pretty much nothing, they just whitelist their IP and continue accessing the server. We don't know that they got SSH access via SSH. Until we understand how they gained access to the server, blocking off other means of access that might have nothing to do with how they gained access does nothing.

> I also love how you can take genuinely helpful posts - after all, it's better to harden SSH regardless of whether this specific attack initially came directly from SSH - and somehow turn those contributions into something negative. God bless internet messageboards.

Sure, hardening SSH is always a good idea, but until we actually understand how the SSH access was obtained, we don't know that it fixes the immediate problem. It absolutely is negative to give people information that persuades them their problem has been solved when it hasn't been solved.

I don't see any reason for you to take my post personally. It's not an attack on you, it's just pointing out that we need more understanding of the problem to actually solve it. Don't shoot the messenger.

comment 10y ago · link · parent

To people focusing in on securing SSH: just because the person has SSH access doesn't mean that they got it through SSH. It's possible that they brute forced the password or whatever, but there's a ton of attack surface on a website and many ways they could have gotten access. If they got it through for example an XSS attack and got the SSH password/keys, securing SSH doesn't stop them from doing the same thing again.

comment 10y ago · link · parent

This is not only missing the point, it's easy to prove false:

Python: `foo = '1' + 1` gives `TypeError: Can't convert 'int' object to str implicitly`

C: `char bar[] = "1"; char* foo = bar + 1;` gives literally no error.

Good errors occur because of strong/weak typing, not because of static/dynamic typing.

comment 10y ago · link · parent

> The game has had a clear impact on this kid's life.

The game has been out for 8 days. So no, it has not had a clear impact on his life.

> Interested to see studies on the long term impact on children with autism playing this game. If there is any lasting impact on socialization.

Yes, that would be interesting.

comment 10y ago · link · parent

As a white man, I definitely think that the problems of gender in tech are still huge and I'd like to help address them. But I also feel like I can't help, because people, both black and white, are so tense about race. As a white man, literally even talking about race is risking being called a racist. And god forbid I have an actual opinion that might disagree with a person of color--even though people of color don't even agree on everything.

For example, I think that the reason people mistake the author of this piece for other black men is that white people have spent most of their lives around other white people, so they become accustomed to the kinds of differences in facial features that white people have. We have less practice differentiating between the facial features of black people, so naturally we're going to be worse at it. It's not malicious or racist.

And in my lifetime, I've had a few people just outright say to me that all white people look the same to them. Which isn't offensive--it's because they grew up around people who looked like them, and have less practice differentiating between white people.

But tensions are so high, that this innocuous common mistake is seen as discrimination merely because it's related to race, not because of any malice or even intent behind it. And I'm quite sure that many people would call me racist for even having the opinion that mistaking people of color for other people of color isn't racist. Even though it could actually be helpful to people of color. If people of color see that white people don't have trouble recognizing you because they dislike you, but because you literally look different from people who they have practice recognizing, that might encourage confidence.

And to be clear, I'm not complaining. It doesn't hurt me at all to keep my mouth shut, and not say anything on the topic of race. The only people who are hurt by my not helping are people of color. Which sucks, but is the result of how tense people (both black and white) are about race.

In short, everyone (of all colors) should chill out and focus more on the problems that are clearly problems, not just assuming anything any white person says or does that is race related is racist. That just alienates allies and makes people of color feel hurt.

EDIT: I do want to point out that while I don't think mistaking one person of color for another is racist, I do think that many of the behaviors the writer of this piece pointed out are racist. I don't want to say that what the author wrote is all incorrect or invalidate his opinion.

EDIT 2: A flurry of downvotes without responses prove my point--people can't point out logically why they think I'm racist, but they downvote to express that they think I am. :)

comment 10y ago · link · parent

Okay, given that this is a legal matter, your pedantry is warranted, I guess.

comment 10y ago · link · parent

God that's a horribly confusing way to report that bug. Why not something like?

    #include <stdio.h>

    int main (void)
    {
      signed char one = 1;
      unsigned char coerced_to_positive_255 = -1;
      printf ("%d\n", one > coerced_to_positive_255);
      return 0;
    }

comment 10y ago · link · parent

Peter Doig is being sued, the person making the claim says that the painting was painted by a Peter Doige. Note the "e".

comment 10y ago · link · parent

The best part is where you visit the site in Chrome and it still looks terrible. Really, you needed to put an opacity transition on the orange background of each of your comments?

Maybe if the site had a cleaner, simpler design it would be easier to make it work on all browsers.

comment 10y ago · link · parent

That's not "modeling the world", or if it is, it's a very bad model of the real world. Rockets don't render audio.

comment 10y ago · link · parent

I'm not saying that he said rockets render audio, I'm saying that has nothing to do with modeling the real world. If you're criticizing the idea of modeling the real world, we should talk about actual models of the real world.

comment 10y ago · link · parent

Okay, given your understanding of what he said, I can see why you might agree with him (although I don't), but critically, that's not what he said.

comment 10y ago · link · parent

So basically, you're a victim because Valleywag claimed you said:

> I could sell my home right now and buy a shed in Silicon Valley.

> I would gladly sit through six or seven months of Chicago winter to experience fall.

> San Francisco has more pets than kids.

...and you didn't say those things? And you were worried that people would react negatively to that?

Seriously? The first and third things are things I'd actually say, because they're true. The second one is more of a matter of opinion; for all my SF hate their weather is pretty nice, but if you like cold good on you. Nobody cares.

The victimhood complex that so many people have these days is bad, but this level of fear that you'll offend someone is much worse, IMHO. If you can't complain about SF housing prices because it might hurt someone's feelings, you've got a bad problem.

comment 10y ago · link · parent

>> > And even in an OO language, no decent practitioner writes one-class-per-object.

> But that's the stereotypical example of OO design. You have duck->paint(), duck->quack(), duck->plunge() all in one class (file) and of course the dependency mess and the scattering of aspects throughout the project.

So much nonsense here. One class per object is absolutely not the stereotypical example of OO design. class != file. And dependency management is usually a problem because junior devs pull in a billion half-baked libraries to solve a problem--it's not an inherent problem with OO and it's certainly not a problem with trying to model the real world.

I'm not even particularly in love with OO. I particularly think that functional paradigms often do a better job of modeling the real world. What I'm really disagreeing with is the claim that modeling the real world is a bad practice.

> And even if you make more classes, so that your design is more like one class per concept/aspect, I think the criticism of Mr. Acton is: if you have many instances of a given class, then there must be a better way than calling a method on each individual instance.

If that was Acton's criticism, then he should have said that instead of saying that "code should be designed around a model of the world" is a lie. Particularly since if you're acting on a large list of objects, then representing it as if you're going through and then each object is acting is a pretty bad representation of reality.

> In other words, the idea is that classes are fine (they promote modularization), but there shouldn't be more than one instance of each class.

Now you're just confused. Acton specifically was criticizing one instance per class in the section I quoted, and now you're saying that's what he's supporting?

And for the record, if there's only one instance of your class, you didn't need a class.

comment 10y ago · link · parent

> Lots of classes don't have a "real world" equivalent (linked lists, allocators, renderers, finite-state machines, functors, observers, octrees, parsers/loaders...). The "real world" will mostly give you incentive to abuse inheritance, while missing what the interfaces and abstractions are.

This is a pretty myopic view of what exists in the real world. Lists absolutely exist in the real world: a shopping list, a to-do list, a list of messages received. Lists are such a common data structure because they frequently provide a good model of things in the real world, in this case, a way that humans organize sequential items, tasks, or messages.

As for your other examples, sure, some of them are pretty poor pretty poor representations of what exists. And that's a great argument for why you should find a better abstraction. My argument from square one was that you should be modeling your things off the real world.

> everything "Rockety" (audio rendering, video rendering, serialization, target following, collision detection, ...)

Really? In what world do you live where Rockets render audio?

Again, this is just a straw man. What you're describing isn't even attempting to model reality, so you can't use it as a basis for arguing against modeling reality.

comment 10y ago · link · parent

I totally disagree that #2 is a lie. Code should be designed around a model of some part of the world, it's just that what the author is describing is a pretty bad way of modeling the world.

Take this part: "If there's a rocket in the game, rest assured that there is a "Rocket" class (Assuming the code is C++) which contains data for exactly one rocket and does rockety stuff. With no regard at all for what data tranformation is really being done, or for the layout of the data. Or for that matter, without the basic understanding that where there's one thing, there's probably more than one."

This is an enormous straw man. You don't need to be using C++, or even a real OO language, to design your code around a model of the world. I'd go so far as to say that C++ is a pretty poor choice of language for modeling the real world. And even in an OO language, no decent practitioner writes one-class-per-object. That's not how objects are intended to work, and even pretty bad practitioners of OO don't usually screw it up that badly.

And the underlying thing here is that if you model interactions in the real world accurately, at least the parts that are relevant to what you're trying to do, the data transformations and layout tend to fall into place naturally. Of course there are exceptions; we don't have leak-free abstractions yet.

comment 10y ago · link · parent

I don't disagree that everyone has their own idiolect, but I don't think that's generally the most relevant attribute of the way someone speaks at the given moment. I think the group within which they are speaking has a much greater impact; i.e. the dialect I speak with my friends from high school is very different from the dialect I speak in a job interview for an academic software job. Sure, there are some words or structures I use more often that are unique to me, but the differences based on the context of my speech are way larger.
1
456
14