<!DOCTYPE html>
<html lang="en">
  <head>
    <title>MatterLinux | Security</title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=1200">
    <link href="/global.css" rel="stylesheet">
    <link href="/manage.css" rel="stylesheet">
  </head>
  <body>
    {{template "parts/bar" .}}
    <main>

      <a href="/manage/logout">Logout</a>
      
      <form action="/manage/new" method="POST">
        <h1>Create new issue</h1>
        
        <label>Description</label>
        <textarea name="desc" 
               placeholder="Heap buffer overflow in libwebp in Google Chrome prior to 116.0.5845.187 and libwebp 1.3.2 allowed a remote attacker..."></textarea>
        
        <label>Source (URL)</label>
        <input name="source" type="text" placeholder="https://nvd.nist.gov/vuln/detail/CVE-2023-4863">
        
        <label>Severity</label>
        <select name="severity">
          <option value="Low">Low</option>
          <option value="Medium">Medium</option>
          <option value="High">High</option>
          <option value="Critical">Critical</option>
        </select>

        <label>Package name</label>
        <input name="package" type="text" placeholder="libwebp">
        
        <label>Affected package versions (split with comma)</label>
        <input name="versions" type="text" placeholder="1.3.2">
        
        <button type="submit">Publish</button>
      </form>
      
      <form action="/manage/status" method="POST">
        <h1>Update an issue</h1>

        <label>Vulnerability ID</label>
        <input name="id" type="text" placeholder="MPSI-24-0381">

        <label>Status</label>
        <select name="status">
          <option value="Waiting for review">Waiting for review</option>
          <option value="Ongoing review">Ongoing review</option>
          <option value="Working on a patch">Working on a patch</option>
          <option value="Won't patch">Won't patch</option>
          <option value="Patched">Patched</option>
          <option value="Not affected">Not affected</option>
        </select>
        
        <label>Message</label>
        <textarea name="message" placeholder="We are currently testing the new patch for the vulnerability"></textarea>
        
        <button type="submit">Update</button>
      </form>

    </main>
  </body>
</html>