Working on a Twitter plugin
I have decided that the Twitter plugins for WordPress don’t fulfill my very (low) demands. Everyone seems to be overthrown with options and stuff I dont’t want or need for that matter.
So what do I do? As the solution oriented person I am I write my own of course. This plugin has only 2 options: your Twitter screen name and how many tweets to show. Nothing fancy like re-tweets and mentions and stuff like that. Just the latest tweets.
I’m going to add a sidebar widget to this plugin. As of now there is just a template tag.
This is still in beta and I’m tweaking and optimizing and when I’m done I’ll make it available for download. Interested in this plugin? Let me know. and I’ll send you a copy for testing.
Security issues in WP Forum fixed
All security issues in this report is fixed.
New version is 1.7.6
Excerpt from the report
Description:
Some vulnerabilities have been discovered in the WP-Forum plugin for WordPress, which can be exploited by malicious users to conduct script insertion attacks, and by malicious people to conduct cross-site scripting and SQL injection attacks.1) Input passed to the “user” parameter in the WordPress installation’s index.php script (when “forumaction” is set to “showprofile” and “page_id” to a page with the “” tag) is not properly sanitised before being used in SQL queries. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code.
Successful exploitation of this vulnerability allows e.g. retrieving usernames, password hashes, and e-mail addresses for all users and administrators, but requires knowledge of the database table prefix.
2) Input passed to the “forum_query” parameter in the WordPress installation’s index.php script (when “forumaction” is set to “search”) is not properly sanitised before being returned to the user. This can be exploited to execute arbitrary HTML and script code in a user’s browser session in context of an affected site.
Successful exploitation of this vulnerability requires that the target user has valid user credentials.
3) Input passed to the “forumtext” parameter in the WordPress installation’s index.php script (when “forumaction” is set to “post”) is not properly sanitised before being stored. This can be exploited to insert arbitrary HTML and script code, which is executed in a user’s browser session in context of an affected site when the malicious data is viewed.
Successful exploitation of this vulnerability requires that the attacker has valid user credentials.
The vulnerabilities are confirmed in version 1.7.4. Other versions may also be affected.
Solution:
Edit the source code to ensure that input is properly sanitised.Provided and/or discovered by:
1) websec Team
2, 3) FeDeReR and sinner_01
Ajax tutorial
This tutorial is intended to give the reader some initial understanding of the power of using Ajax as a tool on a web page. The web pages are growing larger and larger due to more and more bandwidth around the globe.
This is nice since the web is getting more readable and more visual appealing. But if your web host have a traffic limit per day the size of the total files requested by each visitor becomes critical, at least if you have many visitors.
(more…)
WordPress image gallery fGallery released
My new WordPress plug in announced in the previous article is now released and the corresponding page with download can be found here.
WordPress image gallery plugin on the way
iI’m about to finish a new image gallery plugin with a lot of features such as:
- Direct upload from WordPress admin.
- Language selection.
- Images ordered by albums and with the ability to exclude images from an album without deleting it.
- Easy managment of images and albums from the WordPress admin interface.
- Edit CSS in the WordPress admin, resetting CSS if something went wrong.
- Support for gettext, which means that you can generate your own language files with gettext.
- Swedish and english languages included.
Update 1: Russian translation.
Update 2: I have set up is a small demo of the galleries, you can watch it here.
I just got myself a new laptop
My well used IBM Thinkpad R50e had to go yesterday to a friend who always wanted a laptop. I sold this one due to the low max resolution of the screen (1024 x 768). I have discovered that this is not enough for designing or programming. I sure need a lot of space. So I sold it and since I’m very happy with the quality and realability of the IBM:s I bought another one, a n R52 with max screen resolution of 1400 x 1050.
Beginner’s QT GUI tutorial
As a programmer/computer engineer I thought I should share some of my knowledge to you who are interested. In this tutorial you will learn to create a simple program with a graphical user interface.
(more…)
Simple PHP image gallery – a tutorial
In my first programming tutorial I will show you how to create a simple image gallery with PHP. For this program to work you need to upload your images in two separate folders on your server. One folder containing the thumbnails and one folder with the full size images. The names for the images should be the same for the full size image and the corresponding thumbnail.
(more…)
How to stop guestbook spam?
I have an other site called Karlstad offroad where guys and girls can meet and ride dirt bikes together on track or on gravel roads. However the guestbook is the main meeting ground where people announce their intention to ride and anybody can come along.
I little while ago I started to get spam, mostly about porn but I didn’t think I was a buggle to go in manually and remove those occasionally. No however I can have up to 50 spams every day and it is getting a little annnoying. I have tried to change name and location of the guestbook but it didn’t hold for long and the users were getting tired if the relocation all the time. Anybody out there having any ideas how to get rid of this spam. Since Karlstad offroad is very local the site language is Swedish.