WP Manifestindependent plugin directory
manifest / integrations / telegram-bot-reply

Telegram Bot Reply WP Registry grade B. Medium-severity findings · 2 findingsWP RegistryMedium-severity findings · 2 findingsOpen the reportB

通过 Telegram bot 通知和回复博客评论

★ 7stars
1.2latest · 5 years ago

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/fhyuncai/telegram-bot-reply/archive/refs/heads/master.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

通过 Telegram bot 通知和回复博客评论

当前版本

V1.2

作者

FHYunCai

安装教程

前往 Release 下载源代码并将压缩包解压到 WordPress 插件目录 /wp-content/plugins/ ,前往 WordPress 后台启用并配置相关信息

如需使用回复功能,需在保存配置后点击 更新 Telegram Bot Webhook 按钮更新 Telegram bot webhook 配置

使用方法

插件配置完成后,如果需要回复评论,只需回复 Bot 发送的消息即可

如需删除新评论,回复需要删除的评论 [Del] 即可

代理服务

使用本插件需连接 Telegram API ,但在中国大陆的服务器无法直连 Telegram API ,为了方便使用故允许使用代理请求

在插件设置页面配置代理地址即可,如 https://api.telegram.org

更新日志

  • 1.2 2021/05/22

    此版本需更新 Webhook

    新增 消息发送测试

    修改 代理模式

    优化 配置页面文案

    优化 通过 Telegram Bot 回复评论时会自动批准原评论

  • 1.1 2020/05/10

    此版本需更新 Webhook

    修改 评论者若没有填写网址则返回 “无”

    新增 Webhook 首次使用及版本不一致提示

    新增 删除评论功能

  • 1.0 2020/04/25

    Telegram Bot Reply 的第一个版本

Releases

3 releases.

Tag
Published
1.2 latest
May 22, 2021 5 years ago
1.1
May 10, 2020 6 years ago
1.0
Apr 25, 2020 6 years ago

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.

B grade

Security

Telegram Bot Reply 1.2 · audited by WP Registry

Medium-severity findings.

2 medium
Audited release
1.2
Findings
2
Worst severity
medium
Content hash
bc96bef5b3686bd44a939bb0…

Findings

  • medium Settings save lacks CSRF nonce

    csrf

    option.php processes update_pluginoptions / update_tgbotwebhook / test_send from $_POST without wp_nonce_field or check_admin_referer. The options page is gated by administrator via add_options_page, but a logged-in administrator visiting a malicious page can have bot token, Telegram user id, and reply settings overwritten or webhook regenerated via CSRF.

    option.php:9-26

    Recommendation

    Add wp_nonce_field on the settings form and verify with check_admin_referer before updating options or calling Telegram setWebhook.

  • medium Webhook authenticates only by Telegram user id, no secret token

    auth_bypass

    The runtime webhook (webhook_<SecertKey>.php created from webhook.php) loads wp-load.php and accepts php://input JSON. Authorization is only comparing message.from.id to tgbot_reply_tguser_id; there is no X-Telegram-Bot-Api-Secret-Token (or equivalent) check. Anyone who learns the URL can forge updates as that Telegram user and approve/delete comments or post replies as the configured WP user.

    webhook.php:14-37

    Recommendation

    Validate Telegram webhook secret token header; reject requests that fail. Keep the path secret as defense in depth only.

WP Registry hashes the installable build and reports on that exact bytes-for-bytes copy. Embargoed findings are withheld until they are disclosed, so a clean verdict means nothing public is outstanding. WP Manifest does not audit code itself.