<?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>193153</bug_id>
          
          <creation_ts>2019-01-04 12:19:44 -0800</creation_ts>
          <short_desc>[WebCrypto] AES-CBC should perform padding check after decryptions</short_desc>
          <delta_ts>2019-01-04 12:53:32 -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>WebCore Misc.</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jiewen Tan">jiewen_tan</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>jiewen_tan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1491793</commentid>
    <comment_count>0</comment_count>
    <who name="Jiewen Tan">jiewen_tan</who>
    <bug_when>2019-01-04 12:19:44 -0800</bug_when>
    <thetext>AES-CBC should perform padding check after decryptions as suggested by Decrypt Step 3.-5. of https://www.w3.org/TR/WebCryptoAPI/#aes-cbc-operations.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1491816</commentid>
    <comment_count>1</comment_count>
    <who name="Jiewen Tan">jiewen_tan</who>
    <bug_when>2019-01-04 12:53:32 -0800</bug_when>
    <thetext>Wait, I am wrong about this bug.

I believe CommonCrypto handles all those steps for us. If there is a padding issue, it should inform us. Otherwise, we treat the results as the plaintext without padding.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>