AndyRixon / LayerBB

A simple yet powerful forum software. Download from our website!
https://www.layerbb.tk
GNU General Public License v3.0
5 stars 5 forks source link

No Anti-CSRF tokens generated for unregistered users / any user profile accessible by all anonymous users #45

Open overcrash66 opened 4 years ago

overcrash66 commented 4 years ago

Expected Behaviour: CSRF protection enabled everything.

Actual Behaviour: No Anti-CSRF tokens generated for unregistered users / any user profile accessible by all anonymous users

Steps to Reproduce Issue

No Anti-CSRF tokens were found in a HTML submission form. A cross-site request forgery is an attack that involves forcing a victim to send an HTTP request to a target destination without their knowledge or intent in order to perform an action as the victim. The underlying cause is application functionality using predictable URL/form actions in a repeatable way. The nature of the attack is that CSRF exploits the trust that a web site has for a user. By contrast, cross-site scripting (XSS) exploits the trust that a user has for a web site. Like XSS, CSRF attacks are not necessarily cross-site, but they can be. Cross-site request forgery is also known as CSRF, XSRF, one-click attack, session riding, confused deputy, and sea surf.

CSRF attacks are effective in a number of situations, including:

CSRF has primarily been used to perform an action against a target site using the victim's privileges, but recent techniques have been discovered to disclose information by gaining access to the response. The risk of information disclosure is dramatically increased when the target site is vulnerable to XSS, because XSS can be used as a platform for CSRF, allowing the attack to operate within the bounds of the same-origin policy.

Server Environment (PHP, MySQL, Apache Version and Operating System): Current version

AndyRixon commented 4 years ago

Will get that changed so only logged in users can see user profiles.