110 points · by sandaru1 · 16y ago · 57 comments
1. Login to wordpress.com
2. Take a look at this page : http://www.sandaru1.com/wordpress_test.html (This page is just showing the hashcode/url, I'm not saving any hashcodes)
3. Open another browser (in an attacker's case, his/her browser) and paste the URL shown in the page
4. Goto wordpress.com on the new browser and you are logged in
The exploit itself seems to be too simple. Am I missing something here or is this a serious bug?
P.S - I emailed both Automattic support and Matt Mullenweg. I didn't get any response back.
Too bad there is no way of verifying you are really lloyd.
Seems like we could come up with something - even if it only works for techies.
security at wordpress.org Listed at http://core.trac.wordpress.org/
Members of WordPress.com are on that mailing list as well.
http://en.support.wordpress.com/contact/ if anything is definitely WordPress.com specific, but I suggest always including security at wordpress org, because there may be another permutation to the attack.
First I sent a email to matt(http://ma.tt/contact/). Then, I used the Automattic contact form(http://automattic.com/contact/)
The odd thing about this is that I hadn't been given the admin password for the remote-live wordpress instance. I had manually modified the database to change the admin password in order to work on the local instance before firing it up.
I never did look into how wordpress created or verified session credentials, but it did seem like something odd was going on, there.
I remember few months ago, wordpress had a bug where an attacker could keep on resetting administrators account password. He might actually have a point
I've written off commenting on blogs... so while that was the reason why I made Angerwhale dynamic, I will never be tempted to make that mistake again. Blogs are static pages with an index, per-tag indexes, and a few XML feeds. No database queries should be made to show someone a blog post.
FWIW, I tested this and it does seem to work.
So this looks like it could be a local exploit only (doesn't make it any less exploitable)
First I loged in WP, got the URL from sandaru1s page. I logged out and tried the URL. And yes it worked. Then I deleted all wordpress cookies and tried again. Then I got the response as invalid key.
Again logged in and fetched new URL. This time I got a 502 with the URL. Refreshing took me 'invalid key' message (didn't touch cookies).
Update: Sandaru1s page doesn't provide a url anymore (for me). May be it's fixed?
Update2: Going to Sandaru1s page once logged in to WP now logs me out.
Edit:
Post this exploit here: http://en.forums.wordpress.com/forum/support
Of course, you'd have to be logged in first. =p
EDIT: is this tested on different IP addressess? I only have the one IP address in this office to try it on - I could see it being IP secured.