broodwarmaps.net banner

BWMN Time
12/26/2024
11:13
News
new account
list users
Login:
name:
:PW.:
Replays
Map DB
ICCup
Map Access
New map
Edit map
 


Back to mainpage
SQL Injection 03/31/2021 08:17 AM
Posted by:panschk[FP]

Hey everyone :-)

Thanks a lot to Crackling who pointed out to me that BWMN has been vulnerable to SQL injection because the inputs were not sanitized. I did not know better when I implemented it back in the day, but at least I tried to fix it now, using a regex search/replace. With this I replaced over 300 places in the code base in one go. This is not perfect and a really serious hacker might still be able to get through, but certainly an improvement. It could also potentially break something, although my tests looked good. If I broke something that previously worked, let me know in the comments.

When doing this on Tuesday, I accidently applied the connection settings to an older backup of the databse, which is used for the 'update project' started but abandoned by mmmk: http://broodwarmaps.net/BWMN_dev/public/index.php




Update 2021-04-01: I added another fix that should hopefully fix SQL injection in all cases.

Comments:


Because of heavy spam on the map comments, it is needed to be logged in to post. We are sorry that this has to be done because nothing else stops spam bots
random map
  (4)Charmander
Newest updates:
  (2)Taurus 0.78
  (4)Espresso 0.61
  (4)Nocturne 1
  (4)Radiance 1.0b
  (4)Desert Rose 1.1b
  (3)Tempest 1.3c
  (2)Urban Jungle 1..
  (4)CHEERUP 0.72
  (3)Starboy 0.60
  (3)Maya 0.60
MOTM
  • month 6:
      (2)Butter 2.0b
  • MOTW
  • week 2021.01:
      (3) Lambda 1.0
  • Main Forum
  • New B..(Kroznade)
  • Magna..(addressee)
  • No Fo..(Pension)
  • Share..(Shade)R)
  • Feedback
  • This s..(ubaTaeCJ)
  • Rotati..(triller1)
  • Off Topic
  • Real L..(ubaTaeCJ)
  • scm dr..(addressee)
  • Vetera..(ProTosS4Ev)
  • Starcraft 2
  • announ..(triller1)
  • STARCR..(triller1)
  • Search Forum
    Articles:
     
  • x  
  • How to make larvae spawn at the bottom right corner  
  • Worker pathing guide - How to debug and balance resour
  • Competition:
     
  • Innovative Naturals Competition  
  • Tourney Map Pack Aspirant Suggestions  
  • Maps That Need A Remake  
  • Think Quick Map Contest ($100 prize)