Wiki

Articles tagged with "security", sorted by commentsX
Displaying 1-10 of 18 result(s).

Authenticating against phpass hashes with Yii

Created about a year ago by Da:SourcererHow-tos18 comments – viewed 15,782 times – ( +25 )
The Portable PHP password hashing framework allows advanced password hashing offering increased security over simple MD5- or SHA1-hashed passwords. phpass is already in use in some larger projects such as WordPress (since v2.5), Drupal 7 and phpBB 3.

Yii Security-extended guide

Created about a year ago by bingjie2680Tips11 comments – viewed 9,845 times – ( +6 / -6 )
This article is called extended guide is because there is already a security guide in the Yii tutorial security section. but that guide is not complete in the sense that it does not rise the developers' attention to some other commonly happening attacks: SQL injection and magic URL, which can be major vulnerabilities in your application without much caring.

How to write secure Yii applications

Created about a year ago by François GannazHow-tos11 comments – viewed 69,583 times – ( +78 )
warning: While this security guide tries to be quite complete, is not exhaustive. If security matters for you, you ought to check several other references.

Use crypt() for password storage

Created 5 months ago by fsbTutorials11 comments – viewed 15,535 times – ( +16 )
There Is Now A cpasswordhelper Class In system.utils at GitHub that provides an API to simplify the use of crypt() for password storage. While this wiki article remains valid, it will in due course be rewritten to refer to the new class as well as explain how it works.

Getting to Understand Hierarchical RBAC Scheme

Created 2 years ago by daemonsTutorials10 comments – viewed 44,295 times – ( +50 )
Authentication and Authorization is a good tutorial. Among other topics, it describes basic aspects of Yii's RBAC implementation. But however hard I read the tutorial, I couldn't understand how exactly the hierarchy works. I found how to define authorization hierarchy, how business rules are evaluated, how to configure authManager, but almost nothing about how I should build my hierarchy, in what sequence its nodes are checked, when the checking process stops and what would be the checking result.

Show captcha after <N> unsuccessfull attempts

Created 11 months ago by zitterHow-tos6 comments – viewed 7,555 times – ( +14 / -3 )
In this mini howto I would like to show how to add a required captcha field in the login form, after a defined number of unsuccessfull attempts. To do this, I will use the blog demo that you have in default Yii download package (path/to/yii/demos/blog).

Using phpseclib with Yii

Created 7 months ago by nkdHow-tos6 comments – viewed 3,372 times – ( +2 )
I installed phpseclib because I needed to do some AES encryption in my project. After all the hassle of installing php lib, I found out that Yii already has a security module (securityManager). I finally decided to keep using phpseclib because it has one big advantage over Yii securityManager module, it does not requite mcrypt to be installed in the phpserver!
tags: security

Secure password hash storage and a Yii helper extension

Created about a year ago by fsbTutorials5 comments – viewed 16,991 times – ( +14 )
This article was rewritten as the README of the Randomness GitHub repo

Moving project code outside of webroot (plus multiple project support)

Created 2 years ago by Steve FriedlHow-tos5 comments – viewed 24,379 times – ( +22 / -1 )
Yii's by-default directory organization works well enough, but there are several steps one can take that improve the security and serviceability of the system, especially in the context of multiple Yii projects on the same machine (including multiple versions of the same project).
tags: config, security

Secure password hashing with bCrypt

Created about a year ago by waitforitHow-tos3 comments – viewed 11,139 times – ( +6 )
In this article I will show you how to implement a secure password hashing mechanism in your Yii projects using a bCrypt class.