定制 dmk/mksanitizedparameters 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

dmk/mksanitizedparameters

Composer 安装命令:

composer require dmk/mksanitizedparameters

包简介

Sanitize $_REQUEST, $_POST and $_GET before the processing of TYPO3 in backend or frontend starts. Take a look into the documentation how to add your own rules or see which one exist.

README 文档

README

TYPO3 compatibility Latest Stable Version Total Downloads Build Status License

What does it do?

Sanitizes all parameters in $_GET, $_POST and ServerRequestInterface $requestfor frontend and backend. Every possible parameter can be configured separately. The configuration can be for a specific position in the parameter array or common for every possible position or even default for all parameters, which are not configured.

This way possible attacks like MySQL injections can be prevented even for parameters where attack potential was not suspected. So unclosed security holes are harder or even not at all exploited.

Taking care of the correct data type of a parameter is now done in one single place. You don't need to call intval() for numeric parameters every time you use them (e.g. in a MySQL query). You can use them safe and directly without any further action at any place you want. You just have to provide the correct rule/configuration to be sure your code is not vulnerable to MySQL injections etc.

The sanitizing itself is done through the filter function of PHP. So you can take full advantage of it's features and provide even custom filters.

Features

The extension has 3 modes which can be configured through extension configuration:

  • stealth mode: simulate the sanitizing and log all theoretical actions. you also need to set a page id where the logs are written to.
  • log mode: every parameter which is sanitized (has changed) will be logged at warn level. This way you can investigate what happened. Either it was an attack attempt or the rules have to be adjusted.
  • debug mode: useful during development. every parameter which is sanitized (has changed) will be reported on the screen through a debug message.

Rules

Own rules for sanitizing a parameter can be registered easily. see rules

UsersManual

Rules

ChangeLog

dmk/mksanitizedparameters 适用场景与选型建议

dmk/mksanitizedparameters 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 36.07k 次下载、GitHub Stars 达 2, 最近一次更新时间为 2016 年 08 月 09 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「security」 「sanitize」 「parameter」 「TYPO3 CMS」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 dmk/mksanitizedparameters 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 dmk/mksanitizedparameters 我们能提供哪些服务?
定制开发 / 二次开发

基于 dmk/mksanitizedparameters 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 36.07k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 25
  • 依赖项目数: 1
  • 推荐数: 2

GitHub 信息

  • Stars: 2
  • Watchers: 26
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2016-08-09