Leakage of Authorization-Data in IoT Device Sharing: New Attacks and Countermeasure

Bin Yuan, Maogen Yang, Zhen Xu, Qunjinming Chen, Zhanxiang Song, Zhen Li, Deqing Zou, Hai Jin

Introduction

The proliferation of IoT devices in smart homes has made device sharing—or delegation—a standard feature. Whether it is an Airbnb host granting a guest access to a smart lock or a homeowner sharing light controls with family members, the ability to delegate permissions is essential. However, the lack of industry-wide standards for these processes has led to a "wild west" of ad-hoc implementations. Researchers have recently identified critical security vulnerabilities in how popular IoT platforms handle this delegation, potentially allowing revoked users to maintain unauthorized access indefinitely.

The Problem: Authorization-Data Leakage

Most IoT clouds rely on authorization-data—such as device IDs, MQTT topics, or secret tokens—to verify and grant access. The fundamental issue discovered is that this sensitive data is often shared directly with the guest (the delegatee).

Delegation scenarios in IoT ecosystems.

If this data is static (e.g., a hardware-bound device ID) or if a malicious guest can update it before their access is revoked, they can bypass revocation. This allows them to continue controlling devices or eavesdropping on data long after the owner believes access has been terminated.

Methodology

The research followed a two-pronged approach: systematic attack discovery and the development of an automated defense mechanism.

Vulnerability Analysis

The team analyzed six major IoT platforms, including ThingsBoard, Kaa, and JetLinks. By simulating devices and intercepting traffic via Wireshark, they tracked the lifecycle of authorization-data from creation through delegation to revocation. This allowed them to identify points where a malicious guest could retain credentials.

SecHARE: An Automated Defense

To address these flaws, the researchers developed SecHARE, a tool designed to automatically patch vulnerable IoT clouds. The core innovation is the use of Shadow Authorization-Data. Instead of providing a guest with real credentials, the cloud generates a "shadow" version—a random alias. SecHARE acts as an internal proxy, mapping these shadow IDs back to the real credentials only when authorized.

To ensure ease of deployment, SecHARE utilizes Aspect-Oriented Programming (AOP) via AspectJ. This allows security logic to be "woven" into the cloud’s existing bytecode at runtime, eliminating the need for developers to manually rewrite large portions of their codebase.

Key Results and Findings

The study identified six distinct types of data leakage, ranging from MQTT topic and password leakage to SDK token and URL leakage. These findings were significant enough to result in 5 CNVDs (Chinese National Vulnerability Database IDs).

Summary of discovered flaws across major IoT platforms.

Beyond identifying vulnerabilities, the evaluation of SecHARE demonstrated its practicality for real-world deployment:

  • Minimal Overhead: Individual device control operations saw a negligible overhead of only 3ms to 14ms.
  • Resource Efficiency: CPU and memory usage increased by less than 0.2%, making it suitable for high-traffic commercial environments.
  • Transparency: The shadow data approach is entirely transparent to end-users; owners and guests continue to use their applications without any change in experience.

Conclusion and Future Work

The research highlights a critical architectural flaw in modern IoT delegation: the "static credential trap." By decoupling device identity from access capability through shadow data, SecHARE provides a robust and efficient countermeasure.

While currently optimized for Java-based clouds, future work aims to expand SecHARE’s support to other languages like Go and Python. Additionally, the researchers plan to explore the use of Natural Language Processing (NLP) to further automate the identification of sensitive methods within source code, reducing the need for manual configuration.

Summary updated

Abstract

Device sharing among users is a common functionality in today's IoT clouds. Supporting device sharing are the delegation methods proposed by different IoT clouds, which we find are heterogeneous and ad-hoc — IoT clouds use various data (e.g., device ID, product ID, and access token) as authorization certificates. In this paper, we report the first systematic study on how the authorization-data are managed in IoT device sharing. Our study brought to light the security risks in today's IoT authorization-data management, identifying 6 authorization-data leakage flaws. To mitigate such flaws, we propose an approach to hide the authorization-data from the delegatee (a.k.a., the user authorized to access the devices) without disrupting the device sharing services. We propose SecHARE, an automated tool to patch the vulnerable IoT clouds. We applied SecHARE to 3 popular open-source IoT clouds. Results have shown the compatibility, effectiveness, and efficiency of SecHARE. We have made SecHARE publicly available.
BibTeX
@article{yuan2024leakage,
  author = {Bin Yuan and Maogen Yang and Zhen Xu and Qunjinming Chen and Zhanxiang Song and Zhen Li and Deqing Zou and Hai Jin},
  title = {{Leakage of Authorization-Data in IoT Device Sharing: New Attacks and Countermeasure}},
  journal = {IEEE Trans. Dependable Secur. Comput.},
  year = {2024},
  doi = {10.1109/tdsc.2023.3323713},
}
Figure