Jump to content

SQL Design of the LTT Forum, need some info

silentmelodies

I am quiet new to SQL Design. I am interested how a usual SQL Database is designed, for example, user posts or a forum like this.

Are all posts kept inside one table ? Like you have a table called 'posts' and then have id of who posted it and the post text.

I imagine it like this: 

"topics" table has topic id, all the post id's and OP id, then all that is just fetched from the database on custom queries for different categories:

SELECT * FROM posts WHERE category = XYZ

Could someone provide me with the SQL diagram of the LTT Forum? Maybe @colonel_mortis or @BladeOfGrass or someone else? Like this one fore example:

LinqToFql_diagram.png

 

Lenovo/IBM ThinkPad T61 Widescreen 15.4" 1680x1050
Intel Core2Duo T8300 2.4GHz | 3GB DDR2 from Hynix | SATA II Patched bios (Middleton) | Samsung EVO 850
Arch Linux | Linux 4.3.X x86_64

Link to comment
Share on other sites

Link to post
Share on other sites

I doubt they will provide you with the structure of their DB. I don't see why I would need to explain why.

Link to comment
Share on other sites

Link to post
Share on other sites

I doubt they will provide you with the structure of their DB. I don't see why I would need to explain why.

The structure of the database has nothing to do with data in it.

Lenovo/IBM ThinkPad T61 Widescreen 15.4" 1680x1050
Intel Core2Duo T8300 2.4GHz | 3GB DDR2 from Hynix | SATA II Patched bios (Middleton) | Samsung EVO 850
Arch Linux | Linux 4.3.X x86_64

Link to comment
Share on other sites

Link to post
Share on other sites

LTT use a piece of Forum Software called IP.Board. The DB schema for IP.Board can be found here: https://www.invisionpower.com/support/guides/_/advanced-and-developers/database-schema/

 

It's not shown as a diagram but all the information you want should be there with some reading

Hmm, nice! Thanks! I could of had just Google'd that. fml

Lenovo/IBM ThinkPad T61 Widescreen 15.4" 1680x1050
Intel Core2Duo T8300 2.4GHz | 3GB DDR2 from Hynix | SATA II Patched bios (Middleton) | Samsung EVO 850
Arch Linux | Linux 4.3.X x86_64

Link to comment
Share on other sites

Link to post
Share on other sites

The structure of the database has nothing to do with data in it.

There isn't just one way to create a database. You can do it however you would like and implement it in any way you want.

Link to comment
Share on other sites

Link to post
Share on other sites

There isn't just one way to create a database. You can do it however you would like and implement it in any way you want.

 

Except most online forums use ready made forum software, each of these will have their own DB schema but most platforms will have information on their schema available. LTT may have added some new tables for custom features but the basic forum will use the standard DB.

Link to comment
Share on other sites

Link to post
Share on other sites

The structure of the database has nothing to do with data in it.

 

But it has everything to do with helping craft SQL Injection attacks.

Link to comment
Share on other sites

Link to post
Share on other sites

But it has everything to do with helping craft SQL Injection attacks.

If your site is SQL Injection vunerable you are doing life wrong.

 

Lenovo/IBM ThinkPad T61 Widescreen 15.4" 1680x1050
Intel Core2Duo T8300 2.4GHz | 3GB DDR2 from Hynix | SATA II Patched bios (Middleton) | Samsung EVO 850
Arch Linux | Linux 4.3.X x86_64

Link to comment
Share on other sites

Link to post
Share on other sites

If your site you're running a FOSS app that is SQL Injection vunerable you are doing life wrong.

 

 

Fixed it for you.

Link to comment
Share on other sites

Link to post
Share on other sites

If your site is SQL Injection vunerable you are doing life wrong.

 

 

 

But it has everything to do with helping craft SQL Injection attacks.

 

 

Knowing or not knowing a website DB schema makes no difference. If your website is vulnerable I can use the vulnerability to pull out your DB schema anyway along with all the data

Link to comment
Share on other sites

Link to post
Share on other sites

Fixed it for you.

What has FOSS to do with SQL Injection? 

SQL Injection is purely a bad programming flaw, not a program flaw.

Lenovo/IBM ThinkPad T61 Widescreen 15.4" 1680x1050
Intel Core2Duo T8300 2.4GHz | 3GB DDR2 from Hynix | SATA II Patched bios (Middleton) | Samsung EVO 850
Arch Linux | Linux 4.3.X x86_64

Link to comment
Share on other sites

Link to post
Share on other sites

What has FOSS to do with SQL Injection? 

SQL Injection is purely a bad programming flaw, not a program flaw.

 

I think bking means to imply that closed source software has no need to protect against SQL Injection. Which is utter bollocks.

Remind me never to use any software he was involved in developing.

Link to comment
Share on other sites

Link to post
Share on other sites

I think bking means to imply that closed source software has no need to protect against SQL Injection. Which is utter bollocks.

Remind me never to use any software he was involved in developing.

 

Indeed. The use of an Open Source application doesn't always mean you're vulnerable. In fact, because of the way the Open Source Community is, you're more likely to have security issues using closed source software instead.

 

I contribute to an Open Source Forum software that rivals IP.Board known as SMF (http://simplemachines.org) and we take security extremely seriously, and when we get a report we analyse it's legitimacy, and if warranted, we'll patch it ASAP.

Gary M. Gadsdon - Don't call me 'Gaz' or 'Gazman' please.

My Website: http://babysimpson.co.uk
My Youtube Channel: http://youtube.com/awwlilmaggie

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×