Lucene search

K

addalink-wal.txt

🗓️ 18 Sep 2008 00:00:00Reported by PepeluxType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 16 Views

addalink <= 4 - beta / Unapproved link insertion & SQL injection vulnerabilit

Show more

AI Insights are available for you today

Leverage the power of AI to quickly understand vulnerabilities, impacts, and exploitability

Code
`-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=  
addalink <= 4 - beta / Write approved links without a previous moderation by the admin  
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=  
  
$ Program: addalink  
$ Version: <= 4 - beta  
$ File affected: add_link.php  
$ Download: http://sourceforge.net/projects/addalink/  
  
  
Found by Pepelux <pepelux [2ec] enye-sec.org>  
eNYe-Sec - www.enye-sec.org  
  
Linklist is a miniwebsite that you can use in your webpage. Basically it   
manages a database of links using PHP+MySQL. Users can send links (url,   
description, etc) by a form and one admin has to approve or delete the   
links before the publication in the website.  
  
One not very important problem is that add_link.php doesn't test the   
method used (GET or POST). But the real problem is the method to insert   
some values.   
  
Reading the code you can see the SQL sentence:  
  
INSERT INTO $linktable VALUES('0','$url','$linkname','$approved=0','$email',  
'$counter=0','$description','$ip','$date','$category_id','0')";  
  
It asign values to approved and counter directly in the SQL sentence. For that,  
you can enter links approved without moderation writing this:  
  
http://domain/add_link.php?url=http://www.domain.com&linkname=name_of_the_link  
&approved=1&[email protected]&description=blablablablablablabla&category_id=1  
  
Also you can alter the counter of visits if you add &counter=XXXX to the GET  
  
  
-= Solution =-  
  
  
$approved = 0;  
$counter = 0;  
  
INSERT INTO $linktable VALUES('0','$url','$linkname','$approved','$email',  
'$counter','$description','$ip','$date','$category_id','0')";  
  
`

Transform Your Security Services

Elevate your offerings with Vulners' advanced Vulnerability Intelligence. Contact us for a demo and discover the difference comprehensive, actionable intelligence can make in your security strategy.

Book a live demo
18 Sep 2008 00:00Current
7.4High risk
Vulners AI Score7.4
16
.json
Report