By Steve Ragan
Fundamental security insight to help you minimize risk and protect your organization
Close
Thank you
Your message has been sent.
Close
Sorry
There was an error emailing this page.
Hijacked websites running the popular blogging platform were used to stage Phishing campaigns targeting PayPal and Apple customers.
CSO
|Mar 26, 2014 5:35 PM
‘);//–“;
var adDivString = “”;
placementDiff = applyInsert($(this), adDivString);
if (debug) {
console.log(“Just placed an ad and the placementDiff is: ” + placementDiff);
}
placementTarget = cumulativeHeight + placementDiff + interModuleHeight + adHeightBuffer;
}
else {
var moduleDivString = “”;
var elementId = “drr-mod-“+moduleCounter;
moduleDivString = “”;
modules.push(elementId);
placementDiff = applyInsert($(this), moduleDivString);
if (debug) {
console.log(“Just placed a module and the placementDiff is: ” + placementDiff);
}
placementTarget = cumulativeHeight + placementDiff + interModuleHeight + moduleHeightBuffer;
moduleCounter++;
}
loopCounter++;
}
// Avoid placing elements too soon due to non-large figures inflating the cumulative height
if ($(this).is(“figure”) !$(this).is(“figure.large”)) {
cumulativeHeight += grafHeight;
}
else {
cumulativeHeight += $(this).height() + grafHeight;
}
}
});
// clone Related Stories module m-15 to come in after 2nd para in article body for mobile breakpoint display
var $relatedStories = $(‘.related-promo-wrapper’);
if ($relatedStories.length) {
var $relatedStoriesClone = $relatedStories.clone();
$relatedStoriesClone.insertAfter( “#drr-container p:eq(1)”);
}
var $insiderPromo = $(‘.insider-promo-wrapper’);
if ($insiderPromo.length) {
var $insiderPromoClone = $insiderPromo.clone();
$insiderPromoClone.insertAfter( “#drr-container p:eq(1)”);
}
//place left side element
cumulativeHeight = 0;
var leftPlacementTarget = tagHeight = leftPlacementTarget) {
if (debug) {
console.log(“congratulations… we’ve passed the initial start point”);
}
if (leftPlacementIndex == null) {
//it’s not good enough to not be a left avoid – it also shouldn’t be a
with an immediately preceding small or medium image left avoid.
if (!isLeftAvoid($(this)) noPrevFigures($(this)) ) {
leftPlacementIndex = $(this).index();
$leftPlacementElement = $(this);
leftPlacementLookaheadStart = cumulativeHeight;
if (debug) {
console.log(“is not a left avoid and no prev figures. ########## set placementIndex (“+leftPlacementIndex+”) and lookaheadStart (“+leftPlacementLookaheadStart+”) ##########”);
}
} else {
if (debug) {
console.log(“is a left avoid or has previous figures. continue”);
}
}
} else {
if (debug) {
console.log(“#### leftPlacementIndex already set to “+leftPlacementIndex+”. looking ahead…”);
}
//not null; has been set
if ((cumulativeHeight – leftPlacementLookaheadStart) leftIntervalHeight) {
if (debug) {
console.log(“###### THRESHOLD REACHED. LOOKAHEAD COMPLETE. END ###### (cumulativeHeight – leftPlacementLookaheadStart) (“+(cumulativeHeight-leftPlacementLookaheadStart)+”) leftIntervalHeight (“+leftIntervalHeight+”).”);
}
return false;
} else {
if (debug) {
console.log(“threshold not reached: (cumulativeHeight – leftPlacementLookaheadStart) (“+(cumulativeHeight-leftPlacementLookaheadStart)+”) tags
if (!(isLeftAvoid($(this)) ($(this).hasClass(‘small’) || $(this).hasClass(‘inline-small’) || $(this).hasClass(‘medium’) || $(this).hasClass(‘inline-medium’) || $(this).hasClass(‘apart’) ))) {
cumulativeHeight += $(this).height() + grafHeight;
}
if (debug) {
console.log(“——————– set cumulativeHeight(“+cumulativeHeight+”) —————“);
console.log(“”);
}
}
});
}
if (leftPlacementIndex != null elementNotNearEnd($leftPlacementElement, leftPixelWindow)) {
if (debug) {
console.log(” insert into index “+leftPlacementIndex);
}
$(“#drr-container”).children().eq(leftPlacementIndex).before(“
“);
}
IDG.GPT.trackOmniture();
// Add Right rail module content
for (var i=0; i=0) {
epoType = “article”;
referrerValue = getReferrerArticle(“”, previousUrl);
if (_article!=null) {
originalCategories = _article.categories;
}
else {
epoType=”home”;
}
}
else if (document.referrer.indexOf(“google”) = 0 || document.referrer.indexOf(“yahoo”) = 0 || document.referrer.indexOf(“bing”) = 0) {
epoType = “search”;
}
else if (pageComesFromSocial(document.referrer)){
epoType = “social”;
}
else {
epoType = “home”;
}
console.log(“Epo TYpe is ” + epoType);
var brandAbbreviation = “cso”;
// Define params for epo based on brand
if (epoType != “none”) {
var epoParams = “module.epo”;
switch(brandAbbreviation) {
case ‘jvw’:
console.log(“Case JVW”);
// FOR JAVAWORLD
if (epoType == “home”) {
epoParams += “typeId=4”; // How-To articles
}
else if (epoType == “search”) {
var categories = [3294, 3344];
var primaryCatId = 3204; // Default to ‘Core Java’
if (categories instanceof Array categories.length 0) {
primaryCatId = categories[0];
}
epoParams += “catId=” + primaryCatId;
}
else if (epoType==’article’) {
var categories = originalCategories;
var primaryCatId = 3204; // Default to ‘Core Java’
if (categories instanceof Array categories.length 0) {
primaryCatId = categories[0];
}
epoParams += “catId=” + primaryCatId;
}
break;
case ‘cit’:
console.log(“Case CIT”);
if (epoType == “home”) {
epoParams += “typeId=6”; // Feature
}
else if (epoType == “search”) {
var categories = [3294, 3344];
var primaryCatId = 3336; // Default to ‘Core Java’
if (categories instanceof Array categories.length 0) {
primaryCatId = categories[0];
}
epoParams += “catId=” + primaryCatId;
}
if (epoType==’article’) {
var categories = originalCategories;
var primaryCatId = 3204; // Default to ‘Core Java’
if (categories instanceof Array categories.length 0) {
primaryCatId = categories[0];
}
epoParams += “catId=” + primaryCatId;
}
break;
break;
case ‘cso’:
console.log(“Case CSO”);
if (epoType == “home”) {
epoParams += “typeId=6”; // Feature
}
else if (epoType == “search”) {
var categories = [3294, 3344];
var primaryCatId = 3336; // Default to ‘Core Java’
if (categories instanceof Array categories.length 0) {
primaryCatId = categories[0];
}
epoParams += “catId=” + primaryCatId;
}
if (epoType==’article’) {
var categories = originalCategories;
var primaryCatId = 3204; // Default to ‘Core Java’
if (categories instanceof Array categories.length 0) {
primaryCatId = categories[0];
}
epoParams += “catId=” + primaryCatId;
}
break;
}
return epoParams;
}
return null;
}
/**
* @param jqo Original jquery object target
* @param divString The div to be inserted.
* @return Difference in height between original placement target and final target.
* Checks first 6 elements for an allowable placement (600 pixel window).
* If none, check nearby for elements that are not right avoids.
* If none, place element before current target.
*/
function applyInsert(jqo, divString) {
if (debug) {
console.log(“applyInsert at top and jqo index is: ” + jqo.index());
}
for (var i=0; i 0) {
children = $(“#drr-container”).children().slice(jqo.index(), allowElement.index() );
}
else {
children = $(“#drr-container”).children().slice(allowElement.index(), jqo.index());
}
if (children != null) {
children.each(function(i) {
if (debug) {
console.log(“About to add this element’s height to heigh diff offset”);
console.log($(this));
}
height += $(this).height();
});
}
if (offset 300) {
if (debug) {
console.log(“isRightAvoid: found pre. return true”);
}
return true;
}
if (jqo.is(“figure”) jqo.hasClass(‘large’)) {
if (debug) {
console.log(“isRightAvoid: found figure.large return true”);
}
return true;
}
if (jqo.is(“figure”) jqo.hasClass(‘medium’) jqo.hasClass(‘inline’)) {
if (debug) {
console.log(“isRightAvoid: found figure has class medium and inline.”);
}
return true;
}
if (jqo.hasClass(‘download-asset’)) {
if (debug) {
console.log(“isRightAvoid: found class download-asset return true”);
}
return true;
}
if (jqo.is(“aside”) jqo.hasClass(‘tableLarge’)) {
if (debug) {
console.log(“isRightAvoid: found class download-asset return true”);
}
return true;
}
}
return false;
}
// Returns true if height of all elements after this one is more than 500; false otherwise
function elementNotNearEnd(element, pixelWindow) {
if (pixelWindow == null) {
pixelWindow = 500;
}
if (element == null) {
return false;
}
var remainingHeight = 0;
var children = $(“#drr-container”).children().slice(element.index());
if (children == null) {
return false;
}
children.each(function(i){
remainingHeight += $(this).height();
});
if ( remainingHeight pixelWindow) {
return true;
}
else {
if (debug) {
console.log(“Element too close to end. Remaining height is: ” + remainingHeight + ” and window is ” + pixelWindow);
}
return false;
}
}
/**
* Return true if need to avoid this element when placing left module.
*/
function isLeftAvoid(jqo) {
if (jqo.is(“figure”)) {
if (debug) {
console.log(“isLeftAvoid: found figure. return true”);
}
return true;
}
if (jqo.is(“aside.pullquote”)) {
if (debug) {
console.log(“isLeftAvoid: found pullquote. return true”);
}
return true;
}
if (jqo.is(“pre”)) {
if (debug) {
console.log(“isLeftAvoid: found pre. return true”);
}
return true;
}
if (jqo.is(“div.gist”)) {
if (debug) {
console.log(“isLeftAvoid: found github code block. return true”);
}
return true;
}
if (jqo.hasClass(“statsTable”)) {
if (debug) {
console.log(“isLeftAvoid: found class statsTable. return true”);
}
return true;
}
return false;
}
/**
* return true if there are no figures before the target placement that might bleed down into placement element
*/
function noPrevFigures($originalTarget) {
var targetIndex = $originalTarget.index();
var numElementsLookBack = 5;
var figureIndex = null;
var figureHeight = null;
var startIndex = targetIndex – numElementsLookBack
Stats compiled by Netcraft show that 12,000 WordPress installations were compromised in February and used in Phishing campaigns that targeted Apple customers and PayPal users. In addition, compromised WordPress installations were also the source of a significant amount of Web-based malware during the month.
Pulling the stats, more than 7 percent of all Phishing attacks blocked by Netcraft during the month were hosted on compromised WordPress domains, which translates into 11 percent of the unique IP addresses wrapped-up in the scams. Further, 8 percent of the malware URLs blocked by Netcraft during the month (representing 19 percent of all unique IP addresses) were serving malware to unsuspecting victims.
Of the sites referenced in the Netcraft study for the month, 17 percent of them targeted Apple customers, and 25 percent of them focused on PayPal.
However, like most Web-based development platforms, WordPress requires a level of management most passive webmasters and organizations cannot provide. Security updates are automatic now, since the 3.7 release, but that wasn’t always the case. Even with automatic updates, plug-ins and themes still need to be maintained on some levels, and the code that goes into homegrown developments isn’t always perfect.
Still, even the stable core code can cause problems.
An example of core code causing problems was observed recently when 162,000 WordPress domains were hijacked and used to initiate a DDoS attack. In 2012, poorly protected WordPress installs were blamed for the rapid spread of the Flashback Trojan. That same year, 30,000 WordPress installs were compromised and used to spread Rogue Anti-Virus.
Even developers and active administrators can inadvertently expose WordPress-based projects to malicious acts, such as those who expose database backups to Google indexing. Or the TimThumb.php problem that impacted every WordPress installation that was online at the time.
The findings from Netcraft aren’t shocking. Attacking WordPress or any other CMS platform for a Phishing campaign or drive-by-malware attack allows the criminal(s) behind the scheme to leverage an important object – trust.
Just last week (March 19), EA, one of the world’s largest gaming companies, had one of their servers compromised and two of their domains used to initiate a Phishing attack against Apple customers.
“The phishing site attempts to trick a victim into submitting his Apple ID and password. It then presents a second form, which asks the victim to verify his full name, card number, expiration date, verification code, date of birth, phone number, mother’s maiden name, plus other details that would be useful to a fraudster. After submitting these details, the victim is redirected to the legitimate Apple ID website… The compromised server is hosted within EA’s own network.”
The number of victims in this recent Phishing attack isn’t known, and EA fixed the problem in less than a day. However, the point is, EA is a trusted brand, and the attack was sure to fool someone, and given the Origin (no pun intended gamers) of the attack, EA’s domains are likely to be allowed to bypass most reputation filters.
After refusing to pay ransom, Basecamp hit with DDoS
Trustwave plans to fight “baseless allegations” over Target breach
-
Incident response is a plan that evolves over time to keep your organization best prepared against…
-
Late but ready to roll
-
Confusing AETs with more famous APTs
-
Apps sold on Play store not allowed to track user activity in secret, according to updated…
-
-
Sign up for our CSO Update newsletter
Failures in patch management of vulnerable systems have been a key enabler of cybercrime, according to
National Retail Federation says quickest way to boost security is to require PINs for all credit-card
Study finds no special skill needed, since Cybercrime-as-a-Service has come of age
Incident response is a plan that evolves over time to keep your organization best prepared against
Late but ready to roll
Confusing AETs with more famous APTs
<!–
