中华街zhshops

Grim Finance 被黑简析:攻击者通过闪电贷借出 WFTM 与 BTC 代币

据慢雾区情报,2021 年 12 月 19 日,Fantom 链上 Grim Finance 项目遭受攻击。慢雾安全团队进行分析后以简讯的形式分享给大家。 1. 攻击者通过闪电贷借出 WFTM 与 BTC 代币,并在 SpiritSwap 中添加流动性获得 SPIRIT-LP 流动性凭证。 2. 随后攻击者通过 Grim Finance 的 GrimBoostVault 合约中的 depositFor 函数进行流动性抵押操作,而 depositFor 允许用户指定转入的 token 并通过 safeTransferFrom 将用户指定的代币转入 GrimBoostVault 中,depositFor 会根据用户转账前后本合约与策略池预期接收代币(预期接收 want 代币,本次攻击中应为 SPIRIT-LP)的差值为用户铸造抵押凭证。 3. 但由于 depositFor 函数并未检查用户指定转入的 token 的合法性,攻击者在调用 depositFor 函数时传入了由攻击者恶意创建的代币合约地址。当 GrimBoostVault 通过 safeTransferFrom 函数调用恶意合约的 transferFrom 函数时,恶意合约再次重入调用了 depositFor 函数。攻击者进行了多次重入并在最后一次转入真正的 SPIRIT-LP 流动性凭证进行抵押,此操作确保了在重入前后 GrimBoostVault 预期接收代币的差值存在。随后 depositFor 函数根据此差值计算并为攻击者铸造对应的抵押凭证。 4. 由于攻击者对 GrimBoostVault 合约重入了多次,因此 GrimBoostVault 合约为攻击者铸造了远多于预期的抵押凭证。攻击者使用此凭证在 GrimBoostVault 合约中取出了远多于之前抵押的 SPIRIT-LP 流动性凭证。随后攻击者使用此 SPIRIT-LP 流动性凭证移除流动性获得 WFTM 与 BTC 代币并归还闪电贷完成获利。 此次攻击是由于 GrimBoostVault 合约的 depositFor 函数未对用户传入的 token 的合法性进行检查且无防重入锁,导致恶意用户可以传入恶意代币地址对 depositFor 进行重入获得远多于预期的抵押凭证。慢雾安全团队建议:对于用户传入的参数应检查其是否符合预期,对于函数中的外部调用应控制好外部调用带来的重入攻击等风险。
分享至 : QQ空间
收藏

9 个回复

倒序浏览

Honey Singh All Songs Zip File Free Download

https://trello.com/c/bAWfHm5E/11-evony-the-kings-return-361-apk-for-android
https://trello.com/c/KjRSMs0Y/29-windows-7-ultimate-n-key
https://trello.com/c/Blmdzf53/16-bleach-soul-resurreccion-pc
https://trello.com/c/hlTVebsy/31-bmw-dis-v44-v57-sss-v32-amp-tis-v8-gt1-inpa-ediabas-diagnostic-softwareepub
https://trello.com/c/NrtOAfBW/54-love-affair-movie-720p-kickass-torrent
https://trello.com/c/7dwdETYF/14-crack-license-vieautoepub
https://trello.com/c/kawGREX0/73-gerenciador-eficaz-7-serial-number
https://trello.com/c/JTAUsp5W/16-hd-online-player-thozha-2016720p-hdrip-ac3-x26
https://trello.com/c/fgNzsEmp/18-otome-gamekuro-to-kin-no-akanai-kagi-mega
https://trello.com/c/Jc0u5AMq/14-c-c-generals-zero-hour-serials-fitgirl-repack
https://trello.com/c/3hzXAHcZ/13-the-wolf-of-wall-street-movie-free-download-utorrent
https://trello.com/c/ZpE3NfXX/39-machetesoft-machete-45-build-11-full-version
https://trello.com/c/dBZWErTB/25-alcatel-modem-unlockerrar
https://trello.com/c/blDUqLWs/33-a-10a-for-dcs-world-cracked-download
https://trello.com/c/6jvKqrqz/29-rhino-5-keygen-crack-codesl
https://trello.com/c/M8NoUuiU/18-aetuts-20th-century-fox-after-effect-and-maxon-cinema-4d-project-files
https://trello.com/c/tC9c4THq/24-imdg-code-downloads-torrent
https://trello.com/c/XpmAtNRR/33-assassins-creed-1-dx10-crack-17
https://trello.com/c/838kgcLw/35-ekk-deewana-tha-movie-download-dvdrip-movies
https://trello.com/c/rLy3mb5W/31-ram-jaane-full-movie-hd-download-720p
回复 使用道具 举报

Game LIFE 遊戲情報

Johnnypiege ?表于 2021-12-19 23:36
https://trello.com/c/bAWfHm5E/11-evony-the-kings-return-361-apk-for-android
https://trello.com/c/KjR ...

Game LIFE 遊戲情報


https://gamelife.tw/portal.php
回复 使用道具 举报

Mark Ashley Discography 24CD 19982011 MP3


https://trello.com/c/H9zaFPpT/20-steinberg-cubase-sx-311944-dvd-iso-2011engrarrar
https://trello.com/c/MtrbdoTe/31-fsx-p3daerosoft-professional-flight-planner-x-v123-keygen
https://trello.com/c/YflCmhKP/78-xigncode3bypassdlldownload
https://trello.com/c/jH6Qq2Tx/17-the-escapists-2-download-licence-key
https://trello.com/c/eXt1xHcP/37-guaco-discografia-torrent
https://trello.com/c/CxjdDBbr/17-everylang-21510-crack-portable-and-serial-key-latest
https://trello.com/c/vL5SLqHc/19-ali-bulac-kuran-meali-pdf-download
https://trello.com/c/wg5VaoAA/17-download-english-sound-pack-for-assassins-creed-brotherhood
https://trello.com/c/Y1Ur3sAO/47-download-film-50-juta-all-in
https://trello.com/c/ls1NtNYA/25-elcomsoft-ios-forensic-toolkit-cracked-version-download
https://trello.com/c/r7TrQG8i/18-shift-register-parallel-in-serial-out-vhdl-code
https://trello.com/c/kbtSqe0k/12-nouveau-delf-b2-pdf-download
https://trello.com/c/SgvVGr5J/31-mic-office-2016-professional-plus-visio-pro-project-pro-16046781000-x86-crack
https://trello.com/c/0FCX7KFq/41-vmware-vsphere-hypervisor-esxi-650-4887370-x86-64-iso-2017-crackbfdcm
https://trello.com/c/CRLZsGQy/57-2011-passbild-pro
https://trello.com/c/To15Vtuv/31-hostel-2-in-hindi-dubbed-free-download
https://trello.com/c/pBeX6CMo/50-visual-composer-license-key-crack
https://trello.com/c/5Uhztwil/24-lumerical-fdtd-license-crack-software
https://trello.com/c/qjis2UDZ/52-live-synth-pro-dxi-download-pc
https://trello.com/c/ngv9FqFl/68-spitfire-audio-albion-torrent-fulll
回复 使用道具 举报

aerofly RC 7 Professional Edition download for pc compressed

https://trello.com/c/Uh1Ljj05/61-corel-photomirage-323168-cracked-64-bit
https://trello.com/c/sRsKOszI/12-vcds-lite-crack-code-generator
https://trello.com/c/IYEJ4TOi/25-download-cooking-academy-2-full-version-for-free-no-time-limit
https://trello.com/c/QAcgysPO/29-easy-google-maps-downloader-712-crack
https://trello.com/c/zTs8dws7/21-film-guru-bangsa-tjokroaminoto-download-movies
https://trello.com/c/hxJivEv2/25-matlab-2014-free-download-with-crack-kickass-torrent
https://trello.com/c/W8YlIKRI/19-www-fbin-download
https://trello.com/c/eQPioQqo/21-tomtom-xl-n14644-europe-maps-download-free
https://trello.com/c/1XvzhoV5/39-survey-bypasser-megahackerzzz-production-v1exe
https://trello.com/c/huUgxreI/23-telecharger-jeux-pc-de-abtal-al-kora
https://trello.com/c/Ecod8WKo/34-oxygen-not-included-v267379-license-key
https://trello.com/c/hq0dka3i/45-jan-dara-pathommabot-2013-uncut-1080p-bluray-x264-publichd
https://trello.com/c/AJBOIAjK/24-xforce-keygen-64-bit-navisworks-manage-2017-download
https://trello.com/c/Xpkq3OXS/15-thinking-in-java-6th-edition-pdf-free-download
https://trello.com/c/Gb9xkQKi/62-neurologia-clinica-lange-pdf-download
https://trello.com/c/BgpVqCvj/21-baadshah-1999-br-rip-1080p-movies-64
https://trello.com/c/K8mHmGHY/14-fishbowl-inventory-download-crack
https://trello.com/c/y6dkksDn/18-nina-simone-the-very-best-of-2006-dzhinc-torrent
https://trello.com/c/gGaPGrKc/44-cyclone-box-crack
https://trello.com/c/kDzH1MTQ/20-film-impact-transitions-crack-macbook
回复 使用道具 举报

Percy jackson and the olympians the ultimate guide pdf

Johnnypiege ??? 2021-12-19 23:36
https://trello.com/c/bAWfHm5E/11-evony-the-kings-return-361-apk-for-android
https://trello.com/c/KjR ...

https://trello.com/c/xSeW1pVG/31-download-telugu-suprabhatam-ms-subbulakshmi-free
https://trello.com/c/LUzC8372/23-percy-jackson-sea-of-monsters-dual-audio-hindi-free-download
https://trello.com/c/8NJOmFax/38-download-folder-lock-v-722-full-version-92mb
https://trello.com/c/hiSjXaw4/30-xforce-keygen-dwg-trueview-2007-32-bit-free-downloadexe
https://trello.com/c/ipS8xshn/50-afro-cuban-conga-rhythms-32pdf
https://trello.com/c/uKoVBJo9/28-qmax-mst-999-v2-software-download
https://trello.com/c/gXaXF849/69-mikroc-pro-for-pic-415-12
https://trello.com/c/yopIr2vM/36-red-alert-2-yuris-revenge-trainer-1001-54
https://trello.com/c/9QysVPkz/22-ship-simulator-2008-serial-key-generator
https://trello.com/c/peVSqLhx/26-liliana-model-set-143
https://trello.com/c/r5on53z1/16-enthiran-tamil-movie-free-download-hd
https://trello.com/c/XA0CITqG/31-road-to-riches-v2-eng-2010-version-download
https://trello.com/c/XLTZRJ1a/24-microsoftoffice2016ptptativadordownload
https://trello.com/c/N58eIATq/26-edius-pro-72-build-0437crackrark
https://trello.com/c/lVqxCJsK/24-gpproexsoftwarefreedownload
https://trello.com/c/zvVI0yIH/22-norton-security-product-key
https://trello.com/c/NwZDyQzo/36-libro-historia-de-honduras-guillermo-varela-osorio-pdf-free
https://trello.com/c/5gslM2nc/13-hd-online-player-download-phir-bhi-dil-hai-hindustani
https://trello.com/c/yrnNWPH8/29-wtishackv5rar
https://trello.com/c/8jK8IpMI/52-why-george-2005-torrent
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册