[Archivesspace_Users_Group] More admins, more problems

Chris Fitzpatrick Chris.Fitzpatrick at lyrasis.org
Wed Feb 10 15:59:25 EST 2016


Hi All,


Just to clarify a couple of things....


The staff UI forces you to make a password when you create a new user.

However, if you create a user via that api ( when logged in as an administrator ), you do not have to give a password.


There are a use  case for having users with blank passwords

( for example, if you want to have a script or service that interacts with the API ). Of course, you should actively monitor your users permissions.


The migrators create users and assign permission as there were in AT/Archon. After running a migration, you should examine your users to make sure they migrated correctly, and reset their passwords.


Also, just to be clear, these aren't database users, but just ASpace users.


That said, sure, it's probably pretty easy feature if we wanted to have the ability to enforce some kind of password strength policy. Could be done as a plugin, even...


Password reset is also doable, but it slightly tricky...most reset features require access to a mail server, which ASpace currently doesn't have. Again, not rocket science, but would be an additional thing thrown into the mix ( and, also another security attack vector ). Or maybe we could think of an alternative reset that doesn't use a mail server?


But yeah, again let me know if you have any questions...


best, Chris.


Chris Fitzpatrick | Developer, ArchivesSpace
Skype: chrisfitzpat  | Phone: 918.236.6048
http://archivesspace.org/


________________________________
From: archivesspace_users_group-bounces at lyralists.lyrasis.org <archivesspace_users_group-bounces at lyralists.lyrasis.org> on behalf of Prom, Christopher John <prom at illinois.edu>
Sent: Wednesday, February 10, 2016 6:25 PM
To: Archivesspace Users Group
Subject: Re: [Archivesspace_Users_Group] More admins, more problems

Phil,

What you re suggesting makes good sense.  We can clean up the documentation to address the security points.  I suspect part of what happened here is the ‘aspace’ user issue was introduced inadvertently with the new code development, so simply recommending it be deleted would be the main way forward.  Unless it was created in some other way, but I am not sure how, since in the case of my DB, I was looking at a version that had ONLY be touched by the migrator.

Chris

On Feb 10, 2016, at 8:44 AM, Suda, Phillip J <psuda1 at tulane.edu<mailto:psuda1 at tulane.edu>> wrote:


Chris, all:



I think that the Archon-to-ArchivesSpace migration documentation could be improved. I think it needs to be made explicit that all users will be migrated from Archon to ArchivesSpace. As you and I are both on the Migration Sub-Committee, I think we could look at improving the documentation for migration (unless of course the user migration is altered). Also, I am not sure that user migration is a negative as long as users/passwords are managed. When I have migrated from Archon to ArchivesSpace, I have deleted any users that would not be needed by staff and made sure passwords were altered. With all this being said, I do agree that a discussion about security should be had.



Thanks,



Phil







Phillip Suda

Systems Librarian

Howard-Tilton Memorial Library

Tulane University

psuda1 at tulane.edu<mailto:psuda1 at tulane.edu>

504-865-5607





From: archivesspace_users_group-bounces at lyralists.lyrasis.org<mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org> [mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org] On Behalf Of Prom, Christopher John
Sent: Wednesday, February 10, 2016 8:32 AM
To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org<mailto:archivesspace_users_group at lyralists.lyrasis.org>>
Subject: Re: [Archivesspace_Users_Group] More admins, more problems



Thanks Mark, this is good to hear.



I do think that a security review would be helpful.  My concern here is not so much with the tool, as with the fact that the app allows there to be blank passwords, which makes me wonder if there are other security problems lurking somewhere.  I know this issue had come up several years ago, and I thought fixed at that time, but apparently crept back in.



I also second the idea of an accessibility review.  On the web team we have here, we have one person dedicated to accessibility issues, and it contributes immensely to the project as a whole to have a focus on this.



Chris



On Feb 9, 2016, at 9:07 PM, Custer, Mark <mark.custer at YALE.EDU<mailto:mark.custer at YALE.EDU>> wrote:



Chris, all:



Speaking as someone who isn't a security expert at all, I'd just point out that the two migration tools are not part of the ArchivesSpace core code -- also, I've felt really good with how security is handled in the core code so far, although I do scratch my head at times with how global, repository, and user permissions and preferences function.  Still, I have no clue why the migration tools would need to create an additional "system admin" user during the migration process, but since they both do, I'd expect that the migration tools should at least remove those users after the migration, as you suggested, Chris.  Since that's not the case, I just wanted to bring the issue up to a wider audience again.  Speaking of which, I'll make sure to post the same message to the Google Group tomorrow (but if anyone wants to beat me to it, feel free!).



All that said, I'm sure that code reviews, security audits, and the like would be extremely welcome -- ArchivesSpace is open-source software, after all!  I'd also like to make a pitch that an accessibility review be conducted for the staff interface, if a major one hasn't already been conducted, as I've heard from some staff members that they have a difficult time with the default styling (particularly with contrast and other visual elements), but I'm loath to admit that we haven't done that yet.  Perhaps other have?



Lastly, I'd actually say that my confidence with the software has only grown the more that I've used it and seen the amount of work that's gone into it in such a short amount of time already.  And I expect that the quality will only increase as more and more developers start pitching in with bug fixes and the like...  but right now, the migration specialist position hasn't been refilled, and I don't believe there are any plans to do that (although I'd recommend it, since my usual response is that the optimal number of staff is usually more than what you've got if you're growing, even though that's not a solution in and of itself, of course!).



Mark







________________________________

From: archivesspace_users_group-bounces at lyralists.lyrasis.org<mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org> [archivesspace_users_group-bounces at lyralists.lyrasis.org<mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org>] on behalf of Prom, Christopher John [prom at illinois.edu<mailto:prom at illinois.edu>]
Sent: Tuesday, February 09, 2016 4:08 PM
To: Archivesspace Users Group
Subject: Re: [Archivesspace_Users_Group] More admins, more problems

Mark,



Thanks for bringing this up.



I just checked and in the case of the archon migrations, the asadmin user is not created.  However, it does make a user ‘aspace’ and grants it full admin rights.  Even worse, you can login as that user with NO password (i.e. field is blank).  So, that one should definitely be killed off manually or even better the migration tool should delete it when done.



In addition, there is another problem with archon migrations, in that the migration tool takes ALL of the existing users from archon DBs, and migrates them into aspace as read only users with the same login, and no password.   You can then login to the app with the old users name and no password (field is blank) and can view but not edit data.



All of the users the migration tool create are read only—but still this is a security problem since someone might be able to view restricted data or find a hack to get more permissions on the DB.



As a related question, how is security handled generally in ASpace?  Is it relying on an external security library, or bespoke code, or some combination of the two?



The discovery of these types of things, in all honesty, does not engender confidence, and probably indicates the need for a thorough security audit.  While the above problems can be cleaned up after the fact, not an ideal solution.



Chris Prom

Univeristy of Illinois Archives



On Feb 9, 2016, at 2:39 PM, Custer, Mark <mark.custer at yale.edu<mailto:mark.custer at yale.edu>> wrote:



All,



I wanted to send out a friendly reminder about admin accounts in ArchivesSpace (and this is coming strictly from an ArchivesSpace user’s perspective).



As most are aware, when you install ArchivesSpace without any configuration changes, you wind up with a single admin account in ArchivesSpace that has a username equal to “admin” and a password set to be the same.  You’ll want to change this password to something else long before you go into production mode.  For the most part, I think that people take care of this on or around day one, but if you can log into your ASpace application using that username and password, you’ll want to update that password to something else that’s a lot more secure!



Less well known is what happens when you use the migration tool to populate your ArchivesSpace database (I sent an email about this to the listserv way back on May 8, 2015, but I don’t know if what I’m about to describe is documented anywhere else yet).  If you’ve migrated to ArchivesSpace using the Archivists’ Toolkit migration tool (and I’m pretty sure this happens with the Archon tool, as well), then another admin user will be added to your database.  This admin user will have a username that’s equal to “asadmin”.  I’m not actually sure why the migration tool creates another user (or if the current versions still do this), especially since you have to supply admin credentials to the migration tool to run against the ASpace API, but I know that this happened during our migration process – and I’ve seen this phantom admin user account in other ArchivesSpace installations, as well.  When we discovered this new user, we deleted it from our database immediately after our final migration process.



So, I’d like to ask everyone out there to check and see if they can login to their own ArchivesSpace with an “asadmin” account, whether you’re in production or not (the password is easy to guess, since it’s the same as the default admin user’s password).  If you can log in that way, I’d suggest deleting that user immediately!



Mark









_______________________________________________
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group at lyralists.lyrasis.org<mailto:Archivesspace_Users_Group at lyralists.lyrasis.org>
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group<https://urldefense.proofpoint.com/v2/url?u=http-3A__lyralists.lyrasis.org_mailman_listinfo_archivesspace-5Fusers-5Fgroup&d=BQMFAg&c=8hUWFZcy2Z-Za5rBPlktOQ&r=jGJMaTc-8I-z6_tkoj_Qyi4UF1KtYBfcz4s2Ly33jmw&m=JBM5eVzEZn8p99s9zqOEyqrU9PSic9qevEstgnoRq2s&s=Wn9kgsQlk3ScpDWo9h9qop9800isIJZ3prq0kEeKjmo&e=>



_______________________________________________
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group at lyralists.lyrasis.org<mailto:Archivesspace_Users_Group at lyralists.lyrasis.org>
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group<https://urldefense.proofpoint.com/v2/url?u=http-3A__lyralists.lyrasis.org_mailman_listinfo_archivesspace-5Fusers-5Fgroup&d=BQMFAg&c=8hUWFZcy2Z-Za5rBPlktOQ&r=jGJMaTc-8I-z6_tkoj_Qyi4UF1KtYBfcz4s2Ly33jmw&m=JBM5eVzEZn8p99s9zqOEyqrU9PSic9qevEstgnoRq2s&s=Wn9kgsQlk3ScpDWo9h9qop9800isIJZ3prq0kEeKjmo&e=>



_______________________________________________
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group at lyralists.lyrasis.org<mailto:Archivesspace_Users_Group at lyralists.lyrasis.org>
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20160210/1e6592dd/attachment.html>


More information about the Archivesspace_Users_Group mailing list