Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

composer更新提示有:发现1个影响1个软件包的安全漏洞公告。 #3065

Closed
hulang opened this issue Sep 10, 2024 · 2 comments
Closed
Labels

Comments

@hulang
Copy link

hulang commented Sep 10, 2024

所属功能组件

其它

ThinkPHP 版本

8.0.4

操作系统

win11

错误信息

@big-dream

Found 1 security vulnerability advisory affecting 1 package.
我的composer.json

{
    "name": "topthink/think",
    "description": "the new thinkphp framework",
    "type": "project",
    "keywords": [
        "framework",
        "thinkphp",
        "ORM"
    ],
    "homepage": "https://www.thinkphp.cn/",
    "license": "Apache-2.0",
    "authors": [
        {
            "name": "liu21st",
            "email": "[email protected]"
        },
        {
            "name": "yunwuxin",
            "email": "[email protected]"
        }
    ],
    "require": {
        "php": ">=8.0.0",
        "ext-fileinfo": "*",
        "ext-ftp": "*",
        "ext-json": "*",
        "ext-curl": "*",
        "ext-sodium": "*",
        "ext-zlib": "*",
        "topthink/framework": "^8.0",
        "topthink/think-orm": "^3.0",
        "topthink/think-multi-app": "^1.0.0",
        "topthink/think-view": "^2.0"
    },
    "require-dev": {
        "symfony/var-dumper": ">=4.2",
        "topthink/think-trace": "^1.0"
    },
    "autoload": {
        "psr-4": {
            "app\\": "app"
        },
        "psr-0": {
            "": "extend/"
        }
    },
    "config": {
        "preferred-install": "dist",
        "optimize-autoloader": true
    },
    "scripts": {
        "post-autoload-dump": [
            "@php think service:discover",
            "@php think vendor:publish"
        ]
    }
}

微信截图_20240910175544

其它说明

No response

@hulang hulang added the bug label Sep 10, 2024
@big-dream
Copy link
Contributor

相关信息:


不知道怎么评价,只能说可以无需理会。框架层面很难避免这个问题,因为主要是开发者自身有很大的因素,相当于直接在项目里写 exec($_GET['x'])
建议熟读安全指南《ThinkPHP开发指北(三)安全篇》做好相关处理基本都不会有太大问题

PS:以上仅代表个人观点

@hulang
Copy link
Author

hulang commented Sep 10, 2024

@big-dream
项目是一个空项目,操作方式
我是直接下载:https://github.com/top-think/think
把需要的

"topthink/think-multi-app": "^1.0.0",
"topthink/think-view": "^2.0"

加上后。。。
然后使用命令:composer update -vvv
就提示那个了。。。我关闭了。。。

@hulang hulang closed this as completed Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants