<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>opemo</author_name>
  <author_url>https://blog.hatena.ne.jp/opemo/</author_url>
  <blog_title>雑食プログラミング日記</blog_title>
  <blog_url>https://opemo.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>Brakeman: Unscoped Find Unscoped findとは、Direct Object Referenceの一種 ここで言っているのは、他のモデルに属しているモデルは範囲の指定されたqueryを介してアクセスされるべきということ。 例えば、AccountがUserモデルに属している場合 Account.find(params[:id]) このようにAccountを直接呼び出すと、攻撃者が意図しないアカウントにアクセスできる可能性がある。 current_user = User.find(session[:user_id]) current_user.accounts.fin…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fopemo.hatenablog.com%2Fentry%2F2019%2F03%2F14%2F215228&quot; title=&quot;breakmanのunscoped findについて - 雑食プログラミング日記&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-03-14 21:52:28</published>
  <title>breakmanのunscoped findについて</title>
  <type>rich</type>
  <url>https://opemo.hatenablog.com/entry/2019/03/14/215228</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
