addalink <= 4 - beta / Write approved links without a previous moderation by the admin
The addalink <= 4 - beta program is vulnerable to unauthenticated remote code execution. By modifying the URL parameters, an attacker can bypass the moderation process and insert links without approval. The vulnerability lies in the add_link.php file, where the SQL query does not properly validate the 'approved' and 'counter' values, allowing an attacker to inject their own values into the query. This can lead to unauthorized links being published on the website and potential code execution. The vulnerability can be exploited by modifying the URL parameters and adding '&approved=1&email=my@email.com&description=blablablablablablabla&category_id=1' to bypass the approval process and insert links without moderation. The 'counter' value can also be manipulated to alter the visit counter.