Solution for WordPress WP-Forum 1.7.4 SQL injection


Last week milw0rm discovered an SQL injection in WordPress Forum plugin 1.7.4 by Fredrik Fahlstad. And here I’ll provide a workaround for that.

The original bugreport is here.

This is a standard SQL injection. Based on the slubber handling of _GET parameters, and the call of forum_get_posts_by_user without type check.
The forum_show_profile function provides a buggy alias for forum_get_profile, on wp-forum.php on row 917:

function forum_show_profile(){
       return forum_get_profile($_GET['user']);

Let’s see, what is forum_get_profile doing. It’s found in forum_functions.php on row 363:

function forum_get_profile($user){
        global $user_ID, $table_threads, $wpdb, $rss_link, $profile_link;
        $profile = new WP_User($user);
        <td valign='top'  class='table_meta'>Recent posts: </td><td>".forum_get_posts_by_user($user, 10)."</td>

So, I guess the easiest soultion is, to patch the forum_get_profile function, before even, the WP_User class call, like this:

	$user = intval($user);
        $profile = new WP_User($user);

It forces PHP engine to convert the given $user variable to a number. In the worst case, it will produce 0, and that means it will show the admin user’s forum profile, and posts

Big deal 😉

So, that’s it.


“Solution for WordPress WP-Forum 1.7.4 SQL injection” bejegyzéshez 2 709 hozzászólás

  1. [url=]where to buy chloroquine[/url] [url=]cephalexin 500 generic[/url] [url=]hydroxychloroquine online[/url] [url=]buy priligy[/url] [url=]motrin 225 mg[/url] [url=]prazosin erectile dysfunction[/url] [url=]cialis generic[/url]

  2. [url=]purchass of prednisolone tablets[/url] [url=]tamoxifen drug[/url] [url=]proscar medication[/url] [url=]generic retin a cream[/url] [url=]cephalexin 750 mg[/url] [url=]buy flomax[/url]

  3. [url=]priligy price[/url] [url=]how to buy azithromycin[/url] [url=]buy malegra online[/url] [url=]motilium 30 mg tablets[/url] [url=]generic proscar[/url] [url=]cost of plaquenil in us[/url] [url=]buy aralen[/url] [url=]cymbalta online[/url] [url=]nexium best price[/url] [url=]lipitor prescription drug[/url]

  4. catalogo price shoes urbano cinturones vaqueros para dama TWOTWINSTYLE Summer Solid Patchwork Women T Shirt O Neck Asymmetrical Sleeve Loose Tops Female Korean 2020 Fashion Clothes New TWOTWINSTYLE Summer Striped Women Dress O Neck Short Sleeve High Waist Hit Color Asymmetrical Midi Dresses Female Fashion 2020 Adyce 2020 New Summer White Tassel Bodycon Club Bandage Dress Women Sexy Spaghetti Strap Celebrity Evening Party Dress Vestidos TWOTWINSTYLE Summer Vintage Solid Women Dress V Neck Puff Sleeve High Waist Button Hollow Out Midi Dresses Female Fashion 2020 parlante bose ktronix huawei mate 20 lite funda accesorios roomba 700 montura pepe jeans vintage georges rech paris oversize leaf pin brooch silver tone 1980s che guevara red red trucker hat miraculous leaders 褌芯谢褜泻芯 写芯 14 屑邪褟 锌芯谢褍褔懈褌械 褋泻懈写泻褍 写芯 50 薪邪 胁褋械 锌谢邪褌褜褟 泻褍锌懈褌褜 泻褉芯褋褋芯胁泻懈 adidas runfalcon 褑胁械褌 褔械褉薪褘泄 斜械谢褘泄 gucci shorts hombre algod贸n beige as novas bolsas metalizadas da gucci clarissa cabeda
    newest style i love mama kids cap hat denim embroidery

  5. new america jersey 2018 msi herni pc chicago bears retro deadstock vintage shark tooth mitchell ness snapback hat puma fenty sandals price sportovn铆 pantofle puma flipflops for men zodiac hodinky omega d谩msk茅 hodinky 9527 puma tsugi shinsei nido 鏉辩€涘繊鑰?濞佽偗 鎱㈣窇闉?榛戠磪鑹?364936 01 sandals puma wild sandal injex camo inf 365082 03 soft fluo peach puma white sabelt 5 point harness installed on h bs mazda mx 5 miata supreme 18aw gore tex beanie knit cap red
    baterias de coche start stop

  6. [url=]tamoxifen buy online[/url] [url=]buy bupropion[/url] [url=]duloxetine[/url] [url=]priligy 60mg uk[/url] [url=]buy cialis over the counter canada[/url] [url=]amitriptyline hydrochloride[/url]

  7. [url=]malegra online[/url] [url=]trazodone buy[/url] [url=]buy prednisolone[/url] [url=]motrin[/url] [url=]domperidone[/url] [url=]atarax 50 mg tablet[/url] [url=]azithromycin 2g[/url] [url=]elavil medication[/url]

  8. [url=]225 mg wellbutrin[/url] [url=]cymbalta 60 mg[/url] [url=]generic priligy[/url]

  9. [url=]buy wellbutrin[/url] [url=]buy malegra[/url] [url=]zovirax cream generic[/url] [url=]priligy 60mg online[/url]

  10. [url=]buy trazodone[/url] [url=]prazosin 1 mg[/url] [url=]zovirax suspension[/url] [url=]buy nexium[/url] [url=]aralen 150[/url] [url=]cephalexin 500 mg[/url] [url=]azithromycin 2017[/url]

  11. [url=]where to buy chloroquine[/url] [url=]buy wellbutrin 75 mg[/url] [url=]buy retin a[/url] [url=]nexium[/url] [url=]prazosin hydrochloride[/url]

  12. [url=]buy wellbutrin[/url] [url=]price of ivermectin[/url] [url=]buy hydroxychloroquine[/url] [url=]trazodone 150mg[/url]

  13. [url=]tamoxifen for sale[/url] [url=]cephalexin tab 500mg[/url] [url=]zovirax otc[/url] [url=]trazodone 5599[/url] [url=]prazosin hcl[/url] [url=]motrin tablets[/url]

  14. [url=]medicine lipitor[/url] [url=]buy prazosin online[/url] [url=]retin a canada otc[/url]

  15. [url=]cialis price[/url] [url=]duloxetine[/url] [url=]buy wellbutrin[/url] [url=]buy hydroxychloroquine online[/url] [url=]lipitor 20[/url] [url=]nexium medicine[/url] [url=]ivermectin gel[/url] [url=]trazodone tablets[/url]

  16. [url=]prazosin 5 mg[/url] [url=]priligy online[/url] [url=]retin a generic[/url] [url=]buy duloxetine[/url] [url=]buy atarax[/url]

  17. [url=]hydrochlorothiazide 25[/url] [url=]order tamoxifen[/url] [url=]buy singulair[/url] [url=]zovirax 200mg[/url] [url=]wellbutrin xl 300 mg[/url] [url=]where can i buy azithromycin[/url] [url=]plaquenil price us[/url] [url=]can i buy priligy over the counter in canada[/url] [url=]can i buy bupropion online[/url] [url=]atorvastatin lipitor[/url] [url=]amitriptyline 5 mg[/url] [url=]chloroquine 200 mg[/url] [url=]atarax hydrochloride[/url] [url=]cheap brand cialis online[/url] [url=]motilium tablets[/url] [url=]nexium medication[/url] [url=]buy hydroxychloroquine[/url] [url=]buy prednisolone[/url] [url=]motrin coupon[/url] [url=]buy cephalexin[/url]

  18. [url=]bupropion 150 mg[/url] [url=]buy hydroxychloroquine sulfate online[/url]

  19. [url=]amitriptyline buy online canada[/url] [url=]buy chloroquine[/url]

  20. [url=]azithromycin prescription[/url] [url=]bupropion xl 300mg[/url]

  21. [url=]drug prazosin[/url] [url=]retin a 0.05 cream price in india[/url] [url=]buy hydrochlorothiazide online[/url] [url=]otc nexium[/url]

  22. q max active tob.60 spev艌ovac铆 p谩s na bru拧n茅 svaly slendertone decathlon jola le啪茅rne 拧aty s vreckami 拧ed茅 s zku拧ebn铆 tra钮 pro plynov茅 ventily gr氓 adidas hoodie dam primus t盲lt brandsl盲ckare till hemmet effekt kaffebryggare comment un casque r茅ducteur de bruit a jub jupol junior m贸dne odtiene nie abc tea tree oil origin谩l 膷ajovn铆kov媒 olej 100 10ml boty orto plus 3061 65
    gas gas txt usate a torino

  23. 未喂伪魏蟻喂蟿喂魏伪 蟽蠂蔚未喂伪 纬喂伪 谓蠀蠂喂伪 蟿蟽伪谓蟿伪魏喂 尾蟻伪未蠀谓慰 渭伪蠀蟻慰 telefono fax segreteria telefonica annunci milano passeggino leggero upp classic bianco jacka rosa tr氓dl枚sa h枚rlurar till samsung mobil 谓喂魏蔚 蟺伪蟺慰蠀蟿蟽喂伪 伪谓未蟻喂魏伪 2016 蟺位伪蟽蟿喂魏畏 蔚蟺蔚谓未蠀蟽畏 蟿慰喂蠂慰蠀 渭慰谓蠅蟽畏 蟿慰喂蠂蠅谓 伪蟺慰 蠀纬蟻伪蟽喂伪 蔚蟽蠅蟿蔚蟻喂魏伪
    魏喂谓畏蟿维 伪蠁萎蟽 蟿喂渭苇蟽

  24. piln铆k sklen臎n媒 na nehty 屑邪ster nail 2.2 b chanel jumbo classic double flap bag caviar noir th patch espadrille whisper white 拧koln铆 ta拧ka set herlitz flexi mot媒l master catalogue p e pdf download gratuito blouson bombardier noir femme best mountain un bel 茅cran v茅g茅tal pour se prot茅ger des regards 魏伪蠁蔚蟽 蟽蟿畏谓 伪胃畏谓伪 stock 蔚蟽蠅蟻慰蠀蠂伪 蟺蟻伪蟽喂谓伪 蟺伪蟺慰蠀蟿蟽喂伪 蔚蟺伪纬纬蔚位渭伪蟿喂魏慰蟽 蟽蟿喂蠁蟿畏蟽 蟺慰蟻蟿慰魏伪位喂蠅谓
    handdammsugare test 2015

  25. [url=]hydroxychloroquine sulfate[/url] [url=]lipitor 20 mg tablet price[/url] [url=]buy wellbutrin[/url] [url=]buy trazodone[/url]

  26. [url=]motrin 122[/url] [url=]ivermectin virus[/url] [url=]singulair 10mg price in india[/url] [url=]aralen tab 150 mg[/url] [url=]priligy generic[/url]

  27. 2020 eybl kd 11s oversized pullover rube adler sports custom under armour basketball uniforms high quality womens shoes under armour ua syncline athletic under armour womens cold gear infrared cozy legwarmer pant black epoch ilwomen committed academy girls uniform sneak peeks stx crux i c w runway pocket nike air max 2016 womens 2020 pink air max 90 petite womens clothing catalog monterky lacl谩膷e
    take a look at this white nfl combine authentic shorts

  28. [url=]buy hydrochlorothiazide[/url] [url=]aralen canada[/url] [url=]buy hydroxychloroquine[/url] [url=]wellbutrin 15 mg[/url] [url=]buy bupropion[/url] [url=]cymbalta 60 mg[/url] [url=]nexium online[/url] [url=]zovirax for sale[/url] [url=]motrin 800[/url] [url=]buy azithromycin[/url] [url=]buy motilium[/url] [url=]cheap tamoxifen[/url] [url=]buy prazosin[/url] [url=]malegra dxt[/url] [url=]metformin[/url] [url=]purchase singulair[/url] [url=]ivermectin virus[/url] [url=]generic flomax[/url] [url=]proscar 1mg[/url] [url=]cephalexin tablet price[/url]

  29. f茅rfi szem枚ld枚k sablon 转诪讜谞讛 砖诇 砖专砖专转 住专讜讙讛 3 砖专砖专讗讜转 住专讜讙讜转 住专讬讙讛 转讻砖讬讟讬诐 samme dragt til kvinder og m忙nd salomon xa pro 3d gtx black se done by deer senget酶j baby petroleum m balloner se her georg jensen ring vindrue reef little day lilly reef sandaler til frankie i frank maskotka dockers bayan 莽izme modelleri stol膷ek za otroke kidchair smoby zelen z uv filtrom kalevala koru hopeiset kosmos korvakorut kultat盲hti revender roupa feminina cargador para port谩til acer aspire s7 191 19v 3.42a 3.0 china sexy swimwear underwear lingerie conjuntos elegantes para dama pantalon y blusa
    h m k酶b og salg

  30. [url=]aralen buy[/url] [url=]hydrochlorothiazide brand name in india[/url] [url=]where to get tamoxifen[/url] [url=]amitriptyline medication[/url] [url=]motilium price singapore[/url] [url=]lipitor 20mg canada[/url] [url=]metformin 500 mg tablets[/url] [url=]cheap malegra[/url]

  31. [url=]lipitor 5mg[/url] [url=]hydroxychloroquine 0.5 mg[/url] [url=]buy retin a[/url] [url=]30 mg amitriptyline[/url]

  32. [url=]nexium 20mg price in india[/url] [url=]lipitor 40[/url] [url=]buy wellbutrin online australia[/url] [url=]motrin coupon[/url] [url=]retin a 025[/url] [url=]proscar mexico[/url] [url=]cost of ivermectin[/url] [url=]amitriptyline 10mg buy online[/url] [url=]priligy generic[/url] [url=]singulair 50 mg[/url]

  33. [url=]buy prazosin[/url] [url=]tamoxifen canada brand[/url] [url=]motrin[/url] [url=]generic metformin prescription mexico[/url] [url=]hydroxychloroquine uk[/url]

  34. [url=]azithromycin generic[/url] [url=]metformin online[/url] [url=]priligy tablets over the counter[/url] [url=]cephalexin 500mg capsules prices[/url] [url=]tamoxifen 20 mg coupon[/url]

  35. decimas zapatillas hombre nike playeras sin cordones helly hansen w eq black midlayer jacket n艖i pol谩r k枚nyvek pelenk谩z贸 t谩ska egy茅b f贸rum n艖i h贸tapos贸 olcs贸n t锚nis adidas infantil superstar 360 azul camuflado 丨乇丕噩 丕賱爻賷丕乇丕 賯胤毓 睾賷丕乇 爻賷丕乇丕 噩丿賷丿丞 shortinho tipo suquini de praia no 2019 turkish dress novi hit na sceni lusteri internet nike presto rojas fabrica zapatos guante 蠁蟿喂维尉蔚 蔚蠉魏慰位伪 未喂伪魏慰蟽渭畏蟿喂魏维 渭蟺慰蠀魏维位喂伪 渭蔚 纬蟻维渭渭伪蟿伪 casual u.s. polo assn julius yellow 蟺伪谓蟿蔚位委未畏蟼 shoes
    botas negras juveniles

  36. [url=]buy tamoxifen[/url] [url=]hydrochlorothiazide online[/url] [url=]best generic wellbutrin 2017[/url] [url=]buy hydroxychloroquine[/url] [url=]chloroquine for sale[/url] [url=]hydroxychloroquine buy[/url] [url=]nexium 10mg price[/url] [url=]chloroquine for sale[/url]

  37. [url=]cephalexin 500 mg[/url] [url=]buy amitriptyline[/url] [url=]motrin 300 mg[/url] [url=]cost of cialis in mexico[/url] [url=]motilium over the counter singapore[/url]

Vélemény, hozzászólás?

Az email címet nem tesszük közzé. A kötelező mezőket * karakterrel jelöltük