wikiwiki 0.7.0 → 0.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9cd510fe9ee02e6521a325c51ed5e586a41a904ea0758fc78b16ad66159c40d9
4
- data.tar.gz: e3e57832169db7d9644cdcbd2d8c3495576e8ff221338f107b99cb7fde161991
3
+ metadata.gz: 637f781de0cde55bb67c79d67624df9cc4255bac9e35e6b144fc6170d34b1d5d
4
+ data.tar.gz: 3155651131252d9e84260584fb3f7dcd6c21ffd52ac48fe16da2b605ac1948ae
5
5
  SHA512:
6
- metadata.gz: d3e67b565e5d9414a111dea276ea16f23bffe307c5c02b9de97062ce24a2e926304929bf975d5144cc359190680748cf224aae6f0819c96a21924b076152ca99
7
- data.tar.gz: 3bfa6e34164386c86b19912170bb450da3dd50b2e610e8d722a3568d433d2877185fec64011cc7f68e283c4f1523286311e832b4c64ffa2102473b37083d2243
6
+ metadata.gz: e5a8ce9a48d65aa95d7334289e5966a72228f9da9adc22799ac7ef63de802f463e882e5aec90e784d35f8411688ec24af6ddd9b9b14702a6988c61fc4d7a1357
7
+ data.tar.gz: 432bc7bfc745d96b4fcb00e296dbb3fb96ebe34a8bd9d6b06042054e633ca12a7863ce6a1d77bb638f81232258b5400102ed04fd02d65a8693735576bd0cea6c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.7.1] - 2025-11-03
4
+
5
+ ### Documentation
6
+
7
+ - Added security notes to README about path traversal risks when using API-provided names in bulk download automation scripts
8
+
3
9
  ## [0.7.0] - 2025-11-03
4
10
 
5
11
  ### Added
data/README.ja.md CHANGED
@@ -130,6 +130,23 @@ wikiwiki page list --verbose
130
130
  wikiwiki page list --debug
131
131
  ```
132
132
 
133
+ **一括ダウンロード時のセキュリティ注意:**
134
+
135
+ APIから取得したページ名や添付ファイル名を使用してページや添付ファイルを一括ダウンロードする自動化処理を行う場合、これらの名前にパストラバーサルシーケンス(例:`../../../etc/passwd`)が含まれている可能性があることに注意してください。ファイルパスとして使用する前に、必ず検証またはサニタイズを行ってください:
136
+
137
+ ```bash
138
+ # 悪い例: シェルスクリプトでAPIから取得した名前を直接使用
139
+ for name in $(wikiwiki page list --json | jq -r '.[]'); do
140
+ wikiwiki page get "$name" "$name.txt" # 安全でない: nameに../が含まれる可能性
141
+ done
142
+
143
+ # 良い例: 自動化スクリプト内で名前をサニタイズ
144
+ for name in $(wikiwiki page list --json | jq -r '.[]'); do
145
+ safe_name=$(basename "$name") # ディレクトリ成分を削除
146
+ wikiwiki page get "$name" "$safe_name.txt"
147
+ done
148
+ ```
149
+
133
150
  ### Rubyライブラリ
134
151
 
135
152
  ライブラリを使用する基本的な例:
data/README.md CHANGED
@@ -130,6 +130,23 @@ wikiwiki page list --verbose
130
130
  wikiwiki page list --debug
131
131
  ```
132
132
 
133
+ **Security Note for Bulk Downloads:**
134
+
135
+ When automating bulk downloads of pages or attachments using page/attachment names from the API, be aware that these names may contain path traversal sequences (e.g., `../../../etc/passwd`). Always validate or sanitize names before using them as file paths:
136
+
137
+ ```bash
138
+ # Bad: Direct use of API-provided names in shell scripts
139
+ for name in $(wikiwiki page list --json | jq -r '.[]'); do
140
+ wikiwiki page get "$name" "$name.txt" # UNSAFE if name contains ../
141
+ done
142
+
143
+ # Good: Sanitize names in your automation script
144
+ for name in $(wikiwiki page list --json | jq -r '.[]'); do
145
+ safe_name=$(basename "$name") # Remove directory components
146
+ wikiwiki page get "$name" "$safe_name.txt"
147
+ done
148
+ ```
149
+
133
150
  ### Ruby Library
134
151
 
135
152
  Basic example using the library:
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Wikiwiki
4
4
  # The gem version
5
- VERSION = "0.7.0"
5
+ VERSION = "0.7.1"
6
6
  public_constant :VERSION
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wikiwiki
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - OZAWA Sakuro