Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What should I do to stop cross-site request forgeries in transfer.php and index.php (preventing Attack B)?

0
Posted

What should I do to stop cross-site request forgeries in transfer.php and index.php (preventing Attack B)?

0

This issue was covered in the lecture on secure web site design, and in section. You need to rely on the Same Origin Principle to protect a piece of information that the attacker doesn’t know. The exact choice of what information to use is up to you, but it should not be easy to guess for an attacker who does not have access to the user’s account. Use that information to validate the posted form data. It should only take a couple lines of code in each file to fix.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123