Skip to content

Report 4 - Flora - LACTF 2024 /web/la-housing-portal#72

Open
florayq wants to merge 4 commits intoCUCTF:mainfrom
florayq:lahousingportal
Open

Report 4 - Flora - LACTF 2024 /web/la-housing-portal#72
florayq wants to merge 4 commits intoCUCTF:mainfrom
florayq:lahousingportal

Conversation

@florayq
Copy link
Copy Markdown
Contributor

@florayq florayq commented Mar 27, 2026

Flora's fourth writeup - web challenge from LACTF 2024 - SQLi

Copy link
Copy Markdown
Contributor

@IsaacTrost IsaacTrost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i left one comment, otherwise looks good to me.

This exploitation takes advantage of the fact that we can inject SQL code into the POST request and the input is not thoroughly checked for attacks. Some ways to prevent these attacks is encoding the information transported by the request to the server or checking the received information on the server request to verify that it is a valid option from the dropdown list before passing it into the SQL command.

## Other Things to Note
The usage of `where '1'` actually only works in sqlite which is used for this local database because of sqlite's flexibility. This would not work in general non-sqlite cases. No newline at end of file
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you go into a shade more detail on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants