You are viewing a plain text version of this content. The canonical link for it is here.
Posted to announce@apache.org by Huajie Wang <be...@apache.org> on 2023/04/04 10:31:33 UTC

CVE-2022-46365: Apache StreamPark (incubating): Logic error causing any account reset

Severity: moderate

Description:

Logic error causing any account reset in Apache StreamPark for reporting this issue

References:

https://streampark.incubator.apache.org
https://www.cve.org/CVERecord?id=CVE-2022-46365


Re: CVE-2022-46365: Apache StreamPark (incubating): Logic error causing any account reset

Posted by Huajie Wang <be...@apache.org>.
hi Louis:

Thanks for your feedback. This method is a super administrator reset user
password operation, and it must be an administrator or a user who has
authorized this permission to request this method. Therefore, we believe it
is secure and there is shiro RequiresPermissions annotation in the
controller:

https://github.com/apache/incubator-streampark/blob/dev/streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/system/controller/UserController.java#L128



Best,
Huajie Wang



Louis Nyffenegger <lo...@gmail.com> 于2023年4月25日周二 08:43写道:

> Hi team,
>
> I was looking at this issue and noticed that when resetting passwords you
> are using an hardcoded value:
>
> https://github.com/apache/incubator-streampark/blob/dev/streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/system/service/impl/UserServiceImpl.java#L149-L162
>
> This is not ideal as it may allow an attacker to hijack an account when it
> gets reseted.
>
> Best,
> Louis
>
> On Tue, Apr 4, 2023 at 8:58 PM Huajie Wang <be...@apache.org> wrote:
>
> > Severity: moderate
> >
> > Description:
> >
> > Logic error causing any account reset in Apache StreamPark for reporting
> > this issue
> >
> > References:
> >
> > https://streampark.incubator.apache.org
> > https://www.cve.org/CVERecord?id=CVE-2022-46365
> >
> >
>

Re: CVE-2022-46365: Apache StreamPark (incubating): Logic error causing any account reset

Posted by Huajie Wang <be...@apache.org>.
hi Louis:

 Reseted password is hardcoded which may caus security issues, We have
started to fixed this issue and will generate a random password to return.
Look forward to hearing your feedback.




Best,
Huajie Wang



Louis Nyffenegger <lo...@gmail.com> 于2023年4月25日周二 08:43写道:

> Hi team,
>
> I was looking at this issue and noticed that when resetting passwords you
> are using an hardcoded value:
>
> https://github.com/apache/incubator-streampark/blob/dev/streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/system/service/impl/UserServiceImpl.java#L149-L162
>
> This is not ideal as it may allow an attacker to hijack an account when it
> gets reseted.
>
> Best,
> Louis
>
> On Tue, Apr 4, 2023 at 8:58 PM Huajie Wang <be...@apache.org> wrote:
>
> > Severity: moderate
> >
> > Description:
> >
> > Logic error causing any account reset in Apache StreamPark for reporting
> > this issue
> >
> > References:
> >
> > https://streampark.incubator.apache.org
> > https://www.cve.org/CVERecord?id=CVE-2022-46365
> >
> >
>

Re: CVE-2022-46365: Apache StreamPark (incubating): Logic error causing any account reset

Posted by Louis Nyffenegger <lo...@gmail.com>.
Hi team,

I was looking at this issue and noticed that when resetting passwords you
are using an hardcoded value:
https://github.com/apache/incubator-streampark/blob/dev/streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/system/service/impl/UserServiceImpl.java#L149-L162

This is not ideal as it may allow an attacker to hijack an account when it
gets reseted.

Best,
Louis

On Tue, Apr 4, 2023 at 8:58 PM Huajie Wang <be...@apache.org> wrote:

> Severity: moderate
>
> Description:
>
> Logic error causing any account reset in Apache StreamPark for reporting
> this issue
>
> References:
>
> https://streampark.incubator.apache.org
> https://www.cve.org/CVERecord?id=CVE-2022-46365
>
>