SlideShare a Scribd company logo
1 of 9
アプリ脆弱性関連話
はじめに
明らかに修正すべき。という脆弱性がほとんどですが、
脆弱性として指摘されたから必ず修正しなければいけないという訳でもない場合もある
修正することで利便性が落ちたりするケースもあるので、修正する・しないの判断は
顧客含めよく検討し修正・・
ここでは、OWASP関連での話と私の実務経験でよくあるなーというところを紐付けお話しを
OWASPとは・・・
Open Web Application Security Project(OWASP)は、安全なソフ
トウェアの設計・開発・習 得・運用と維持に関する活動を支援する、
非営利の団体です。OWASPのツールやドキュメ ントなど、すべての
成果物は無料で利用できます。各国で活動しているチャプターは、
アプ リケーションセキュリティをより良いものにすることに関心を
お持ちの方であれば、誰でも参 加できます
Wiki
https://www.owasp.org/index.php/Main_Page
OWASP TOP10
# 内容
1 SQLインジェクション
2 認証とセッション管理の不備
3 XSS(クロスサイトスクリプティング)
4 安全でないオブジェクト直接参照
5 セキュリティ設定のミス
6 機密データの露出
7 機能レベルアクセス制御の欠落
8 CSRF(クロスサイトリクエストフォージェリ)
9 既知の脆弱性を持つコンポーネントの使用
10 未検証のリダイレクトとフォーワード
認証とセッション管理の不備
以下該当する場合に脆弱・・・
1 ハッシュや暗号化を使用して保存する際適切に保護をしていない。
→ 強度の低いハッシュ(MD5、SHA-1)を用いている、平文で秘密情報をDB保存
2 アカウント作成、パスワード変更やリセット、アカウントロック、弱いアカウント
管理機能を通じて認証情報が確認や上書きできる。
→ メアド到達確認をせずアカウントが作れる。
第三者にてアカウントロックができてしまう。
パスワード変更やリセットが権限の低い管理者で実施ができてしまう。
3 URLリライトなど、URLでのセッションID表示。
4 ログイン成功後、セッションIDは再生成されない。 セッション固定化攻撃に脆弱
→ フレームワーク次第では起こりうるので注意
5 セッションIDはタイムアウトしない。或いは、ログアウトする際、ユーザセッション、
認証トークン、特にシングルサインオン(SSO)トークンなどが無効化されない。
→ セッションタイムアウトが長すぎる
6 パスワード、セッションIDなどの認証情報は暗号化されていないコネクションで送信される。
→ autocomplete=off, Secure属性が付いていないCookieでの秘密情報運用。
安全でないオブジェクトの直接参照
よくあるのが・・・
https://example.com/users/12345
で、表示しているユーザID 12345 のユーザ情報について
とURLを書き換えるだけで、無条件に見えてしまう。
ログインしていれば誰でも見れて良い。という仕様(権限)であればいいが、
ユーザ毎に見せる見せない制御を行いたい場合にはきちんと制御をいれる必要がある。
https://example.com/users/22222
セキュリティ設定のミス
よくあるのが・・・
1 全てのソフトウェアが更新されていますか?これには、 OS、ウェブ/アプリケーションサーバ、
DBMS、アプリケーション、および全てのコードライブラリを含みます(新A9を 参照して下さい)。
2 不要な機能(例えば、ポート、サービス、画面、アカウント、 権限)がインストールされ、有効にされていませんか?
3 デフォルトアカウントとそのパスワードがそのまま有効に されていませんか?
4 エラー処理は、スタックトレースや他の不必要な情報を 含むエラーメッセージをユーザに表示していませんか?
5 開発フレームワーク(例えば、Struts、Spring、ASP.NET)や ライブラリのセキュリティ設定をしていますか?
Zabbixのデフォルトスーパーユーザである、ユーザ名:Admin パスワード:zabbix がそのまま生きている
デフォルトでFTPサーバ機能が入っていてanonymousユーザでのログイン許可されちゃっている
ディレクトリリストがデフォルトON (Apache)になっており、そのまま利用している。<尚、NginxはデフォOFF>
機密データの露出
よくあるのが・・・
まず決定すべきことは、特別な保護を必要とする機密データ がどれかということ。
例えば、パスワード、クレジットカード番号、医療記録、個人情報など保護されるべきデータをどのように取り扱ってい
るか?
後日解析用に出力していた全入力パラメータのログ出力機能が、保護すべきデータまでもログで平文出力
未検証のリダイレクトとフォーワード
割と特殊なケースですが、ASPとか外部サイトとの連携を使うシステムとかではありうる・・
以下のように、パラメータを渡してリダイレクトをするようなサイトがあった場合
上記のようなURLに対して、有害な別サイトURLをパラメータで渡して
フィッシングサイトの片棒を担ぐ事になってしまうので注意
https://www.example.com/login?url=https://ec.com/contents
https://www.example.com/login?url=https://ero.com/contents
Thanks!

More Related Content

Featured

Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Featured (20)

PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 

20170111 lt