IIS6 serving unregistered MIME types

I have an IIS6 web server (on Win2003) that has weird behavior, which I think is an undocumented "function" ...

It serves SVG files (.svg extension) without registering in the IIS metabase. It also does not have a * mime type.

For this request:

GET /basic/file1.svg HTTP/1.1

the answer contains

HTTP/1.1 200 OK
Content-Length: 32817
Content-Type: image/svg+xml

So ... where did IIS get this mime type image/svg+xml?

The only thing I found is in the registry, in HKEY_CLASSES_ROOT\MIME\Database. But in accordance with all the information about MS that I found, the source for IIS allowed mime types, this is its own metabase.

Does anyone know this behavior? This could lead the IIS administrator to a false sense of security ...

Best regards, everyone!

+1
1

IIS MIME- Metabase (HKCR\<extension> ), Mime.

, :

adsutil.vbs get /MimeMap/mimemap

, , :

D:\Apps\Scripts>adsutil.vbs get /MimeMap/mimemap
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.

MimeMap                         : (MimeMapList) ".asx,video/x-ms-asf" ".xml,text/xml" ".tsv,text/tab
-separated-values" ".ra,audio/x-pn-realaudio" ".sv4crc,application/x-sv4crc" ".spc,application/x-pkc
s7-certificates" ".pmc,application/x-perfmon" ".lit,application/x-ms-reader" ".crd,application/x-msc

ADSUtil.VBS ( "vbCRLF " ):

1655:

        MimeOutPutStr = MimeOutPutStr & """" & MimeEntry.Extension & "," & MimeEntry.MimeType & """ "

to

        MimeOutPutStr = MimeOutPutStr & vbCRLF & """" & MimeEntry.Extension & "," & MimeEntry.MimeType & """ "

:

D:\Apps\Scripts>adsutil.vbs enum  /MimeMap
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.

KeyType                         : (STRING) "IIsMimeMap"
MimeMap                         : (MimeMapList)
".asx,video/x-ms-asf"
".xml,text/xml"
".tsv,text/tab-separated-values"
".ra,audio/x-pn-realaudio"
".sv4crc,application/x-sv4crc"
".spc,application/x-pkcs7-certificates"
".pmc,application/x-perfmon"
".lit,application/x-ms-reader"
".crd,application/x-mscardfile"
+1

Source: https://habr.com/ru/post/1739753/


All Articles