Security hole

Please report bugs here!

Moderator: Thorsten

Post Reply
samrad
Posts: 2
Joined: Thu Aug 16, 2012 12:14 pm

Security hole

Post by samrad »

Hi we have an FAQ that is secured, however a user has discovered a way round this.

If you register for an account than request an email of your password the system sends you a password and then allows you to log in. You get an error on login but if you then click on registration again the system gives you the registration page in the FAQ body with all the links. It then lets you browse the faq without any account activation.
samrad
Posts: 2
Joined: Thu Aug 16, 2012 12:14 pm

Re: Security hole

Post by samrad »

I have temporarily fixed this by adding: session_destroy();

Code: Select all

         $error           = $PMF_LANG['ad_auth_fail'] . ' (' . $faqusername . ')';
			session_destroy();
            $loginVisibility = '';
            $user            = null;
            $action          = 'main';
into index.php
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Security hole

Post by Thorsten »

Hi,

thanks for the hint, I'll add this fix.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply