Computer
Teen Achieves First NES Tetris 'Rebirth,' Proves Endless Play Is Possible
Read more of this story at Slashdot.
Brazil Unblocks X
Read more of this story at Slashdot.
Roblox Accused of Lying To Investors About User Numbers
Read more of this story at Slashdot.
MoneyGram Says Hackers Stole Customers' Personal Information, Transaction Data
Read more of this story at Slashdot.
Red Dead Redemption Finally Comes To PC 14 Years After Its Original Release
Read more of this story at Slashdot.
TikTok is 'Digital Nicotine' Meant To Hook Kids, AGs Fume in New Suits
Read more of this story at Slashdot.
Microsoft Veteran Ditches Team Tabs, Blaming Storage Trauma of Yesteryear
Read more of this story at Slashdot.
Virginia Congressional Candidate Creates AI Chatbot as Debate Stand-in For Incumbent
Read more of this story at Slashdot.
Samsung Apologizes For Making Just $6.8 Billion Last Quarter
Read more of this story at Slashdot.
Nintendo Switch Modder Faces Tech Giant in Court Without Lawyer
Read more of this story at Slashdot.
How Long Will Life Exist on Earth?
Read more of this story at Slashdot.
Where Have All the Chief Metaverse Officers Gone?
Read more of this story at Slashdot.
Britons Urged To Dig Out Unwanted Electricals To Tackle Copper Shortage
Read more of this story at Slashdot.
The Problems With Polls
Read more of this story at Slashdot.
Nobel Prize in Physics Goes To Machine Learning Pioneers Hopfield and Hinton
Read more of this story at Slashdot.
Vision Pro's First Scripted Immersive Film Is Coming This Week
Read more of this story at Slashdot.
Spacecraft Launches Toward Asteroid Knocked Off Course By NASA
Read more of this story at Slashdot.
CodeSOD: A Cache Exists
Ben's web firm took on a new client, and they're using a rather questionable shopping cart system. Like a lot of PHP web plugins, someone decided that they needed to "protect" their code by obfuscating it. Either that, they were obfuscating it out of shame, one or the other.
if(!function_exists("cache_exists")) { eval("fu" . "nction cach" . "e_exi" . "sts(\$Data) { echo base" . "64" . "_d" . "eco" . "de(\$" . "Data); }"); }It seems like they specifically chose an "obfuscation" method which makes it hard to CTRL+F through the code- a search for "cache_exists" won't find the function definition. It'll find the line right before the function definition, where the code is checking to see if the function already exists, but it won't find the function.
But let's talk about what the function does. It echoes into the page body the base-64 decoded version of whatever was in $Data. This alone gives me so many questions. What is in $Data? How does this relate to caching? Why are we just echoing the raw contents of a variable? What is this even for? Given that we do a function_exists check, I have a dark suspicion that there are multiple possible definitions of the function. This is the stub one that doesn't rely on reading from a cache and sorta does… almost nothing? But in other circumstances, there are other versions which are actually returning whether or not an entry is in the cache. This is just a guess, as Ben didn't supply that information, but everything about this makes me Concerned™.
[Advertisement] ProGet’s got you covered with security and access controls on your NuGet feeds. Learn more.Cognizant Discriminated Against Non-Indian Workers, US Jury Says
Read more of this story at Slashdot.
Artist Appeals Copyright Denial For Prize-Winning AI-Generated Work
Read more of this story at Slashdot.