Skip to content

wechat-php-sdk 存在XXE漏洞 #35

@niubl

Description

@niubl

漏洞文件:
src/Wechat.php

漏洞原因:
调用simplexml_load_string函数未禁用实体引用,导致攻击者可以读取服务器任意文件

漏洞修复:
在所有调用simplexml_load_string函数前调用libxml_disable_entity_loader(true)禁止实体引用

漏洞证明:

报告来自:
niubl of Tencent Blade Team

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