Git development
 help / color / mirror / Atom feed
* Confirm my false error suspicions of Gitweb query injection
@ 2012-09-10 16:45 Joseph Leong
  2012-09-10 17:15 ` Matthieu Moy
  2012-09-10 17:37 ` Junio C Hamano
  0 siblings, 2 replies; 4+ messages in thread
From: Joseph Leong @ 2012-09-10 16:45 UTC (permalink / raw)
  To: git

Hi Everyone,

I'm using Gitweb (Based on Git 1.7.9 on RHEL 5.8).

I was poking around and tried a GET Request (REQ) with some SQL
statements as a search query and noticed a 500. Can i just confirm
with anyone here that the error message I'm seeing in the Response
(RESP) is basically saying that the search parameters are invalid
because of it's funny chars are breaking the regex search and that
it's not anything database related.  Thank you!

[REQ]
GET /git/?s=%28select+1234%2C HTTP/1.0

[RESP]
500 - Internal Server Error
Unmatched ( in regex; marked by <-- HERE in m/( <-- HERE select
1234,/ at /var/www/git/gitweb.cgi line 4845.

[Code at gitweb.cgi line 4845]
next if $searchtext and not $pr->{'path'} =~ /$searchtext/ and not
$pr->{'descr_long'} =~ /$searchtext/;

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-09-10 17:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-10 16:45 Confirm my false error suspicions of Gitweb query injection Joseph Leong
2012-09-10 17:15 ` Matthieu Moy
2012-09-10 17:37 ` Junio C Hamano
2012-09-10 17:41   ` Joseph Leong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox