miniBB ®miniBB®
Support Forums
  
 · Start · Sign in · Register · Search · Statistics · Manual ·
The Other miniBB Support Forums / The Other /  
 

Primary miniBB scripts for CSP

 
 
Page  Page 2 of 2 :  « Previous  1  2

Author tom322
Active Member
#16 · Posted: 20 Oct 2026 00:44
Frédéric:
I don't see how to do it.
That's an interesting question. I've been wondering if it would be possible as it would be totally unique for a forum to be able to do it ;) I think an IP and maybe $user_usr could be checked to allow a few minutes edit, even though it would not be 100% sure in case another guest user from the same IP but different location visits the page (still, it's almost impossible).

Author Paul
Lead Lead Developer
#17 · Posted: 20 Oct 2026 15:40
Frédéric:
As a guest can I edit last post ?
You can edit the post only being logged as a member — and you can edit the post only made from this member's account.

Here on miniBB forum, you are allowed to edit your message within 5 minutes since it's posted.

Author Frédéric
Guest
#18 · Posted: 21 Oct 2026 00:05
Hello Paul,

Paul:
Here on miniBB forum, you are allowed to edit your message within 5 minutes since it's posted.
Smart.

Author Frédéric
Guest
#19 · Posted: 24 Oct 2026 19:23
Hello Paul,

header("Content-Security-Policy: script-src 'self'; script-src-elem 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; font-src 'self'; img-src 'self'; etc, etc, etc");

By including this directive at the beginning of every primary PHP script on my main site, I achieve an A+ rating from the MDN tool.

For MiniBB, it is necessary to add 'unsafe-inline' to `script-src`; otherwise, JavaScript code essential for the forum's operation gets blocked.
With this change, MiniBB receives a B+ rating, which is good.

Just have to put this directive at the beginning of index.php and the main admin script.

For me this discussion is achieved.

Thank you.

Author tom322
Active Member
#20 · Posted: 24 Oct 2026 23:56
What if you have embedded videos or images..

Author Paul
Lead Lead Developer
#21 · Posted: 27 Oct 2026 16:58
Frédéric:
I achieve an A+ rating from the MDN tool
It's an open source and you're free to modify it up to your wish an risk. These ratings and the strategy overall seems kidding (at least now, and to me).

MiniBB depends on many other, more critical things like PHP, or web-server, or database... these server apps have to be instantly monitored and upgraded to avoid more serious security leaks like recently discovered.

By the way, nginx project also experienced serious security update recently, which was related to mostly the same buffer overflow and memory exhaustion issues.

Whatever PHP headers you set, you can't avoid such security leaks, and they are the primary attention takers.

Author Frédéric
Guest
#22 · Posted: 27 Oct 2026 19:44
Hello,

tom322:
What if you have embedded videos or images..
If they are on the same site you don't have any problem.

Paul:
Whatever PHP headers you set, you can't avoid such security leaks, and they are the primary attention takers.
Yes, of course.

Page  Page 2 of 2 :  « Previous  1  2 
The Other miniBB Support Forums / The Other /
 Primary miniBB scripts for CSP
Share Link Share Topic's Link
 Click this icon to move up to the quoted message

 ∅ ?
Post as a Guest, leaving the Password field blank. You could also enter a Guest name, if it's not taken by a member yet. Sign-in and post at once, or just sign-in, bypassing the message's text.


Before posting, make sure your message is compliant with forum rules; otherwise it could be locked or removed with no explanation.

 

  
 
miniBB Support Forums Powered by Forum Software miniBB ® Home  Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contact Us
Install the Polls & Surveys add-on: organize surveys on miniBB-forums, collecting them in one place.


⇑