Wiki

Articles tagged with "security", sorted by date (updated)X
Displaying 11-20 of 23 result(s).

Getting to Understand Hierarchical RBAC Scheme

Updated 10 months ago by rAWTAZTutorials17 comments – viewed 70,196 times – ( +57 ) – version 1.1
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.

Simple authorization system

Updated about a year ago by GustavoHow-tos1 comment – viewed 23,353 times – ( +16 ) – version 1.1
How to create a simple (non-RBAC) authorization system

Secure password hashing with bCrypt

Updated about a year ago by Ivo PereiraHow-tos3 comments – viewed 17,474 times – ( +8 ) – version 1.1
In this article I will show you how to implement a secure password hashing mechanism in your Yii projects using a bCrypt class.

Using phpseclib with Yii

Updated about a year ago by nkdHow-tos8 comments – viewed 5,975 times – ( +2 ) – version 1.1
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

ACL and RBAC

Updated 2 years ago by kevinkorbHow-tos0 comments – viewed 11,774 times – version 1.1
This HowTo assumes that you have a smattering of ACL in general and of how the acl-extension works basically. It will introduce you into the abstract and give you a hint on how to use Business-Rules. If you have in-depth questions, please refer to the extension documentation. Using ACL in an RBAC-manner cannot and should never obscure the fact that the underlying system is still ACL-based. In fact, the Business-Rules are just another layer in the permission-check plan.

Show captcha after <N> unsuccessfull attempts

Updated 2 years ago by zitterHow-tos7 comments – viewed 13,163 times – ( +14 / -4 ) – version 1.1
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).

Yii Security-extended guide

Updated 2 years ago by bingjie2680Tips11 comments – viewed 14,221 times – ( +6 / -6 ) – version 1.1
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.

Force a User to Change Their Password (ChangePasswordFilter)

Updated 2 years ago by waterloomattTutorials2 comments – viewed 13,736 times – ( +16 / -2 ) – version 1.1
Sometimes you need to force a user to change their password after x number of days. This article describes how to implement this using a filter, ChangePasswordFilter.

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

Updated 2 years ago by Steve FriedlHow-tos8 comments – viewed 37,444 times – ( +22 / -1 ) – version 1.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

[PT-BR] Proteção Contra Logout CSRF

Updated 3 years ago by Rodrigo CoelhoTutorials0 comments – viewed 5,934 times – ( +2 / -1 ) – version 1.1
CSRF é o acrônimo para Cross-site request forgery. CSRF é um ataque que forca o usuário a executar ações não desejadas numa aplicação Web na qual ele está autenticado.