DEF CON 33 - Never enough about cameras: Firmware  keys hidden under the rug - Alexandru Lazar

DEF CON 33 - Never enough about cameras: Firmware keys hidden under the rug - Alexandru Lazar

Source: YouTube · DEFCONConference · published Oct 10, 2025 · 26:13

Cybersecurity
No ratings yet Log in to rate
Transcript Available
Description

The video details how to exploit firmware vulnerabilities in Dahua (DHA) security cameras to achieve code execution, highlighting insecure default configurations and weak authentication. A key goal is demonstrating that these devices can be compromised via buffer overflows and improper parsing, enabling remote code execution without requiring full system access.

Key Takeaways:
• Firmware extraction from DHA devices via website or flash chip reading 1:49
• File system decryption using AES-256-CBC with hardcoded key derivation and IV generation 5:36
• Stack-based buffer overflow in HTTP RPC2 handler due to incorrect string length checks 15:16
• Exploitation via memory overwrite of session structure to redirect cleanup function to system call 16:47
• Use of TFTP and LD preload to load custom libraries and achieve root shell 18:48
• Stack overflow in IPv6 host header parsing with a custom gadget that writes payload to BSS section 21:08

The researchers successfully achieved remote code execution on multiple DHA devices using a combination of reverse engineering, buffer overflow, and privilege escalation techniques, with the vendor promptly responding and releasing affected device lists.

Sources:

  • 1:49 Firmware extraction methods for DHA devices
  • 5:36 AES-256-CBC decryption process and key derivation
  • 15:16 HTTP RPC2 buffer overflow vulnerability
  • 16:47 Session structure overwrite and system call injec

Generate CPE Credits

Generate a professional CPE document from this video's transcript.

Estimated credit: 0.5 CPE hours

Estimate uses the video runtime (1 hour ≈ 1 CPE, rounded to the nearest 0.5, minimum 0.5, maximum 2.0). The final amount can be lower after review, never higher.

Topic: Cybersecurity. Commonly maps to: Security and Risk Management, Security Operations. Exact CISSP domains are assigned during generation.

CISSP Domain Mapping
Learning Objectives
Self-Assessment Questions
PDF Export Ready

Free account. One generation at a time, with a daily limit.

CPEBuddy is independent and not affiliated with or endorsed by ISC2, ISACA, or any certification body. Exports are formatted for common CPE submissions; acceptance is at your certification body's discretion.

Watch on YouTube

Transcript Preview

First 800 characters of the transcript

Welcome everyone. Unfortunately, the screen will not be working. So, some things might be hard to follow, but just know that if you don't understand something, it's not you, it's the screen. So, anyway, my name is Alexander Lazer. I'm a security researcher at B Defender and today we'll talk about cameras, specifically DHA devices, how to get their firmware and two vulnerabilities that can be turned into code execution. But first, why cameras? Well, in the year 2025, people still expose their webcams to the internet. Most of those devices have simple exploits that are also reliable for multiple versions. So it makes them the perfect targets for a botnet. Then there were recent military reports that these security cameras are being hacked in order to follow logistic movements. And another ca…