Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
practice-22-23 — CVE-2017-9608 analysis | Kitploit
Tools/GitHubGitHub/lacinquette/practice-22-23
Container SecurityVulnerability AnalysisExploitationFuzzingBinary AnalysisLearning & Education
GitHublacinquette/practice-22-23

practice-22-23

CVE-2017-9608 analysis

View Repository
353 years agoNot yet reviewed
Share

Project

To run: ./script.sh

GitHub repository - https://github.com/LaCinquette/practice-22-23

Progress

  1. For vulnerability research I chose the FFmpeg project. I found a commit that met the requirements, namely:

    • Matched the type CWE-476 - null pointer dereference
  2. Created a Dockerfile in which:

    1. Chose Ubuntu 22.04 as the base image
    2. Set DEBIAN_FRONTEND=nointeractive to avoid command-line interaction during package installation and other commands
    3. Installed the necessary dependencies listed in the official wiki
    4. Prepare the working directory (folder workdir)
    5. Download, extract and move the commit with the still unfixed vulnerability to the working directory
    6. Run the build of the program using the make utility
    7. Create the script copy_out.sh, which finds the required object file with the error and copies it to the workspace/out directory
    8. Leave an instruction to execute the copy_out.sh script, which should run when the container starts
  3. For automation, create the script script.sh, which builds the image and runs the container, then retrieves the file and moves it to the current directory:

    1. Remove the current out folder (if it exists)
    2. Build an image named ffmpeg_image
    3. Run a container based on the built image, passing the following parameters:
      • --rm for automatic container removal upon completion
      • -v $PWD/out:/workspace/out to mount a temporary directory through which the object file is transferred to the host
    4. Copy the required file from the out folder
    5. Remove the out folder

Vulnerability Analysis

Sources:

  • Commit with the fixed bug
  • Page on GitHub about the vulnerability
  • Letter from a security researcher about the vulnerability

Analysis:

Problem:

  1. Using the command ffmpeg -c:v dnxhd -i poc.mov -y output.ts, a specially crafted .mov file is fed to the program
  2. To parse the DNxHD format, the function dnxhd_parse in the file dnxhd_parser is called
  3. It in turn calls the function dnxhd_find_frame_end (in the same file), which under certain conditions does not find the end and returns a negative number that is not an error code
  4. This number, along with other parameters, is then passed to the function ff_combine_frame (located in the file parser) for frame combining
  5. Since this number is not an error code, ff_combine_frame interprets it as an offset and tries to re-read those bytes in the buffer. Since the buffer is empty at that moment, a null pointer dereference occurs, leading to a segmentation fault

In assembly:

0x08000d4e - start of section

  1. movsxd rcx, dword [rbx + 0xc]

    Register rcx gets a reference to pc->buffer

  2. add rcx, rdi

    Add next to pc->buffer

  3. add rcx, qword [rbx]

    Add pc->last_index to next and pc->buffer

  4. movzx edi, byte [rcx]

    Compute the byte at address rcx, but since pc->buffer is initially null, we get a segmentation fault

Solution:

Prevent access to an unallocated memory region by correctly handling the exceptional case. When a negative number of remaining bytes is detected, continue processing the file by skipping the loop.

Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    755
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    510
  • 3

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    415
  • 4

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    343
  • 5

    antifox

    antifox-ai/antifox

    AI multi-agent autonomous penetration testing platform that runs recon, attack-surface discovery, exploitation validation and evidence-backed report delivery.

    259
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    258

Explore all tools

Browse our collection of tools

View all tools →