Author |
Topic |
Carefree
Advanced Member
Philippines
4207 Posts |
Posted - 10 August 2010 : 13:33:09
|
Try this:
|
|
|
bobby131313
Senior Member
USA
1163 Posts |
|
bobby131313
Senior Member
USA
1163 Posts |
Posted - 10 August 2010 : 19:35:18
|
I'm at a loss. I've examined post_info to see how posts are handled and tried a few things but can't seem get it fixed. Grrrr... |
Switch the order of your title tags |
|
|
ruirib
Snitz Forums Admin
Portugal
26364 Posts |
Posted - 10 August 2010 : 19:59:41
|
Seems to me that quite a lot of data obtained from the form is not being sanitized, independent of type. That's a serious issue, security wise, and it's also the cause for the quotes problems, because if it data was sanitized using Snitz ChkString, the quotes issue wouldn't show up. |
Snitz 3.4 Readme | Like the support? Support Snitz too |
|
|
bobby131313
Senior Member
USA
1163 Posts |
Posted - 10 August 2010 : 20:06:41
|
It at least *appears* to me that it is though....
strCategory = chkString(cStr(Request.Form("strCategory")),"SQLString")
strName = chkString(cStr(Request.Form("strName")),"SQLString")
curMin = cStr(Request.Form("curMin"))
strStartDate = cStr(Request.Form("strStartDate"))
strLength = cStr(Request.Form("strLength"))
strDesc = chkString(cStr(Request.Form("strDesc")), "SQLString")
strImage = chkString(cStr(Request.Form("strImage")), "SQLString")
strName & strDesc are both choking on the first double quote. |
Switch the order of your title tags |
Edited by - bobby131313 on 10 August 2010 20:07:14 |
|
|
ruirib
Snitz Forums Admin
Portugal
26364 Posts |
Posted - 10 August 2010 : 20:11:29
|
CStr doesn't sanitize anything and at least three values are using it without ChkString. Also, this file seems to be used only for creating the database record. Maybe you are trying this with existing records and those are dealt with elsewhere and likely they have the same security issues as the previous version of auction_save.asp exhibited (and the current version still does, to a lesser degree, but still vulnerable). |
Snitz 3.4 Readme | Like the support? Support Snitz too |
|
|
ruirib
Snitz Forums Admin
Portugal
26364 Posts |
Posted - 10 August 2010 : 20:36:34
|
Seems the file also updates records. I don't really know the mod and didn't look at files other than the one posted here, so I will just stick with the comments regarding the SQL injection vulnerability, which anyone using this mod should look into ASAP. |
Snitz 3.4 Readme | Like the support? Support Snitz too |
|
|
Classicmotorcycling
Development Team Leader
Australia
2084 Posts |
Posted - 12 August 2010 : 06:16:49
|
Bobby,
The code you are looking for is in auction_sellItemProcess.asp to fix te issue:
" <input TYPE=""hidden"" NAME=""strName"" VALUE=""" & strName & """>" & vbNewLine & _
" <input TYPE=""hidden"" NAME=""strDesc"" VALUE=""" & strDesc & """>" & vbNewLine & _
The above 2 lines need to be changed to:
" <input TYPE=""hidden"" NAME=""strName"" VALUE=""" & Trim(ChkString(strName,"edit")) & """>" & vbNewLine & _
" <input TYPE=""hidden"" NAME=""strDesc"" VALUE=""" & Trim(ChkString(strDesc,"edit")) & """>" & vbNewLine & _
This will allow the " " in the title and the description. I have also fixed the ChkString as pointed out by Rui (So many copies going around, lost track), and uploaded it. |
Cheers, David Greening |
|
|
bobby131313
Senior Member
USA
1163 Posts |
|
Carefree
Advanced Member
Philippines
4207 Posts |
Posted - 18 August 2010 : 21:59:01
|
No bids desired - this was a fun test:
|
|
|
richfed
Average Member
United States
999 Posts |
Posted - 05 September 2010 : 10:47:57
|
Just installed the latest version of this MOD from SnitzBitz because someone was actually going to list an auction - first time on my forum so I am pretty unfamiliar with the functions of the MOD. Two things: - First of all, the user placed a broken link for the image. I see no function that allows me to go in and attempt to fix/edit that. Is that even possible?
- Secondly, is there a way to make the Auction link on inc_header.asp show that a Auction is going on - like PMs show up when you have one? Just a number would do ... indicating that x number of auctions are underway.
Thanks -
EDIT ---> Scratch the first one ... I see it. Perhaps, the edit icon should appear in various views? A little hard to find, I think.
EDIT #2 ---> I see no way to actually place a bid on the listed item. Am I nuts? |
Edited by - richfed on 05 September 2010 10:57:20 |
|
|
richfed
Average Member
United States
999 Posts |
Posted - 05 September 2010 : 11:06:17
|
Here is a screenshot of what I see [I fixed the image URL that the user had posted incorrectly] when logged in as Admin. I can see no way to bid. I think the user may have posted the auction incorrectly, but I see no way to fix it. Obviously, something wrong with the "winning bidder" entry.
|
|
|
Classicmotorcycling
Development Team Leader
Australia
2084 Posts |
Posted - 05 September 2010 : 15:42:40
|
I have fixed it in the download. Was playing with some stuff and forgot to change it back before I copied the files. |
Cheers, David Greening |
|
|
richfed
Average Member
United States
999 Posts |
|
richfed
Average Member
United States
999 Posts |
Posted - 10 September 2010 : 07:11:37
|
quote: Is there a way to make the Auction link on inc_header.asp show that a Auction is going on - like PMs show up when you have one? Just a number would do ... indicating that x number of auctions are underway.
Can anyone code this? It would be very helpful, I would think. When a user logs on, they would immediately see how many "live" auctions there were ... inducing, hopefully, a click on the link. |
|
|
Topic |
|