Authentication bypass allowing arbitrary code execution
There was a posting on Full-disclosure today about various security issues in OpenFire, I quote from the original posting by Andreas Kurtz.
The text of that posting is attached to this issue. The first issue was confirmed in this thread.
That authentication bypass allowes access to admin console. An attacker could install / upload his own plugin, which allows arbitrary code execution with rights of openfire, including access to file system and database.
For second vulnerability see JM-1488.
The third is probably already fixed: JM-629.
Reported problem has been fixed. Lets do the release now since known issues have been solved. If more things are found we can fix them in the next release.
We don't like having complex code either. Another approach I've seen is adding an annotation to actions/JSP pages that indicates what kind of access checking should be done.
What about the fix from Guus and me I posted above?
Fixes can only ever be as comprehensive as the tests. Thanks guys for pointing out more error cases. I'm about to check in logic that checks for %2E.
We don't like having complex code either. Another approach I've seen is adding an annotation to actions/JSP pages that indicates what kind of access checking should be done. That's probably a better approach since it's very explicit, but isn't a super quick fix. So, I'd rather go with this approach for now if we believe we can catch all the cases.
There's an AuthCheckFilterTest class where we've been adding to. If you guys can think of more cases, let's add them there. I'll leave this issue open for now.
reopening, cuz I have the power to do so for now
This bug is still not solved!!!
This does still return the content of info.log without auth: