mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-12-03 13:49:56 +09:00
Use random_bytes instead of uniqid since it actually generates crypto… (#944)
* Use random_bytes instead of uniqid since it actually generates cryptographically secure pseudo-random bytes * Update SECURITY.md
This commit is contained in:
1 parent
42cde7416e
commit
2e1df2de5a
2 files changed
+10
-4
No files matched your search
+8
-2
@@ -7,10 +7,16 @@ currently being supported with security updates.
|
||||
|
||||
| Version | Supported |
|
||||
| ------- | ------------------ |
|
||||
| 4.20.x | :white_check_mark: |
|
||||
| 4.22.x | :white_check_mark: |
|
||||
|
||||
## Reporting Bugs
|
||||
## Reporting Vulnerabilities
|
||||
To report a vulnerability, it's please make a submission on [huntr.dev](https://huntr.dev/bounties/disclose). Enter https://github.com/boxbilling/boxbilling as the repository and then go from there. Their website should provide you a good idea for the requirements of a good vulnerability report.
|
||||
It's important to make the submission there as it keeps the vulnerability private which helps ensure it can't be exploited while a patch is in the works. If you have a suggestion that is related to security, then [creating an issue](https://github.com/boxbilling/boxbilling/issues/new/choose) on github is a suitable place.
|
||||
|
||||
Usually a good report should include where the file is, how the vulnerability could be explointed, the potential ramifications of the vulnerability, a proof of concept exploit, and if possible insight into a solution. A proper vulnerability report is awarded with a cash reward, if you provide a patch there is usually a reward with that as well.
|
||||
|
||||
## Not a Vulnerability?
|
||||
**Reporting bugs**
|
||||
This section guides you through submitting a bug report for BoxBilling. Following these guidelines helps maintainers and the community understand your report 📝, reproduce the behavior 💻 💻, and find related reports 🔎.
|
||||
|
||||
Before creating bug reports, please check this list as you might find out that you don't need to create one. When you are creating a bug report, please include as many details as possible.
|
||||
|
||||
@@ -816,7 +816,7 @@ class Service implements \Box\InjectionAwareInterface
|
||||
}
|
||||
|
||||
$ticket = $this->di['db']->dispense('SupportPTicket');
|
||||
$ticket->hash = sha1(uniqid());
|
||||
$ticket->hash = sha1(random_bytes(13));
|
||||
$ticket->author_name = $data['name'];
|
||||
$ticket->author_email = $data['email'];
|
||||
$ticket->subject = $subject;
|
||||
@@ -1206,7 +1206,7 @@ class Service implements \Box\InjectionAwareInterface
|
||||
$this->di['events_manager']->fire(array('event' => 'onBeforeAdminPublicTicketOpen', 'params' => $data));
|
||||
|
||||
$ticket = $this->di['db']->dispense('SupportPTicket');
|
||||
$ticket->hash = sha1(uniqid());
|
||||
$ticket->hash = sha1(random_bytes(13));
|
||||
$ticket->author_name = $data['name'];
|
||||
$ticket->author_email = $data['email'];
|
||||
$ticket->subject = $data['subject'];
|
||||
|
||||
Reference in new issue
Block a user