<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Validate URL Filter in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/Validate-URL-Filter/m-p/693666#M10369</link>
    <description>&lt;P&gt;If you want to restrict what the user can see you should look at implementing &lt;A href="https://docs.microsoft.com/en-us/power-bi/service-admin-rls" target="_self"&gt;Row Level Security&amp;nbsp;&lt;/A&gt;so that the permissions are enforced at the model level.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Because couldn't the user just grab the start of the URL and open the report directly in the portal (eg.&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A title="" href="http://localhost/Reports/powerbi/T" target="_blank" rel="noopener nofollow noopener noreferrer"&gt;http://localhost/Reports/powerbi/MyReport&lt;/A&gt;) in a new browser window bypassing any logic on your page?&lt;/P&gt;</description>
    <pubDate>Fri, 17 May 2019 10:06:56 GMT</pubDate>
    <dc:creator>d_gosbell</dc:creator>
    <dc:date>2019-05-17T10:06:56Z</dc:date>
    <item>
      <title>Validate URL Filter</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Validate-URL-Filter/m-p/692889#M10357</link>
      <description>&lt;P&gt;I'm embedding reports using a URL filter to only show the data that the user is supposed to see.&amp;nbsp;&lt;/P&gt;&lt;P&gt;An iFrame with a url source is easy to manipulate and therefore a vulnerability so i've been testing different combinations of bad filters and querystrings.&lt;/P&gt;&lt;P&gt;I've found that if I pass a filter with a trailing whitespace character, or anything really that is not supposed to be in the filter, the filter is not applied and the report will show all the data.&lt;/P&gt;&lt;P&gt;Eg. &lt;A href="http://localhost/Reports/powerbi/T" target="_blank" rel="noopener"&gt;http://localhost/Reports/powerbi/MyReport?filter=tableone/column in ('a', 'b', 'c') &amp;amp;rs:Embed=true&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Is there any way of changing this behavior so that when a invalid filter is passed with the URL&amp;nbsp; no data will show in the report?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At the moment the only solution I can think of is to test the filter with regex. And since I'm using custom security end up returning a 403 (I don't now how to return something else, like in this case a 400 Bad Request)&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2019 14:37:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Validate-URL-Filter/m-p/692889#M10357</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-16T14:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: Validate URL Filter</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Validate-URL-Filter/m-p/693666#M10369</link>
      <description>&lt;P&gt;If you want to restrict what the user can see you should look at implementing &lt;A href="https://docs.microsoft.com/en-us/power-bi/service-admin-rls" target="_self"&gt;Row Level Security&amp;nbsp;&lt;/A&gt;so that the permissions are enforced at the model level.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Because couldn't the user just grab the start of the URL and open the report directly in the portal (eg.&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A title="" href="http://localhost/Reports/powerbi/T" target="_blank" rel="noopener nofollow noopener noreferrer"&gt;http://localhost/Reports/powerbi/MyReport&lt;/A&gt;) in a new browser window bypassing any logic on your page?&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2019 10:06:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Validate-URL-Filter/m-p/693666#M10369</guid>
      <dc:creator>d_gosbell</dc:creator>
      <dc:date>2019-05-17T10:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: Validate URL Filter</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Validate-URL-Filter/m-p/694522#M10384</link>
      <description>&lt;P&gt;Yes, I need to look at RLS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No I parse the URL looking for specific IDs which I then authorize using my security extension. But of course that could've been a real security miss.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2019 05:20:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Validate-URL-Filter/m-p/694522#M10384</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-20T05:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: Validate URL Filter</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Validate-URL-Filter/m-p/949942#M13217</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp; &amp;nbsp;I've been tasked with parsing the Power BI URL and can't figure out how to do it.&amp;nbsp; Do you mind sharing how you achieved this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(Essentially, there is a button in the Power BI report that links to additonal information, and I want to read the Power BI URL for a variable in there that will be used to create the dynamic link in the button).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 23:20:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Validate-URL-Filter/m-p/949942#M13217</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-26T23:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: Validate URL Filter</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Validate-URL-Filter/m-p/950592#M13227</link>
      <description>&lt;P&gt;Not sure I understand what you mean but i simply just extract the URL from the IRSRequestContext and then do string validation on it using regex and other rules specificly for my purpose.&lt;/P&gt;&lt;P&gt;I do this in my implementation of IAuthenticationExtension2.GetUserInfo&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2020 08:32:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Validate-URL-Filter/m-p/950592#M13227</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-27T08:32:54Z</dc:date>
    </item>
  </channel>
</rss>

