<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>305169</bug_id>
          
          <creation_ts>2012-08-14 22:58:13 +0000</creation_ts>
          <short_desc>XSS Injection in KAddressbook</short_desc>
          <delta_ts>2012-10-13 09:58:20 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>kaddressbook</product>
          <component>general</component>
          <version>unspecified</version>
          <rep_platform>Arch Linux</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.securem.eu/test.vcf</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Mickaël">mprizee</reporter>
          <assigned_to name="kdepim bugs">pim-bugs-null</assigned_to>
          <cc>montel</cc>
    
    <cc>tokoe</cc>
          
          <cf_commitlink>http://commits.kde.org/kdepimlibs/d5bb7c20544170e06ecaaeb21c747c3b8905fc63</cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1284874</commentid>
    <comment_count>0</comment_count>
    <who name="Mickaël">mprizee</who>
    <bug_when>2012-08-14 22:58:13 +0000</bug_when>
    <thetext>There is a security hole in the 4.9 version of KAddressBook, more precisely a XSS Injection is possible through a malicious vcard file, when imported.
Try to import the vcard http://www.securem.eu/test.vcf for example.

Additionally, the label for the TEL field is not displayed on my screen (maybe a missing French translation ?). What about yours ?

Reproducible: Always

Steps to Reproduce:
1. Download the file http://www.securem.eu/test.vcf
2. Import it into KAddressBook
3. Show the corresponding profile &quot;Mickaël Bergöm&quot;
Actual Results:  
HTML code in plaintext fields is evaluated and displayed as it

Expected Results:  
The tags &lt;h1&gt; should be escaped and the &quot;&lt;&quot; / &quot;&gt;&quot; characters replaced by HTML Entities...

Actually this hole will not compromise your computer as Javascript code seems to be disabled / iframes too, for example.
But it still allows a malicious file displaying wrong things, or directing you to another website (URL field with a link to a malware website : &lt;a href=&quot;booh.com&quot;&gt;good.com&lt;/a&gt;)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1284991</commentid>
    <comment_count>1</comment_count>
    <who name="Laurent Montel">montel</who>
    <bug_when>2012-08-15 10:05:46 +0000</bug_when>
    <thetext>Which application did you use to create this vcard (to understand how you create TEL field ?)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1284992</commentid>
    <comment_count>2</comment_count>
    <who name="Laurent Montel">montel</who>
    <bug_when>2012-08-15 10:07:56 +0000</bug_when>
    <thetext>this application missed to add type of phone. So it&apos;s normal.
But perhaps we need to add default type.
But need to know which apps do it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1284995</commentid>
    <comment_count>3</comment_count>
    <who name="Laurent Montel">montel</who>
    <bug_when>2012-08-15 10:09:40 +0000</bug_when>
    <thetext>in thunderbird TEL field is not imported because type is missing too</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1285061</commentid>
    <comment_count>4</comment_count>
    <who name="Mickaël">mprizee</who>
    <bug_when>2012-08-15 13:34:10 +0000</bug_when>
    <thetext>Oops, my fault for the TEL field, it was a hand-made vcard and I only read the Wikipedia page, I didn&apos;t know that the TYPE item was mandatory (isn&apos;t it ?)

Thank you for solving this problem, however the security report is still open.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1285085</commentid>
    <comment_count>5</comment_count>
    <who name="Laurent Montel">montel</who>
    <bug_when>2012-08-15 14:22:46 +0000</bug_when>
    <thetext>Yes I saw problem with html
Will look at it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1305433</commentid>
    <comment_count>6</comment_count>
    <who name="Tobias Koenig">tokoe</who>
    <bug_when>2012-10-13 09:58:20 +0000</bug_when>
    <thetext>Git commit d5bb7c20544170e06ecaaeb21c747c3b8905fc63 by Tobias Koenig.
Committed on 13/10/2012 at 11:56.
Pushed by tokoe into branch &apos;master&apos;.

Fix XSS issue in the contact viewer

This was not really a security risk, since the used QTextBrowser has not way to access
the network automatically, but fixing it right now makes it future-proof.

M  +13   -12   akonadi/contact/standardcontactformatter.cpp

http://commits.kde.org/kdepimlibs/d5bb7c20544170e06ecaaeb21c747c3b8905fc63</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>