Giter Site home page Giter Site logo

RCE 漏洞 about pkuholecommunity HOT 4 CLOSED

PkuRH avatar PkuRH commented on May 24, 2024
RCE 漏洞

from pkuholecommunity.

Comments (4)

AllanChain avatar AllanChain commented on May 24, 2024 1

摘抄如下:

URL 识别逻辑把 URL 后面的内容搬运到搜索框并触发搜索

页面加载时自动搜索 URL # 后面的文字

搜索逻辑检测到隐藏参数,把 localStorage 修改为指定的内容

特殊参数形如 //setflag APPSWITCHER_ITEMS={"switcher_2": {"fix": {"hole": "..."}}}

下次访问时从 localStorage 读取代码并执行

热修复逻辑使用 eval


解决方法

扔掉热修复逻辑

from pkuholecommunity.

AllanChain avatar AllanChain commented on May 24, 2024

麻烦在 issue 中摘抄主要内容,方便其他人阅读。

xmcp 有删库前科,及时备份很重要 😏

我没来得及仔细看,猜测是 CTF 比赛在另一个地方故意弄了个 bug 吧,否则出题人不首先报告 bug 那道德上有问题。

from pkuholecommunity.

PkuRH avatar PkuRH commented on May 24, 2024

https://github.com/PKU-GeekGame/geekgame-1st/blob/45eda0dcd4ac200aea0a8c99d333bcc1cae727ce/writeups/xmcp/README.md?plain=1#L505-L509

from pkuholecommunity.

PkuRH avatar PkuRH commented on May 24, 2024

摘抄如下:

URL 识别逻辑把 URL 后面的内容搬运到搜索框并触发搜索

页面加载时自动搜索 URL # 后面的文字

搜索逻辑检测到隐藏参数,把 localStorage 修改为指定的内容

特殊参数形如 //setflag APPSWITCHER_ITEMS={"switcher_2": {"fix": {"hole": "..."}}}

下次访问时从 localStorage 读取代码并执行

热修复逻辑使用 eval

解决方法

扔掉热修复逻辑

👏

from pkuholecommunity.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.