I am new to security testing and I need to exploit the issue reported by hp fortify tool. It says String.format()
of a cs file to be insecure. How to exploit that and show it can be subjected to hacking?
how the following code is exposed for hacking?
String.Format(CultureInfo.InvariantCulture,
"s_objectID='{5}';window.location='{0}?BasketAction=Add&PriceID={1}&cid={2}&PkgQty={3}&LicPriceID={4}&pk={6}';return false;",
m_LegacyUrlName.ShoppingCart, PriceId, CampaignId, 1, LicensePriceId,m_sObjectId,
StringOperations.EncodeHtml(HttpContext.Current.Request.QueryString["pk"]));