Quantcast
Channel: Internet Explorer Web Development forum
Viewing all articles
Browse latest Browse all 3527

Form Post Blocked by IE10/11 XSS

$
0
0

Hello all,

Firstly, thank you for taking the time to read this question. Its a problem that has been driving me crazy for some time.

Can anyone tell me why the following form post causes an XSS issue?

<html xmlns:java="http://xml.apache.org/xslt/java">
    <head>
        <META http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <script language="javascript">function submitForm()
                {
                document.forms["formAribaPoomResponse"].submit();
                }</script>
    </head>
    <body onload="javascript:submitForm()">
        <FORM id="formAribaPoomResponse" METHOD="POST" ACTION="http://training.removedeu.nmcorp.removed.biz/removed-UAT/DisplayModules/TradeModules/Procurement/Create Order/BuildRequisition.aspx?Type=opex&amp;SessionID=97479551-2a25-4aa5-a2b9-ae25bd9e6aba&amp;UsersName=removed&amp;ApplicationInstanceID=38569c4f-dcfa-4d1b-b391-e0c93949e639&amp;Culture=en-GB&amp;BrandingPath=Default&amp;ControlToLoad=punchout&amp;supplierName=&amp;SupplierID=44fcd865-4ff4-4dcb-900c-ab57fe6075e7">
            <INPUT TYPE="HIDDEN" NAME="cxml-urlencoded" VALUE="<?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?><!DOCTYPE cXML SYSTEM &quot;http://xml.cxml.org/schemas/cXML/1.2.008/cXML.dtd&quot;><cXML xml:lang=&quot;en-US&quot; timestamp=&quot;10/14/2015 10:38:27 AM&quot; payloadID=&quot;20722480-151f-491b-ab91-f86a896712b5&quot;>
                <Header>
                <From>
                    <Credential domain=&quot;DUNS&quot;>
                        <Identity>removed</Identity>
                    </Credential>
                </From>
                <To>
                    <Credential domain=&quot;DUNS&quot;>
                        <Identity>removed</Identity>
                    </Credential>
                </To>
                <Sender>
                    <Credential domain=&quot;DUNS&quot;>
                        <Identity>removed</Identity>
                    </Credential>
                    <UserAgent>removed</UserAgent>
                </Sender>
                </Header>
                <Message>
                    <PunchOutOrderMessage>
                        <BuyerCookie>1AK40Y9SC4P6W</BuyerCookie>
                        <PunchOutOrderMessageHeader operationAllowed=&quot;edit&quot;>
                            <Total>
                            <Money currency=&quot;EUR&quot;>1,955.94</Money>
                            </Total>
                                <ShipTo>
                                    <Address>
                                        <Name xml:lang=&quot;en&quot;>BARCLAYS:default</Name>
                                            <PostalAddress><DeliverTo>ATTN: </DeliverTo><Street>Please enter your address</Street><City/><State/><PostalCode/><Country isoCountryCode=&quot;GBR&quot;>UNITED KINGDOM</Country></PostalAddress>
                                    </Address>
                                </ShipTo>
                                <Shipping>
                                    <Money currency=&quot;EUR&quot;/>
                                        <Description xml:lang=&quot;en&quot;/>
                                </Shipping>
                        </PunchOutOrderMessageHeader>
                        <ItemIn quantity=&quot;2&quot;>
                            <ItemID>
                            <SupplierPartID>NGB141S</SupplierPartID>
                            <SupplierPartAuxiliaryID>BrandAd</SupplierPartAuxiliaryID>
                            </ItemID>
                            <ItemDetail>
                                <UnitPrice>
                                    <Money currency=&quot;EUR&quot;>46.67</Money>
                                </UnitPrice>
                                <Description xml:lang=&quot;en&quot;>
                                    product
                                    </Description>
                                    <UnitOfMeasure>EA</UnitOfMeasure>
                                    <Classification domain=&quot;UNSPSC&quot;>80141605</Classification>
                                        
                            </ItemDetail>
                            
                        </ItemIn>
                        <ItemIn quantity=&quot;2&quot;>
                            <ItemID>
                            <SupplierPartID>NGB141M</SupplierPartID>
                            <SupplierPartAuxiliaryID>BrandAd</SupplierPartAuxiliaryID>
                            </ItemID>
                            <ItemDetail>
                                <UnitPrice>
                                    <Money currency=&quot;EUR&quot;>46.67</Money>
                                </UnitPrice>
                                <Description xml:lang=&quot;en&quot;>
                                    product
                                    </Description>
                                    <UnitOfMeasure>EA</UnitOfMeasure>
                                    <Classification domain=&quot;UNSPSC&quot;>80141605</Classification>
                                        
                            </ItemDetail>
                            
                        </ItemIn>
                        <ItemIn quantity=&quot;2&quot;>
                            <ItemID>
                            <SupplierPartID>NGB141L</SupplierPartID>
                            <SupplierPartAuxiliaryID>BrandAd</SupplierPartAuxiliaryID>
                            </ItemID>
                            <ItemDetail>
                                <UnitPrice>
                                    <Money currency=&quot;EUR&quot;>46.67</Money>
                                </UnitPrice>
                                <Description xml:lang=&quot;en&quot;>
                                    product
                                    </Description>
                                    <UnitOfMeasure>EA</UnitOfMeasure>
                                    <Classification domain=&quot;UNSPSC&quot;>80141605</Classification>
                                        
                            </ItemDetail>
                            
                        </ItemIn>
                        <ItemIn quantity=&quot;2&quot;>
                            <ItemID>
                            <SupplierPartID>NGB141XL</SupplierPartID>
                            <SupplierPartAuxiliaryID>BrandAd</SupplierPartAuxiliaryID>
                            </ItemID>
                            <ItemDetail>
                                <UnitPrice>
                                    <Money currency=&quot;EUR&quot;>46.67</Money>
                                </UnitPrice>
                                <Description xml:lang=&quot;en&quot;>
                                    product
                                    </Description>
                                    <UnitOfMeasure>EA</UnitOfMeasure>
                                    <Classification domain=&quot;UNSPSC&quot;>80141605</Classification>
                                        
                            </ItemDetail>
                            
                        </ItemIn>
                        <ItemIn quantity=&quot;2&quot;>
                            <ItemID>
                            <SupplierPartID>NGB141XXL</SupplierPartID>
                            <SupplierPartAuxiliaryID>BrandAd</SupplierPartAuxiliaryID>
                            </ItemID>
                            <ItemDetail>
                                <UnitPrice>
                                    <Money currency=&quot;EUR&quot;>46.67</Money>
                                </UnitPrice>
                                <Description xml:lang=&quot;en&quot;>
                                    product
                                    </Description>
                                    <UnitOfMeasure>EA</UnitOfMeasure>
                                    <Classification domain=&quot;UNSPSC&quot;>80141605</Classification>
                                        
                            </ItemDetail>
                            
                        </ItemIn>
                        <ItemIn quantity=&quot;2&quot;>
                            <ItemID>
                            <SupplierPartID>NGB141XXXL</SupplierPartID>
                            <SupplierPartAuxiliaryID>BrandAd</SupplierPartAuxiliaryID>
                            </ItemID>
                            <ItemDetail>
                                <UnitPrice>
                                    <Money currency=&quot;EUR&quot;>46.67</Money>
                                </UnitPrice>
                                <Description xml:lang=&quot;en&quot;>
                                    product
                                    </Description>
                                    <UnitOfMeasure>EA</UnitOfMeasure>
                                    <Classification domain=&quot;UNSPSC&quot;>80141605</Classification>
                                        
                            </ItemDetail>
                            
                        </ItemIn>
                        <ItemIn quantity=&quot;10&quot;>
                            <ItemID>
                            <SupplierPartID>NIS011P</SupplierPartID>
                            <SupplierPartAuxiliaryID>BrandAd</SupplierPartAuxiliaryID>
                            </ItemID>
                            <ItemDetail>
                                <UnitPrice>
                                    <Money currency=&quot;EUR&quot;>6.25</Money>
                                </UnitPrice>
                                <Description xml:lang=&quot;en&quot;>
                                    Rhin Ballpen (pks of 25)
                                    </Description>
                                    <UnitOfMeasure>EA</UnitOfMeasure>
                                    <Classification domain=&quot;UNSPSC&quot;>80141605</Classification>
                                        
                            </ItemDetail>
                            
                        </ItemIn>
                        <ItemIn quantity=&quot;5&quot;>
                            <ItemID>
                            <SupplierPartID>NIS012P</SupplierPartID>
                            <SupplierPartAuxiliaryID>BrandAd</SupplierPartAuxiliaryID>
                            </ItemID>
                            <ItemDetail>
                                <UnitPrice>
                                    <Money currency=&quot;EUR&quot;>158.50</Money>
                                </UnitPrice>
                                <Description xml:lang=&quot;en&quot;>
                                    Mini USB Memory Stick 8Gb (pk25)
                                    </Description>
                                    <UnitOfMeasure>EA</UnitOfMeasure>
                                    <Classification domain=&quot;UNSPSC&quot;>80141605</Classification>
                                        
                            </ItemDetail>
                            
                        </ItemIn>
                        <ItemIn quantity=&quot;10&quot;>
                            <ItemID>
                            <SupplierPartID>*UCL023</SupplierPartID>
                            <SupplierPartAuxiliaryID>BrandAd</SupplierPartAuxiliaryID>
                            </ItemID>
                            <ItemDetail>
                                <UnitPrice>
                                    <Money currency=&quot;EUR&quot;>19.75</Money>
                                </UnitPrice>
                                <Description xml:lang=&quot;en&quot;>
                                    Squid Mini Powerbank
                                    </Description>
                                    <UnitOfMeasure>EA</UnitOfMeasure>
                                    <Classification domain=&quot;UNSPSC&quot;>80141605</Classification>
                                        
                            </ItemDetail>
                            
                        </ItemIn>
                        <ItemIn quantity=&quot;10&quot;>
                            <ItemID>
                            <SupplierPartID>LMP1003</SupplierPartID>
                            <SupplierPartAuxiliaryID>BrandAd</SupplierPartAuxiliaryID>
                            </ItemID>
                            <ItemDetail>
                                <UnitPrice>
                                    <Money currency=&quot;EUR&quot;>34.34</Money>
                                </UnitPrice>
                                <Description xml:lang=&quot;en&quot;>
                                    LMP1 1:43 Scale Model
                                    </Description>
                                    <UnitOfMeasure>EA</UnitOfMeasure>
                                    <Classification domain=&quot;UNSPSC&quot;>80141605</Classification>
                                        
                            </ItemDetail>
                            
                        </ItemIn>
                        
                    </PunchOutOrderMessage>
                </Message>
            </cXML>">
        </FORM>
    </body>
</html>

If we post a order message to IE with less than 9 items etc then XSS is not invoked.

This is a valid post and the only workaround should not just be whitelisting and disabling xss

Any help would be highly appreciated!

Thanks,

Z


Viewing all articles
Browse latest Browse all 3527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>