Changeset 238604 in webkit


Ignore:
Timestamp:
Nov 28, 2018 12:28:12 AM (5 years ago)
Author:
rwlbuis@webkit.org
Message:

Block more ports (427, 548, 6697)
https://bugs.webkit.org/show_bug.cgi?id=186092

Reviewed by Frédéric Wang.

Update request-bad-port.html to latest version.

  • web-platform-tests/fetch/api/request/request-bad-port-expected.txt:
  • web-platform-tests/fetch/api/request/request-bad-port.html:
Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/imported/w3c/ChangeLog

    r238592 r238604  
     12018-11-27  Rob Buis  <rbuis@igalia.com>
     2
     3        Block more ports (427, 548, 6697)
     4        https://bugs.webkit.org/show_bug.cgi?id=186092
     5
     6        Reviewed by Frédéric Wang.
     7
     8        Update request-bad-port.html to latest version.
     9
     10        * web-platform-tests/fetch/api/request/request-bad-port-expected.txt:
     11        * web-platform-tests/fetch/api/request/request-bad-port.html:
     12
    1132018-11-27  Chris Dumez  <cdumez@apple.com>
    214
  • trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/request-bad-port-expected.txt

    r220050 r238604  
    11Blocked access to external URL http://example.com:1/
    2 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:1/ due to access control checks.
     2CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:1/ due to access control checks.
    33Blocked access to external URL http://example.com:7/
    4 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:7/ due to access control checks.
     4CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:7/ due to access control checks.
    55Blocked access to external URL http://example.com:9/
    6 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:9/ due to access control checks.
     6CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:9/ due to access control checks.
    77Blocked access to external URL http://example.com:11/
    8 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:11/ due to access control checks.
     8CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:11/ due to access control checks.
    99Blocked access to external URL http://example.com:13/
    10 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:13/ due to access control checks.
     10CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:13/ due to access control checks.
    1111Blocked access to external URL http://example.com:15/
    12 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:15/ due to access control checks.
     12CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:15/ due to access control checks.
    1313Blocked access to external URL http://example.com:17/
    14 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:17/ due to access control checks.
     14CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:17/ due to access control checks.
    1515Blocked access to external URL http://example.com:19/
    16 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:19/ due to access control checks.
     16CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:19/ due to access control checks.
    1717Blocked access to external URL http://example.com:20/
    18 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:20/ due to access control checks.
     18CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:20/ due to access control checks.
    1919Blocked access to external URL http://example.com:21/
    20 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:21/ due to access control checks.
     20CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:21/ due to access control checks.
    2121Blocked access to external URL http://example.com:22/
    22 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:22/ due to access control checks.
     22CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:22/ due to access control checks.
    2323Blocked access to external URL http://example.com:23/
    24 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:23/ due to access control checks.
     24CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:23/ due to access control checks.
    2525Blocked access to external URL http://example.com:25/
    26 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:25/ due to access control checks.
     26CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:25/ due to access control checks.
    2727Blocked access to external URL http://example.com:37/
    28 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:37/ due to access control checks.
     28CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:37/ due to access control checks.
    2929Blocked access to external URL http://example.com:42/
    30 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:42/ due to access control checks.
     30CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:42/ due to access control checks.
    3131Blocked access to external URL http://example.com:43/
    32 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:43/ due to access control checks.
     32CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:43/ due to access control checks.
    3333Blocked access to external URL http://example.com:53/
    34 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:53/ due to access control checks.
     34CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:53/ due to access control checks.
    3535Blocked access to external URL http://example.com:77/
    36 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:77/ due to access control checks.
     36CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:77/ due to access control checks.
    3737Blocked access to external URL http://example.com:79/
    38 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:79/ due to access control checks.
     38CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:79/ due to access control checks.
    3939Blocked access to external URL http://example.com:87/
    40 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:87/ due to access control checks.
     40CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:87/ due to access control checks.
    4141Blocked access to external URL http://example.com:95/
    42 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:95/ due to access control checks.
     42CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:95/ due to access control checks.
    4343Blocked access to external URL http://example.com:101/
    44 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:101/ due to access control checks.
     44CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:101/ due to access control checks.
    4545Blocked access to external URL http://example.com:102/
    46 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:102/ due to access control checks.
     46CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:102/ due to access control checks.
    4747Blocked access to external URL http://example.com:103/
    48 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:103/ due to access control checks.
     48CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:103/ due to access control checks.
    4949Blocked access to external URL http://example.com:104/
    50 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:104/ due to access control checks.
     50CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:104/ due to access control checks.
    5151Blocked access to external URL http://example.com:109/
    52 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:109/ due to access control checks.
     52CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:109/ due to access control checks.
    5353Blocked access to external URL http://example.com:110/
    54 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:110/ due to access control checks.
     54CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:110/ due to access control checks.
    5555Blocked access to external URL http://example.com:111/
    56 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:111/ due to access control checks.
     56CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:111/ due to access control checks.
    5757Blocked access to external URL http://example.com:113/
    58 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:113/ due to access control checks.
     58CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:113/ due to access control checks.
    5959Blocked access to external URL http://example.com:115/
    60 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:115/ due to access control checks.
     60CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:115/ due to access control checks.
    6161Blocked access to external URL http://example.com:117/
    62 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:117/ due to access control checks.
     62CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:117/ due to access control checks.
    6363Blocked access to external URL http://example.com:119/
    64 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:119/ due to access control checks.
     64CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:119/ due to access control checks.
    6565Blocked access to external URL http://example.com:123/
    66 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:123/ due to access control checks.
     66CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:123/ due to access control checks.
    6767Blocked access to external URL http://example.com:135/
    68 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:135/ due to access control checks.
     68CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:135/ due to access control checks.
    6969Blocked access to external URL http://example.com:139/
    70 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:139/ due to access control checks.
     70CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:139/ due to access control checks.
    7171Blocked access to external URL http://example.com:143/
    72 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:143/ due to access control checks.
     72CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:143/ due to access control checks.
    7373Blocked access to external URL http://example.com:179/
    74 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:179/ due to access control checks.
     74CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:179/ due to access control checks.
    7575Blocked access to external URL http://example.com:389/
    76 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:389/ due to access control checks.
     76CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:389/ due to access control checks.
     77Blocked access to external URL http://example.com:427/
     78CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:427/ due to access control checks.
    7779Blocked access to external URL http://example.com:465/
    78 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:465/ due to access control checks.
     80CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:465/ due to access control checks.
    7981Blocked access to external URL http://example.com:512/
    80 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:512/ due to access control checks.
     82CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:512/ due to access control checks.
    8183Blocked access to external URL http://example.com:513/
    82 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:513/ due to access control checks.
     84CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:513/ due to access control checks.
    8385Blocked access to external URL http://example.com:514/
    84 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:514/ due to access control checks.
     86CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:514/ due to access control checks.
    8587Blocked access to external URL http://example.com:515/
    86 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:515/ due to access control checks.
     88CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:515/ due to access control checks.
    8789Blocked access to external URL http://example.com:526/
    88 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:526/ due to access control checks.
     90CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:526/ due to access control checks.
    8991Blocked access to external URL http://example.com:530/
    90 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:530/ due to access control checks.
     92CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:530/ due to access control checks.
    9193Blocked access to external URL http://example.com:531/
    92 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:531/ due to access control checks.
     94CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:531/ due to access control checks.
    9395Blocked access to external URL http://example.com:532/
    94 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:532/ due to access control checks.
     96CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:532/ due to access control checks.
    9597Blocked access to external URL http://example.com:540/
    96 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:540/ due to access control checks.
     98CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:540/ due to access control checks.
     99Blocked access to external URL http://example.com:548/
     100CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:548/ due to access control checks.
    97101Blocked access to external URL http://example.com:556/
    98 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:556/ due to access control checks.
     102CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:556/ due to access control checks.
    99103Blocked access to external URL http://example.com:563/
    100 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:563/ due to access control checks.
     104CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:563/ due to access control checks.
    101105Blocked access to external URL http://example.com:587/
    102 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:587/ due to access control checks.
     106CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:587/ due to access control checks.
    103107Blocked access to external URL http://example.com:601/
    104 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:601/ due to access control checks.
     108CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:601/ due to access control checks.
    105109Blocked access to external URL http://example.com:636/
    106 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:636/ due to access control checks.
     110CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:636/ due to access control checks.
    107111Blocked access to external URL http://example.com:993/
    108 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:993/ due to access control checks.
     112CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:993/ due to access control checks.
    109113Blocked access to external URL http://example.com:995/
    110 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:995/ due to access control checks.
     114CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:995/ due to access control checks.
    111115Blocked access to external URL http://example.com:2049/
    112 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:2049/ due to access control checks.
     116CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:2049/ due to access control checks.
    113117Blocked access to external URL http://example.com:3659/
    114 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:3659/ due to access control checks.
     118CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:3659/ due to access control checks.
    115119Blocked access to external URL http://example.com:4045/
    116 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:4045/ due to access control checks.
     120CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:4045/ due to access control checks.
    117121Blocked access to external URL http://example.com:6000/
    118 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:6000/ due to access control checks.
     122CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:6000/ due to access control checks.
    119123Blocked access to external URL http://example.com:6665/
    120 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:6665/ due to access control checks.
     124CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:6665/ due to access control checks.
    121125Blocked access to external URL http://example.com:6666/
    122 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:6666/ due to access control checks.
     126CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:6666/ due to access control checks.
    123127Blocked access to external URL http://example.com:6667/
    124 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:6667/ due to access control checks.
     128CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:6667/ due to access control checks.
    125129Blocked access to external URL http://example.com:6668/
    126 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:6668/ due to access control checks.
     130CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:6668/ due to access control checks.
    127131Blocked access to external URL http://example.com:6669/
    128 CONSOLE MESSAGE: line 79: Fetch API cannot load http://example.com:6669/ due to access control checks.
     132CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:6669/ due to access control checks.
     133Blocked access to external URL http://example.com:6697/
     134CONSOLE MESSAGE: line 80: Fetch API cannot load http://example.com:6697/ due to access control checks.
    129135
    130136PASS Request on bad port 1 should throw TypeError.
     
    166172PASS Request on bad port 179 should throw TypeError.
    167173PASS Request on bad port 389 should throw TypeError.
     174PASS Request on bad port 427 should throw TypeError.
    168175PASS Request on bad port 465 should throw TypeError.
    169176PASS Request on bad port 512 should throw TypeError.
     
    176183PASS Request on bad port 532 should throw TypeError.
    177184PASS Request on bad port 540 should throw TypeError.
     185PASS Request on bad port 548 should throw TypeError.
    178186PASS Request on bad port 556 should throw TypeError.
    179187PASS Request on bad port 563 should throw TypeError.
     
    192200PASS Request on bad port 6668 should throw TypeError.
    193201PASS Request on bad port 6669 should throw TypeError.
     202PASS Request on bad port 6697 should throw TypeError.
    194203
  • trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/request-bad-port.html

    r210823 r238604  
    55<script src="/resources/testharnessreport.js"></script>
    66<script>
    7 
    87    // list of bad ports according to
    98    // https://fetch.spec.whatwg.org/#port-blocking
     
    4746        179,  // bgp
    4847        389,  // ldap
    49         465,  // smtp+ssl
     48        427,  // afp (alternate)
     49        465,  // smtp (alternate)
    5050        512,  // print / exec
    5151        513,  // login
     
    5757        532,  // netnews
    5858        540,  // uucp
     59        548,  // afp
    5960        556,  // remotefs
    6061        563,  // nntp+ssl
    61         587,  // smtp
     62        587,  // smtp (outgoing)
    6263        601,  // syslog-conn
    6364        636,  // ldap+ssl
    64         993,  // imap+ssl
     65        993,  // ldap+ssl
    6566        995,  // pop3+ssl
    6667        2049, // nfs
     
    7374        6668, // irc (alternate)
    7475        6669, // irc (alternate)
     76        6697, // irc+tls
    7577    ];
    76 
    7778    BLOCKED_PORTS_LIST.map(function(a){
    7879        promise_test(function(t){
  • trunk/Source/WebCore/ChangeLog

    r238601 r238604  
     12018-11-27  Rob Buis  <rbuis@igalia.com>
     2
     3        Block more ports (427, 548, 6697)
     4        https://bugs.webkit.org/show_bug.cgi?id=186092
     5
     6        Reviewed by Frédéric Wang.
     7
     8        Block port 427, ports 548 and 6697 are aleady blocked and
     9        are tested by the updated request-bad-port.html wpt test.
     10
     11        Behavior matches Firefox and Chrome.
     12
     13        Test: web-platform-tests/fetch/api/request/request-bad-port.html
     14
     15        * platform/URL.cpp:
     16        (WebCore::portAllowed):
     17
    1182018-11-27  Youenn Fablet  <youenn@apple.com>
    219
  • trunk/Source/WebCore/platform/URL.cpp

    r237073 r238604  
    920920        179,  // BGP
    921921        389,  // LDAP
     922        427,  // SLP (Also used by Apple Filing Protocol)
    922923        465,  // SMTP+SSL
    923924        512,  // print / exec
Note: See TracChangeset for help on using the changeset viewer.