11
10

More than 5 years have passed since last update.

MathJaxを利用したQiita上でのXSS

Last updated at Posted at 2014-07-02

この脆弱性は既に修正されています。

Qiitaは```mathを使うとMathJaxによるディスプレイ数式が使えるが、これに問題があった。

攻撃コード


```math
<script> alert(0) </script>
```

<script>alert(0)</script>

スクリーンショット 2014-07-02 23.48.02.png

スクリーンショット 2014-07-02 23.53.55.png

やばい。

対応

MathJaxの停止

はやい。報告から10分くらいでこれ。

スクリーンショット 2014-07-03 0.13.17.png

修正

1時間くらいしたら修正された。

スクリーンショット 2014-07-03 1.07.08.png

\hrefを用いたJSの実行

@kimama1997 さんが次のようなコードでJavaScriptの実行が可能であることを指摘。


```math
\href{javascript:alert('xss');}{xss}
```

これも修正された。

11
10
7

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
11
10