Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7962277
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T05:17:51+00:00 2026-06-04T05:17:51+00:00

I am currently implementing Facebook Login on my website for the first time and

  • 0

I am currently implementing Facebook Login on my website for the first time and I have some doubts on how secure this is.

I already have a database with users and for each one of them, I store an email address, so I really need to check whether an email address I get from Facebook is already present in my database or not, otherwise I would have some problems with duplicate users. If a user is already present, I simply merge data from Facebook into the existing account on my website and I connect the user. Otherwise, I create an account for him.

But here is the thing:

  1. Alice connects on my website using email address alice@users.com but Alice is not registered on Facebook with that email address

  2. Bob registers on Facebook using Alice’s email address alice@users.com and verify the account using an SMS received on any phone number (I checked and this is possible, an account can be verified without clicking on the link received by email). I agree that Alice would be notified on her email address but still, this is possible.

  3. Bob triggers login on my website using facebook connect, while being connected on Facebook using Alice’s email address.

  4. Bob’s Facebook account is active and verified, and I have to assume he already has an account on my website as alice@users.com is already in my database, so I connect him instead of Alice and he can use my website on Alice’s account.

=> I tried this scenario on several websites and I could connect on someone else’s account (a fake Facebook account that I created 😉 ), as long as I knew the email address.

Does anyone have an idea on how to prevent these situations?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T05:17:53+00:00Added an answer on June 4, 2026 at 5:17 am

    If it is true that Facebook doesn’t need to confirm email and then acts as an openid-style provider, then this is shocking! But i guess the answer is already in your question – don’t link/merge accounts. Or at least, don’t do so from a facebook login attempt without first confirming the email yourself.

    You can’t change what friendface does, so you need to treat the email address provided by facebook connect as untrusted data. If a Facebook-connect login attempt is made with an email that already has a native account on your site, then send them an email confirmation code yourself – and do what facebook failed to do.

    Another option is once a user is logged in to a native account, you could allow them to link the facebook account from there, should they wish to. This also allows you to support facebook login for users that have a different email address registered on the two sites.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm with some problems implementing my first application with Login with Facebook. The user
I am currently implementing something quite similar to checkers. So, I have this table
I'm currently implementing a client application that POST's a file over HTTP and have
I am currently implementing a form in CodeIgniter that needs to have a drop
Our company currently implementing TSA (Time Stamp Authority) service. And now we are searching
I am currently implementing cache. I have completed basic implementation, like below. What I
I'm currently implementing a navigation system for routing through Europe. So far, I have
I'm currently implementing an RSS feeder control for a website. I'm planning to allow
I'm currently implementing a software keyboard ( using some sophisticated prediction ), and drawing
I'm currently implementing a profiling system into an application. I have a two macro

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.