#2769 closed defect (bug) (fixed)
Non-integer provided as page_id reveals a bug on pages list
| Reported by: | pcdinh | Owned by: | markjaquith |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | General | Version: | 2.1 |
| Severity: | major | Keywords: | |
| Cc: | Focuses: |
Description
I work with Wordpress 2.1 alpha1 build 2/6/2006 and find that if I send a request like this
http://path/wordpress/?page_id=,
or
http://192.168.1.104/php/wordpress/?page_id=char()
or
http://192.168.1.104/php/wordpress/?page_id=%3Cscript%3E
Live example: http://www.binarymoon.co.uk/?page_id=%22.%22%20or%201%20=%201%22.
I will have a list of all pages following by comments blocks displayed repeatly. It means that page_id is not checked against integer values.
Thanks
pcdinh
Change History (5)
#1
@
20 years ago
- Component Security → General
- Owner changed from to
- Severity critical → major
- Status new → assigned
- Summary Security implication: Sql injection on page_id reveals a bug on pages list → Non-integer provided as page_id reveals a bug on pages list
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
It seems that if page_id is not an integer, it is removed from the query altogether (latest trunk)
No SQL injection potential. Although, blank page_id should probably run a front page query, not a query of all pages!
I'm taking away the "security" marking for this bug, because non-integer data isn't be inserted into the query. In the future, if you thing you've identified a security issue, please send it to security@…