Author |
Topic |
|
Maxime
Average Member
France
521 Posts |
Posted - 21 June 2014 : 02:28:41
|
Hello Carefree,
I fixed a security problem on the mod admin_ban_ips.asp Ban_ip. Anyone knowing the address of the page could write this page, I removed the code and added the security code for the session other administration pages and it works.
He too would like that page is not displayed UF8 as written but in all kind of charset set by config.asp page, can it? |
Cordially, Maxime
Taxation consists in so plucking the goose to get the most out of feathers with the least possible cries.(Jean-Baptiste Colbert)
|
|
Maxime
Average Member
France
521 Posts |
Posted - 21 June 2014 : 04:41:30
|
There also admin_banned.asp page that does not esty also included what was in protection session on other pages adminitrations forum. To not have anyone who uses good accounts of these functions. unbeknownst to me |
Cordially, Maxime
Taxation consists in so plucking the goose to get the most out of feathers with the least possible cries.(Jean-Baptiste Colbert)
|
Edited by - Maxime on 21 June 2014 04:42:00 |
|
|
Carefree
Advanced Member
Philippines
4207 Posts |
Posted - 21 June 2014 : 14:28:12
|
Actually, you're in error about the security features. The user would have to have mLev=4 to use the page, which is what I wanted (for all admins to be able to ban IPs, not just the forum admin). So your "fix" just gives the task back to the forum admin.
To change it from UTF8 is simple, delete the line that says Response.Charset="UTF-8" |
|
|
Maxime
Average Member
France
521 Posts |
Posted - 22 June 2014 : 13:16:29
|
After changing, I did the tests with me and then another of my single administrator account and it can not banish the problem ip and email. Here is the added code because without beings connected to one account, I could make the changes I wanted.
if Session(strCookieURL & "Approval") <> "15916941253" then scriptname = split(request.servervariables("SCRIPT_NAME"),"/") Response.Redirect "admin_login.asp?target=" & scriptname(ubound(scriptname)) end if |
Cordially, Maxime
Taxation consists in so plucking the goose to get the most out of feathers with the least possible cries.(Jean-Baptiste Colbert)
|
|
|
Carefree
Advanced Member
Philippines
4207 Posts |
Posted - 22 June 2014 : 13:55:51
|
That added code forces you to be the forum admin account. That is precisely why I left it out, using just an mLev comparison. |
|
|
|
Topic |
|