Wiki

Articles tagged with "security", sorted by ratingX
Displaying 11-20 of 26 result(s).

Configuring controller access rules to default-deny

Created 6 years ago by Steve FriedlHow-tos3 comments – viewed 85,263 times – ( +12 / -1 ) – version 1.1
Starting with the blog tutorial, Yii developers are familiar with the notion of access rules defined in the controller, where the actions are allowed or denied depending on the user's name or role.

Force a User to Change Their Password (ChangePasswordFilter)

Created 6 years ago by waterloomattTutorials2 comments – viewed 19,230 times – ( +16 / -3 ) – 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.

Logout CSRF Protection

Created 6 years ago by Rodrigo CoelhoTutorials1 comment – viewed 19,102 times – ( +10 / -1 ) – version 1.1
CSRF is the acronymn for Cross-site request forgery. It is an attack which forces an end user to execute unwanted actions on a web application in which he/she is currently authenticated.

Secure password hashing with bCrypt

Created 5 years ago by waitforitHow-tos3 comments – viewed 24,367 times – ( +9 / -1 ) – 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.

More security in your applications with Yii and PHPIDS

Created 6 years ago by Rafael GarciaHow-tos1 comment – viewed 14,476 times – ( +8 / -1 ) – version 1.1
PHPIDS is a well known project that can be found in php-ids.org.
tags: phpids, security

Show captcha after <N> unsuccessfull attempts

Created 5 years ago by zitterHow-tos7 comments – viewed 22,322 times – ( +15 / -6 ) – 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).

Checking for "expired" sessions/logins on the client side

Created 4 years ago by le_topHow-tos0 comments – viewed 24,065 times – ( +6 / -1 ) – version 1.1
Getting "Expired token" errors ? Here is a solution to avoid invalid CSRF on POST or ajax requests, or user identity changes.

Make the authentication more securely

Created 3 years ago by Kostas Apazidis (KonApaz)Tutorials1 comment – viewed 6,850 times – ( +3 / -1 ) – version 1.1
Suppose a hacker has an account of your website He could set the PHPSESSID to empty After of that He login in your system The PHPSESSID remains blank and user has already logged with this session

Yii Security-extended guide

Created 5 years ago by bingjie2680Tips11 comments – viewed 20,754 times – ( +6 / -7 ) – 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.

Single PHP entry point with Nginx

Created 2 years ago by MadAndHow-tos1 comment – viewed 6,576 times – ( +3 / -2 ) – version all
In this article I will show you how to slightly increase application security, by exploiting the fact that Yii implements the Front Controller Pattern.