Skip to content

Commit 1975fd0

Browse files
authored
Merge pull request #177 from LEAFERx/master
Shorten leancloud counter security docs
2 parents 530474a + 38b0cf3 commit 1975fd0

File tree

2 files changed

+8
-46
lines changed

2 files changed

+8
-46
lines changed

docs/LEANCLOUD-COUNTER-SECURITY.md

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,3 @@
1-
The Leancloud visitor counter plugin used in NexT has a big security bug, by which someone could change your visitor number easily and even add/delete records in your database.
2-
3-
This bug is found by [LEAFERx](https://github.com/LEAFERx/) and confirmed by [Ivan.Nginx](https://github.com/ivan-nginx).
4-
5-
- Related issue: [#25](https://github.com/theme-next/hexo-theme-next/issues/25)
6-
7-
- Related pr: [#137](https://github.com/theme-next/hexo-theme-next/pull/137)
8-
9-
- Related plugin: [hexo-leancloud-counter-security](https://github.com/theme-next/hexo-leancloud-counter-security)
10-
11-
This bug could only be fixed manually.
12-
13-
**Warning: All NexT sites using Leancloud visitor counter that are not fixed and other sites integrated this function by similiar ways are considered unsecurity. Please fix it as soon as possible.**
14-
15-
---
16-
17-
For convience, this doc also includes the way to setup the plugin. If you have already done this, skip to *Deploy web engine to avoid your data being changed illegally*.
18-
191
Before you make the config, please upgrade your NexT version to v6.0.6 or greater.
202

213
Please note the difference between **site config file** and **theme config file**
@@ -187,4 +169,6 @@ Please note the difference between **site config file** and **theme config file*
187169

188170
Now the bug is fixed.
189171

190-
Every time when you run `hexo d`, plugin will scan posts in the `source/_posts` and compare to the database, then add create records for those posts which are not list in the database. This procedure is done locally so that database can only be changed by you.
172+
---
173+
174+
See detailed version here: https://leaferx.online/2018/03/16/lc-security-en/

docs/zh-CN/LEANCLOUD-COUNTER-SECURITY.md

Lines changed: 5 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,4 @@
1-
NexT主题使用的Leancloud访客统计插件存在重大安全漏洞,拥有不良企图的人利用该漏洞可随意更改访客数量或一定程度上增删数据库记录。
2-
3-
该漏洞由[](https://github.com/LEAFERx/)独立发现,并由[Ivan.Nginx](https://github.com/ivan-nginx)确认。
4-
5-
- 有关的issue:[#25](https://github.com/theme-next/hexo-theme-next/issues/25)
6-
7-
- 有关的pr: [#137](https://github.com/theme-next/hexo-theme-next/pull/137)
8-
9-
- 有关的插件:[hexo-leancloud-counter-security](https://github.com/theme-next/hexo-leancloud-counter-security)
10-
11-
经过讨论后,我们认为该漏洞必须由使用者手动修复。本文给出了修复方法。
12-
13-
**注意:所有使用该插件而未经修复的NexT站点或使用类似方法集成Leancloud访客统计功能的站点都被认为是不安全的,请尽快修复。**
14-
15-
---
16-
17-
原文链接:https://leaferx.online/2018/02/11/lc-security/
18-
19-
---
20-
21-
为方便起见,本文将复述从头开始配置Leancloud访客统计插件的过程。
22-
23-
本文部分内容参考自Doublemine的[为NexT主题添加文章阅读量统计功能](https://notes.wanghao.work/2015-10-21-%E4%B8%BANexT%E4%B8%BB%E9%A2%98%E6%B7%BB%E5%8A%A0%E6%96%87%E7%AB%A0%E9%98%85%E8%AF%BB%E9%87%8F%E7%BB%9F%E8%AE%A1%E5%8A%9F%E8%83%BD.html#%E9%85%8D%E7%BD%AELeanCloud)
24-
25-
对于已经完成该部分配置的用户,请自行对照本文步骤进行修复。
26-
27-
在配置前,请升级NexT至**v6.0.5**以上。
1+
在配置前,请升级NexT至**v6.0.6**以上。
282

293
在配置过程中请注意**博客配置文件****主题配置文件**的区别。
304

@@ -205,3 +179,7 @@ leancloud_visitors:
205179
每次运行`hexo d`部署的时候,插件都会扫描本地`source/_posts`下的文章并与数据库对比,然后在数据库创建没有录入数据库的文章记录。
206180

207181
如果在**博客配置文件**中留空username或password,则在部署过程中程序会要求输入。
182+
183+
---
184+
185+
原文链接:https://leaferx.online/2018/02/11/lc-security/

0 commit comments

Comments
 (0)