Coder Social home page Coder Social logo

tdt4237's Introduction

TDT4237 Software Security - Group 21

Tables that need modification

In order for the fixes to work there are a couple of columns in the user table that needs to be added to the database:

alter table users add column last_login_attempt varchar(255);
alter table users add column login_fails int(1);
alter table users add column locked boolean;

Distribution of vulnerability fixing

Emil

  • Info leakage
  • Lock out mechanism (includes implementation of throttle protection)
  • Weak password policy
  • Debug mode enabled
  • Stored xss
  • Make github project
  • Git workflow description
  • Clickable links warning

Daniel

  • Bypassing authentication
  • Escalating account privs
  • Csrf
  • Fix ShareLaTex project

Olivier

  • Session fixation
  • Session timeout
  • Weak hash
  • File inclusion

Eirik

  • SQL injection
  • Email verification

Git Workflow

Branches

We will make branches for each of the vulnerabilities we are fixing. After cloning the repository, when we're about to start fixing an issue you make a new branch: git checkout -b info-leakage, where info-leakage is the branch name that corresponds to Emil's first area of responsibility. Use dashes - instead of spaces.

Merging to master

Do not merge your branch straight to master after you're done with a fix. Make a pull request, and have someone review, test and merge it to master.

Rebasing before PR

Rebase master into your local branch if there has been changes to the master branch after you branched out from it: git rebase origin/master. Do this before you make a pull request.

Interactive rebasing to clean commit history

If you want to clean up your messy commit history before you do a pull request, have a look at interactive rebasing. This is not a must.

tdt4237's People

Contributors

kollstrom avatar boagriuz avatar stylee91 avatar olivierag avatar eirikgm avatar

Watchers

James Cloos avatar  avatar  avatar  avatar  avatar  avatar

tdt4237's Issues

Lock out mechanism

An attacker may attempt as many logins as she likes. A user should be locked out for a period after X number of login attempts.

URL warning

If a user clicks a link (posted in the shoutbox) to an external site, the user must be warned before confirming the action.

Can't access categories

Caused by the change of this line:
'categories' => $data in CategoriesController
to this line:
'categories' => htmlspecialchars($data, ENT_QUOTES)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.