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

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>236432</bug_id>
          
          <creation_ts>2022-02-10 00:29:47 -0800</creation_ts>
          <short_desc>Autofill sets the `value` of an `&lt;input&gt;` with `name=&quot;token&quot;` to the user&apos;s email address</short_desc>
          <delta_ts>2022-02-10 07:26:53 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Forms</component>
          <version>Safari 15</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>macOS 12</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>MOVED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Brody">brody</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>cdumez</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>wenson_hsieh</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1839554</commentid>
    <comment_count>0</comment_count>
    <who name="Brody">brody</who>
    <bug_when>2022-02-10 00:29:47 -0800</bug_when>
    <thetext>While developing a website I noticed some unusual activity while testing it in Safari.

Given a form such as:

```
&lt;form&gt;
  &lt;input type=&quot;hidden&quot; name=&quot;token&quot; value=&quot;[SOME LONG RANDOM STRING HERE]&quot; autocomplete=&quot;off&quot;&gt;
  &lt;input type=&quot;password&quot; name=&quot;password&quot; autocomplete=&quot;new-password&quot;&gt;
  &lt;input type=&quot;password&quot; name=&quot;password_confirmation&quot; autocomplete=&quot;new-password&quot;&gt;
&lt;/form&gt;
```

The browser is setting the token to the user&apos;s email address. The workaround involved using the `Referer` header when the `User-Agent` matches Safari but no other browser ran into this issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1839639</commentid>
    <comment_count>1</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2022-02-10 07:25:13 -0800</bug_when>
    <thetext>Likely a Safari issue, not a WebKit one. Importing the bug into radar so that it can be sent to the right people.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1839640</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-02-10 07:25:24 -0800</bug_when>
    <thetext>&lt;rdar://problem/88753523&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>