starting threat analysis

This commit is contained in:
nek0 2016-09-07 17:22:58 +02:00
parent 78fa3e4b67
commit 3a57a4996d
3 changed files with 45 additions and 0 deletions

View file

@ -84,3 +84,8 @@ postSignupR = do
validateLen :: Text -> Bool validateLen :: Text -> Bool
validateLen a = validateLen a =
(T.length a) > 2 (T.length a) > 2
getThreatR :: Handler Html
getThreatR =
defaultLayout $
$(widgetFile "threat")

View file

@ -22,6 +22,7 @@
/ HomeR GET / HomeR GET
/page/#Int PageR GET /page/#Int PageR GET
/signup SignupR GET POST /signup SignupR GET POST
/threat ThreatR GET
/login LoginR GET POST /login LoginR GET POST
/logout LogoutR GET /logout LogoutR GET
/activate/#T.Text ActivateR GET POST /activate/#T.Text ActivateR GET POST

39
templates/threat.hamlet Normal file
View file

@ -0,0 +1,39 @@
$newline always
<div .medium>
<h1>
Data and threat analysis
<h2>
Eidolon stores the following data:
<ul>
<li>Usernames
<li>Email addresses
<li>Salted password hashes (SHA1) and the respective salt
<li>Images
<li>Upload time of images
<li>Image titles
<li>Image descriptions
<li>Image tags
<li>EXIF data of images are preserved
<li>Comment texts
<li>Time when comment was posted
<li>Comment author
<li>Album titles
<li>Album owner
<li>With whom the album is shared
<h2>
Database exposure
<p>
If an attacker were to gain access to the eidolon database they would have
access to the above information.
<p>
An attacker that gained access to the eidolon database could delete or
otherwise corrupt user data, potentially disrupting the service.
<h3>
Mitigation
<p>
Any discovery of a user's real identity can be mitigated by using an
anonymous email account.
<p>
Passwords are stored salted and hashed in the database rendering them
useless to an attacker. Additionally the authentication mechanism does not
need the password to be transmitted in clear text to the server.