psecio/versionscan
Composer 安装命令:
composer require psecio/versionscan
包简介
A PHP version scanner for reporting possible vulnerabilities
README 文档
README
Versionscan is a tool for evaluating your currently installed PHP version and checking it against known CVEs and the versions they were fixed in to report back potential issues.
PLEASE NOTE: Work is still in progress to adapt the tool to linux distributions that backport security fixes. As of right now, this only reports back for the straight up version reported.
Installation
Using Composer
{
"require": {
"psecio/versionscan": "dev-master"
}
}
The only current dependency is the Symfony console.
Usage
To run the scan against your current PHP version, use:
bin/versionscan
The script will check the PHP_VERSION for the current instance and
generate the pass/fail results. The output looks similar to:
Executing against version: 5.4.24
+--------+---------------+------+------------------------------------------------------------------------------------------------------+
| Status | CVE ID | Risk | Summary |
+--------+---------------+------+------------------------------------------------------------------------------------------------------+
| FAIL | CVE-2014-3597 | 6.8 | Multiple buffer overflows in the php_parserr function in ext/standard/dns.c in PHP before 5.4.32 ... |
| FAIL | CVE-2014-3587 | 4.3 | Integer overflow in the cdf_read_property_info function in cdf.c in file through 5.19, as used in... |
Results will be reported back colorized as well to easily show the pass/fail of the check.
Parameters
There are several parameters that can be given to the tool to configure its scans and results:
PHP Version
If you'd like to define a PHP version to check other than the one the script finds itself, you can use the php-version parameter:
bin/versionscan scan --php-version=4.3.2
Report Only Failures
You can also tell the versionscan to only report back the failures and not the passing tests:
bin/versionscan scan --fail-only
Sorting results
You can also sort the results either by the CVE ID or by severity (risk rating), with the sort parameter
and either the "cve" or "risk" value:
bin/versionscan scan --sort=risk
Output formats
By default versionscan will output information directly to the console in a human-readable result. You can also specify other output formats that may be easier to parse programatically (like JSON). Use the --format option to change the output:
vendor/bin/versionscan scan --php-version=5.5 --format=json
Supported output formats are console, json, xml and html.
The HTML output format requires an --output option of the directory to write the file:
vendor/bin/versionscan scan --php-version=5.5 --format=html --output=/var/www/output
The result will be written to a file named something like versionscan-output-20150808.html
psecio/versionscan 适用场景与选型建议
psecio/versionscan 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 56.39k 次下载、GitHub Stars 达 248, 最近一次更新时间为 2013 年 12 月 13 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「security」 「version」 「scanner」 「vulnerability」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 psecio/versionscan 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 psecio/versionscan 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 psecio/versionscan 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Versioning behaviour for eloquent models
AMWSCAN (Antimalware Scanner) is a php antimalware/antivirus scanner console script written in php for scan your project. This can work on php projects and a lot of others platform.
Converts SemVer version (like Composer packages) into integer version with operators. Helps managing versions: store, compare, sort and retrive by conditions.
Use OpenAI to extract structured receipt and invoice data from Text, Html, Images and PDFs.
Provide a way to secure accesses to all routes of an symfony application.
Display a version number
统计信息
- 总下载量: 56.39k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 250
- 点击次数: 32
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2013-12-13