
關聯式資料庫引擎SQLite,係C語言開發,為輕量級嵌入式資料庫,可整合在用戶程式中,非常見的主從式架構,經騰訊刀鋒安全團隊(Tencent Blade security Team)研究,SQLite存在嚴重RCE,攻擊者可從遠距或本機,循Web SQL API介面注入程式碼字串後,被視作SQL語法執行,衍生資料外洩、服務停止等後果。因SQLite蹤跡遍及全球各類硬體、OS、應用程式,特別是採用Chromium開源技術之瀏覽器(Google Chrome、Vivaldi、Opera、Brave),影響範圍之廣無法估計,該漏洞命名為’Magellan’,取麥哲倫航海環繞地球之意,儘管SQLite Team已改善,且暫無在野攻擊事件,然囿於全面修補工程浩大,以及官方修補釋出後必遭逆向工程研究其探勘原理,”麥哲倫”仍將威脅軟體生態數年,確定安全無虞者為Firefox、Edge、Safari、Chrome 71.0.3578.80以後版本。
影響產品:SQLite 3.26.0之前版本
解決辦法:下載SQLite 3.26.0壓縮檔,參考https://www.sqlite.org/download.html。
資料來源:
- https://blade.tencent.com/magellan/index_en.html
- https://www.zdnet.com/article/sqlite-bug-impacts-thousands-of-apps-including-all-chromium-based-browsers/
- https://news.ycombinator.com/item?id=18685296
- https://securityaffairs.co/wordpress/78920/hacking/magellan-rce-flaw-in-sqlite-potentially-affects-billions-of-apps.html
- https://worthdoingbadly.com/sqlitebug/
- https://thehackernews.com/2018/12/sqlite-vulnerability.html
- https://developers.google.com/web/tools/lighthouse/audits/web-sql
- https://www.sqlite.org/releaselog/3_26_0.html
- https://www.sqlite.org/about.html
- https://www.sqlite.org/prosupport.html
- https://blade.tencent.com/magellan/index.html
- https://github.com/zhuowei/worthdoingbadly.com/blob/master/_posts/2018-12-14-sqlitebug.html
- https://chromium.googlesource.com/chromium/src/+/c368e30ae55600a1c3c9cb1710a54f9c55de786e
- https://zh.wikipedia.org/wiki/SQLite
- https://www.sqlite.org/download.html