Feed aggregator
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.
Germans Decry Influence of English As 'Idiot's Apostrophe' Gets Official Approval
Read more of this story at Slashdot.
Fintech OpenBB Aims To Be More Than an 'Open Source Bloomberg Terminal'
Read more of this story at Slashdot.
Global Semiconductor Sales Up 20.6% To Record $53.1 Billion
Read more of this story at Slashdot.
FCC Lets Starlink Provide Service To Cellphones In Area Hit By Hurricane
Read more of this story at Slashdot.
Linus Torvalds Asks Kernel Devs To Write Better Git Merge Commit Messages
Read more of this story at Slashdot.
The Future of Halo Is Being Built With Unreal Engine 5
Read more of this story at Slashdot.
Smart TVs Are Like 'a Digital Trojan Horse' in People's Homes
Read more of this story at Slashdot.
US Antitrust Case Against Amazon To Move Forward
Read more of this story at Slashdot.
MicroRNA Pioneers Win Nobel Prize in Medicine
Read more of this story at Slashdot.
The Slow Death of the Hyperlink
Read more of this story at Slashdot.
Google Ordered To Make Sweeping Changes, Open Android App Store To Rivals
Read more of this story at Slashdot.
Apple Fixes Bugs in macOS Sequoia That Broke Some Cybersecurity Tools
Read more of this story at Slashdot.
Google Testing a Version of Chrome for Android With Extensions Support
Read more of this story at Slashdot.
Big Tech Has Cozied Up To Nuclear Energy
Read more of this story at Slashdot.