Giter Site home page Giter Site logo

withsecurelabs / megafeis-palm Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 2.18 MB

PoC Code for Vulnerabilities Found in MEGAFEIS-branded Smart Locks & their Mobile Companion App: DBD+

License: Apache License 2.0

Python 100.00%
megafeis security bofei iot iot-research oklok bluetooth-locks shehzade smart-locks withsecure

megafeis-palm's Introduction

megafeis-palm

The contents of this repository were produced by Abdullah Ansari during his time at WithSecure. All contents are licensed to WithSecure as described in the attached license file within this repository.

Welcome to the ๐Ÿคฆโ€โ™‚๏ธ megafeis-palm ๐Ÿคฆโ€โ™‚๏ธ repository. This repo contains proof-of-concept (PoC) code for vulnerabilities I discovered in the DBD+ mobile companion app (Archive) (<=1.4.4) during my internship at WithSecure. The app was designed to control MEGAFEIS-branded smart locks sold on Amazon (Archive), which included model numbers:

These PoCs were tested and proven effective on all of the aforementioned smart lock models.

If you have any feedback or encounter any issues, feel free to reach out or create an issue.


Contents

  • CVE-2022-45636 - Insecure Authorization Scheme for API Requests in DBD+ Mobile Companion Application for Megafeis Smart Locks
  • CVE-2022-45637 - Insecure Password Reset Code Expiry Mechanism for Megafeis Smart Locks
  • CVE-2022-45634 - Username Disclosure Vulnerability in DBD+ Application Used by Megafeis Smart Locks
  • CVE-2022-45635 - Insecure Password Policy & Lack of Rate Limiting on Megafeis Smart Lock API Server

Disclosure Timeline

Date Summary
2022-08-05 1st Vendor Outreach
2022-08-23 2nd Attempt at Vendor Outreach
2022-11-16 MITRE notified; CVE IDs requested
2023-01-31 CVEs Assigned
2023-03-03 Advisories Published

Demo

Demo Video


Troubleshooting

If you encounter any issues, please raise them here in this repository. Before that however, be sure that nothing mentioned below is causing your error.

  1. Please make sure that you have cloned the entire repo before executing any individual exploits.
  2. There is an error in your arguments. Please see the example commands before execution.
  3. You must be connected to the internet!
  4. You are using non-US phone numbers in the PoC script for CVE-2022-45637.
  5. The back-end HTTP API has been patched by MEGAFEIS.

Contributing

When contributing to this repository, please discuss the changes you wish to make via issue or email.


Disclaimer

This project is only for educational purposes. Any mischief conducted with this project is the user's own responsibility. I hereby forfeit responsibility for any illegal actions.


Acknowledgement

Reverse engineering the DBD+ application to figure out how the signing keys for back-end API requests were being generated was incredibly frustrating and tedious as a first timer. Without the encouragement and guidance of Ken Gannon, one of my many brilliant mentors at WithSecure, I probably wouldn't have been able to crack the code.

I'd also like to give many thanks to Ben Berkowitz and Adam Pilkey for playing a major role in the disclosure of these vulnerabilities and the publishing of my research well after my internship concluded.


Press

Technical Analysis:

Advisories:

Research Bulletin:


Contact

Author - Abdullah Ansari

Contact Info - Email


megafeis-palm's People

Contributors

berzerk0 avatar

Watchers

 avatar  avatar  avatar

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.