MEKKA (ANP/AFP) - In het Saudische Mekka is de hadj begonnen, de jaarlijkse pelgrimstocht die moslims geacht worden minimaal eens in hun leven te maken. In het nabijgelegen Mina zijn daartoe miljoenen tenten opgebouwd, om de vele pelgrims op te vangen. Meer dan anderhalf miljoen gelovigen zouden al zijn gearriveerd.
Het bekendste onderdeel van de dagenlange pelgrimstocht is de tocht rond de Kaäba, het kubusvormige heiligdom op de binnenplaats van de Grote Moskee in Mekka. Zevenmaal wordt, tegen de klok in, het heiligdom omcirkeld. Op livestreams is te zien hoe enkele honderden gelovigen al begonnen zijn aan die rondgang.
Later in de week wordt onder meer de Arafat-heuvel bezocht, waarvan wordt gedacht dat de profeet Mohammed daar zijn laatste religieuze rede heeft gegeven.
Vanwege het fragiele staakt-het-vuren in het Midden-Oosten heeft Saudi-Arabië geen halve maatregelen genomen. Op beelden van het ministerie van Defensie is te zien hoe onder meer luchtafweerbatterijen zijn geplaatst.
AMSTERDAM (ANP/BLOOMBERG) - Door de hoop op vrede in het Midden-Oosten laten zowel de olie- als de gasprijzen maandagochtend stevige dalingen zien. De Verenigde Staten en Iran lijken na berichten van afgelopen weekend namelijk heel dicht bij een nieuw akkoord.
Amerikaanse olie werd maandagochtend tot bijna 6 procent goedkoper, terwijl Brent - de maatstaf voor olie uit onder meer het Midden-Oosten - dik 5 procent in prijs omlaag ging. De Europese gasprijs zakte kort na opening van de handel op de gasbeurs in Amsterdam rond de 6 procent.
Bij een deal tussen Iran en de VS wordt de Straat van Hormuz als het goed is heropend. Die voor de olie- en gasleveringen belangrijke zeestraat bij Iran is inmiddels al maanden vrijwel volledig geblokkeerd. Slechts af en toe varen er schepen doorheen.
Maar de Amerikaanse president Donald Trump heeft gewaarschuwd dat de blokkade van de Straat van Hormuz van kracht blijft totdat er echt een overeenkomst is bereikt. Hij wil niet "haasten" met een deal, die "nog niet eens volledig is uitonderhandeld".
gerryhk has added a photo to the pool:
A juvenile Crocodile. The eyes and teeth are quite mesmerising.
Naturallysouthaustralia.com has added a photo to the pool:
Secretary of state says a deal could materialise ‘today’, while Trump says talks with Iran proceeding constructively as he faces criticism from within his own party
Iran executed a man over charges related to the anti-government protests that took place nationwide in January, state media reported on Monday.
The individual was identified as Abbas Akbari, Reuters cited state media as saying.
Continue reading...It's a holiday in the US today, so we're reaching back into the archives. What we really need is a single function that can do it all, and by "it" we mean "ruin your life." Original --Remy
There are several types of bad code; there's lazy code, frantic code, unaware-of-a-better-way code, and aware-of-a-better-way-but-too-apathetic-to-do-it code, to name a few. Then there're amalgamations of different types of bad code.
Môshe encountered such an amalgam when his company was trying out a new delivery service. Môshe spent some time evaluating the IE-only web interface, and was curious about some JavaScript errors he was getting. Strangely, he noticed variables named dateSQL, newSQLTag, and modeSQL.
Môshe dug a little deeper, probably thinking that his suspicions couldn't possibly be correct, only to find sendLinkVal() in the page's code:
function sendLinkVal(theDate,theStatus,MainTitle,PageTitle){
var dateSQL = " AND J.JBDeliveryDate=''" + theDate +
"''"
var status = ""
var newSQLTag =""
var PageTitle = PageTitle
var MainTitle = MainTitle
//alert(dateSQL)
switch (theStatus){
case "Confirmed":
dateSQL= ""
var modeSQL = ""
modeSQL = " AND (J.JBCompanyID=31337) "
status = " GlobalJobStatusView AS J WHERE J.JBCollectDate=''
" + theDate + "'' AND J.JBConfirmed=''Yes'' AND
J.MIStatusCode<>5" + modeSQL + " AND
(ISNULL(J.JBCancelled, 0) <> 1) ORDER BY
Convert(int, J.MIJobID)"
break;
case "Unconfirmed":
dateSQL= ""
var modeSQL = ""
modeSQL = " AND (J.JBCompanyID=31337) "
status = " GlobalJobStatusView AS J WHERE J.JBCollectDate=''
" + theDate + "'' AND J.JBConfirmed=''No''" +
modeSQL + " ORDER BY Convert(int, J.MIJobID)"
break;
case "Complete":
dateSQL= ""
var modeSQL = ""
modeSQL = " AND (J.JBCompanyID=31337) "
status = " GlobalJobStatusView AS J WHERE J.JBCollectDate=''
" + theDate + "'' AND J.MIStatusCode=5" +
modeSQL + " ORDER BY Convert(int, J.MIJobID)"
break;
case "Unconformed":
dateSQL= ""
var modeSQL = ""
modeSQL = " AND (J.JBCompanyID=31337) "
status = " GlobalJobStatusView AS J WHERE J.JBCollectDate=''
" + theDate + "'' AND (J.MIConformance IS NOT NULL
AND J.MIConformance<>'''') " + modeSQL + "
ORDER BY Convert(int, J.MIJobID)"
break;
case "NoDelDate":
dateSQL= ""
var modeSQL = ""
modeSQL = " AND (J.JBCompanyID=31337) "
dateSQL =" GlobalJobStatusView AS J WHERE J.JBDeliveryDate
IS NULL " + modeSQL + " ORDER BY Convert(int, J.MIJobID)
"
break;
case "Collections":
// the dateSQL is not required so set it to nothing so that it
// doesn't interfere with the sql being generated at the end of
// the function.
dateSQL= ""
var modeSQL = ""
modeSQL = " AND (J.JBCompanyID=31337) "
status = " GlobalJobStatusView AS J WHERE J.JBCollectDate=''
" + theDate + "''" + modeSQL + " ORDER BY
Convert(int, J.MIJobID)"
break;
case "Deliveries":
// the dateSQL is not required so set it to nothing so that it
// doesn't interfere with the sql being generated at the end of
// the function.
dateSQL= ""
var modeSQL = ""
modeSQL = " AND (J.JBCompanyID=31337) "
status = " GlobalJobStatusView AS J WHERE J.JBDeliveryDate=''
" + theDate + "''" + modeSQL + " ORDER BY
Convert(int, J.MIJobID)"
break;
case "ColAndDel":
// the dateSQL is not required so set it to nothing so that it
// doesn't interfere with the sql being generated at the end of
// the function.
dateSQL= ""
var modeSQL = ""
modeSQL = " AND (J.JBCompanyID=31337) "
status = " GlobalJobStatusView AS J WHERE ((J.JBDeliveryDate=''
" + theDate + "'') OR (J.JBCollectDate=''" +
theDate + "''))" + modeSQL + " ORDER BY
Convert(int, J.MIJobID)"
break;
case "Subcontractor":
// the dateSQL is not required so set it to nothing so that it
// doesn't interfere with the sql being generated at the end of
// the function.
dateSQL= ""
var modeSQL = ""
modeSQL = " AND (J.JBCompanyID=31337) "
status = " JobAndLoadView AS J WHERE (J.JBDeliveryDate=''
" + theDate + "'') " + modeSQL + "
ORDER BY Convert(int, J.MIJobID)"
break;
case "Cancelled":
// the dateSQL is not required so set it to nothing so that it
// doesn't interfere with the sql being generated at the end of
// the function.
dateSQL= ""
var modeSQL = ""
modeSQL = " AND (J.JBCompanyID=31337) "
status = " GlobalJobStatusView AS J WHERE (J.JBCollectDate==''
" + theDate + "'') " + modeSQL + " AND
ISNULL(J.JBCancelled, 0) = 1 ORDER BY Convert(int, J.MIJobID)"
break;
default : status ="";
}
newSQLTag = dateSQL + status;
document.all.hiddenForm.linkVal.value = newSQLTag;
document.all.hiddenForm.PageTitle.value = PageTitle
document.all.hiddenForm.MainTitle.value = MainTitle
document.all.hiddenForm.submit();
//alert(newSQLTag)
}
Môshe could replace his customer ID with any other and access customer data, and for that matter, to modify or delete whatever he wanted. He could add or remove columns to tables. He could possibly even change permissions, add his own database user and deny all other users access.
Shocked, Môshe called the delivery service, who got him in touch with the developer of the system. This developer was equally shocked to learn that it was even possible to view a web page's JavaScript code, let alone that his architecture was open to SQL injection attacks from virtually any angle. He took immediate and decisive action; all queries were moved to the .NET backend.
Of course, the queries still didn't use parameters and are therefore still open to SQL injection, but now it takes slightly more effort to hack.

Kijk dát je afscheid neemt van een tegendraadse bijna zeventigjarige columnist is natuurlijk dikke prima, en dat het is omdat je hem, zijn denkbeelden of z'n schrijfsels niet meer pruimt ook. Voorts behoren wij niet tot de groep die jankt dat we Trouw niet meer gaan lezen nu Ephimenco er niet meer in staat - we lazen Trouw sowieso al niet. Maar de manier waarop Ephimenco door glibberige gluiper Smouter en diens oma eruit is gewerkt is voor iemand die als hij klaarkomt heel hard 'CONSTRUCTIEVE JOURNALISTIEK!' roept wel tamelijk brisant: middels de bij DPG gekende publieke afrekening. Eerst de brieven, dan een openbare 'Vergeef ons Lezers, want Wij hebben Gezondigd', dan de ombudsman. En nu is er nog een soort eulogie, in de vorm van een aanklacht. Daarin lezen we wat gesputter over 'de feiten', een laatste trap na richting Ephimenco en het gebruik van het woord 'meerstemmig' in het kader van 'een verscheidenheid van inzichten'. In Trouw ja. Waarschijnlijk geloven ze het zelf.