Language: 
To browser these website, it's necessary to store cookies on your computer.
The cookies contain no personal information, they are required for program control.
  the storage of cookies while browsing this website, on Login and Register.
Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Select language:

Community



Donate

Donate for PortaMx !
Your donation is safe and helps support the issues and causes you care most about.

Stats

  • *Total Members: 4319
  • *Latest: thygrim

  • *Total Posts: 15779
  • *Total Topics: 2382
  • *Online Today: 4
  • *Most Online: 157
(27.08.09, 03:54:53)
  • *Users: 0
  • *Guests: 2
  • *Total: 2

Author Topic: PHP Block - Hacking attempt...  (Read 1954 times)

0 Members and 0 Guests are viewing this topic.

Offline jan.s

  • Full Member
  • ***
  • Posts: 205
  • Gender: Male
    • malawisee.net
PHP Block - Hacking attempt...
« on: 27.07.12, 16:54:12 »
Hallo
ich wollte in einem php-Block eine Abfrage mit folgender syntax machen:
select * from TABELLE union select distinct FELD from TABELLE order by FELD asc

klappt auf der Konsole noch prima und liefert mir eine schöne Liste, bei der immer dann wenn FELD etwas neues enthält, eine Zeile erscheint, die nur FELD  enthält.
Im php-Block kommt aber nur die lapidare Meldung Hacking attempt...

Liegt das am union?
Gibt es da nen einfachen work around?
gruss
jan


Ich bin ein grosszügiger Mensch. Jeder darf meiner Meinung sein. ;D

Offline feline

  • CO PortaMx corp.
  • Administrator
  • *
  • Posts: 5586
  • Gender: Female
Re: PHP Block - Hacking attempt...
« Reply #1 on: 28.07.12, 15:59:32 »
Das SMF database layer verhindert zugriffe mit union und subselects, da diese eine sehr große Gefahr für SQL Injektion sind. Da bleibt dir kein anderen Weg als die query mit JOINS zu machen...
Many are stubborn in relation to the path, a few in relation to the target.

Offline jan.s

  • Full Member
  • ***
  • Posts: 205
  • Gender: Male
    • malawisee.net
Re: PHP Block - Hacking attempt...
« Reply #2 on: 28.07.12, 17:10:51 »
Hallo Fel,

danke. Hatte sowas schon befürchtet.

Na dann werde ich mir das anders zusammentüdeln
gruss
jan


Ich bin ein grosszügiger Mensch. Jeder darf meiner Meinung sein. ;D