An applications security project focused on tackling common vulnerabilities present in e-commerce sites.
Built With: Flask • Wamp64 • Twilio • Stripe
Table of Contents
Failed Login Attempts
Custom error page after 3 failed logins.
2FA
Built with Twilio.
Payment
Built with Stripe.
Admin Logging
Detecting attempted SQL injections, and highlighting them in red.
- OpenSSL
SSL
- The PEM password for running Shop4Free is
rnndmm
.
reCaptcha
- Sign up @ reCaptcha.
- Select
v2 Tickbox
as the reCaptcha type. - Type
127.0.0.1
as the domain. - Save.
- Copy the private & public keys into
RECAPTCHA_PRIVATE_KEY
&RECAPTCHA_PUBLIC_KEY
respectively. - Run the application.
Stripe
Stripe is a 3rd-party payment processor & payment gateway. Stripe composes of an API & CLI.
Stripe Cards:
- Success: 4000 0027 6000 3184
- Decline: 4000 0000 0000 0002
Steps to Generate Endpoint Secret in Stripe:
- From terminal (where
stripe.exe
is located), generate commandstripe listen --forward-to 127.0.0.1:5000/stripe_webhook
to get endpoint secret. - Login into Stripe if necessary.
- Paste endpoint secret into Stripe webhook function in
app.py
.
py app.py
This project is licensed under the terms of the MIT license.
- Joseph
- Aden
- Hao Yu
- Jayden
- blvnk