<?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>487882</bug_id>
          
          <creation_ts>2024-06-01 12:58:05 +0000</creation_ts>
          <short_desc>plaintext HTTP request in kmail-account-wizard</short_desc>
          <delta_ts>2024-06-03 11:43:40 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>kmail2</product>
          <component>general</component>
          <version>5.24.4</version>
          <rep_platform>unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></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="shushangw">beardwen</reporter>
          <assigned_to name="kdepim bugs">pim-bugs-null</assigned_to>
          <cc>montel</cc>
          
          <cf_commitlink>https://invent.kde.org/pim/kmail-account-wizard/-/commit/9784f5ab41c3aff435d4a88afb25585180a62ee4</cf_commitlink>
          <cf_versionfixedin>6.2.0</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2323822</commentid>
    <comment_count>0</comment_count>
    <who name="shushangw">beardwen</who>
    <bug_when>2024-06-01 12:58:05 +0000</bug_when>
    <thetext>Summary:
Send a plain HTTP request (https://github.com/KDE/kmail-account-wizard/blob/master/src/ispdbservice.cpp#L29) to retrieve the mail server&apos;s configuration file in the K-mail account wizard.

May result:
Consider an attack scenario in which the attacker and the victim are both located in a coffee shop, sharing the same Wi-Fi network. The attacker can tamper with any content transmitted over the plaintext connection. For example, specify the target mail server as an attacker-controlled server.

If it is deliberate not to implement HTTPS, what is the reason for doing so?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2324059</commentid>
    <comment_count>1</comment_count>
    <who name="Laurent Montel">montel</who>
    <bug_when>2024-06-03 05:26:06 +0000</bug_when>
    <thetext>see https://wiki.mozilla.org/Thunderbird:Autoconfiguration</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2324106</commentid>
    <comment_count>2</comment_count>
    <who name="shushangw">beardwen</who>
    <bug_when>2024-06-03 09:17:26 +0000</bug_when>
    <thetext>(In reply to Laurent Montel from comment #1)
&gt; see https://wiki.mozilla.org/Thunderbird:Autoconfiguration

Thank you for your reply. However, for a more secure implementation, Kmail should at least try https first and fall back to http requests in case it can&apos;t retrieve the configuration file successfully.

Also, the latest specification and discussion of autoconfiguration are referenced in:
- https://datatracker.ietf.org/doc/draft-bucksch-autoconfig/00/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2324139</commentid>
    <comment_count>3</comment_count>
    <who name="Laurent Montel">montel</who>
    <bug_when>2024-06-03 11:43:40 +0000</bug_when>
    <thetext>Git commit 9784f5ab41c3aff435d4a88afb25585180a62ee4 by Laurent Montel.
Committed on 03/06/2024 at 11:42.
Pushed by mlaurent into branch &apos;master&apos;.

Fix bug 487882: plaintext HTTP request in kmail-account-wizard
FIXED-IN: 6.2.0

M  +7    -11   src/ispdbservice.cpp
M  +5    -3    src/ispdbservice.h

https://invent.kde.org/pim/kmail-account-wizard/-/commit/9784f5ab41c3aff435d4a88afb25585180a62ee4</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>