[TIMOB-1036] Android: WebView Exposes Ti Methods with Remote URL
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:55:01.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.6.0 M01 |
Components | Android |
Labels | android, defect, release-1.6.0, security |
Reporter | Don Thorp |
Assignee | Marshall Culpepper |
Created | 2011-04-15T02:42:03.000+0000 |
Updated | 2011-04-17T01:55:01.000+0000 |
Description
This is a security issue. Titanium APIs should only be allowed for local urls
(from [12d7bf6a90db72fa0aebe538c95128c8a0cdc625]) Inject our Ti JS and JSON near beginning of local (and ONLY local) html file contents or html set directly via the html property. [#2153 state:fixed-in-qa][#2514 state:fixed-in-qa][#1635 state:fixed-in-qa][#1036 state:fixed-in-qa] https://github.com/appcelerator/titanium_mobile/commit/12d7bf6a90db72fa0aebe538c95128c8a0cdc625"> https://github.com/appcelerator/titanium_mobile/commit/12d7bf6a90db...
reopening for test case
QA to test this, put this code in for a window JS:
You should get an empty alert, because Titanium should not be available if you've browed to an external site such as google in this example.
Note: if you try to test the fail case, be sure to try a version of the sdk from before 12/13/2010, otherwise #2583 will happen to you and you'll get a lockup.
(from [a15892512a6eb0f7605a3a98615513e3f554ebde]) [#1036 state:fixed-in-qa] Drillbit test to be sure Ti/Titanium not available in external web sites https://github.com/appcelerator/titanium_mobile/commit/a15892512a6eb0f7605a3a98615513e3f554ebde"> https://github.com/appcelerator/titanium_mobile/commit/a15892512a6e...
2.2.1 (G2), 1.6 (G1) Titanium SDK version: 1.6.0 (01/04/11 08:01 e49700d)