-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
アセットコードから改行文字を取り除いてからログ出力する #2192
Merged
The head ref may contain hidden characters: "feature/\u30AF\u30E9\u30A4\u30A2\u30F3\u30C8\u304B\u3089\u6E21\u3055\u308C\u305F\u30A2\u30BB\u30C3\u30C8\u30B3\u30FC\u30C9\u3092\u30B5\u30CB\u30BF\u30A4\u30BA\u3059\u308B"
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
KentaHizume
added
不具合
現在リリース中のバージョンに不具合・バグがある
target: Dressca
サンプルアプリケーションDresscaに関係がある
labels
Dec 27, 2024
This was
linked to
issues
Dec 27, 2024
tsuna-can-se
requested changes
Dec 27, 2024
...ca/dressca-backend/src/Dressca.ApplicationCore/ApplicationService/AssetApplicationService.cs
Outdated
Show resolved
Hide resolved
tsuna-can-se
requested changes
Dec 27, 2024
samples/Dressca/dressca-backend/tests/Dressca.UnitTests.SystemCommon/StringExtentionsTest.cs
Outdated
Show resolved
Hide resolved
tsuna-can-se
requested changes
Dec 27, 2024
samples/Dressca/dressca-backend/src/Dressca.SystemCommon/StringExtentions.cs
Outdated
Show resolved
Hide resolved
Test Result 📝Test was a success. Coverage 📐Summary
Dressca.ApplicationCore - 94.3%
Dressca.EfInfrastructure - 16.3%
Dressca.Store.Assets.StaticFiles - 9.4%
Dressca.SystemCommon - 78.2%
Dressca.Web - 27.9%
Dressca.Web.Consumer - 41.5%
Dressca.Web.Consumer.Dto - 58.4%
Maris.Logging.Testing - 94.2%
|
Test Result 📝Test was a success. Coverage 📐Summary
Dressca.ApplicationCore - 89.9%
Dressca.EfInfrastructure - 13.9%
Dressca.Store.Assets.StaticFiles - 9.4%
Dressca.SystemCommon - 77.4%
Dressca.Web - 33%
Dressca.Web.Admin - 24.8%
Dressca.Web.Admin.Dto - 0%
Maris.Logging.Testing - 94.2%
|
tsuna-can-se
approved these changes
Dec 27, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
この Pull request で実施したこと
クライアントから引き渡される文字列
assetCode
について、改行文字を取り除いてからログに出力するよう修正しました。
そのために、
string
クラスに改行文字を取り除く拡張メソッドを定義しました。改行文字が含まれる場合、
攻撃者がログに任意の文字列を埋め込むことができるため、
ログを偽装されたり、ログにスクリプトを埋め込まれたりする危険性があります。
この Pull request では実施していないこと
なし
Issues や Discussions 、関連する Web サイトなどへのリンク
https://www.jpcert.or.jp/java-rules/ids03-j.html