Customize Consent Preferences

We use cookies to help you navigate efficiently and perform certain functions. You will find detailed information about all cookies under each consent category below.

The cookies that are categorized as "Necessary" are stored on your browser as they are essential for enabling the basic functionalities of the site. ... 

Always Active

Necessary cookies are required to enable the basic features of this site, such as providing secure log-in or adjusting your consent preferences. These cookies do not store any personally identifiable data.

No cookies to display.

Functional cookies help perform certain functionalities like sharing the content of the website on social media platforms, collecting feedback, and other third-party features.

No cookies to display.

Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics such as the number of visitors, bounce rate, traffic source, etc.

No cookies to display.

Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.

No cookies to display.

Advertisement cookies are used to provide visitors with customized advertisements based on the pages you visited previously and to analyze the effectiveness of the ad campaigns.

No cookies to display.

0

慢雾:Toncoin 智能合约安全最佳实践 – 新闻稿

标题: 慢雾发布 Toncoin 智能合约安全最佳实践,助力开发者构建安全可靠的应用

导语: 慢雾安全团队近日发布了《Toncoin 智能合约安全最佳实践》,旨在帮助开发者更好地理解 Toncoin智能合约的安全风险,并提供实用的解决方案,以降低潜在的安全威胁。

正文:

TON (The Open Network) 作为 Telegram 团队开发的去中心化区块链平台,凭借其高性能和可扩展性,吸引了众多开发者。然而,由于 TON 智能合约使用 FunC、Tact 和 Fift 等原创语言,开发者需要格外重视安全问题。

慢雾安全团队结合自身多年积累的安全审计经验,以及对 TON 社区安全开发实践的整合,发布了这份最佳实践指南。该指南涵盖了 22 个常见的安全陷阱,并针对每个陷阱提供了详细的描述、攻击场景和解决方案。

主要内容:

  • 常见陷阱: 缺少 impure 修饰符、错误使用修改/非修改方法、错误使用有符号/无符号整数、不安全的随机数、在链上发送私人数据、漏掉对退回消息的检查、在竞争条件下销毁账户的风险、避免执行第三方代码、名称冲突、检查 throw 的值、读/写正确类型数据、合约代码可以更新、交易和阶段、不能从其他合约中拉取数据、两个预定义的 method_id、使用可反弹消息、重放保护、消息的竞态条件、使用携带值模式、小心退还多余的燃料费、检查函数返回值、检查假冒的 Jetton 代币。
  • 解决方案: 针对每个陷阱,指南提供了具体的解决方案,例如使用 impure 修饰符、检查方法类型、使用无符号整数、随机化种子、避免在链上发送私人数据、检查退回消息、谨慎使用销毁账户、避免执行第三方代码、使用 Linter 工具、避免使用 0 或 1 作为 throw 的值、仔细跟踪代码操作、注意合约代码可更新性、了解交易阶段、使用异步消息、验证地址、使用可反弹消息、使用重放保护机制、预防竞态条件、使用携带值模式、退还多余的燃料费、检查函数返回值、验证 Jetton 代币。

意义:

这份最佳实践指南为 Toncoin 智能合约开发者提供了一份宝贵的参考,可以帮助他们构建更安全、更可靠的应用。

呼吁:

慢雾安全团队呼吁所有 Toncoin 开发者认真阅读这份最佳实践指南,并将其应用到实际开发中,共同维护 Toncoin 生态系统的安全。

链接:

结尾:

慢雾安全团队将持续关注 Toncoin 生态系统的安全发展,并不断更新最佳实践指南,为开发者提供更全面的安全保障。


>>> Read more <<<

Views: 0

0

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注