[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: When the anti-spoof message pops up
From:       Shantanu Tushar Jha <jhahoneyk () gmail ! com>
Date:       2011-11-28 5:12:43
Message-ID: CAKU6GqHkzKHvrZzGdz_C6QsYOkVQ-B4=QqcD=wjqcy6XTE+Xug () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi,

I'm curious, so if an app can disable the spoof dialog anyway, doesn't that
make it useless, as someone having actual malicious intent can just disable
it too?

Regards,

Shantanu Tushar    (UTC +0530)
http://www.shantanutushar.com


On Sun, Nov 27, 2011 at 1:33 AM, Dawit A <adawit@kde.org> wrote:

> I have added a new KIO meta-data to disable username spoofing change. See
> 
> 
> https://projects.kde.org/projects/kde/kdelibs/repository/revisions/bab4ee944b2d045e13cb73a5e8c95fe1d62d49d1
>  
> You can now disable the spoofing check by doing something like the
> following:
> 
> KIO::TransferJob* job = KIO::get(url,....);
> job->addMetaData(QLatin1String(" no-spoof-check-prompt"),
> QLatin1String("TRUE"));
> 
> On Wed, Nov 23, 2011 at 8:57 PM, Shantanu Tushar Jha
> <jhahoneyk@gmail.com> wrote:
> > Hi,
> > 
> > On Wed, Nov 23, 2011 at 11:22 PM, Dawit A <adawit@kde.org> wrote:
> > > 
> > > On Tue, Nov 22, 2011 at 11:20 PM, Shantanu Tushar Jha
> > > <jhahoneyk@gmail.com> wrote:
> > > > On Tue, Nov 22, 2011 at 11:26 PM, Dawit A <adawit@kde.org> wrote:
> > > > > 
> > > > > On Tue, Nov 22, 2011 at 11:09 AM, Shantanu Tushar Jha
> > > > > <jhahoneyk@gmail.com> wrote:
> > > > > > Hi,
> > > > > > 
> > > > > > I'm pretty sure everyone will have seen the message `You are about
> to
> > > > > > log in
> > > > > > to the site "api.opendesktop.org" with the username "user", but
> the
> > > > > > website
> > > > > > does not require authentication. This may be an attempt to trick
> > > > > > you.'
> > > > > > when
> > > > > > you tried to use anything that uses Attica (Get hot new stuff,
> social
> > > > > > desktop settings, gluon and so on).
> > > > > > 
> > > > > > Seeing the dialog once is ok, but it gets really irritating when
> 4-5
> > > > > > of
> > > > > > these pop up simultaneously because the app might be performing
> more
> > > > > > than
> > > > > > one kio_http requests (which is the case in almost every social
> > > > > > component in
> > > > > > gluon).
> > > > > 
> > > > > So long as the request URL does not change, you get one single
> prompt.
> > > > > If you are sending multiple requests to different sites using the
> same
> > > > > URL format, then you are going to be prompted multiple times.
> > > > 
> > > > Well in gluon, multiple requests ( http://paste.kde.org/149786/ ) are
> > > > sent
> > > > to the same site (api.opendesktop.org), and this happens
> > > > http://wstaw.org/m/2011/11/23/plasma-desktopwp1921.png . Can this be
> > > > fixed
> > > > so the dialog only appears once per server?
> > > > > 
> > > > > > So, the question is, what to do to prevent these from popping up
> > > > > > unnecessarily? Attica is performing a legitimate login to the
> > > > > > opendesktop
> > > > > > website [1], so it shouldn't be reported as a problem.
> > > > > > 
> > > > > > [1] of the form
> > > > > > https://username@api.opendesktop.org/v1/content/something
> > > > > 
> > > > > Can you please explain how "Attica is performing a legitimate login
> to
> > > > > opendesktop website" by including a 'username@' into a request URL
> > > > > that does not require HTTP authentication ? You are getting the
> > > > > spoofing prompt because the request URL contains a username and the
> > > > > server does not respond with a 401/407 response code or a
> redirection.
> > > > > IOW, the site does not really require authentication at all. Hence,
> > > > > Attica or any other client code has no business adding the username
> to
> > > > > the request URL. So the question remains why exactly is Attica adding
> > > > > a username@ to the request URL ?
> > > > 
> > > > Hmm thanks for the insight, I tried manually browsing to the
> > > > "authentication
> > > > required to access" URLs as per
> > > > 
> > > > 
> http://www.freedesktop.org/wiki/Specifications/open-collaboration-services#search
> and
> > > > looks like the server is at fault (i.e. it doesn't ask for auth). Will
> > > > poke
> > > > the guys managing it soon. However, we still should show the message
> > > > only
> > > > once per site, what do you think?
> > > 
> > > Yes, it should. Unfortunately the problem with multiple dialogs on
> > > multiple requests at once is not limited to the spoofing check. You
> > > get the same multiple dialog boxes for SSL checks as well for example.
> > > 
> > > It is a known KIO limitation that is caused by the fact that each
> > > ioslave is a separate processes and as such the message dialog boxes
> > > shown are done from separate processes. It is not an easy fix since it
> > > would require some external process like a kded module and
> > > communication over dbus to keep track of the message prompt requests
> > > from multiple processes. Much like how it is currently done for the
> > > password dialogs.
> > > 
> > > Anyhow, the easiest way to address this issue right now is to simply
> > > provide a meta-data that would disable the spoofing check ; so it will
> > > be up to you to disable it from your own client application. It will
> > > be enabled by default of course.
> > 
> > Ah ok, how do I do that?
> 


[Attachment #5 (text/html)]

Hi,<div><br></div><div>I&#39;m curious, so if an app can disable the spoof dialog \
anyway, doesn&#39;t that make it useless, as someone having actual malicious intent \
can just disable it too?</div><div><br></div><div>Regards,</div> \
<div><div><br></div>Shantanu Tushar    (UTC +0530)<br><a \
href="http://www.shantanutushar.com" \
target="_blank">http://www.shantanutushar.com</a><br> <br><br><div \
class="gmail_quote">On Sun, Nov 27, 2011 at 1:33 AM, Dawit A <span dir="ltr">&lt;<a \
href="mailto:adawit@kde.org">adawit@kde.org</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex;"> I have added a new KIO meta-data to disable username \
spoofing change. See<br> <br>
<a href="https://projects.kde.org/projects/kde/kdelibs/repository/revisions/bab4ee944b2d045e13cb73a5e8c95fe1d62d49d1" \
target="_blank">https://projects.kde.org/projects/kde/kdelibs/repository/revisions/bab4ee944b2d045e13cb73a5e8c95fe1d62d49d1</a><br>


<br>
You can now disable the spoofing check by doing something like the following:<br>
<br>
KIO::TransferJob* job = KIO::get(url,....);<br>
job-&gt;addMetaData(QLatin1String(&quot; no-spoof-check-prompt&quot;),<br>
QLatin1String(&quot;TRUE&quot;));<br>
<br>
On Wed, Nov 23, 2011 at 8:57 PM, Shantanu Tushar Jha<br>
<div class="HOEnZb"><div class="h5">&lt;<a \
href="mailto:jhahoneyk@gmail.com">jhahoneyk@gmail.com</a>&gt; wrote:<br> &gt; Hi,<br>
&gt;<br>
&gt; On Wed, Nov 23, 2011 at 11:22 PM, Dawit A &lt;<a \
href="mailto:adawit@kde.org">adawit@kde.org</a>&gt; wrote:<br> &gt;&gt;<br>
&gt;&gt; On Tue, Nov 22, 2011 at 11:20 PM, Shantanu Tushar Jha<br>
&gt;&gt; &lt;<a href="mailto:jhahoneyk@gmail.com">jhahoneyk@gmail.com</a>&gt; \
wrote:<br> &gt;&gt; &gt; On Tue, Nov 22, 2011 at 11:26 PM, Dawit A &lt;<a \
href="mailto:adawit@kde.org">adawit@kde.org</a>&gt; wrote:<br> &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; On Tue, Nov 22, 2011 at 11:09 AM, Shantanu Tushar Jha<br>
&gt;&gt; &gt;&gt; &lt;<a \
href="mailto:jhahoneyk@gmail.com">jhahoneyk@gmail.com</a>&gt; wrote:<br> &gt;&gt; \
&gt;&gt; &gt; Hi,<br> &gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; I&#39;m pretty sure everyone will have seen the message `You \
are about to<br> &gt;&gt; &gt;&gt; &gt; log in<br>
&gt;&gt; &gt;&gt; &gt; to the site &quot;<a href="http://api.opendesktop.org" \
target="_blank">api.opendesktop.org</a>&quot; with the username &quot;user&quot;, but \
the<br> &gt;&gt; &gt;&gt; &gt; website<br>
&gt;&gt; &gt;&gt; &gt; does not require authentication. This may be an attempt to \
trick<br> &gt;&gt; &gt;&gt; &gt; you.&#39;<br>
&gt;&gt; &gt;&gt; &gt; when<br>
&gt;&gt; &gt;&gt; &gt; you tried to use anything that uses Attica (Get hot new stuff, \
social<br> &gt;&gt; &gt;&gt; &gt; desktop settings, gluon and so on).<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; Seeing the dialog once is ok, but it gets really irritating \
when 4-5<br> &gt;&gt; &gt;&gt; &gt; of<br>
&gt;&gt; &gt;&gt; &gt; these pop up simultaneously because the app might be \
performing more<br> &gt;&gt; &gt;&gt; &gt; than<br>
&gt;&gt; &gt;&gt; &gt; one kio_http requests (which is the case in almost every \
social<br> &gt;&gt; &gt;&gt; &gt; component in<br>
&gt;&gt; &gt;&gt; &gt; gluon).<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; So long as the request URL does not change, you get one single \
prompt.<br> &gt;&gt; &gt;&gt; If you are sending multiple requests to different sites \
using the same<br> &gt;&gt; &gt;&gt; URL format, then you are going to be prompted \
multiple times.<br> &gt;&gt; &gt;<br>
&gt;&gt; &gt; Well in gluon, multiple requests ( <a \
href="http://paste.kde.org/149786/" target="_blank">http://paste.kde.org/149786/</a> \
) are<br> &gt;&gt; &gt; sent<br>
&gt;&gt; &gt; to the same site (<a href="http://api.opendesktop.org" \
target="_blank">api.opendesktop.org</a>), and this happens<br> &gt;&gt; &gt; <a \
href="http://wstaw.org/m/2011/11/23/plasma-desktopwp1921.png" \
target="_blank">http://wstaw.org/m/2011/11/23/plasma-desktopwp1921.png</a> . Can this \
be<br> &gt;&gt; &gt; fixed<br>
&gt;&gt; &gt; so the dialog only appears once per server?<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt; So, the question is, what to do to prevent these from popping \
up<br> &gt;&gt; &gt;&gt; &gt; unnecessarily? Attica is performing a legitimate login \
to the<br> &gt;&gt; &gt;&gt; &gt; opendesktop<br>
&gt;&gt; &gt;&gt; &gt; website [1], so it shouldn&#39;t be reported as a problem.<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; [1] of the form<br>
&gt;&gt; &gt;&gt; &gt; <a \
href="https://username@api.opendesktop.org/v1/content/something" \
target="_blank">https://username@api.opendesktop.org/v1/content/something</a><br> \
&gt;&gt; &gt;&gt;<br> &gt;&gt; &gt;&gt; Can you please explain how &quot;Attica is \
performing a legitimate login to<br> &gt;&gt; &gt;&gt; opendesktop website&quot; by \
including a &#39;username@&#39; into a request URL<br> &gt;&gt; &gt;&gt; that does \
not require HTTP authentication ? You are getting the<br> &gt;&gt; &gt;&gt; spoofing \
prompt because the request URL contains a username and the<br> &gt;&gt; &gt;&gt; \
server does not respond with a 401/407 response code or a redirection.<br> &gt;&gt; \
&gt;&gt; IOW, the site does not really require authentication at all. Hence,<br> \
&gt;&gt; &gt;&gt; Attica or any other client code has no business adding the username \
to<br> &gt;&gt; &gt;&gt; the request URL. So the question remains why exactly is \
Attica adding<br> &gt;&gt; &gt;&gt; a username@ to the request URL ?<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Hmm thanks for the insight, I tried manually browsing to the<br>
&gt;&gt; &gt; &quot;authentication<br>
&gt;&gt; &gt; required to access&quot; URLs as per<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; <a href="http://www.freedesktop.org/wiki/Specifications/open-collaboration-services#search" \
target="_blank">http://www.freedesktop.org/wiki/Specifications/open-collaboration-services#search</a> \
and<br> &gt;&gt; &gt; looks like the server is at fault (i.e. it doesn&#39;t ask for \
auth). Will<br> &gt;&gt; &gt; poke<br>
&gt;&gt; &gt; the guys managing it soon. However, we still should show the \
message<br> &gt;&gt; &gt; only<br>
&gt;&gt; &gt; once per site, what do you think?<br>
&gt;&gt;<br>
&gt;&gt; Yes, it should. Unfortunately the problem with multiple dialogs on<br>
&gt;&gt; multiple requests at once is not limited to the spoofing check. You<br>
&gt;&gt; get the same multiple dialog boxes for SSL checks as well for example.<br>
&gt;&gt;<br>
&gt;&gt; It is a known KIO limitation that is caused by the fact that each<br>
&gt;&gt; ioslave is a separate processes and as such the message dialog boxes<br>
&gt;&gt; shown are done from separate processes. It is not an easy fix since it<br>
&gt;&gt; would require some external process like a kded module and<br>
&gt;&gt; communication over dbus to keep track of the message prompt requests<br>
&gt;&gt; from multiple processes. Much like how it is currently done for the<br>
&gt;&gt; password dialogs.<br>
&gt;&gt;<br>
&gt;&gt; Anyhow, the easiest way to address this issue right now is to simply<br>
&gt;&gt; provide a meta-data that would disable the spoofing check ; so it will<br>
&gt;&gt; be up to you to disable it from your own client application. It will<br>
&gt;&gt; be enabled by default of course.<br>
&gt;<br>
&gt; Ah ok, how do I do that?<br>
</div></div></blockquote></div><br></div>



>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic