Skip to content
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

Bug: サーバーの各エンドポイントでBOLAが発生する可能性がある #45

Open
claustra01 opened this issue Jun 10, 2024 · 0 comments
Labels
priority: medium Normal priority problem: vulnerability Features witch have some security issues

Comments

@claustra01
Copy link
Owner

Overview / 概要

/user/tokenなどで入力の検証が不十分なため、偶然LINEIDが一致した際にusesテーブルの情報やGoogle認証情報が取得・更新できてしまう可能性がある

Reproduction Environment / 再現環境

ぜんぶ

Reproduction Steps / 再現手順

  1. 既に登録されているユーザーのLINEIDをクエリパラメータに保持したリクエストを送る
  2. queryやbodyに不足が無ければユーザー情報の取得・更新ができてしまう

Supplementary Information / 補足

ブラウザアプリ遷移の際に有効期限付きトークンなどを発行し、APIリクエスト時にそのトークンを検証することで解決できそう

@claustra01 claustra01 added priority: medium Normal priority problem: vulnerability Features witch have some security issues labels Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: medium Normal priority problem: vulnerability Features witch have some security issues
Projects
None yet
Development

No branches or pull requests

1 participant