Author Topic: Not A Real SMF SQL Injection / Indians can't read proper English!  (Read 2516 times)

0 Members and 1 Guest are viewing this topic.

Offline deadly7

  • 42
  • x86
  • Hero Member
  • *****
  • Posts: 6496
    • View Profile
hot off of bugtraq
Quote
I'm a developer from over at simplemachines and I do not see how this can pose an exploit? Let's examine the code piece by piece:

The code is entered at this point:
if (!is_numeric($_REQUEST['start']))

So, will be executed if $_REQUEST['start'] is a string. It's then used in the query. However, it's used in the query in this piece of code:

substr(strtolower($_REQUEST['start']), 0, 1)

So, the string is set to lower case, and then only the FIRST letter is used within the query. How can anyone exploit the database with a one character insertion? Of course this is within single quotes as well, so it cannot even be a command.

I simply cannot see how you could possibly exploit SQL from this?
« Last Edit: December 11, 2005, 09:12:20 pm by deadly7 »
[17:42:21.609] <Ergot> Kutsuju you're girlfrieds pussy must be a 403 error for you
 [17:42:25.585] <Ergot> FORBIDDEN

on IRC playing T&T++
<iago> He is unarmed
<Hitmen> he has no arms?!

on AIM with a drunk mythix:
(00:50:05) Mythix: Deadly
(00:50:11) Mythix: I'm going to fuck that red dot out of your head.
(00:50:15) Mythix: with my nine

Offline deadly7

  • 42
  • x86
  • Hero Member
  • *****
  • Posts: 6496
    • View Profile
Re: Not A Real SMF SQL Injection / Indians can't read proper English!
« Reply #1 on: December 11, 2005, 09:01:54 pm »
-.- moved to security
[17:42:21.609] <Ergot> Kutsuju you're girlfrieds pussy must be a 403 error for you
 [17:42:25.585] <Ergot> FORBIDDEN

on IRC playing T&T++
<iago> He is unarmed
<Hitmen> he has no arms?!

on AIM with a drunk mythix:
(00:50:05) Mythix: Deadly
(00:50:11) Mythix: I'm going to fuck that red dot out of your head.
(00:50:15) Mythix: with my nine

Offline Newby

  • x86
  • Hero Member
  • *****
  • Posts: 10877
  • Thrash!
    • View Profile
Re: Not A Real SMF SQL Injection / Indians can't read proper English!
« Reply #2 on: December 11, 2005, 09:03:15 pm »
Did you even read it? It says "how can you exploit w/ one character?" :P
- Newby
http://www.x86labs.org

Quote
[17:32:45] * xar sets mode: -oooooooooo algorithm ban chris cipher newby stdio TehUser tnarongi|away vursed warz
[17:32:54] * xar sets mode: +o newby
[17:32:58] <xar> new rule
[17:33:02] <xar> me and newby rule all

I'd bet that you're currently bloated like a water ballon on a hot summer's day.

That analogy doesn't even make sense.  Why would a water balloon be especially bloated on a hot summer's day? For your sake, I hope there wasn't too much logic testing on your LSAT. 

Offline Sidoh

  • x86
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: Not A Real SMF SQL Injection / Indians can't read proper English!
« Reply #3 on: December 11, 2005, 09:03:42 pm »
So they're saying its not a bug and there's nothing to worry about?

Whoopie?

Offline deadly7

  • 42
  • x86
  • Hero Member
  • *****
  • Posts: 6496
    • View Profile
Re: Not A Real SMF SQL Injection / Indians can't read proper English!
« Reply #4 on: December 11, 2005, 09:12:01 pm »
Did you even read it? It says "how can you exploit w/ one character?" :P
I only read the SQL/PHP part of it.
Fine, I'll fix the topic title so it says "Not a real SMF SQL Injection"...

@Sidoh: This was posted on multiple sites, including SMF's own, as a SQL Injection.  I showed it to Newby the day we were "hacked".

Edit: Gross, typo.
« Last Edit: December 11, 2005, 09:14:34 pm by deadly7 »
[17:42:21.609] <Ergot> Kutsuju you're girlfrieds pussy must be a 403 error for you
 [17:42:25.585] <Ergot> FORBIDDEN

on IRC playing T&T++
<iago> He is unarmed
<Hitmen> he has no arms?!

on AIM with a drunk mythix:
(00:50:05) Mythix: Deadly
(00:50:11) Mythix: I'm going to fuck that red dot out of your head.
(00:50:15) Mythix: with my nine

Offline Sidoh

  • x86
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: Not A Real SMF SQL Injection / Indians can't read proper English!
« Reply #5 on: December 11, 2005, 09:34:12 pm »
I only read the SQL/PHP part of it.
Fine, I'll fix the topic title so it says "Not a real SMF SQL Injection"...

@Sidoh: This was posted on multiple sites, including SMF's own, as a SQL Injection.  I showed it to Newby the day we were "hacked".

Edit: Gross, typo.

It's not even worth posting, though.  It's not even an exploit if you can't do anything to it. :P

Offline Newby

  • x86
  • Hero Member
  • *****
  • Posts: 10877
  • Thrash!
    • View Profile
Re: Not A Real SMF SQL Injection / Indians can't read proper English!
« Reply #6 on: December 11, 2005, 10:09:27 pm »
I love my new title and the new location. <3 deadly, you made my dream come true.
- Newby
http://www.x86labs.org

Quote
[17:32:45] * xar sets mode: -oooooooooo algorithm ban chris cipher newby stdio TehUser tnarongi|away vursed warz
[17:32:54] * xar sets mode: +o newby
[17:32:58] <xar> new rule
[17:33:02] <xar> me and newby rule all

I'd bet that you're currently bloated like a water ballon on a hot summer's day.

That analogy doesn't even make sense.  Why would a water balloon be especially bloated on a hot summer's day? For your sake, I hope there wasn't too much logic testing on your LSAT. 

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: Not A Real SMF SQL Injection / Indians can't read proper English!
« Reply #7 on: December 11, 2005, 10:55:48 pm »
Incidentally, you never know when something you don't think could possibly be exploitable is exploited in a really clever way.  It's happened time and time again.  Even really stupid things shouldn't be discounted.