sub2api icon indicating copy to clipboard operation
sub2api copied to clipboard

我搭建的平台没有对外开放却莫名被注册了一个账号,请检查一下是否是系统出现了漏洞

Open hubertshelley opened this issue 4 months ago • 5 comments

我搭建的平台没有对外开放却莫名被注册了一个账号,请检查一下是否是,注册的账号是:[email protected]

hubertshelley avatar Jul 28 '26 01:07 hubertshelley

没有对外开放指的是应该是两种意思吧:IP暴露;没有开放注册功能。 如果是后者,那才有问题,前者只是IP被扫到了罢了,太正常了

lzy2225846500 avatar Jul 28 '26 01:07 lzy2225846500

没有对外开放指的是应该是两种意思吧:IP暴露;没有开放注册功能。 如果是后者,那才有问题,前者只是IP被扫到了罢了,太正常了

@lzy2225846500 当前状态是开放了注册功能,但是我只是把v1通过nginx代理出去了,平台是局域网内部访问的,但是查看记录时注册ip是127.0.0.1,我在想是不是v1接口有漏洞也能直接注册

hubertshelley avatar Jul 28 '26 01:07 hubertshelley

@Wei-Shaw NEED HELP

hubertshelley avatar Jul 28 '26 01:07 hubertshelley

确认一下你的nginx配置是不是把应用完整反代出去了,提供下日志和/admin/audit-logs记录看看

Wei-Shaw avatar Jul 28 '26 01:07 Wei-Shaw

确认一下你的nginx配置是不是把应用完整反代出去了,提供下日志和/admin/audit-logs记录看看 @Wei-Shaw

nginx代理(api six) Image 当时版本及相关异常用户 Image /admin/audit-logs Image Image

-[ RECORD 1 ]-----
id                | 1574
created_at        | 2026-07-27 06:44:32.708085+08
actor_user_id     |
actor_email       |
actor_role        |
auth_method       |
credential_masked |
action            | auth.register
method            | POST
path              | /api/v1/auth/register
request_id        | 47976880-d951-4ca3-9580-1d3a244c6cfa
client_ip         | 127.0.0.1
user_agent        | Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/147.0.0.0 Safari/537.36
status_code       | 400
latency_ms        | 6
request_body      | {"email":"[email protected]","password":"***"}
extra             | {}

-[ RECORD 2 ]-----
id                | 1575
created_at        | 2026-07-27 06:44:37.521990+08
actor_user_id     |
actor_email       |
actor_role        |
auth_method       |
credential_masked |
action            | auth.send_verify_code.create
method            | POST
path              | /api/v1/auth/send-verify-code
request_id        | 926495a0-bd48-46ce-b16a-4f9739042775
client_ip         | 127.0.0.1
user_agent        | Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/147.0.0.0 Safari/537.36
status_code       | 200
latency_ms        | 10
request_body      | {"email":"[email protected]"}
extra             | {}

-[ RECORD 3 ]-----
id                | 1576
created_at        | 2026-07-27 06:44:48.541994+08
actor_user_id     |
actor_email       |
actor_role        |
auth_method       |
credential_masked |
action            | auth.register
method            | POST
path              | /api/v1/auth/register
request_id        | c4b9279f-f66e-4d74-b92e-a638d434f9d9
client_ip         | 127.0.0.1
user_agent        | Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/147.0.0.0 Safari/537.36
status_code       | 200
latency_ms        | 331
request_body      | {"email":"[email protected]","password":"***","verify_code":"460537"}
extra             | {}

-[ RECORD 4 ]-----
id                | 1577
created_at        | 2026-07-27 06:44:50.526289+08
actor_user_id     | 5
actor_email       | [email protected]
actor_role        | user
auth_method       | jwt
credential_masked | Bearer eyJhbG****bOgA
action            | keys.create
method            | POST
path              | /api/v1/keys
request_id        | e98ae9c1-f17c-454f-9121-6eb5a4d6e91d
client_ip         | 127.0.0.1
user_agent        | Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/147.0.0.0 Safari/537.36
status_code       | 200
latency_ms        | 17
request_body      | {"group_id":6,"name":"1"}
extra             | {}

hubertshelley avatar Jul 28 '26 02:07 hubertshelley