phpbb/phpBB
EA117 636fc7fad7 [ticket/16066] Fix FORM_INVALID always returned for banned user.
After the introduction of add_form_key() and check_form_key() calls to
login_box() in phpBB 3.2.6 and later, if a banned user attempts to login,
they receive a "The submitted form was invalid. Try submitting again."
Instead of the message indicating that they are banned, and why.

This is happening because check_ban() actually calls into login_box()
recursively, but after the $user->session_id has been switched to a new
session ID for the logging-on user.  Therefore, now that check_form_key()
has been introduced to login_box(), it is impossible for check_form_key()
to succeed during this recursive call.

Fix is to make login_box()'s use of check_form_key() conditional on whether
IN_CHECK_BAN is defined, so that the recursive call does not attempt to
re-validate the form_key again.  Note the form_key has already been
successfully verified by the original call into login_box(), prior to calling
into check_ban() and attempting to recursively call login_box().  So the
protection of why check_form_key() was added is still intact with this change.

PHPBB3-16066
2019-07-28 12:25:54 -05:00
..
adm [ticket/14459] Remove unused code 2019-06-25 16:23:59 +00:00
assets [security/229] Add ajax prefilter for crossdomain requests 2018-12-11 21:28:29 +01:00
bin [ticket/15705] fix phpbbcli language vs PHP 2018-06-23 20:10:33 +02:00
cache
config Merge pull request #5537 from senky/ticket/15970 2019-04-07 10:11:35 +02:00
develop Merge remote-tracking branch 'upstream/3.2.x' into prep-release-3.2.2 2018-01-07 11:02:31 +01:00
docs Merge pull request #5571 from dark-1/ticket/16021 2019-07-21 21:38:23 +02:00
download Merge pull request #4868 from javiexin/ticket/15266 2017-12-27 14:15:27 +01:00
ext [ticket/12610] Correctly handle empty cache 2016-12-03 16:37:36 +01:00
files
images [ticket/15037] Optimize what can be 2017-01-24 17:15:41 -05:00
includes [ticket/16066] Fix FORM_INVALID always returned for banned user. 2019-07-28 12:25:54 -05:00
install Merge branch 'prep-release-3.2.7' into 3.2.x 2019-05-05 10:35:17 +02:00
language Merge pull request #5562 from senky/ticket/15961 2019-07-21 21:12:00 +02:00
phpbb Merge pull request #5626 from cpeel/ticket/16096 2019-07-27 16:18:37 +02:00
store
styles [ticket/16093] Do not display attach-row-tpl 2019-07-21 20:47:16 +02:00
.htaccess
app.php
common.php [ticket/15227] Check PHP version and remove old unused code 2017-05-12 23:04:54 +02:00
composer.json [ticket/15921] Updated dependencies to latest textformatter 2018-12-26 23:06:18 +01:00
composer.lock [ticket/16074] Fix Twemoji URL for ZWJ sequences 2019-06-04 18:21:11 +02:00
cron.php
faq.php [ticket/15200] Allow extensions using custom templates for help/faq controllers 2017-04-27 16:22:03 +07:00
feed.php
index.php [ticket/security/228] Add form token to login box 2019-04-26 12:11:52 +02:00
mcp.php [ticket/14972] replace all occurrences of sizeof() with the count() 2018-01-01 13:56:04 +01:00
memberlist.php Merge pull request #5552 from kasimi/ticket/15995 2019-04-07 11:01:33 +02:00
posting.php Merge pull request #5629 from 3D-I/ticket/16102 2019-07-27 14:30:30 +02:00
report.php
search.php [ticket/14972] replace all occurrences of sizeof() with the count() 2018-01-01 13:56:04 +01:00
ucp.php Merge pull request #5367 from JimMH/3.2.x 2018-10-13 15:44:24 -07:00
viewforum.php [ticket/16036] Add S_FORM_TOKEN_LOGIN to all login forms 2019-04-29 16:13:26 +00:00
viewonline.php Merge branch '3.1.x' into 3.2.x 2017-06-05 11:57:18 +02:00
viewtopic.php [ticket/15870] Add core.viewtopic_modify_forum_id 2018-11-18 12:19:04 +01:00
web.config [ticket/security-181] Port .htaccess changes to other webserver types 2016-11-13 11:50:23 +01:00