Bug 798738 (mysqlenum)

Summary: Review request: mysqlenum - is an automatic blind SQL injection tool.
Product: [Fedora] Fedora Reporter: pjp <pj.pandit>
Component: Package ReviewAssignee: Nobody's working on this, feel free to take it <nobody>
Status: CLOSED CANTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: athmanem, jlieskov, mail, metherid, misc, mrunge, notting, package-review, susi.lehtola, tcallawa
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
URL: http://www.andreafabrizi.it/?mysqlenum
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-05-03 06:54:38 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 563471    

Description pjp 2012-02-29 17:43:27 UTC
Hi,

mysqlenum - is an automatic blind SQL injection tool.

SPEC: http://pjp.dgplug.org/tools/mysqlenum.spec
SRPM: http://pjp.dgplug.org/tools/mysqlenum-0.3-1.fc16.src.rpm
Koji: http://koji.fedoraproject.org/koji/taskinfo?taskID=3840986

Thank you.

Comment 1 Matthias Runge 2012-03-01 07:45:04 UTC
pjp, you can't review your own package.

You should only set fedora-review-flag if you're going to do a review.

One minor: If you're not going to submit this for el5, then you should remove rm -rf $RPM_BUILD_ROOT from install section.

Comment 2 pjp 2012-03-01 08:31:21 UTC
Oops sorry,(In reply to comment #1)
> pjp, you can't review your own package.
> You should only set fedora-review-flag if you're going to do a review.

  Oh, sorry about that, got confused.
 
> One minor: If you're not going to submit this for el5, then you should remove
> rm -rf $RPM_BUILD_ROOT from install section.

  Why not, I can submit it for el5 as well. Hope that's ok.

Thank you.

Comment 3 Jan Lieskovsky 2012-03-01 09:12:50 UTC
Removed the 'Security' keyword. Please don't use that one for cases like this, as it has different purpose.

This is not a security issue, just package review request.

Regards, Jan.
--
Jan iankko Lieskovsky / Red Hat Security Response Team

Comment 4 Othman Madjoudj 2012-03-03 11:11:52 UTC
Here's some comments:

- Source0 should be point to upstream ie: http://www.andreafabrizi.it/download.php?file=mysqlenum-0.3.tar.gz

- Use %{version} macro instead of hard coded version (eg: in Source0)

- %{_sysconfdir}/mysqlenum.conf should be marked as %config


I added FE-SECLAB blocker since this package is in Security Lab spin wishlist.

Comment 5 pjp 2012-03-03 13:59:12 UTC
(In reply to comment #4)
> - Source0 should be point to upstream ie:
> http://www.andreafabrizi.it/download.php?file=mysqlenum-0.3.tar.gz

  I had done that, it causes error during $ rpmbuild -ba 

error: File /home/rpm/rpmbuild/SOURCES/download.php?file=%{name}-%{version}.tar.gz: No such file or directory

Please see:

SPEC: http://pjp.dgplug.org/tools/mysqlenum.spec
SRPM: http://pjp.dgplug.org/tools/mysqlenum-0.3-2.fc16.src.rpm
Koji: http://koji.fedoraproject.org/koji/taskinfo?taskID=3849235

Thanks.

Comment 6 Othman Madjoudj 2012-03-03 14:13:59 UTC
According to [1], you should use something like:

# Upstream URL does not end with tarball name
# You can get the tarball by following a link from:
# http://www.andreafabrizi.it/download.php?file=mysqlenum-0.3.tar.gz
Source0: %{name}-%{version}.tar.gz


[1] http://fedoraproject.org/wiki/Packaging:SourceURL#Troublesome_URLs

Comment 7 pjp 2012-03-03 14:58:08 UTC
(In reply to comment #6)
> # Upstream URL does not end with tarball name
> # You can get the tarball by following a link from:
> # http://www.andreafabrizi.it/download.php?file=mysqlenum-0.3.tar.gz
> Source0: %{name}-%{version}.tar.gz

  Yep, done. Please see

SPEC: http://pjp.dgplug.org/tools/mysqlenum.spec
SRPM: http://pjp.dgplug.org/tools/mysqlenum-0.3-3.fc16.src.rpm
Koji: http://koji.fedoraproject.org/koji/taskinfo?taskID=3849337

Thank you!

Comment 8 Susi Lehtola 2012-03-04 11:45:30 UTC
pjp: please fill in your full name in bugzilla.

Are you a member of the packaging group? Have you been sponsored?

Please document what patch0 does. And be sure to run rpmlint on your rpms, at least the summary does not adhere to Fedora standards.

Comment 9 pjp 2012-03-04 14:21:27 UTC
(In reply to comment #8)
> Are you a member of the packaging group? Have you been sponsored?

   Yes, I am.
 
> Please document what patch0 does. And be sure to run rpmlint on your rpms, at
> least the summary does not adhere to Fedora standards.

Please see:

SPEC: http://pjp.dgplug.org/tools/mysqlenum.spec
SRPM: http://pjp.dgplug.org/tools/mysqlenum-0.3-4.fc16.src.rpm


$ rpmlint SPECS/mysqlenum.spec 
SPECS/mysqlenum.spec: W: invalid-url Source0: mysqlenum-0.3.tar.gz
0 packages and 1 specfiles checked; 0 errors, 1 warnings.
 
$ rpmlint RPMS/x86_64/mysqlenum-0.3-4.fc16.x86_64.rpm 
mysqlenum.x86_64: W: no-manual-page-for-binary mysqlenum
1 packages and 0 specfiles checked; 0 errors, 1 warnings.

$ rpmlint SRPMS/mysqlenum-0.3-4.fc16.src.rpm 
mysqlenum.src: W: invalid-url Source0: mysqlenum-0.3.tar.gz
1 packages and 0 specfiles checked; 0 errors, 1 warnings.

Comment 10 Michael S. 2012-03-18 22:48:02 UTC
I think you should split the patch in 2 separate patchs, and add a comment about when you have sent them upstream ( and of course, sending them upstream ).

See https://fedoraproject.org/wiki/Packaging:Guidelines#All_patches_should_have_an_upstream_bug_link_or_comment

Comment 11 pjp 2012-03-19 06:13:04 UTC
(In reply to comment #10)
> I think you should split the patch in 2 separate patchs,

  Okay.

> and add a comment
> about when you have sent them upstream ( and of course, sending them upstream).

  Yes, I've sent(on Feb 29'th 2012) the patch to upstream author

 -> andrea.fabrizi

But haven't heard anything from him.

Comment 12 pjp 2012-03-19 13:14:36 UTC
I've split the original patch into two: one for COPYING and other for the Makefile. 

Please see:

SPEC: http://pjp.dgplug.org/tools/mysqlenum.spec
SRPM: pjp.dgplug.org/tools/mysqlenum-0.3-5.fc16.src.rpm


$ rpmlint SPECS/mysqlenum.spec 
SPECS/mysqlenum.spec: W: invalid-url Source0: mysqlenum-0.3.tar.gz
0 packages and 1 specfiles checked; 0 errors, 1 warnings.

$ rpmlint RPMS/x86_64/mysqlenum-0.3-5.fc16.x86_64.rpm 
mysqlenum.x86_64: W: no-manual-page-for-binary mysqlenum
1 packages and 0 specfiles checked; 0 errors, 1 warnings.

$ rpmlint SRPMS/mysqlenum-0.3-5.fc16.src.rpm 
mysqlenum.src: W: invalid-url Source0: mysqlenum-0.3.tar.gz
1 packages and 0 specfiles checked; 0 errors, 1 warnings.

Thank you.

Comment 13 Michael S. 2012-03-19 19:13:21 UTC
The md5sum doesn't match, it seems that you repackaged everything in a different directory. You should not do it, and rather use -n option of %setup :

%setup -q -n %{name} 

Please fix.

Comment 14 Michael S. 2012-03-19 19:14:26 UTC
Also, please add post a complete url, as I am using fedora-review, and it is confuse if the url is not complete ( ie, without http:// ).

Comment 15 Michael S. 2012-03-19 19:15:51 UTC
And this is not needed to clean the buildroot in %install, see 
https://fedoraproject.org/wiki/Packaging:Guidelines#BuildRoot_tag

Comment 16 pjp 2012-03-27 06:26:09 UTC
Hi, I've made the changes, please see:

SPEC: http://pjp.dgplug.org/tools/mysqlenum.spec
SRPM: http://pjp.dgplug.org/tools/mysqlenum-0.3-6.fc16.x86_64.rpm


$ rpmlint SPECS/mysqlenum.spec 
SPECS/mysqlenum.spec: W: invalid-url Source0: mysqlenum-0.3.tar.gz
0 packages and 1 specfiles checked; 0 errors, 1 warnings.

$ rpmlint SRPMS/mysqlenum-0.3-6.fc16.src.rpm 
mysqlenum.src: W: invalid-url Source0: mysqlenum-0.3.tar.gz
1 packages and 0 specfiles checked; 0 errors, 1 warnings.

$ rpmlint RPMS/x86_64/mysqlenum-0.3-6.fc16.x86_64.rpm 
mysqlenum.x86_64: W: no-manual-page-for-binary mysqlenum
1 packages and 0 specfiles checked; 0 errors, 1 warnings.

Comment 18 Michael S. 2012-03-27 19:29:56 UTC
You didn't fix the problem of comment #13 and that's a blocker.

Comment 19 pjp 2012-03-28 09:35:47 UTC
Hey sorry, I've fixed it. Please see:

SPEC: http://pjp.dgplug.org/tools/mysqlenum.spec
SRPM: http://pjp.dgplug.org/tools/mysqlenum-0.3-7.fc16.src.rpm

$ rpmlint SPECS/mysqlenum.spec 
SPECS/mysqlenum.spec: W: invalid-url Source0: mysqlenum-0.3.tar.gz
0 packages and 1 specfiles checked; 0 errors, 1 warnings.

$ rpmlint SRPMS/mysqlenum-0.3-7.fc16.src.rpm 
mysqlenum.src: W: invalid-url Source0: mysqlenum-0.3.tar.gz
1 packages and 0 specfiles checked; 0 errors, 1 warnings.

$ rpmlint RPMS/x86_64/mysqlenum-0.3-7.fc16.x86_64.rpm 
mysqlenum.x86_64: W: no-manual-page-for-binary mysqlenum
1 packages and 0 specfiles checked; 0 errors, 1 warnings.

Thank you.

Comment 20 Michael S. 2012-04-01 11:17:49 UTC
The tarball is still not matching the md5sum, the tarball upstream is using root user, and seems that the one in the rpm use the rpm user.

Comment 21 pjp 2012-04-01 15:18:07 UTC
I replaced the source tarball with the upstream one. Please see

SPEC: http://pjp.dgplug.org/tools/mysqlenum.spec
SRPM: http://pjp.dgplug.org/tools/mysqlenum-0.3-8.fc16.src.rpm

$ rpmlint SPECS/mysqlenum.spec SPECS/mysqlenum.spec: W: invalid-url Source0: mysqlenum-0.3.tar.gz
0 packages and 1 specfiles checked; 0 errors, 1 warnings.

$ rpmlint RPMS/x86_64/mysqlenum-0.3-8.fc16.x86_64.rpm 
mysqlenum.x86_64: W: no-manual-page-for-binary mysqlenum
1 packages and 0 specfiles checked; 0 errors, 1 warnings.

$ rpmlint SRPMS/mysqlenum-0.3-8.fc16.src.rpm 
mysqlenum.src: W: invalid-url Source0: mysqlenum-0.3.tar.gz
1 packages and 0 specfiles checked; 0 errors, 1 warnings.


Thank you.

Comment 22 Michael S. 2012-04-06 18:51:48 UTC
Hi, sorry to not have answered earlier, was busy IRL.

I looked at the license side, and there is a base64.c base64.h files under BSD license with :

* 3. All advertising materials mentioning features or use of this
 *    software must display the following acknowledgment:
 *    "This product includes software developed by the Apache Group
 *    for use in the Apache HTTP server project (http://www.apache.org/)."

Not sure if that's suitable for Fedora, so I place this as blocked by FE-Legal.

Comment 23 Rahul Sundaram 2012-04-09 05:54:06 UTC
BSD with advertising is a free software license albeit GPL incompatible.  Acceptable for Fedora according to https://fedoraproject.org/wiki/Licensing:Main.  PJP,  do consult with upstream on whether they are willing to drop the advertising clause nevertheless.

Comment 24 Tom "spot" Callaway 2012-04-10 18:44:51 UTC
That license is actually ASL 1.0, which is Free but GPL-incompatible. Lifting FE-Legal.

Comment 25 pjp 2012-04-16 05:16:25 UTC
I wrote to upstream about the license issue more than a week ago, no reply yet.

Comment 26 pjp 2012-04-26 17:57:26 UTC
I wrote to upstream again, still no reply.

Comment 27 Michael S. 2012-04-27 08:05:20 UTC
Non responsive upstream, that's not good :/

Comment 28 Matthias Runge 2012-10-18 12:23:15 UTC
any progress here?

Comment 29 pjp 2012-10-27 07:18:00 UTC
(In reply to comment #28)
> any progress here?

Nope, no reply from upstream.

Comment 30 pjp 2013-05-02 03:52:33 UTC
Another mail sent to upstream, waiting for reply.

Comment 31 pjp 2013-05-03 05:15:23 UTC
Upstream reply:
+-------------------------+
| sorry but mysqlenum is an old software, that I not maintain anymore,
| I do not recommend to you to package it.
|
| Regards,
| Andrea