Skip to content

Fixed a file system vulnerability#7

Open
crackedeggs1 wants to merge 2 commits intoArno0x:masterfrom
crackedeggs1:base
Open

Fixed a file system vulnerability#7
crackedeggs1 wants to merge 2 commits intoArno0x:masterfrom
crackedeggs1:base

Conversation

@crackedeggs1
Copy link
Contributor

I noticed that some logins failed when auth.php did not submit over HTTPS. Some servers don't have it. TFA now works for sites with no SSL cert.

More importantly, I also noticed that while TFA_NGINX_DEBUG was enabled, it was possible for an attacker to fill the disk partition (using up all free space on the server) by flooding auth.php with requests. The debug.log is now limited to 100M in size. If it exceeds this size, it will be started over. There are definitely better ways to handle over-sized logs, such as rotating, but in the interest of closing the security hole, this is the most expedient solution.

It was possible to fill the disk partition by flooding auth.php with requests while the debug mode was on.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant