Partition in Linux
Partition in Linux
Copying
Copyright c 2002 Charles Miller <[email protected]>
Permission is granted to copy, distribute, and/or modify this document under the
terms of the GNU Free Documentation License, Version 1.1 or any later version pub-
lished by the Free Software Foundation; with no Invariant Sections, Front-Cover Texts
or Back-Cover Texts. A copy of this license is available from the author, or from the
FSF website at http://www.gnu.org/copyleft/fdl.html
Contents
1 Introduction 1
2 General Advice 2
3 Specific Techniques 3
3.1 In Person Identification . . . . . . . . . . . . . . . . . . . . . . . . . 3
3.2 Faxed Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . 3
3.3 Simple Email recovery . . . . . . . . . . . . . . . . . . . . . . . . . 4
3.4 Encrypted Email Recovery . . . . . . . . . . . . . . . . . . . . . . . 5
3.5 Question and Answer . . . . . . . . . . . . . . . . . . . . . . . . . . 6
3.6 Callback . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
4 Acknowledgements 7
5 Revision History 8
1 Introduction
Password recovery becomes necessary when the user of a system is no longer able
to authenticate themselves because they have lost or forgotten their password. Any
systems that require authentication will need to have some policy or procedure for
password recovery.
1
The simplest policy is: “Password recovery will not be performed.” When com-
bined with a policy that locks inactive accounts, it is also the most secure approach.
Users who lose their password are required to repeat the registration process and ac-
quire a new identity. The user will lose their previous identity and any saved infor-
mation, and the cost of annoying your more careless users must be offset against any
benefits in security and simplicity.
If the “no recovery” policy is impossible, then there are two forms of recovery
mechanism that may be implemented in some combination:
Communicating a secret with the user over some pre-arranged secure channel,
and having them use that to re-authenticate.
Providing a secondary means of authentication for the purpose of recovering or
resetting the first.
2 General Advice
Good Practices:
When recovering a password, always assign, or require the user to choose a new
password.
– When the user calls, the rep can guarantee that the previous recovery at-
tempt was genuine.
– It’s an opportunity to educate the user.
2
Things to Consider:
Is the process automated, or does it require human intervention?
If the process requires human contact, are you ready to deal with users from
other countries, or who do not speak the same language as you?
To what degree can you inconvenience your users before they decide not to
bother? Is it a problem if they do?
What steps can you take to make sure the users don’t forget their passwords in
the first place?
3 Specific Techniques
3.1 In Person Identification
Obviously, the best thing to do is to have the user physically present themselves to
you with 100 points worth of photographic identification. This is a form of secondary-
authentication recovery, and is very secure. Like all optimal solutions, this is generally
impossible in a web environment, and is a particular inconvenience to users.
That said, if you need security, and you have the luxury of physical offices near the
vast majority of your customers (I’m thinking of banks and government departments
here), this is worth thinking about.
Advantages
Best, legally defensible security.
In case of fraud, you might remember what they look like
Disadvantages
Requires human intervention in all cases.
Requires the user to take time out (during business hours) to recover their pass-
word.
May be difficult or impossible for the user dependent on their distance from your
offices.
3
Good Practices
Keep a copy of the identification on file from signup-time, to be compared in the
event of recovery.
Advantages
So long as the identification is on file, this is reasonably secure, as an attacker
must be a competent forger, and know the correct serial numbers for the docu-
ments. If not, this is easily defeated by a committed attacker.
Disadvantages
If the identification papers are on file with you, they may be on file with many
other companies. Similarly, if the user is willing to fax you their passport for
identification purposes, they may be socially engineered into sending the same
documentation to an attacker.
Requires human intervention in all cases.
User must have access to a fax machine.
User must be willing to store their documentation with you (the user may quite
justifiably fear identity theft if your records are compromised or misused)
Digital forgery is possible, and is masked by the poor quality of fax transmis-
sions.
Identity documents are replaced or renewed, so some secure mechanism for re-
placing the filed ID is necessary.
Does not cover how to get the new password to the user after they’ve identified
themselves over the fax.
4
Good practices
Send the user a one-time password, based on the user’s password hash and a
timestamp. That way, the recovery password can only be used until the main
password is changed, and can be expired if not used for 24 hours.
Advantages
Highly automated
Familiar, and very easy for the user to understand
Attacks rely on compromising some part of the communications chain between
server and user. Thus, targetting an attack against a particular individual requires
some effort.
Disadvantages
Vulnerable at every point that the email could be intercepted
Users may not understand that by sharing their email account with family mem-
bers, they are making passwords available o susceptible to opportunistic attacks
– once an attacker has access to any mailserver, they can methodically break
the accounts of all users of that server.
If the mailserver or gateway from which the recovery mails originate is compro-
mised, it’s game over for everybody.
Good Practices
If you are going to provide this, it must be optional.
5
Advantages
Highly secure
Disadvantages
Not a good general solution, the PGP-using population of the world is infinitesi-
mal.
Key management remains one of those issues that always looks easy on paper,
but tends to be much harder to implement.
Good Practices
Have a large pool of questions, of which the user only has to answer a subset
during signup/recovery.
– The more questions in the pool, the more research an attacker must do.
– On the other hand, having a set of 50 personal questions in the sign-up
process will scare people away.
Some systems allow the user to choose the questions as well. This is a bad idea,
as users don’t understand security, and will either make things too easy for an
attacker to guess, or too hard for themselves to work out what the hell they were
thinking, six months hence.
If the process is not automated, and for some insane reason you have the original
password on file, “What did you think the password was?” can be an effective
question.
6
Advantages
Less susceptible to opportunistic attacks than mailed passwords.
Still able to be automated, or performed by untrained employees following scripts
and exercising next to no personal judgement.
Disadvantages
It’s hard to come up with a good set of questions.
The better the attacker knows the target, the less secure it is. Unless the questions
got very personal, my brother could probably answer 90% of them for me.
Users may consider personal questions to be an intrusion.
The answers may not be easy to match automatically, leading to false rejections.
3.6 Callback
Another secure channel method. The user makes a request for a new password, and
the recovery secret is sent to a phone or pager number supplied by the user during
registration.
This method can be combined with “Question and Answer” for a pretty effective
recovery system. It mostly limits attacks to friends and family (who have access to the
telephone and the personal information), and since the time of the call is logged and
the attacker has to talk to the representative, it’s easier to trace fraud.
Proprietary systems exist that automate this process, adding secondary authentica-
tion via voice recognition.
Advantages
When combined with Question and Answer, this is probably the most secure
method after encrypted email.
Disadvantages
Company bears the cost of phone calls, which might be difficult if you have
international users.
Resource-intensive if done manually.
4 Acknowledgements
This document contains much input from a thread on the webappsec mailing list, con-
tributed to by: Brecrost Jones <brecrost at hotmail dot com>, David Bullock <davidbul-
lock at tech-center dot com>, Mark Curphey <mark at curphey dot com>, Kevin Spett
<kspett at spidynamics.com>, Haroon Meer <haroon at sensepost dot com>, Jeroen
7
Latour <jlatour at calaquendi dot net>, Chris Shepherd <chriss at whstuart dot com>,
Bill Smith <wsmith at icsalabs dot com>, Sverre Huseby <shh at thathost dot com>
and Matthew Chalmers <Matthew_Chalmers at bankone dot com>.
5 Revision History
2002-10-19 original email sent to [email protected]
2002-10-20 incorporated suggestions from Jeroen Latour into the faxed docu-
mentation section, from Sverre Huseby into the encrypted email recovery sec-
tion, and from Matthew Chalmers into the callback section. First version to be
released under the GNU FDL.