Guest User

Untitled

a guest
Mar 12th, 2025
569
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.33 KB | None | 0 0
  1. ``Forensics Question 1 correct``
  2.  
  3. Open ``pGina.fork`` and go to ``Plugin Selection``
  4.  
  5. Double click ``LDAP`` and check ``Show Text`` for the ``Search Password``
  6.  
  7. The Search DN, ``uid=admin,ou=system``, is the answer to the first part
  8. The Search Password, ``seeleisreal``, is the answer to the second part
  9.  
  10. ``Forensics Question 2 correct``
  11.  
  12. This forensic requires us to look in the histories of Microsoft Edge
  13.  
  14. The history file is stored in the following directory: ``C:\Users\{user}\AppData\Local\Microsoft\Edge\User Data\Default\History``
  15.  
  16. These files are SQLite databases, so a SQLite Database viewer is required. On this forensic, I used ``https://inloop.github.io/sqlite-viewer/``
  17.  
  18. For each database file, look at the ``urls`` and ``downloads`` tables, looking for a match to pinball
  19.  
  20. Eventually, you check the database file of ``mkatsuragi``, and you find data related pinball. ``mkatsuragi`` is the answer to the first part of the question
  21.  
  22. Since this on a live system, we can log into the mkatsuragi's account, and the README is so convienent by giving us the password to it
  23.  
  24. Log into the account and open edge and go to the history, where you see two dates: February 3, 2025 and February 5, 2025
  25.  
  26. The second part's answer is February 3, 2025 in MM/DD/YYYY format, so ``2/3/2025``
  27.  
  28. ``Forensics Question 3 correct``
  29.  
  30. This is an alternative data stream (ADS) question
  31.  
  32. To find all the data streams for the wallpaper file, located at ``C:\Users\sikari\Pictures\wallpaper.jpg``, run the following command: ``Get-Item "C:\Users\sikari\Pictures\wallpaper.jpg" -Stream *``
  33.  
  34. The stream name ``ramiel`` is what we are looking for: get the contents using the following command: ``Get-Content "C:\Users\sikari\Pictures\wallpaper.jpg" -Stream ramiel``
  35.  
  36. The content is this: ``I am the lowest of the low``
  37.  
  38. ``Removed unauthoirzed user mimakinami``
  39.  
  40. Open ``Apache Directory Studio`` then click ``NERV`` in the ``Connections`` tab
  41.  
  42. After that, expand ``DIT`` and go to ``Root DSE\dc=nerv,dc=net,ou=users`` and delete ``uid=mimakinami``
  43.  
  44. ``User alsoryu is not an administrator``
  45.  
  46. Open ``Apache Directory Studio`` then click ``NERV`` in the ``Connections`` tab
  47.  
  48. After that, expand ``DIT`` and go to ``Root DSE\dc=nerv,dc=net,ou=groups`` and click on ``cn=Administrators``
  49.  
  50. Delete the ``member`` row containing alsoryu
  51.  
  52. ``User rayanami has a password``
  53.  
  54. Open ``Apache Directory Studio`` then click ``NERV`` in the ``Connections`` tab
  55.  
  56. After that, expand ``DIT`` and go to ``Root DSE\dc=nerv,dc=net,ou=users``, right click ``uid=rayanami`` and go to Extended Operations > Password Modify...
  57.  
  58. Check ``Old password not available (admin only)`` and enter some random password (can't generate a password)
  59.  
  60. ``User sikari has password hash stored in SSHA-512``
  61.  
  62. Open ``Apache Directory Studio`` then click ``NERV`` in the ``Connections`` tab
  63.  
  64. After that, expand ``DIT`` and go to ``Root DSE\dc=nerv,dc=net,ou=users,uid=sikari``, and double click the userPassword attribute
  65.  
  66. Enter a new password (I recommend the current password) and set the hashing method to ``SSHA-512``
  67.  
  68. ``Built-In Windows Administrator Disabled``
  69.  
  70. Open ``Apache Directory Studio`` then click ``NERV`` in the ``Connections`` tab
  71.  
  72. After that, expand ``DIT`` and go to ``Root DSE\dc=nerv,dc=net,ou=system,uid=admin``, right click inside the attribute editor and click ``Add Attribute...``
  73.  
  74. For the name, type ``pwdAccountLockedTime`` and click Finish
  75.  
  76. You will be given warnings, select to give the attribute a value and give it the value ``000001010000Z``, selecting the checkbox to make the value valid
  77.  
  78. Once the value is saved, it will look like it didn't create a value. This is expected as attribute is considered an "operational attribute"
  79.  
  80. Open an elevated command prompt and run ``net user Administrator /active:no``
  81.  
  82. Reference: https://stackoverflow.com/questions/26334705/how-to-disable-user-in-apache-directory-ldap
  83.  
  84. ``Limit use of blank passwords to console logon only [Enabled]``
  85.  
  86. Open ``secpol.msc`` and go to ``Local Policies\Security Options`` and set ``Accounts: Limit local account use of blank passwords to console logon only`` to ``Enabled``
  87.  
  88. ``Authenticated Users are no longer trusted for delegation``
  89.  
  90. Open ``secpol.msc`` and go to ``Local Policies\User Rights Management`` and clear ``Enable computer and user accounts to be trusted for delegation``
  91.  
  92. ``Audit sensitive privledge use [success/failure]``
  93.  
  94. Open ``secpol.msc`` and go to ``Local Policies\Audit Policy`` and configure ``Audit privledge use`` to audit success and failure events
  95.  
  96. Then go to ``Local Policies\Advanced Audit Policy Configuration\System Audit Policies - Local Group Policy Object\Privledge Use`` and configure ``Audit Sensitive Privilege Use`` to audit success and failure events
  97.  
  98. ``Users may no longer logon as a service``
  99.  
  100. Open ``secpol.msc`` and go to ``Local Policies\User Rights Management`` and remove the ``Users`` group from ``Log on as a service``
  101.  
  102. ``Use FIPS complient algorithms for encryption, hashing, and signing [enabled]``
  103.  
  104. Open ``secpol.msc`` and go to ``Local Policies\Security Options`` and set ``System cryptography: Use FIPS compliant cryptographic algorithms, including encryption, hashing and signing algorithms`` to ``Enabled``
  105.  
  106. ``RDP Connection Security Rule is configured to require inbound authentication``
  107.  
  108. Open ``secpol.msc`` and go to ``Windows Defender Firewall with Advanced Security\Windows Defender Firewall with Advanced Security - Local Group Policy Object\Connection Security Rules`` and double click ``RDP``
  109.  
  110. Go to the ``Authentication`` tab and set the authentication mode to require inbound and outbound connections
  111.  
  112. ``WinRM only allows management from the local system (README VULN)``
  113.  
  114. Open ``gpedit.msc`` and navigate to ``Computer Configuration\Administrative Templates\Windows Components\Windows Remote Management\WinRM Service`` and enable ``Allow remote server management through WinRM``, supplying an IPv4 filter of ``127.0.0.1``
  115.  
  116. ``Windows Defender Firewall is active on Ethernet0 interface when using Public profile``
  117.  
  118. Open Windows Firewall and click on ``Windows Defender Firewall Properties``. Navigate to ``Public Profile`` and click ``Customize`` next to ``Protected network connections:``
  119.  
  120. Check the ``Ethernet0`` checkbox
  121.  
  122. ``Removed SMB v1.X support``
  123.  
  124. Open ``Server Manager`` and click Manage > Remove Roles and Feature. Go to the ``Features`` tab and uncheck the ``SMB 1.0/CIFS File Sharing Support`` feature and then procede with the uninstallation
  125.  
  126. ``Group Users no longer has full control over Pydio folder``
  127.  
  128. Locate the ``pydio`` folder in ``C:\inetpub\wwwroot`` and open its advanced security menu. Disable inheritance and convert the permissions to explicit permissions. Edit the ``Users`` group permissions to only give the group the ``Read & Execute``, ``List folder contents``, and ``Read`` permissions
  129.  
  130. ``Screen locks on screensaver``
  131.  
  132. Open CMD and run ``reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v ScreenSaverIsSecure /t REG_SZ /d 1 /f``
  133.  
  134. ``A majority of Windows Updates are installed``
  135.  
  136. Windows Updates are currently broken on this image. Trying to start the ``Windows Update`` service, ``wuauserv``, you get the following error: ``The service is not responding to the control function``
  137.  
  138. The easiest way to fix this is to get a baseline of the ``wuauserv`` registry keys, which can be found here: https://www.elevenforum.com/t/restore-default-services-in-windows-11.3109
  139.  
  140. After you import the reg file, start the service, but however, you are not done: some of the update downloads are broken
  141.  
  142. To fix this, follow the directions listed here: https://answers.microsoft.com/en-us/windows/forum/all/windows-10-update-error-code-0x8007041d/1236b92b-5680-46e3-87f7-5d86c9305b96
  143.  
  144. If you don't want to restart the computer, simply manually start the services that you previous stopped using ``net start <service name>``
  145.  
  146. Finally, install updates as you normally would
  147.  
  148. ``Simple TCP/IP Services is stopped, disabled, or removed``
  149.  
  150. Open an elevated command prompt and run ``net stop simptcp && sc config simptcp start=disabled``
  151.  
  152. ``Notepad++ has been updated``
  153.  
  154. Open ``Notepad++`` and go to ? > Update Notepad++
  155.  
  156. ``Print Server role has been removed``
  157.  
  158. Open ``Server Manager`` and click Manage > Remove Roles and Feature. Go to the ``Server Roles`` tab and uncheck the ``Print and Documents Services`` role and then procede with the uninstallation
  159.  
  160. ``TeamViewer removed``
  161.  
  162. Using the information from the Desktop Goose vuln, once in the A:\ drive, delete ``TeamViewer.exe``
  163.  
  164. Doing a simple ``dir`` command in A:\, we find ``TeamViewer.exe``, delete it and you will get the vuln
  165.  
  166. ``Steam was removed``
  167.  
  168. This checks for traces that the standard Windows uninstallation process does not remove. The easiest way to remove these traces is using a 3rd party uninstaller, such as Bulk Crap Uninstaller: https://www.bcuninstaller.com/
  169.  
  170. Uninstall Steam using this 3rd party uninstall tool, opting to remove traces
  171.  
  172. ``Legacy IE11 browser removed``
  173.  
  174. Open ``appwiz.cpl`` and uninstall ``Internet Explorer Launcher``
  175. After that, open Settings and go to ``System > Optional Features`` and uninstall ``Internet Explorer mode``
  176.  
  177. ``Desktop Goose Removed``
  178.  
  179. Getting the process list using ``Get-Process`` (more specifically, ``Get-Process | ForEach-Object { Write-Output "$($_.Name) - $($_.Path)" }``), we see that GooseDesktop is running from ``A:\VM\GooseDesktop.exe``. Attempting to go to A:\, we are met with an access denined error
  180.  
  181. Open CMD as admin and then go to the A:\ drive, you will be successful
  182.  
  183. Remove the ``VM`` directory and you will get the vuln
  184.  
  185. ``Removed malicious WinDivert driver``
  186.  
  187. I only got this vuln because I have a driver baseline function in my script (not sure how someone is supposed to get this without a baseline)
  188.  
  189. Delete ``WinDivert64.sys`` from ``C:\Windows\System32\drivers``
  190.  
  191. ``Removed unauthorized .mp3 files from sikari's web file share``
  192.  
  193. According to the ReadMe, media files are not allowed, so this includes the web media files
  194.  
  195. You can either login to the web dashboard and delete them or go to where they are stored (``C:\inetpub\wwwroot\pydio\data\personal\sikari\SDAT``) and delete them
  196.  
  197. Either way, you get the vuln
  198.  
  199. ``DNT requestes enabled in Microsoft Edge``
  200.  
  201. Open Edge and go to ``Settings > Privacy, search, and services`` and check ``Send 'Do Not Track' requests``
  202.  
  203. ``Microsoft Defender SmartScreen with PUA blocking is enabled in Microsoft Edge system-wide``
  204.  
  205. When attempting to configure these settings, we see that they are "managed by our organization"
  206.  
  207. This means that the setting is configured either through registry or group policy
  208.  
  209. Checking group policy reveals that this is not configured here, so registry it is!
  210.  
  211. Going a group policy website (I use https://admx.help), you can look up the registry keys for policies (if a policy is configured, but not through gpedit, it won't show up there)
  212.  
  213. The policies we need are ``Configure Microsoft Defender SmartScreen (HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Edge\SmartScreenEnabled)`` and ``Configure Microsoft Defender SmartScreen to block potentially unwanted apps (HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Edge\SmartScreenPuaEnabled)``
  214.  
  215. Set both of these reg values to 1 and you get the vuln
  216.  
  217. ``RDP: Drive redirection disabled``
  218.  
  219. Unlike the Edge settings, this is configured through group policy
  220.  
  221. TIP: To see all configured settings, go to ``All Settings`` in either ``Computer Configuration`` or ``User Configuration`` and click on State
  222.  
  223. This setting is configured under ``Computer Configuration``, so go to ``Computer Configuration > Administrative Templates > All Settings``, click on State, and set ``Do not allow drive redirection`` to ``Enabled``
  224.  
  225. After that, run ``gpupdate /force``
  226.  
  227. ``RDP: Client security level set to High``
  228.  
  229. Open ``gpedit.msc`` and go to ``Computer Configuration\Policies\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Security`` and set ``Set client connection encryption level`` to ``High Level``
  230.  
  231. ``pGina: Simple Demonstration Authentication plugin disabled``
  232.  
  233. Open ``pGina.fork`` and go to ``Plugin Selection`` and uncheck ``Simple Demonstration``
  234.  
  235. ``pGina: Only Administrators are permitted to login``
  236.  
  237. Open ``pGina.fork`` and go to ``Plugin Selection``
  238.  
  239. Double click ``LDAP``, go to the ``Authorization`` tab
  240.  
  241. Change the default behavior to ``Deny``
  242.  
  243. Set ``Path`` to ``cn=Administrators,ou=groups,dc=nerv,dc=net`` and set ``Filter`` to ``(&(member=uid=%u,ou=users,dc=nerv,dc=net))`` (leave other options as default)
  244.  
  245. Add the rule and save
  246.  
  247. ``pGina: Automatically deny login if LDAP authentication returns an error``
  248.  
  249. Open ``pGina.fork`` and go to ``Plugin Selection``
  250.  
  251. Double click ``LDAP``, go to the ``Authorization`` tab and uncheck ``Allow when server is unreachable`` and check ``Deny when LDAP authentication fails``
  252.  
  253. ``pGina: Change Password provider no longer sends password updates in plain text``
  254.  
  255. Open ``pGina.fork`` and go to ``Plugin Selection``
  256.  
  257. Double click ``LDAP``, go to the ``Change Password`` tab and change ``Plain Text`` to ``SSHA-512`` (doesn't have to be this, but make it consistent based on another vuln)
  258.  
  259. ``pGina: Empty passwords no longer accepted on LDAP authentication fallback``
  260.  
  261. Open ``pGina.fork`` and go to ``Plugin Selection``
  262.  
  263. Double click ``LDAP``, go to the ``Authentication`` tab and uncheck ``Allow Empty Passwords``
  264.  
  265. ``ApacheDS: Anonymous bind disabled``
  266.  
  267. Open ``Apache Directory Studio`` then right-click ``NERV`` then click ``Open Configuration``
  268.  
  269. Uncheck the ``Allow Anonymous Access`` option
  270.  
  271. ``ApacheDS: LDAPS is enabled and used by pGina (README VULN)``
  272.  
  273. We must make the certificate file that LDAPS will use, to do this, use ``New-SelfSignedCertificate`` and ``Export-Certificate``
  274.  
  275. ```
  276. $certname = "nerv.net"
  277. $cert = New-SelfSignedCertificate -Subject "CN=$certname" -CertStoreLocation "Cert:\CurrentUser\My" -KeyExportPolicy Exportable -KeySpec Signature -KeyLength 2048 -KeyAlgorithm RSA -HashAlgorithm SHA256
  278. Export-Certificate -Cert $cert -FilePath "C:\$certname.cer"
  279. ```
  280. Open ``Apache Directory Studio`` then right-click ``NERV`` then click ``Open Configuration``
  281.  
  282. Go to ``LDAP/LDAPS Servers`` and check ``Enable LDAPS Server``. Expand ``SSL/Start TLS Keystore`` and type in ``C:\nerv.net.cer``. Press CTRL + S to save this configuration
  283.  
  284. Open ``pGina.fork`` and go to ``Plugin Selection`` and double tap ``LDAP``. Change the LDAP port to ``10636`` and check ``Use SSL`` and ``Validate Server Certificate``, typing ``C:\nerv.net.cer`` in the ``Certificate`` textbox
  285.  
  286. ``ApacheDS: Kerberos is enabled and used by pGina (README VULN)``
  287.  
  288. Open ``Apache Directory Studio`` then right-click ``NERV`` then click ``Open Configuration``
  289.  
  290. Go to ``Kerberos Server`` and check ``Enable Kerberos Server``. Press CTRL + S to save this configuration
  291.  
  292. Open ``pGina.fork`` and go to ``Plugin Selection``
  293.  
  294. Check ``KRB5 Authentication Plugin`` and double click it, typing ``nerv.net`` into the textbox
  295.  
  296. Go to ``Plugin Order > Authnetication`` and click KRB5 Authentication Plugin. Then click the up arrows until it is at the top of the list
  297.  
  298. ``IIS: Pydio maximum upload size increased to 4.2 GB (README VULN)``
  299.  
  300. Open Pydio's config file located at ``C:\inetpub\wwwroot\pydio\web.config``
  301.  
  302. To edit this file, we need administrative permissions in the text editor we want to change this file in. The easiest way to do this is to open CMD as administrator and run the following command: ``notepad "C:\inetpub\wwwroot\pydio\web.config"``
  303.  
  304. In this file, set ``maxAllowedContentLength`` to ``4294967295``
  305.  
  306. Reference: https://stackoverflow.com/questions/4022434/how-to-set-the-maxallowedcontentlength-to-500mb-while-running-on-iis7
  307.  
  308. ``IIS: Pydio no longer treats yikari as an admin by default``
  309.  
  310. It's always a good thing to look at configuration files
  311.  
  312. In the pydio boot configuration file, ``C:\inetpub\wwwroot\pydio\data\plugins\boot.conf``, there is a line defining an admin user: ``"AJXP_ADMIN_LOGIN":"yikari",``
  313.  
  314. Remove this line and you will get the vuln
  315.  
  316. ``IIS: HTTPS has been enabled for files.nerv.net (README VULN)``
  317.  
  318. Open ``IIS Manager`` and go to ``TOKYO-3 ... > Sites > Right Click files.nerv.net > Edit Bindings``
  319.  
  320. Create a new binding, setting the type to https, host name to ``files.nerv.net``, and supplying the given certificate in the dropdown
  321.  
  322. All other settings remain the same
  323.  
  324. ``IIS: HSTS has been enabled for files.nerv.net``
  325.  
  326. Open ``IIS Manager`` and go to ``TOKYO-3 ... > Sites > Right Click files.nerv.net > Manage Website > Advanced Settings``
  327.  
  328. Expand the ``HSTS`` settings and set ``Enabled`` and ``IncludeSubDomains`` to ``True``
  329.  
  330. ``IIS: HTTP Logging Enabled``
  331.  
  332. Open ``IIS Manager`` and go to ``TOKYO-3 ... > Sites > files.nerv.net`` and double click ``Logging``
  333.  
  334. Enable the module, no additional settings need to be configured
  335.  
  336. ``DNS: DNSSEC enabled for nerv.net.zone``
  337.  
  338. Open ``DNS`` and go to ``TOKYO-3 > Forward Lookup Zones > Right Click nerv.net > DNSSEC > Sign the Zone``
  339.  
  340. Go through the DNS signing wizard; default signing settings are fine
  341.  
  342. ``DNS: Dynamic record updates disabled``
  343.  
  344. Open ``DNS`` and go to ``TOKYO-3 > Forward Lookup Zones > Right Click nerv.net > Properties``
  345.  
  346. Set ``Dynamic updates`` to ``None``
  347.  
  348. ``MySQL Server: Strict mode enabled``
  349.  
  350. This check requires us to change the MySQL configuration file because changing the database value itself doesn't give us the points
  351.  
  352. To find the configuration file, ``my.ini``, look in the shortcut path of the MySQL Command Line Client, which is the following: ``"C:\Program Files\MySQL\MySQL Server 8.4\bin\mysql.exe" "--defaults-file=C:\ProgramData\MySQL\MySQL Server 8.4\my.ini" "-uroot" "-p"``
  353.  
  354. Our configuration file is located at ``C:\ProgramData\MySQL\MySQL Server 8.4\my.ini``
  355.  
  356. To edit this file, we need administrative permissions in the text editor we want to change this file in. The easiest way to do this is to open CMD as administrator and run the following command: ``notepad "C:\ProgramData\MySQL\MySQL Server 8.4\my.ini"``
  357.  
  358. Find the line that says ``[mysqld]``, and under it, put in the following configuration option: ``sql_mode="STRICT_TRANS_TABLES"``
  359.  
  360. ``MySQL Server: Root password changed``
  361.  
  362. Open the MySQL Command Line Client and login using the root password provided by the README (``impact2``)
  363.  
  364. Run the following command: ``FLUSH PRIVILEGES; ALTER USER 'root'@'localhost' IDENTIFIED BY 'new_password';`` where ``new_password`` can be any string you want
Add Comment
Please, Sign In to add comment