<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sakata_harumi</author_name>
  <author_url>https://blog.hatena.ne.jp/sakata_harumi/</author_url>
  <blog_title>JKになりたい</blog_title>
  <blog_url>https://wanttobejk.com/</blog_url>
  <categories>
    <anon>Tech</anon>
    <anon>blockchain</anon>
  </categories>
  <description>はじめに Solidityでは意図せずstorage領域を書き換えられてしまう可能性があります。 アクセス修飾子は関係ありません。privateな変数であっても脆弱性のあるコードを書くと簡単に書き換えられてしまいます。 今回はstorage領域が意図せず書き換えられてしまう2つのコードを見ていきます。 1. delegatecallを使用した例 delegatecallとcallcode、callの違いについては以下の記事に図付きでわかりやすく書かれています。 qiita.com 記事中にも書かれている通り、delegatecall実行元のコントラクトをA、呼び出し先のコントラクトをBとしたと…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwanttobejk.com%2Fentry%2F2018%2F10%2F09%2F224806&quot; title=&quot;意図せずstorage領域が書き換えられてしまう2大パターン - JKになりたい&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/s/sakata_harumi/20181009/20181009224509.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-10-09 22:48:06</published>
  <title>意図せずstorage領域が書き換えられてしまう2大パターン</title>
  <type>rich</type>
  <url>https://wanttobejk.com/entry/2018/10/09/224806</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
