Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-15385] HTTPClient Not Validating SSL Certificate on Android

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionCannot Reproduce
Resolution Date2014-03-26T20:24:20.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid
LabelssupportTeam
ReporterBen Wakeman
AssigneeIngo Muschenetz
Created2013-10-01T21:17:08.000+0000
Updated2017-03-27T22:16:28.000+0000

Description

Setting the validatesSecureCertificate property to true in the HTTPClient module does not work on the Android platform. Requests to invalid SSL sites are allowed to go through without exception. This feature does work as designed for iOS. Example:
var xhr = Ti.Network.createHTTPClient();
xhr.validatesSecureCertificate = true;

Comments

  1. Ben Wakeman 2013-10-01

    This issue was discovered by the Bed Bath & Beyond security team with build of the mobile app on the Titanium 3.1.1 SDK using and Android 4.2 phone.
  2. Michael Goff 2013-10-05

    Does this mean the value is not true by default?
  3. Radamantis Torres-Lechuga 2013-10-07

    [~bwakeman] . Can you provide a reproducible test case? We need more information and steps to reproduce the issue. Also, please add Android OS version, Android phone model, Titanium SDK , Studio version and the operating system version. Thanks
  4. Ben Wakeman 2013-10-07

    @Michael - no it has nothing to do with the default value of the property, it has to do with the fact that even when the value is set to true, it is not validating SSL requests on android. @Radamantis - I've again forwarded a request to the Bed Bath and Beyond security team who raised the issue so they can provide us with the means to validate the issue.
  5. Ingo Muschenetz 2014-03-26

    Resolving as cannot reproduce. Needs confirmation by QE before closing.

JSON Source