News for hackers. Stuff that matters.
Re:You don’t need a password. Posterous fail. by jcnnghm on Friday June 18, 2010 @08:28AM (#1441973)
It's possible to forge headers in certain circumstances. It's not easy. And this is the first time this has happened.

It's ridiculously easy to forge email headers. Headers are manually created whenever programmatically sending email messages. That's how messages can be sent from addresses that don't exist, like [email protected] or [email protected]. They don't even send a confirmation email that you have to approve before stuff is posted?

Re:You don’t need a password. Posterous fail. by jcnnghm on Friday June 18, 2010 @08:38AM (#1441992)
Headers are manually created whenever programmatically sending email messages

To clarify this a little, in case anyone isn't familiar, to send an email message programmatically, you basically just send a string with some headers and body content to the email server. Here are what the headers look like:

  Date: Sat, 13 Jun 2009 06:53:06 -0400
  From: Mail Delivery Subsystem <MAILER-DAEMON>
  Message-Id: <200906131053.n5DAr2Nv025105@jclinux>
  To: <root@jclinux>
To change the sender, all you'd need to do is change the from line. For example:

  From: Steve Jobs <[email protected]>
A default sendmail implementation will deliver that message all day. Email headers should never be used for authentication.
Re:You don’t need a password. Posterous fail. by robinduckett on Friday June 18, 2010 @08:44AM (#1442008)
That was my point. When I read in his article that he wasn't requiring a password to post, I thought I'd see if he was telling the truth, turns out he was.
Re:You don’t need a password. Posterous fail. by adamsmith on Friday June 18, 2010 @12:39PM (#1442769)
But most major domains use domain keys / DKIM.

http://en.wikipedia.org/wiki/DKIM

As far as I understand it, you can't fake being an SMTP server sending mail from such a domain because their emails get signed with a private key whose matching public key is published by DNS.

Re:You don’t need a password. Posterous fail. by geocar on Friday June 18, 2010 @01:26PM (#1442971)
There are several ways to defeat DKIM here:

• If you can break DNS, you can get an NXDOMAIN reply, making recipients think there aren't any domainkeys

• If the domainkey private key is small, you can factor it. There's an article on HN's frontpage right now about this.

• If the server uses domainkeys, but it doesn't specifically verify the From: header, an attacker can still forge a message if they share a popular mail provider with their target. I don't know if this is still practical.

• Stupidity. DKIM is difficult to test, and as a security measure it would need to be tested.

An autoreponse confirmation would be immune to all of these attacks and would be trivial to implement correctly.

Re:You don’t need a password. Posterous fail. by apphacker on Friday June 18, 2010 @01:48PM (#1443039)
An auto-response confirmation would make posterous suck.
Re:You don’t need a password. Posterous fail. by geocar on Sunday June 20, 2010 @08:18PM (#1447497)
and yet DKIM is insecure for sender authentication.
Re:You don’t need a password. Posterous fail. by edanm on Friday June 18, 2010 @08:38AM (#1441991)
As I understand it, they send you a mail telling you about the post and letting you remove it. Not perfect, but probably works 99% of the time.
Re:You don’t need a password. Posterous fail. by loewenskind on Friday June 18, 2010 @08:57AM (#1442033)
99% of the time? So if someone decides to trash my reputation they can just post a bunch of stupid blog entries as me and it is on me to (a) detect that this even happened by checking my mail, (b) go do whatever work needed to remove the post and (c) try to explain to everyone what happened (likely causing even more people to do it when they realize how ridiculous the system I'm using is) and salvage my reputation?

That doesn't sound like "works 99% of the time" to me, that sounds like an epic fail.

EDIT: It appears that this was more of a configuration issue, so the above only applies if you set up your account this way.

Re:You don’t need a password. Posterous fail. by isleyaardvark on Friday June 18, 2010 @09:23AM (#1442108)
You can already post a bunch of stupid blog comments as someone else, as long as people realize Posterous has a similar problem, it's not going to ruin your life. (Plus, (a) doesn't seem to be that big of a problem for a service you're using your email to access.)
Re:You don’t need a password. Posterous fail. by macrael on Friday June 18, 2010 @12:47PM (#1442812)
Commenting on someone's site using a different name is pretty different from being able to fake a post. I have no expectation that comments are written by who they say they are, but I do expect all the posts to be written by the same person.
Re:You don’t need a password. Posterous fail. by edanm on Friday June 18, 2010 @04:49PM (#1443519)
Clarification: by 99%, I meant it works for 99% of users, whom no one will ever try and attack. Obviously it's just my opinion.
Re:You don’t need a password. Posterous fail. by leftnode on Friday June 18, 2010 @09:24AM (#1442116)
Shouldn't it work oppositely? Prevent the post from appearing until you explicitly approve it from a link in an email.
Re:You don’t need a password. Posterous fail. by k33n on Friday June 18, 2010 @11:39AM (#1442512)
Sort of defeats the purpose of Posterous though. It's nice to be able to send an email and be done with it. Though for an account coming under constant attack, it'd be nice to have the option though.

Edit: What they should really do is obfuscate the posting email addresses a little. Make my posting email [email protected], and give me the option to change it to something else if I am coming under attack.

Re:You don’t need a password. Posterous fail. by dimarco on Friday June 18, 2010 @01:42PM (#1443024)
I don't think it defeats the purpose, so to speak, since it's verified by another email. You never have to leave your email client.

It's certainly and extra step that takes away from the smooth flowing process already set in place, though.

Re:You don’t need a password. Posterous fail. by megamark16 on Friday June 18, 2010 @09:41AM (#1442168)
Yes, and unless I'm missing something I don't see a way to turn this type of confirmation-before-posting functionality on.
Re:You don’t need a password. Posterous fail. by dcurtis on Friday June 18, 2010 @10:51AM (#1442372)
I updated the post to reflect reality.

Usually, Posterous catches this stuff and sends an email asking you to confirm that you really are you. They analyze the headers more closely than just looking at the name. For some reason, this didn't work in this case.

Re:You don’t need a password. Posterous fail. by coderdude on Friday June 18, 2010 @10:53AM (#1442375)
According to him he just changed his email address to your email address in Outlook.

Edit: dcurtis edited his comment. Originally he claimed there was some kind of secret algorithm that prevents spoofing.

Re:You don’t need a password. Posterous fail. by loup-vaillant on Friday June 18, 2010 @11:57AM (#1442590)
But, if they only analyse the headers, they are screwed anyway. Don't they also check the IP of the SMTP server as well or something?
Re:You don’t need a password. Posterous fail. by borisk on Friday June 18, 2010 @08:39AM (#1441993)
Headers are name/value pairs, a typical email will have 20 of those. It's possible to copy them if you have received an email from the blog owner or maybe from a mailing list post.
Re:You don’t need a password. Posterous fail. by crc5002 on Friday June 18, 2010 @10:29AM (#1442304)
You only need to know the owner's email address.

Access to a message or a mailing list post by them won't provide any further advantage.

Re:You don’t need a password. Posterous fail. by borisk on Friday June 18, 2010 @03:08PM (#1443290)
Email address is not enough. This one case was a coincidence.

"We had a specific problem with the way we dealt with SPF records. Dustin didn't set any up, and there was a specific way that Robin Duckett's email server responded that caused us to flag it as a false negative for spoofing."

Re:You don’t need a password. Posterous fail. by crc5002 on Friday June 18, 2010 @03:40PM (#1443377)
I think he said that: The blog owner's email host did not provide SPF protection; the intruder's email host appended some headers that lured Posterous to classify the email as genuine.

So, having access to the blog owner's email headers would not have provided any additional advantage to the intruder.

Re:You don’t need a password. Posterous fail. by kwyjibo on Friday June 18, 2010 @08:37AM (#1441988)
No, they don't.
Re:You don’t need a password. Posterous fail. by ergo98 on Friday June 18, 2010 @01:15PM (#1442930)
I honestly am at a loss to understand how Dustin Curtis keeps getting linked from here.
Re:You don’t need a password. Posterous fail. by a4agarwal on Friday June 18, 2010 @02:18PM (#1443140)
Hey guys. I'm the cofounder of Posterous.

Yes, someone did figure out how to post to Dustin's site today. This security hole is now fixed.

We had a specific problem with the way we dealt with SPF records. Dustin didn't set any up, and there was a specific way that Robin Duckett's email server responded that caused us to flag it as a false negative for spoofing.

For the vast majority of users who use gmail, hotmail or other services, this was never an issue.

Since our launch on day one, we have taken email spoof detection very seriously. It's one of our core differentiators: to be able to securely post to your blog by emailing a single, easy to remember address. We don't want to do secret addresses or secret words.

Over the past 2 years, we've developed robust spoof detection ip and spend a ton of time trying to stay a step ahead of hackers. Fortunately, we've only had a few very specific, isolated cases where one of our sites was spoofed and each time we have improved our system.

Thanks for bringing this to our attention. We always need to be one step ahead of the hackers/spoofers, and we thank the Hacker News community for keeping us on our toes!

Re:You don’t need a password. Posterous fail. by uhspot on Tuesday June 29, 2010 @06:58PM (#1473203)
Hi,

Is it possible to publish the algorithms and technique you are using to prevent spoofing. It would really be a big help to us as well as every body else.

Thanks,

Al

Re:You don’t need a password. Posterous fail. by robinduckett on Friday June 18, 2010 @08:33AM (#1441983)
I did it. Sorry Dustin. It really was me. I changed one field in outlook.

I realise Posterous requires you to "confirm" the post, I just wanted to see if you had defaulted that requirement to off.

Re:You don’t need a password. Posterous fail. by vinhboy on Friday June 18, 2010 @12:26PM (#1442717)
I find it bizarre that it took this long for someone to do this...
Re:You don’t need a password. Posterous fail. by apphacker on Friday June 18, 2010 @01:49PM (#1443042)
You realize you broke the law and admitted to it.
Re:You don’t need a password. Posterous fail. by mikeryan on Friday June 18, 2010 @01:54PM (#1443058)
Honest question, what law was broken here?
Re:You don’t need a password. Posterous fail. by michael_dorfman on Friday June 18, 2010 @08:23AM (#1441953)
This is definitely happening in the wild, as well. A friend of mine had some spam advertising a mobile phone site posted to her Posterous, which fed into her Facebook feed, etc..
Re:You don’t need a password. Posterous fail. by xinsight on Friday June 18, 2010 @08:35AM (#1441986)
It is easy.

  $ /usr/sbin/sendmail -f [email protected]  
  [email protected]
  Subject: hi
  
  Spam spam spam
  
  ^D
Re:You don’t need a password. Posterous fail. by robinduckett on Friday June 18, 2010 @08:36AM (#1441987)
You have to know his email address.

One quick whois lookup, and I found the email he was likely sending from. His site has another email listed, so I did a little digging.

Re:You don’t need a password. Posterous fail. by ddrager on Friday June 18, 2010 @10:17AM (#1442267)
Or,

  $ telnet mailhost.com 25
  HELO myserver.hostname.com 
  MAIL FROM: [email protected] 
  RCPT TO: [email protected]
  DATA
  Subject: Hello
  spam spam
  .
  QUIT
Re:You don’t need a password. Posterous fail. by travisp on Friday June 18, 2010 @10:05AM (#1442231)
You don't even need to know the command line, you can often do stuff like that just from Outlook.
Re:You don’t need a password. Posterous fail. by ramchip on Friday June 18, 2010 @11:49AM (#1442557)
You don't even need to know Outlook, you can often do stuff like that just from the command line. ;)
Re:You don’t need a password. Posterous fail. by rantfoil on Friday June 18, 2010 @02:52PM (#1443250)
Actually that's not going to work. This sort of approach would definitely hit our spoof filters.
Re:You don’t need a password. Posterous fail. by josefresco on Friday June 18, 2010 @10:23AM (#1442286)
Sure active users will notice spam posts but what about the long tail of customers who no longer update their Posterous blog? What happens when a 'creative' link marketer finds a way to index those sites and inject posts?
Re:You don’t need a password. Posterous fail. by pg on Friday June 18, 2010 @01:35PM (#1443001)
Running a spam filter on posts should work well.
Re:You don’t need a password. Posterous fail. by mikeryan on Friday June 18, 2010 @02:00PM (#1443085)
I'd almost be more concerned with essentially getting DDOS'd with spam traffic to the posting address.
Re:You don’t need a password. Posterous fail. by codeflo on Friday June 18, 2010 @10:53AM (#1442378)
While we're talking about Posterous, does anyone know why it adds a random number to the end of article URLs, as in http://blog.dustincurtis.com/apparently-765 ? I know it's not a big deal, but I find that aesthetically unpleasing, as it kind of ruins an otherwise beautiful URL.
Re:You don’t need a password. Posterous fail. by snewe on Friday June 18, 2010 @11:07AM (#1442428)
Google's crawler (especially the blog and news ones) requires a three digit or larger number in the url. That is why you should keep a year/date in a url.

Update: Not sure why I got downvoted, but here is the reference from Google News:

http://www.google.com/support/news_pub/bin/answer.py?hl=en&#...

Re:You don’t need a password. Posterous fail. by codeflo on Friday June 18, 2010 @11:41AM (#1442516)
Don't downvote snewe, he/she is correct: http://www.google.com/support/news_pub/bin/answer.py?answer=...

I can't figure out why though. It sounds like an incredibly stupid rule.

Re:You don’t need a password. Posterous fail. by Psyonic on Friday June 18, 2010 @11:26AM (#1442477)
Why do they want this?
[deleted]
Re:You don’t need a password. Posterous fail. by codeflo on Friday June 18, 2010 @11:43AM (#1442530)
I guess nobody believed you, because it sounds so ridiculous. Do you have an idea why Google imposes that rule?
Re:You don’t need a password. Posterous fail. by puredemo on Friday June 18, 2010 @01:24PM (#1442967)
I'm not sure it's true. Do a quick search on Google news and click some links -- there are plenty of results that don't have numbers in the url.
Re:You don’t need a password. Posterous fail. by thechangelog on Friday June 18, 2010 @01:47PM (#1443037)
From http://www.google.com/support/news_pub/bin/answer.py?answer=...

this rule is waived with News sitemaps.

Re:You don’t need a password. Posterous fail. by mitchellhislop on Friday June 18, 2010 @11:39AM (#1442510)
It might be a namespace thing? I have seen that too, and that is the only thing that comes to mind.
Re:You don’t need a password. Posterous fail. by jrnkntl on Friday June 18, 2010 @01:41PM (#1443020)
It is a namespace thing. I am pretty sure. When I use a title for my posterous posts that no one ever used before, the permalink is just the title. When I for example post something titled generally like "photo" it becomes "photo-73864"
Re:You don’t need a password. Posterous fail. by codeflo on Friday June 18, 2010 @02:00PM (#1443082)
So all post URLs share a single global namespace, regardless of ownership? That's not a very clever design IMO.
Re:You don’t need a password. Posterous fail. by jrnkntl on Friday June 18, 2010 @02:07PM (#1443105)
yep, looks like it.

if you check for example: http://posterous.com/explore You can see all pretty unique titles without a number appended and then a post titled "Tetris" gets "/tetris-194"

Even if you post something without a title it just gets an ID assigned which is (this is a guess tho) the unique ID in their database of all blogs.

Re:You don’t need a password. Posterous fail. by rantfoil on Friday June 18, 2010 @02:53PM (#1443254)
This is changing soon! It's on our roadmap.
Re:You don’t need a password. Posterous fail. by nate on Friday June 18, 2010 @11:44AM (#1442536)
Why not let users use email certificates if they want? That's what I've got going on in Tgethr. Let users decide if extra trouble of setting up an email cert is worth it (it's not that bad), and now all of a sudden you have spam proof email discussion lists. We just check the message signature to make sure yep your message is signed as [email protected] or whatever and we'll accept the message.
Re:You don’t need a password. Posterous fail. by gommm on Friday June 18, 2010 @09:30AM (#1442135)
What I'm surprised is why posterous doesn't do more check on all the headers sent by the email software (X-Mailer, and so on) and ask for a confirmation if those other headers are different enough from a known correct configuration...

Of course someone who received an email from the blog owner could use that to fake all those headers but at least it would prevent people posting by simply guessing the email address.

Re:You don’t need a password. Posterous fail. by rantfoil on Friday June 18, 2010 @02:54PM (#1443257)
Oh, we do that. This was a specific bug that is now fixed.
Re:You don’t need a password. Posterous fail. by DanielRibeiro on Saturday June 19, 2010 @06:40PM (#1445438)
Strange that none noted that identity based encryption (IBE for the acquainted ones)solves this problem quite easily (more on http://www.voltage.com/technology/ibe.htm). Boneh and Franklin scheme was the first proposed one, but nowadays this is not only on crypto papers, but they are even RFCS for such schemes: http://www.rfc-editor.org/rfc/rfc5409.txt. There are even some non-commercial implementations around: http://crypto.stanford.edu/ibe/.

Of course, not using such full blown solutions will mean that posterous' heuristics techniques will be susceptible to all sorts of attacks, such as man-in-the-middle, relay attacks and so forth.

On the other hand, looking for solutions that are resilient to more sophisticated attacks, mostly considering IBE schemes, is quite convoluted (it involves provable security models, such as http://www.google.com/#hl=en&q=provable+security+signatu... ). There are even variations on IBE, such as certificateless, which require you to trust even less people.

This is of course, assuming you are not willing to inconvenience users by making them reply a email you send them after they tried to poste. Such email would contain a custom made url (the secret) that would enable the post to actually be posted. On the other hand, this solution feels more inconvenient than using OAuth methods.

Nonetheless, not all users care about security/privacy (those that do, will always have the usual login scheme). If you chose to go other way, good luck to you. After all, people still use MD5 for security applications nowadays.

Re:You don’t need a password. Posterous fail. by Terretta on Friday June 18, 2010 @09:27AM (#1442126)
Two solutions:

1. Change from "Contributors can post" to "Anyone can post". Counterintuitive, but the first is based on email FROM, the second is moderated.

2. Make a hash as your FROM address. Add it as an alias to send from in Gmail (or whatever you use). Send to posterous from the hash address. Your email address becomes your password.

Re:You don’t need a password. Posterous fail. by graywh on Friday June 18, 2010 @12:11PM (#1442659)
To add an additional outgoing address to Gmail, don't you have to verify that you can receive messages at that account first?
Re:You don’t need a password. Posterous fail. by tkaemming on Friday June 18, 2010 @12:20PM (#1442698)
You could presumably use the plus sign "hack" to make that a bit easier: http://gmailblog.blogspot.com/2008/03/2-hidden-ways-to-get-m...
Re:You don’t need a password. Posterous fail. by nailer on Friday June 18, 2010 @10:22AM (#1442285)
> "Contributors can post" ... is based on email FROM

Sounds somewhat mislabelled then.

Re:You don’t need a password. Posterous fail. by mike-cardwell on Friday June 18, 2010 @12:40PM (#1442776)
You should be able to PGP sign your emails to confirm that they're good. If an unsigned email suddenly appears, a confirmation email should be sent back to the sender address before it is posted.
Re:You don’t need a password. Posterous fail. by ashishbharthi on Friday June 18, 2010 @12:01PM (#1442611)
Twitter had similar issue in their Text -> Tweet system. People were using softwares to send Text messages and using anybody's phone number as they want. They fixed it by using 4 digit pin and I think Posterous should do the same.
Re:You don’t need a password. Posterous fail. by borisk on Friday June 18, 2010 @08:33AM (#1441982)
Not so big a deal IMHO. You can always set a pass if spammers start targeting your blog.
Re:You don’t need a password. Posterous fail. by Terretta on Friday June 18, 2010 @09:24AM (#1442111)
The password is for visiting, not for posting. If you set a password, nobody can visit your blog w/o the password.

http://posterous.com/help/private_sites

"You can set a password on your Posterous site so only the readers you want can see it. To see your site, a user must go to your site url and also enter the correct password for your site."

Re:You don’t need a password. Posterous fail. by borisk on Friday June 18, 2010 @03:16PM (#1443312)
Right, my bad. Still there is an option to receive confirmation link for each post.
Re:You don’t need a password. Posterous fail. by d0m on Friday June 18, 2010 @11:17AM (#1442454)
Oh my I feel bad, I started this in the other post' comments.
Re:You don’t need a password. Posterous fail. by tman on Friday June 18, 2010 @10:37AM (#1442328)
Posterous really does fail here. I can see why they would want to tolerate a little of this to preserve ease of use for their users (just like Amazon with their Kindle email address). However, there are a number of steps that Posterous can take to combat forged headers in ways that should not impact users at all. Enabling SPF, for example, would be a good start.

Technically, it's the same problem as email spam, and most of the same tools can be used to combat it. Posterous should flag posts that they aren't sure of and make users confirm them before putting them up, etc.

EDIT:

The other fix would be to use an email address that can't be guessed from the blog address. In other words, the email address is the password.

Re:You don’t need a password. Posterous fail. by prakashk on Friday June 18, 2010 @01:53PM (#1443053)
> The other fix would be to use an email address that can't be guessed from the blog address. In other words, the email address is the password.

Multiply (http://multiply.com) does something similar. You set your post-by-email id. And, then email your posts to the [email protected]. You decide how complicated or easy you want your post-by-email-id to be.

As someone said, this is not 100% secure as the email address is sent as clear text as it passes through mail servers, but it's more difficult for someone to guess it.

They do perform additional checks on the message sent to make sure it came from you, perhaps similar to those that Posterous does.

Re:You don’t need a password. Posterous fail. by axod on Friday June 18, 2010 @10:46AM (#1442357)
> "The other fix would be to use an email address that can't be guessed from the blog address. In other words, the email address is the password."

You'd still be sending your password in the clear, possibly through other peoples mail servers. Not great security.

Re:You don’t need a password. Posterous fail. by tman on Friday June 18, 2010 @10:57AM (#1442391)
The perfect is the enemy of the good.

There is a trade-off here between security and usability. 99% security is good enough for a lot of purposes and has its place.

Re:You don’t need a password. Posterous fail. by infinite8s on Friday June 18, 2010 @12:33PM (#1442750)
Except that's more like 10% or even 1% security.
Re:You don’t need a password. Posterous fail. by tman on Friday June 18, 2010 @01:04PM (#1442885)
Oh really? I don't think you know what you mean.

In point of fact, I just sent myself a very important password in clear text. Hack me.

Re:You don’t need a password. Posterous fail. by axod on Friday June 18, 2010 @02:51PM (#1443246)
The task for a spammer isn't to hack <USERS> account. It's to hack ANY account.

Being able to hack any posterous account is going to be far far easier than trying to hack a particular account.

Re:You don’t need a password. Posterous fail. by infinite8s on Friday June 18, 2010 @12:33PM (#1442749)
Except that's more like 10% or 1% security.