| Author |
Message |
sixonetonoffun
Major


Joined: Jan 13, 2003
Posts: 892
|
Posted:
Fri Jan 24, 2003 8:54 am |
  |
Top_Sites is a nice very basic mod of weblinks provided by PHP-Nuke Algerie
http://phpnuke-dz.com/
There is a flaw in this module that allows any logged in user to delete any "Top Site" they choose simply by entering this url with the lid# of the "Top Site" they wish to delete.
top.html_Site&op=dellink&lid=1
Notified PHP-Nuke Algerie today.
Maybe this was sposed to be a future feature  |
_________________ www.netflake.com
www.glowoptics.com |
|
   |
 |
sixonetonoffun
Major


Joined: Jan 13, 2003
Posts: 892
|
Posted:
Fri Jan 24, 2003 10:21 am |
  |
Simple temp patch
modules/Top_Sites/index.php
Find:
| Code: |
function dellink($lid) {
global $prefix, $dbi, $user;
if (is_user($user)) {
|
Replace with
| Code: |
function dellink($lid) {
global $prefix, $dbi, $admin;
if (is_admin($admin)) {
|
|
_________________ www.netflake.com
www.glowoptics.com |
|
   |
 |
Zhen-Xjell
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939
|
Posted:
Fri Jan 24, 2003 10:35 am |
  |
Ouch, that was sloppy coding on their part. Nice catch. Consider posting that at nuke's news? |
_________________ Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki] |
|
     |
 |
sixonetonoffun
Major


Joined: Jan 13, 2003
Posts: 892
|
Posted:
Sat Jan 25, 2003 3:40 pm |
  |
|
   |
 |
sixonetonoffun
Major


Joined: Jan 13, 2003
Posts: 892
|
Posted:
Sun Jan 26, 2003 6:31 am |
  |
New bug with the Top_Sites 1.0.1 post previous patch.
This is more serious. This allows logged in user to pass java script to the admin when admin goes to check new link submissions.
Expoit:
| Code: |
<SCRIPT>alert("Filter This!");</SCRIPT dummy_flag = true>
|
Notified author expect new patch or version release correcting this bug in the near future. Though author has not replied directly regarding any bug reports submitted.
Note* This does not effect the web links module which properly squashes this kind of simple script!
~Peter |
_________________ www.netflake.com
www.glowoptics.com |
|
   |
 |
Zhen-Xjell
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939
|
Posted:
Sun Jan 26, 2003 2:02 pm |
  |
Ah, I understand now. |
_________________ Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki] |
|
     |
 |
sixonetonoffun
Major


Joined: Jan 13, 2003
Posts: 892
|
Posted:
Sat Feb 15, 2003 9:40 am |
  |
Today sid from http://phpnuke-dz.com/ gave me the opportunity to preview and test Top Site 1.2 beta. I must say he has made many enhancements to the module and its looking very good. I submitted some XSS patches to him today and would expect the next release to be much safer, stable, and functional the the initial release. He's put a lot into this next release and I'm looking forward to its public release.
~Peter |
_________________ www.netflake.com
www.glowoptics.com |
|
   |
 |
|
|