My favorites | Sign in
Project Home Downloads Wiki Issues
Project Information
Members
Featured
Wiki pages
Links

Introduction

PHP doesn't have any function or mechanism for CSRF vulnerabilities. Developers must implement their own functions to defend against this vulnerability. So, I have coded a small one-time-token library.

Some features of secureToken :

  • Provides strong entropy for brute-force attacks
  • Provides reliable uniqueness
  • Guarantees one time usage of issued token
  • Provides distinction between sessions.
  • Provides timeout restrictions


Usage & Wiki Links


What is CSRF ?

According to the Wikipedia description :

Cross-site request forgery, also known as one-click attack or session riding and abbreviated as CSRF or XSRF, is a type of malicious exploit of a website whereby unauthorized commands are transmitted from a user that the website trusts.

Check out OWASP and CGISecurity's pages for detailed descriptions. There is a Turkish tutorial named "CSRF Klavuzu" for developers to understand and defend their code for CSRF vulnerabilities.

Powered by Google Project Hosting