Providing Free and Editor Tested Software Downloads
< HOME | TUTORIALS | GEEK-CADE| WEB TOOLS | YOUTUBE | NEWSLETTER | DEALS! | FORUMS | >

MajorGeeks.com - May the nForce be with you.

Software Categories

All In One Tweaks
Android
Antivirus & Malware
Appearance
Back Up
Browsers
CD\DVD\Blu-Ray
Covert Ops
Drivers
Drives (SSD, HDD, USB)
Games
Graphics & Photos
Internet Tools
Linux Distros
MajorGeeks Windows Tweaks
Multimedia
Networking
Office & Productivity
System Tools

Other news

· How To and Tutorials
· Life Hacks and Reviews
· Way Off Base
· MajorGeeks Deals
· News
· Off Base
· Reviews

spread the word

· YouTube
· Facebook
· Instagram
· Twitter
· Pintrest
· RSS/XML Feeds
· News Blur
· Yahoo
· Symbaloo

about

· Top Freeware Picks
· Malware Removal
· Geektionary
· Useful Links
· About Us
· Copyright
· Privacy
· Terms of Service
· How to Uninstall

top downloads

1. GS Auto Clicker
2. Macrium Reflect FREE Edition
3. Smart Defrag
4. Sergei Strelec's WinPE
5. MusicBee
6. Microsoft Visual C++ 2015-2022 Redistributable Package
7. K-Lite Mega Codec Pack
8. Visual C++ Redistributable Runtimes AIO Repack
9. ImgBurn
10. Sergei Strelec's WinPE 64-Bit for Windows 10 and 11
More >>

top reads

Star 4 Ways To Check System Uptime in Windows 11

Star 6 Ways To Clear Clipboard History

Star How To Enable and Install the Built-In System Monitor (Sysmon)

Star Network Location - What Is It and How To Add It?

Star 4 Ways To Run a Manual Scan With Microsoft Defender

Star How To Easily Backup and Import Windows Defender Firewall Rules

Star How To Install and Restore WMIC in Windows 11

Star How To Bring Back the Classic File Explorer with Ribbon in Windows 11

Star How To Limit Max CPU Usage for Microsoft Defender Scans in Windows 11

Star Recently Opened Files - How To Hide or Show Them In Jump Lists, File Explorer, and Start Menu


MajorGeeks.Com » News » December 2012 » Post from the past: security fix after 8 years

Post from the past: security fix after 8 years


Contributed by: Email on 12/04/12 11:20 am [ comments Comments ]


The advisory from January 2005 was just one of hundreds of similar notices around then: a PHP application wasn't validating the parameters of a database query, which could have allowed an attacker with special URLs to inject database commands. The strange thing about this bug report for PHP Gift Registry, however, is that after more than seven years, the program's developer has finally decided to respond.

"All SQL queries have been replaced with parameterized statements in version 2.0.0" is all that is written in a message from Monday, 3 December 2012, that is apparently from the program's developer.

These kinds of SQL injection vulnerabilities are still widespread and are web applications' biggest security issues. Prepared statements are the easiest and most efficient way to protect against them; the developer prepares a database query, declaring which variable should be specified later, like the username:

$stmt = $dbh->prepare("SELECT user FROM users WHERE (user=:user)");
$stmt->bindParam(':user', $user);

When the program is run, the developer only has to specify the username and can then send the prepared database query:

$user = 'ju';
$stmt->execute();

The advantage with this method is that even if, for some strange reason, something like

ju';DROP TABLE users; --

ends up in the $user variable, it will always just be treated like a strange search criterion and will never lead to unwanted database commands like table deletion.






Post from the past: security fix after 8 years




Comments
comments powered by Disqus

MajorGeeks.Com » News » December 2012 » Post from the past: security fix after 8 years

© 2000-2026 MajorGeeks.com
Powered by Contentteller® CMS System